@progress/kendo-angular-treeview
Advanced tools
Comparing version 2.1.2 to 2.1.3-dev.201802271235
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { ChangeDetectorRef, Directive, EventEmitter, Input, Output } from '@angular/core'; | ||
@@ -200,31 +199,19 @@ import { TreeViewComponent } from './treeview.component'; | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], CheckDirective.prototype, "isChecked", null); | ||
tslib_1.__decorate([ | ||
Input("checkBy"), | ||
tslib_1.__metadata("design:type", Object) | ||
], CheckDirective.prototype, "checkKey", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array), | ||
tslib_1.__metadata("design:paramtypes", [Array]) | ||
], CheckDirective.prototype, "checkedKeys", null); | ||
tslib_1.__decorate([ | ||
Input('kendoTreeViewCheckable'), | ||
tslib_1.__metadata("design:type", Object) | ||
], CheckDirective.prototype, "checkable", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], CheckDirective.prototype, "checkedKeysChange", void 0); | ||
CheckDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewCheckable]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent, | ||
ChangeDetectorRef]) | ||
], CheckDirective); | ||
CheckDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewCheckable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
CheckDirective.ctorParameters = function () { return [ | ||
{ type: TreeViewComponent, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
CheckDirective.propDecorators = { | ||
'isChecked': [{ type: Input },], | ||
'checkKey': [{ type: Input, args: ["checkBy",] },], | ||
'checkedKeys': [{ type: Input },], | ||
'checkable': [{ type: Input, args: ['kendoTreeViewCheckable',] },], | ||
'checkedKeysChange': [{ type: Output },], | ||
}; | ||
return CheckDirective; | ||
}()); | ||
export { CheckDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Component, ElementRef, EventEmitter, Input, Output, HostBinding, Renderer2 } from '@angular/core'; | ||
@@ -63,36 +62,23 @@ import { guid } from '../utils'; | ||
}; | ||
tslib_1.__decorate([ | ||
HostBinding('class.k-checkbox-wrapper'), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", []) | ||
], CheckBoxComponent.prototype, "classWrapper", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], CheckBoxComponent.prototype, "id", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], CheckBoxComponent.prototype, "checkState", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], CheckBoxComponent.prototype, "labelText", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Number) | ||
], CheckBoxComponent.prototype, "tabindex", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], CheckBoxComponent.prototype, "checkStateChange", void 0); | ||
CheckBoxComponent = tslib_1.__decorate([ | ||
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 " | ||
}), | ||
tslib_1.__metadata("design:paramtypes", [ElementRef, Renderer2]) | ||
], CheckBoxComponent); | ||
CheckBoxComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
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 " | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CheckBoxComponent.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: Renderer2, }, | ||
]; }; | ||
CheckBoxComponent.propDecorators = { | ||
'classWrapper': [{ type: HostBinding, args: ['class.k-checkbox-wrapper',] },], | ||
'id': [{ type: Input },], | ||
'checkState': [{ type: Input },], | ||
'labelText': [{ type: Input },], | ||
'tabindex': [{ type: Input },], | ||
'checkStateChange': [{ type: Output },], | ||
}; | ||
return CheckBoxComponent; | ||
}()); | ||
export { CheckBoxComponent }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { NgModule } from '@angular/core'; | ||
@@ -15,10 +14,12 @@ import { CheckBoxComponent } from './checkbox.component'; | ||
} | ||
CheckBoxModule = tslib_1.__decorate([ | ||
NgModule({ | ||
declarations: [COMPONENT_DIRECTIVES], | ||
exports: [COMPONENT_DIRECTIVES] | ||
}) | ||
], CheckBoxModule); | ||
CheckBoxModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [COMPONENT_DIRECTIVES], | ||
exports: [COMPONENT_DIRECTIVES] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CheckBoxModule.ctorParameters = function () { return []; }; | ||
return CheckBoxModule; | ||
}()); | ||
export { CheckBoxModule }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { ChangeDetectorRef, Directive, Input } from '@angular/core'; | ||
@@ -46,22 +45,17 @@ import { TreeViewComponent } from './treeview.component'; | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], DisableDirective.prototype, "isDisabled", null); | ||
tslib_1.__decorate([ | ||
Input("kendoTreeViewDisable"), | ||
tslib_1.__metadata("design:type", Object) | ||
], DisableDirective.prototype, "disableKey", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array) | ||
], DisableDirective.prototype, "disabledKeys", void 0); | ||
DisableDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewDisable]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent, | ||
ChangeDetectorRef]) | ||
], DisableDirective); | ||
DisableDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewDisable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
DisableDirective.ctorParameters = function () { return [ | ||
{ type: TreeViewComponent, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
DisableDirective.propDecorators = { | ||
'isDisabled': [{ type: Input },], | ||
'disableKey': [{ type: Input, args: ["kendoTreeViewDisable",] },], | ||
'disabledKeys': [{ type: Input },], | ||
}; | ||
return DisableDirective; | ||
}()); | ||
export { DisableDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from "@angular/core"; | ||
@@ -17,7 +16,9 @@ import { Subject } from "rxjs/Subject"; | ||
}; | ||
ExpandStateService = tslib_1.__decorate([ | ||
Injectable() | ||
], ExpandStateService); | ||
ExpandStateService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
ExpandStateService.ctorParameters = function () { return []; }; | ||
return ExpandStateService; | ||
}()); | ||
export { ExpandStateService }; |
@@ -79,26 +79,17 @@ import * as tslib_1 from "tslib"; | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], ExpandDirective.prototype, "isExpanded", null); | ||
tslib_1.__decorate([ | ||
Input("expandBy"), | ||
tslib_1.__metadata("design:type", Object) | ||
], ExpandDirective.prototype, "expandKey", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], ExpandDirective.prototype, "expandedKeysChange", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array), | ||
tslib_1.__metadata("design:paramtypes", [Array]) | ||
], ExpandDirective.prototype, "expandedKeys", null); | ||
ExpandDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewExpandable]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent]) | ||
], ExpandDirective); | ||
ExpandDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewExpandable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
ExpandDirective.ctorParameters = function () { return [ | ||
{ type: TreeViewComponent, }, | ||
]; }; | ||
ExpandDirective.propDecorators = { | ||
'isExpanded': [{ type: Input },], | ||
'expandKey': [{ type: Input, args: ["expandBy",] },], | ||
'expandedKeysChange': [{ type: Output },], | ||
'expandedKeys': [{ type: Input },], | ||
}; | ||
return ExpandDirective; | ||
}()); | ||
export { ExpandDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, Input } from '@angular/core'; | ||
@@ -55,21 +54,16 @@ import { TreeViewComponent } from './treeview.component'; | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array), | ||
tslib_1.__metadata("design:paramtypes", [Array]) | ||
], FlatDataBindingDirective.prototype, "nodes", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], FlatDataBindingDirective.prototype, "parentIdField", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], FlatDataBindingDirective.prototype, "idField", void 0); | ||
FlatDataBindingDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewFlatDataBinding]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent]) | ||
], FlatDataBindingDirective); | ||
FlatDataBindingDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewFlatDataBinding]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
FlatDataBindingDirective.ctorParameters = function () { return [ | ||
{ type: TreeViewComponent, }, | ||
]; }; | ||
FlatDataBindingDirective.propDecorators = { | ||
'nodes': [{ type: Input },], | ||
'parentIdField': [{ type: Input },], | ||
'idField': [{ type: Input },], | ||
}; | ||
return FlatDataBindingDirective; | ||
}()); | ||
export { FlatDataBindingDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from "@angular/core"; | ||
@@ -30,7 +29,9 @@ import { Subject } from "rxjs/Subject"; | ||
}; | ||
FocusStateService = tslib_1.__decorate([ | ||
Injectable() | ||
], FocusStateService); | ||
FocusStateService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
FocusStateService.ctorParameters = function () { return []; }; | ||
return FocusStateService; | ||
}()); | ||
export { FocusStateService }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, Input } from '@angular/core'; | ||
@@ -40,13 +39,14 @@ import { TreeViewComponent } from './treeview.component'; | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String), | ||
tslib_1.__metadata("design:paramtypes", [String]) | ||
], HierarchyBindingDirective.prototype, "childrenField", null); | ||
HierarchyBindingDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewHierarchyBinding]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent]) | ||
], HierarchyBindingDirective); | ||
HierarchyBindingDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewHierarchyBinding]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
HierarchyBindingDirective.ctorParameters = function () { return [ | ||
{ type: TreeViewComponent, }, | ||
]; }; | ||
HierarchyBindingDirective.propDecorators = { | ||
'childrenField': [{ type: Input },], | ||
}; | ||
return HierarchyBindingDirective; | ||
}()); | ||
export { HierarchyBindingDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -29,7 +28,9 @@ /** | ||
}; | ||
IndexBuilderService = tslib_1.__decorate([ | ||
Injectable() | ||
], IndexBuilderService); | ||
IndexBuilderService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
IndexBuilderService.ctorParameters = function () { return []; }; | ||
return IndexBuilderService; | ||
}()); | ||
export { IndexBuilderService }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, ChangeDetectorRef, HostBinding, Input } from '@angular/core'; | ||
@@ -59,19 +58,17 @@ import { ExpandStateService } from './expand-state.service'; | ||
}; | ||
tslib_1.__decorate([ | ||
HostBinding("class.k-i-loading"), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", [Boolean]) | ||
], LoadingIndicatorDirective.prototype, "loading", null); | ||
tslib_1.__decorate([ | ||
Input("kendoTreeViewLoading"), | ||
tslib_1.__metadata("design:type", String) | ||
], LoadingIndicatorDirective.prototype, "index", void 0); | ||
LoadingIndicatorDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewLoading]' }), | ||
tslib_1.__metadata("design:paramtypes", [ExpandStateService, | ||
LoadingNotificationService, | ||
ChangeDetectorRef]) | ||
], LoadingIndicatorDirective); | ||
LoadingIndicatorDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewLoading]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
LoadingIndicatorDirective.ctorParameters = function () { return [ | ||
{ type: ExpandStateService, }, | ||
{ type: LoadingNotificationService, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
LoadingIndicatorDirective.propDecorators = { | ||
'loading': [{ type: HostBinding, args: ["class.k-i-loading",] },], | ||
'index': [{ type: Input, args: ["kendoTreeViewLoading",] },], | ||
}; | ||
return LoadingIndicatorDirective; | ||
}()); | ||
export { LoadingIndicatorDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from "@angular/core"; | ||
@@ -14,7 +13,9 @@ import { Subject } from "rxjs/Subject"; | ||
}; | ||
LoadingNotificationService = tslib_1.__decorate([ | ||
Injectable() | ||
], LoadingNotificationService); | ||
LoadingNotificationService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
LoadingNotificationService.ctorParameters = function () { return []; }; | ||
return LoadingNotificationService; | ||
}()); | ||
export { LoadingNotificationService }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -169,7 +168,9 @@ import { NavigationModel } from './navigation-model'; | ||
}; | ||
NavigationService = tslib_1.__decorate([ | ||
Injectable() | ||
], NavigationService); | ||
NavigationService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
NavigationService.ctorParameters = function () { return []; }; | ||
return NavigationService; | ||
}()); | ||
export { NavigationService }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from "@angular/core"; | ||
@@ -14,7 +13,9 @@ import { Subject } from "rxjs/Subject"; | ||
}; | ||
NodeChildrenService = tslib_1.__decorate([ | ||
Injectable() | ||
], NodeChildrenService); | ||
NodeChildrenService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
NodeChildrenService.ctorParameters = function () { return []; }; | ||
return NodeChildrenService; | ||
}()); | ||
export { NodeChildrenService }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Optional, Directive, TemplateRef } from "@angular/core"; | ||
@@ -56,11 +55,13 @@ /** | ||
} | ||
NodeTemplateDirective = tslib_1.__decorate([ | ||
Directive({ | ||
selector: '[kendoTreeViewNodeTemplate]' | ||
}), | ||
tslib_1.__param(0, Optional()), | ||
tslib_1.__metadata("design:paramtypes", [TemplateRef]) | ||
], NodeTemplateDirective); | ||
NodeTemplateDirective.decorators = [ | ||
{ type: Directive, args: [{ | ||
selector: '[kendoTreeViewNodeTemplate]' | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
NodeTemplateDirective.ctorParameters = function () { return [ | ||
{ type: TemplateRef, decorators: [{ type: Optional },] }, | ||
]; }; | ||
return NodeTemplateDirective; | ||
}()); | ||
export { NodeTemplateDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, EventEmitter, HostBinding, Input, Output } from '@angular/core'; | ||
@@ -120,35 +119,19 @@ import { TreeViewComponent } from '../treeview.component'; | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], SelectDirective.prototype, "isSelected", null); | ||
tslib_1.__decorate([ | ||
Input('selectBy'), | ||
tslib_1.__metadata("design:type", Object) | ||
], SelectDirective.prototype, "selectKey", void 0); | ||
tslib_1.__decorate([ | ||
Input('kendoTreeViewSelectable'), | ||
tslib_1.__metadata("design:type", Object) | ||
], SelectDirective.prototype, "selection", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array), | ||
tslib_1.__metadata("design:paramtypes", [Array]) | ||
], SelectDirective.prototype, "selectedKeys", null); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], SelectDirective.prototype, "selectedKeysChange", void 0); | ||
tslib_1.__decorate([ | ||
HostBinding('attr.aria-multiselectable'), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", []) | ||
], SelectDirective.prototype, "getAriaMultiselectable", null); | ||
SelectDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewSelectable]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent]) | ||
], SelectDirective); | ||
SelectDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewSelectable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
SelectDirective.ctorParameters = function () { return [ | ||
{ type: TreeViewComponent, }, | ||
]; }; | ||
SelectDirective.propDecorators = { | ||
'isSelected': [{ type: Input },], | ||
'selectKey': [{ type: Input, args: ['selectBy',] },], | ||
'selection': [{ type: Input, args: ['kendoTreeViewSelectable',] },], | ||
'selectedKeys': [{ type: Input },], | ||
'selectedKeysChange': [{ type: Output },], | ||
'getAriaMultiselectable': [{ type: HostBinding, args: ['attr.aria-multiselectable',] },], | ||
}; | ||
return SelectDirective; | ||
}()); | ||
export { SelectDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -25,7 +24,9 @@ import { Subject } from "rxjs/Subject"; | ||
}; | ||
SelectionService = tslib_1.__decorate([ | ||
Injectable() | ||
], SelectionService); | ||
SelectionService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
SelectionService.ctorParameters = function () { return []; }; | ||
return SelectionService; | ||
}()); | ||
export { SelectionService }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { NgModule } from '@angular/core'; | ||
@@ -37,11 +36,13 @@ import { TreeViewComponent } from './treeview.component'; | ||
} | ||
SharedModule = tslib_1.__decorate([ | ||
NgModule({ | ||
declarations: [COMPONENT_DIRECTIVES], | ||
exports: [COMPONENT_DIRECTIVES], | ||
imports: [CommonModule, CheckBoxModule] | ||
}) | ||
], SharedModule); | ||
SharedModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [COMPONENT_DIRECTIVES], | ||
exports: [COMPONENT_DIRECTIVES], | ||
imports: [CommonModule, CheckBoxModule] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
SharedModule.ctorParameters = function () { return []; }; | ||
return SharedModule; | ||
}()); | ||
export { SharedModule }; |
@@ -1,3 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Component, HostBinding, Input, TemplateRef } from '@angular/core'; | ||
import { Component, HostBinding, Input } from '@angular/core'; | ||
import { trigger, style, animate, transition } from '@angular/animations'; | ||
@@ -12,3 +11,2 @@ import { ExpandStateService } from './expand-state.service'; | ||
import { LoadingNotificationService } from './loading-notification.service'; | ||
import { Observable } from 'rxjs/Observable'; | ||
import { empty } from 'rxjs/observable/empty'; | ||
@@ -131,89 +129,48 @@ import { of } from 'rxjs/observable/of'; | ||
}; | ||
tslib_1.__decorate([ | ||
HostBinding("class.k-group"), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewGroupComponent.prototype, "kGroupClass", void 0); | ||
tslib_1.__decorate([ | ||
HostBinding("attr.role"), | ||
tslib_1.__metadata("design:type", String), | ||
tslib_1.__metadata("design:paramtypes", []) | ||
], TreeViewGroupComponent.prototype, "role", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewGroupComponent.prototype, "checkboxes", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewGroupComponent.prototype, "expandIcons", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Observable) | ||
], TreeViewGroupComponent.prototype, "nodes", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewGroupComponent.prototype, "textField", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewGroupComponent.prototype, "parentDataItem", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], TreeViewGroupComponent.prototype, "parentIndex", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", TemplateRef) | ||
], TreeViewGroupComponent.prototype, "nodeTemplateRef", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "isChecked", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "isDisabled", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "isExpanded", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "isSelected", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "children", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "hasChildren", void 0); | ||
TreeViewGroupComponent = tslib_1.__decorate([ | ||
Component({ | ||
animations: [ | ||
trigger('toggle', [ | ||
transition('void => *', [ | ||
style({ height: 0 }), | ||
animate('0.1s ease-in', style({ height: "*" })) | ||
]), | ||
transition('* => void', [ | ||
style({ height: "*" }), | ||
animate('0.1s ease-in', style({ height: 0 })) | ||
]) | ||
]) | ||
], | ||
selector: '[kendoTreeViewGroup]', | ||
template: "\n <li\n *ngFor=\"let node of data; let index = index\" class=\"k-item\"\n kendoTreeViewItem\n [dataItem]=\"node\"\n [index]=\"nodeIndex(index)\"\n [parentDataItem]=\"parentDataItem\"\n [parentIndex]=\"parentIndex\"\n [isChecked]=\"isChecked(node, nodeIndex(index))\"\n [isDisabled]=\"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\" (mousedown)=\"$event.preventDefault()\">\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 (mousedown)=\"$event.preventDefault()\"\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 (mousedown)=\"$event.preventDefault()\"\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(node, nodeIndex(index))\"\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]=\"nodeTemplateRef\"\n [parentIndex]=\"nodeIndex(index)\"\n [parentDataItem]=\"node\"\n [textField]=\"nextFields\"\n [@toggle]=\"true\"\n >\n </ul>\n </li>\n " | ||
}), | ||
tslib_1.__metadata("design:paramtypes", [ExpandStateService, | ||
LoadingNotificationService, | ||
IndexBuilderService, | ||
TreeViewLookupService, | ||
NavigationService, | ||
NodeChildrenService]) | ||
], TreeViewGroupComponent); | ||
TreeViewGroupComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
animations: [ | ||
trigger('toggle', [ | ||
transition('void => *', [ | ||
style({ height: 0 }), | ||
animate('0.1s ease-in', style({ height: "*" })) | ||
]), | ||
transition('* => void', [ | ||
style({ height: "*" }), | ||
animate('0.1s ease-in', style({ height: 0 })) | ||
]) | ||
]) | ||
], | ||
selector: '[kendoTreeViewGroup]', | ||
template: "\n <li\n *ngFor=\"let node of data; let index = index\" class=\"k-item\"\n kendoTreeViewItem\n [dataItem]=\"node\"\n [index]=\"nodeIndex(index)\"\n [parentDataItem]=\"parentDataItem\"\n [parentIndex]=\"parentIndex\"\n [isChecked]=\"isChecked(node, nodeIndex(index))\"\n [isDisabled]=\"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\" (mousedown)=\"$event.preventDefault()\">\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 (mousedown)=\"$event.preventDefault()\"\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 (mousedown)=\"$event.preventDefault()\"\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(node, nodeIndex(index))\"\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]=\"nodeTemplateRef\"\n [parentIndex]=\"nodeIndex(index)\"\n [parentDataItem]=\"node\"\n [textField]=\"nextFields\"\n [@toggle]=\"true\"\n >\n </ul>\n </li>\n " | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewGroupComponent.ctorParameters = function () { return [ | ||
{ type: ExpandStateService, }, | ||
{ type: LoadingNotificationService, }, | ||
{ type: IndexBuilderService, }, | ||
{ type: TreeViewLookupService, }, | ||
{ type: NavigationService, }, | ||
{ type: NodeChildrenService, }, | ||
]; }; | ||
TreeViewGroupComponent.propDecorators = { | ||
'kGroupClass': [{ type: HostBinding, args: ["class.k-group",] },], | ||
'role': [{ type: HostBinding, args: ["attr.role",] },], | ||
'checkboxes': [{ type: Input },], | ||
'expandIcons': [{ type: Input },], | ||
'nodes': [{ type: Input },], | ||
'textField': [{ type: Input },], | ||
'parentDataItem': [{ type: Input },], | ||
'parentIndex': [{ type: Input },], | ||
'nodeTemplateRef': [{ type: Input },], | ||
'isChecked': [{ type: Input },], | ||
'isDisabled': [{ type: Input },], | ||
'isExpanded': [{ type: Input },], | ||
'isSelected': [{ type: Input },], | ||
'children': [{ type: Input },], | ||
'hasChildren': [{ type: Input },], | ||
}; | ||
return TreeViewGroupComponent; | ||
}()); | ||
export { TreeViewGroupComponent }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, ElementRef, Input, Renderer2 } from '@angular/core'; | ||
@@ -54,27 +53,20 @@ import { NavigationService } from './navigation/navigation.service'; | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewItemContentDirective.prototype, "dataItem", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], TreeViewItemContentDirective.prototype, "index", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewItemContentDirective.prototype, "initialSelection", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewItemContentDirective.prototype, "isSelected", void 0); | ||
TreeViewItemContentDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewItemContent]' }), | ||
tslib_1.__metadata("design:paramtypes", [ElementRef, | ||
NavigationService, | ||
SelectionService, | ||
Renderer2]) | ||
], TreeViewItemContentDirective); | ||
TreeViewItemContentDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewItemContent]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewItemContentDirective.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: NavigationService, }, | ||
{ type: SelectionService, }, | ||
{ type: Renderer2, }, | ||
]; }; | ||
TreeViewItemContentDirective.propDecorators = { | ||
'dataItem': [{ type: Input },], | ||
'index': [{ type: Input },], | ||
'initialSelection': [{ type: Input },], | ||
'isSelected': [{ type: Input },], | ||
}; | ||
return TreeViewItemContentDirective; | ||
}()); | ||
export { TreeViewItemContentDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, ElementRef, Input, Renderer2 } from '@angular/core'; | ||
@@ -216,50 +215,28 @@ import { NavigationService } from './navigation/navigation.service'; | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewItemDirective.prototype, "dataItem", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], TreeViewItemDirective.prototype, "index", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewItemDirective.prototype, "parentDataItem", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], TreeViewItemDirective.prototype, "parentIndex", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String), | ||
tslib_1.__metadata("design:paramtypes", [String]) | ||
], TreeViewItemDirective.prototype, "isChecked", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewItemDirective.prototype, "isDisabled", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", [Boolean]) | ||
], TreeViewItemDirective.prototype, "isExpanded", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", [Boolean]) | ||
], TreeViewItemDirective.prototype, "isSelected", null); | ||
TreeViewItemDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewItem]' }), | ||
tslib_1.__metadata("design:paramtypes", [ElementRef, | ||
FocusStateService, | ||
ExpandStateService, | ||
NavigationService, | ||
SelectionService, | ||
TreeViewLookupService, | ||
Renderer2, | ||
IndexBuilderService]) | ||
], TreeViewItemDirective); | ||
TreeViewItemDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewItem]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewItemDirective.ctorParameters = function () { return [ | ||
{ type: ElementRef, }, | ||
{ type: FocusStateService, }, | ||
{ type: ExpandStateService, }, | ||
{ type: NavigationService, }, | ||
{ type: SelectionService, }, | ||
{ type: TreeViewLookupService, }, | ||
{ type: Renderer2, }, | ||
{ type: IndexBuilderService, }, | ||
]; }; | ||
TreeViewItemDirective.propDecorators = { | ||
'dataItem': [{ type: Input },], | ||
'index': [{ type: Input },], | ||
'parentDataItem': [{ type: Input },], | ||
'parentIndex': [{ type: Input },], | ||
'isChecked': [{ type: Input },], | ||
'isDisabled': [{ type: Input },], | ||
'isExpanded': [{ type: Input },], | ||
'isSelected': [{ type: Input },], | ||
}; | ||
return TreeViewItemDirective; | ||
}()); | ||
export { TreeViewItemDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -68,7 +67,9 @@ import { nodeIndex } from './utils'; | ||
}; | ||
TreeViewLookupService = tslib_1.__decorate([ | ||
Injectable() | ||
], TreeViewLookupService); | ||
TreeViewLookupService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewLookupService.ctorParameters = function () { return []; }; | ||
return TreeViewLookupService; | ||
}()); | ||
export { TreeViewLookupService }; |
/* tslint:disable:member-ordering */ | ||
import * as tslib_1 from "tslib"; | ||
import { ChangeDetectionStrategy, Component, ElementRef, HostBinding, HostListener, Input, ContentChild, Output, EventEmitter } from '@angular/core'; | ||
@@ -344,121 +343,47 @@ import { NodeTemplateDirective } from './node-template.directive'; | ||
}; | ||
tslib_1.__decorate([ | ||
HostBinding("class.k-widget"), | ||
HostBinding("class.k-treeview"), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewComponent.prototype, "classNames", void 0); | ||
tslib_1.__decorate([ | ||
HostBinding("attr.role"), | ||
tslib_1.__metadata("design:type", String), | ||
tslib_1.__metadata("design:paramtypes", []) | ||
], TreeViewComponent.prototype, "role", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
HostBinding('@.disabled'), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", [Boolean]) | ||
], TreeViewComponent.prototype, "animate", null); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "childrenLoaded", void 0); | ||
tslib_1.__decorate([ | ||
Output('blur'), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "onBlur", void 0); | ||
tslib_1.__decorate([ | ||
Output('focus'), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "onFocus", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "expand", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "collapse", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "checkedChange", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "selectionChange", void 0); | ||
tslib_1.__decorate([ | ||
ContentChild(NodeTemplateDirective), | ||
tslib_1.__metadata("design:type", NodeTemplateDirective) | ||
], TreeViewComponent.prototype, "nodeTemplate", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array), | ||
tslib_1.__metadata("design:paramtypes", [Array]) | ||
], TreeViewComponent.prototype, "nodes", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewComponent.prototype, "textField", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], TreeViewComponent.prototype, "hasChildren", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], TreeViewComponent.prototype, "isChecked", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewComponent.prototype, "isDisabled", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], TreeViewComponent.prototype, "isExpanded", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], TreeViewComponent.prototype, "isSelected", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewComponent.prototype, "navigable", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewComponent.prototype, "children", void 0); | ||
tslib_1.__decorate([ | ||
HostListener('keydown', ['$event']), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Object]), | ||
tslib_1.__metadata("design:returntype", void 0) | ||
], TreeViewComponent.prototype, "handleKeydown", null); | ||
tslib_1.__decorate([ | ||
HostListener('click', ['$event']), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Object]), | ||
tslib_1.__metadata("design:returntype", void 0) | ||
], TreeViewComponent.prototype, "handleClick", null); | ||
TreeViewComponent = tslib_1.__decorate([ | ||
Component({ | ||
changeDetection: ChangeDetectionStrategy.Default, | ||
exportAs: 'kendoTreeView', | ||
providers: 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 [nodes]=\"data\"\n [textField]=\"textField\"\n >\n </ul>\n " | ||
}), | ||
tslib_1.__metadata("design:paramtypes", [FocusStateService, | ||
ExpandStateService, | ||
NavigationService, | ||
NodeChildrenService, | ||
SelectionService, | ||
TreeViewLookupService, | ||
ElementRef]) | ||
], TreeViewComponent); | ||
TreeViewComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
changeDetection: ChangeDetectionStrategy.Default, | ||
exportAs: 'kendoTreeView', | ||
providers: 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 [nodes]=\"data\"\n [textField]=\"textField\"\n >\n </ul>\n " | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewComponent.ctorParameters = function () { return [ | ||
{ type: FocusStateService, }, | ||
{ type: ExpandStateService, }, | ||
{ type: NavigationService, }, | ||
{ type: NodeChildrenService, }, | ||
{ type: SelectionService, }, | ||
{ type: TreeViewLookupService, }, | ||
{ type: ElementRef, }, | ||
]; }; | ||
TreeViewComponent.propDecorators = { | ||
'classNames': [{ type: HostBinding, args: ["class.k-widget",] }, { type: HostBinding, args: ["class.k-treeview",] },], | ||
'role': [{ type: HostBinding, args: ["attr.role",] },], | ||
'animate': [{ type: Input }, { type: HostBinding, args: ['@.disabled',] },], | ||
'childrenLoaded': [{ type: Output },], | ||
'onBlur': [{ type: Output, args: ['blur',] },], | ||
'onFocus': [{ type: Output, args: ['focus',] },], | ||
'expand': [{ type: Output },], | ||
'collapse': [{ type: Output },], | ||
'checkedChange': [{ type: Output },], | ||
'selectionChange': [{ type: Output },], | ||
'nodeTemplate': [{ type: ContentChild, args: [NodeTemplateDirective,] },], | ||
'nodes': [{ type: Input },], | ||
'textField': [{ type: Input },], | ||
'hasChildren': [{ type: Input },], | ||
'isChecked': [{ type: Input },], | ||
'isDisabled': [{ type: Input },], | ||
'isExpanded': [{ type: Input },], | ||
'isSelected': [{ type: Input },], | ||
'navigable': [{ type: Input },], | ||
'children': [{ type: Input },], | ||
'handleKeydown': [{ type: HostListener, args: ['keydown', ['$event'],] },], | ||
'handleClick': [{ type: HostListener, args: ['click', ['$event'],] },], | ||
}; | ||
return TreeViewComponent; | ||
}()); | ||
export { TreeViewComponent }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { NgModule } from '@angular/core'; | ||
@@ -28,10 +27,12 @@ import { TreeViewComponent } from './treeview.component'; | ||
} | ||
TreeViewModule = tslib_1.__decorate([ | ||
NgModule({ | ||
exports: [EXPORTS], | ||
imports: [SharedModule] | ||
}) | ||
], TreeViewModule); | ||
TreeViewModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
exports: [EXPORTS], | ||
imports: [SharedModule] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewModule.ctorParameters = function () { return []; }; | ||
return TreeViewModule; | ||
}()); | ||
export { TreeViewModule }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { ChangeDetectorRef, Directive, EventEmitter, Input, Output } from '@angular/core'; | ||
@@ -11,3 +10,3 @@ import { TreeViewComponent } from './treeview.component'; | ||
*/ | ||
let CheckDirective = class CheckDirective { | ||
export class CheckDirective { | ||
constructor(treeView, cdr) { | ||
@@ -185,30 +184,17 @@ this.treeView = treeView; | ||
} | ||
} | ||
CheckDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewCheckable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
CheckDirective.ctorParameters = () => [ | ||
{ type: TreeViewComponent, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; | ||
CheckDirective.propDecorators = { | ||
'isChecked': [{ type: Input },], | ||
'checkKey': [{ type: Input, args: ["checkBy",] },], | ||
'checkedKeys': [{ type: Input },], | ||
'checkable': [{ type: Input, args: ['kendoTreeViewCheckable',] },], | ||
'checkedKeysChange': [{ type: Output },], | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], CheckDirective.prototype, "isChecked", null); | ||
tslib_1.__decorate([ | ||
Input("checkBy"), | ||
tslib_1.__metadata("design:type", Object) | ||
], CheckDirective.prototype, "checkKey", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array), | ||
tslib_1.__metadata("design:paramtypes", [Array]) | ||
], CheckDirective.prototype, "checkedKeys", null); | ||
tslib_1.__decorate([ | ||
Input('kendoTreeViewCheckable'), | ||
tslib_1.__metadata("design:type", Object) | ||
], CheckDirective.prototype, "checkable", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], CheckDirective.prototype, "checkedKeysChange", void 0); | ||
CheckDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewCheckable]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent, | ||
ChangeDetectorRef]) | ||
], CheckDirective); | ||
export { CheckDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Component, ElementRef, EventEmitter, Input, Output, HostBinding, Renderer2 } from '@angular/core'; | ||
@@ -10,3 +9,3 @@ import { guid } from '../utils'; | ||
*/ | ||
let CheckBoxComponent = class CheckBoxComponent { | ||
export class CheckBoxComponent { | ||
constructor(element, renderer) { | ||
@@ -52,32 +51,7 @@ this.element = element; | ||
} | ||
}; | ||
tslib_1.__decorate([ | ||
HostBinding('class.k-checkbox-wrapper'), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", []) | ||
], CheckBoxComponent.prototype, "classWrapper", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], CheckBoxComponent.prototype, "id", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], CheckBoxComponent.prototype, "checkState", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], CheckBoxComponent.prototype, "labelText", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Number) | ||
], CheckBoxComponent.prototype, "tabindex", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], CheckBoxComponent.prototype, "checkStateChange", void 0); | ||
CheckBoxComponent = tslib_1.__decorate([ | ||
Component({ | ||
selector: 'kendo-checkbox', | ||
template: ` | ||
} | ||
CheckBoxComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'kendo-checkbox', | ||
template: ` | ||
<input | ||
@@ -98,5 +72,16 @@ class="k-checkbox" | ||
` | ||
}), | ||
tslib_1.__metadata("design:paramtypes", [ElementRef, Renderer2]) | ||
], CheckBoxComponent); | ||
export { CheckBoxComponent }; | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CheckBoxComponent.ctorParameters = () => [ | ||
{ type: ElementRef, }, | ||
{ type: Renderer2, }, | ||
]; | ||
CheckBoxComponent.propDecorators = { | ||
'classWrapper': [{ type: HostBinding, args: ['class.k-checkbox-wrapper',] },], | ||
'id': [{ type: Input },], | ||
'checkState': [{ type: Input },], | ||
'labelText': [{ type: Input },], | ||
'tabindex': [{ type: Input },], | ||
'checkStateChange': [{ type: Output },], | ||
}; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { NgModule } from '@angular/core'; | ||
@@ -12,10 +11,11 @@ import { CheckBoxComponent } from './checkbox.component'; | ||
*/ | ||
let CheckBoxModule = class CheckBoxModule { | ||
}; | ||
CheckBoxModule = tslib_1.__decorate([ | ||
NgModule({ | ||
declarations: [COMPONENT_DIRECTIVES], | ||
exports: [COMPONENT_DIRECTIVES] | ||
}) | ||
], CheckBoxModule); | ||
export { CheckBoxModule }; | ||
export class CheckBoxModule { | ||
} | ||
CheckBoxModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [COMPONENT_DIRECTIVES], | ||
exports: [COMPONENT_DIRECTIVES] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CheckBoxModule.ctorParameters = () => []; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { ChangeDetectorRef, Directive, Input } from '@angular/core'; | ||
@@ -7,3 +6,3 @@ import { TreeViewComponent } from './treeview.component'; | ||
*/ | ||
let DisableDirective = class DisableDirective { | ||
export class DisableDirective { | ||
constructor(treeView, cdr) { | ||
@@ -41,21 +40,15 @@ this.treeView = treeView; | ||
} | ||
} | ||
DisableDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewDisable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
DisableDirective.ctorParameters = () => [ | ||
{ type: TreeViewComponent, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; | ||
DisableDirective.propDecorators = { | ||
'isDisabled': [{ type: Input },], | ||
'disableKey': [{ type: Input, args: ["kendoTreeViewDisable",] },], | ||
'disabledKeys': [{ type: Input },], | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], DisableDirective.prototype, "isDisabled", null); | ||
tslib_1.__decorate([ | ||
Input("kendoTreeViewDisable"), | ||
tslib_1.__metadata("design:type", Object) | ||
], DisableDirective.prototype, "disableKey", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array) | ||
], DisableDirective.prototype, "disabledKeys", void 0); | ||
DisableDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewDisable]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent, | ||
ChangeDetectorRef]) | ||
], DisableDirective); | ||
export { DisableDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from "@angular/core"; | ||
@@ -7,6 +6,3 @@ import { Subject } from "rxjs/Subject"; | ||
*/ | ||
let ExpandStateService = class ExpandStateService { | ||
/** | ||
* @hidden | ||
*/ | ||
export class ExpandStateService { | ||
constructor() { | ||
@@ -21,6 +17,7 @@ this.changes = new Subject(); | ||
} | ||
}; | ||
ExpandStateService = tslib_1.__decorate([ | ||
Injectable() | ||
], ExpandStateService); | ||
export { ExpandStateService }; | ||
} | ||
ExpandStateService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
ExpandStateService.ctorParameters = () => []; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, EventEmitter, Input, Output } from '@angular/core'; | ||
@@ -10,3 +9,3 @@ import { TreeViewComponent } from './treeview.component'; | ||
*/ | ||
let ExpandDirective = class ExpandDirective { | ||
export class ExpandDirective { | ||
constructor(treeView) { | ||
@@ -68,25 +67,15 @@ this.treeView = treeView; | ||
} | ||
} | ||
ExpandDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewExpandable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
ExpandDirective.ctorParameters = () => [ | ||
{ type: TreeViewComponent, }, | ||
]; | ||
ExpandDirective.propDecorators = { | ||
'isExpanded': [{ type: Input },], | ||
'expandKey': [{ type: Input, args: ["expandBy",] },], | ||
'expandedKeysChange': [{ type: Output },], | ||
'expandedKeys': [{ type: Input },], | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], ExpandDirective.prototype, "isExpanded", null); | ||
tslib_1.__decorate([ | ||
Input("expandBy"), | ||
tslib_1.__metadata("design:type", Object) | ||
], ExpandDirective.prototype, "expandKey", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], ExpandDirective.prototype, "expandedKeysChange", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array), | ||
tslib_1.__metadata("design:paramtypes", [Array]) | ||
], ExpandDirective.prototype, "expandedKeys", null); | ||
ExpandDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewExpandable]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent]) | ||
], ExpandDirective); | ||
export { ExpandDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, Input } from '@angular/core'; | ||
@@ -12,3 +11,3 @@ import { TreeViewComponent } from './treeview.component'; | ||
*/ | ||
let FlatDataBindingDirective = class FlatDataBindingDirective { | ||
export class FlatDataBindingDirective { | ||
constructor(treeView) { | ||
@@ -49,20 +48,14 @@ this.treeView = treeView; | ||
} | ||
} | ||
FlatDataBindingDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewFlatDataBinding]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
FlatDataBindingDirective.ctorParameters = () => [ | ||
{ type: TreeViewComponent, }, | ||
]; | ||
FlatDataBindingDirective.propDecorators = { | ||
'nodes': [{ type: Input },], | ||
'parentIdField': [{ type: Input },], | ||
'idField': [{ type: Input },], | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array), | ||
tslib_1.__metadata("design:paramtypes", [Array]) | ||
], FlatDataBindingDirective.prototype, "nodes", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], FlatDataBindingDirective.prototype, "parentIdField", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], FlatDataBindingDirective.prototype, "idField", void 0); | ||
FlatDataBindingDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewFlatDataBinding]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent]) | ||
], FlatDataBindingDirective); | ||
export { FlatDataBindingDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from "@angular/core"; | ||
@@ -7,6 +6,3 @@ import { Subject } from "rxjs/Subject"; | ||
*/ | ||
let FocusStateService = class FocusStateService { | ||
/** | ||
* @hidden | ||
*/ | ||
export class FocusStateService { | ||
constructor() { | ||
@@ -34,6 +30,7 @@ this.changes = new Subject(); | ||
} | ||
}; | ||
FocusStateService = tslib_1.__decorate([ | ||
Injectable() | ||
], FocusStateService); | ||
export { FocusStateService }; | ||
} | ||
FocusStateService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
FocusStateService.ctorParameters = () => []; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, Input } from '@angular/core'; | ||
@@ -10,3 +9,3 @@ import { TreeViewComponent } from './treeview.component'; | ||
*/ | ||
let HierarchyBindingDirective = class HierarchyBindingDirective { | ||
export class HierarchyBindingDirective { | ||
constructor(treeView) { | ||
@@ -36,12 +35,12 @@ this.treeView = treeView; | ||
} | ||
} | ||
HierarchyBindingDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewHierarchyBinding]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
HierarchyBindingDirective.ctorParameters = () => [ | ||
{ type: TreeViewComponent, }, | ||
]; | ||
HierarchyBindingDirective.propDecorators = { | ||
'childrenField': [{ type: Input },], | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String), | ||
tslib_1.__metadata("design:paramtypes", [String]) | ||
], HierarchyBindingDirective.prototype, "childrenField", null); | ||
HierarchyBindingDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewHierarchyBinding]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent]) | ||
], HierarchyBindingDirective); | ||
export { HierarchyBindingDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -6,6 +5,3 @@ /** | ||
*/ | ||
let IndexBuilderService = class IndexBuilderService { | ||
/** | ||
* @hidden | ||
*/ | ||
export class IndexBuilderService { | ||
constructor() { | ||
@@ -30,6 +26,7 @@ this.INDEX_SEPARATOR = '_'; | ||
} | ||
}; | ||
IndexBuilderService = tslib_1.__decorate([ | ||
Injectable() | ||
], IndexBuilderService); | ||
export { IndexBuilderService }; | ||
} | ||
IndexBuilderService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
IndexBuilderService.ctorParameters = () => []; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, ChangeDetectorRef, HostBinding, Input } from '@angular/core'; | ||
@@ -14,3 +13,3 @@ import { ExpandStateService } from './expand-state.service'; | ||
*/ | ||
let LoadingIndicatorDirective = class LoadingIndicatorDirective { | ||
export class LoadingIndicatorDirective { | ||
constructor(expandService, loadingService, cd) { | ||
@@ -48,18 +47,15 @@ this.expandService = expandService; | ||
} | ||
} | ||
LoadingIndicatorDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewLoading]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
LoadingIndicatorDirective.ctorParameters = () => [ | ||
{ type: ExpandStateService, }, | ||
{ type: LoadingNotificationService, }, | ||
{ type: ChangeDetectorRef, }, | ||
]; | ||
LoadingIndicatorDirective.propDecorators = { | ||
'loading': [{ type: HostBinding, args: ["class.k-i-loading",] },], | ||
'index': [{ type: Input, args: ["kendoTreeViewLoading",] },], | ||
}; | ||
tslib_1.__decorate([ | ||
HostBinding("class.k-i-loading"), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", [Boolean]) | ||
], LoadingIndicatorDirective.prototype, "loading", null); | ||
tslib_1.__decorate([ | ||
Input("kendoTreeViewLoading"), | ||
tslib_1.__metadata("design:type", String) | ||
], LoadingIndicatorDirective.prototype, "index", void 0); | ||
LoadingIndicatorDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewLoading]' }), | ||
tslib_1.__metadata("design:paramtypes", [ExpandStateService, | ||
LoadingNotificationService, | ||
ChangeDetectorRef]) | ||
], LoadingIndicatorDirective); | ||
export { LoadingIndicatorDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from "@angular/core"; | ||
@@ -7,6 +6,3 @@ import { Subject } from "rxjs/Subject"; | ||
*/ | ||
let LoadingNotificationService = class LoadingNotificationService { | ||
/** | ||
* @hidden | ||
*/ | ||
export class LoadingNotificationService { | ||
constructor() { | ||
@@ -18,6 +14,7 @@ this.changes = new Subject(); | ||
} | ||
}; | ||
LoadingNotificationService = tslib_1.__decorate([ | ||
Injectable() | ||
], LoadingNotificationService); | ||
export { LoadingNotificationService }; | ||
} | ||
LoadingNotificationService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
LoadingNotificationService.ctorParameters = () => []; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -11,6 +10,3 @@ import { NavigationModel } from './navigation-model'; | ||
*/ | ||
let NavigationService = class NavigationService { | ||
/** | ||
* @hidden | ||
*/ | ||
export class NavigationService { | ||
constructor() { | ||
@@ -153,6 +149,7 @@ this.expands = new Subject(); | ||
} | ||
}; | ||
NavigationService = tslib_1.__decorate([ | ||
Injectable() | ||
], NavigationService); | ||
export { NavigationService }; | ||
} | ||
NavigationService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
NavigationService.ctorParameters = () => []; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from "@angular/core"; | ||
@@ -7,6 +6,3 @@ import { Subject } from "rxjs/Subject"; | ||
*/ | ||
let NodeChildrenService = class NodeChildrenService { | ||
/** | ||
* @hidden | ||
*/ | ||
export class NodeChildrenService { | ||
constructor() { | ||
@@ -18,6 +14,7 @@ this.changes = new Subject(); | ||
} | ||
}; | ||
NodeChildrenService = tslib_1.__decorate([ | ||
Injectable() | ||
], NodeChildrenService); | ||
export { NodeChildrenService }; | ||
} | ||
NodeChildrenService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
NodeChildrenService.ctorParameters = () => []; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Optional, Directive, TemplateRef } from "@angular/core"; | ||
@@ -52,14 +51,15 @@ /** | ||
*/ | ||
let NodeTemplateDirective = class NodeTemplateDirective { | ||
export class NodeTemplateDirective { | ||
constructor(templateRef) { | ||
this.templateRef = templateRef; | ||
} | ||
}; | ||
NodeTemplateDirective = tslib_1.__decorate([ | ||
Directive({ | ||
selector: '[kendoTreeViewNodeTemplate]' | ||
}), | ||
tslib_1.__param(0, Optional()), | ||
tslib_1.__metadata("design:paramtypes", [TemplateRef]) | ||
], NodeTemplateDirective); | ||
export { NodeTemplateDirective }; | ||
} | ||
NodeTemplateDirective.decorators = [ | ||
{ type: Directive, args: [{ | ||
selector: '[kendoTreeViewNodeTemplate]' | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
NodeTemplateDirective.ctorParameters = () => [ | ||
{ type: TemplateRef, decorators: [{ type: Optional },] }, | ||
]; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, EventEmitter, HostBinding, Input, Output } from '@angular/core'; | ||
@@ -9,3 +8,3 @@ import { TreeViewComponent } from '../treeview.component'; | ||
*/ | ||
let SelectDirective = class SelectDirective { | ||
export class SelectDirective { | ||
constructor(treeView) { | ||
@@ -104,34 +103,17 @@ this.treeView = treeView; | ||
} | ||
} | ||
SelectDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewSelectable]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
SelectDirective.ctorParameters = () => [ | ||
{ type: TreeViewComponent, }, | ||
]; | ||
SelectDirective.propDecorators = { | ||
'isSelected': [{ type: Input },], | ||
'selectKey': [{ type: Input, args: ['selectBy',] },], | ||
'selection': [{ type: Input, args: ['kendoTreeViewSelectable',] },], | ||
'selectedKeys': [{ type: Input },], | ||
'selectedKeysChange': [{ type: Output },], | ||
'getAriaMultiselectable': [{ type: HostBinding, args: ['attr.aria-multiselectable',] },], | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], SelectDirective.prototype, "isSelected", null); | ||
tslib_1.__decorate([ | ||
Input('selectBy'), | ||
tslib_1.__metadata("design:type", Object) | ||
], SelectDirective.prototype, "selectKey", void 0); | ||
tslib_1.__decorate([ | ||
Input('kendoTreeViewSelectable'), | ||
tslib_1.__metadata("design:type", Object) | ||
], SelectDirective.prototype, "selection", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array), | ||
tslib_1.__metadata("design:paramtypes", [Array]) | ||
], SelectDirective.prototype, "selectedKeys", null); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], SelectDirective.prototype, "selectedKeysChange", void 0); | ||
tslib_1.__decorate([ | ||
HostBinding('attr.aria-multiselectable'), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", []) | ||
], SelectDirective.prototype, "getAriaMultiselectable", null); | ||
SelectDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewSelectable]' }), | ||
tslib_1.__metadata("design:paramtypes", [TreeViewComponent]) | ||
], SelectDirective); | ||
export { SelectDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -7,6 +6,3 @@ import { Subject } from "rxjs/Subject"; | ||
*/ | ||
let SelectionService = class SelectionService { | ||
/** | ||
* @hidden | ||
*/ | ||
export class SelectionService { | ||
constructor() { | ||
@@ -29,6 +25,7 @@ this.changes = new Subject(); | ||
} | ||
}; | ||
SelectionService = tslib_1.__decorate([ | ||
Injectable() | ||
], SelectionService); | ||
export { SelectionService }; | ||
} | ||
SelectionService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
SelectionService.ctorParameters = () => []; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { NgModule } from '@angular/core'; | ||
@@ -34,11 +33,12 @@ import { TreeViewComponent } from './treeview.component'; | ||
*/ | ||
let SharedModule = class SharedModule { | ||
}; | ||
SharedModule = tslib_1.__decorate([ | ||
NgModule({ | ||
declarations: [COMPONENT_DIRECTIVES], | ||
exports: [COMPONENT_DIRECTIVES], | ||
imports: [CommonModule, CheckBoxModule] | ||
}) | ||
], SharedModule); | ||
export { SharedModule }; | ||
export class SharedModule { | ||
} | ||
SharedModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
declarations: [COMPONENT_DIRECTIVES], | ||
exports: [COMPONENT_DIRECTIVES], | ||
imports: [CommonModule, CheckBoxModule] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
SharedModule.ctorParameters = () => []; |
@@ -1,3 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Component, HostBinding, Input, TemplateRef } from '@angular/core'; | ||
import { Component, HostBinding, Input } from '@angular/core'; | ||
import { trigger, style, animate, transition } from '@angular/animations'; | ||
@@ -12,3 +11,2 @@ import { ExpandStateService } from './expand-state.service'; | ||
import { LoadingNotificationService } from './loading-notification.service'; | ||
import { Observable } from 'rxjs/Observable'; | ||
import { empty } from 'rxjs/observable/empty'; | ||
@@ -21,3 +19,3 @@ import { of } from 'rxjs/observable/of'; | ||
*/ | ||
let TreeViewGroupComponent = class TreeViewGroupComponent { | ||
export class TreeViewGroupComponent { | ||
constructor(expandService, loadingService, indexBuilder, treeViewLookupService, navigationService, nodeChildrenService) { | ||
@@ -113,80 +111,19 @@ this.expandService = expandService; | ||
} | ||
}; | ||
tslib_1.__decorate([ | ||
HostBinding("class.k-group"), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewGroupComponent.prototype, "kGroupClass", void 0); | ||
tslib_1.__decorate([ | ||
HostBinding("attr.role"), | ||
tslib_1.__metadata("design:type", String), | ||
tslib_1.__metadata("design:paramtypes", []) | ||
], TreeViewGroupComponent.prototype, "role", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewGroupComponent.prototype, "checkboxes", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewGroupComponent.prototype, "expandIcons", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Observable) | ||
], TreeViewGroupComponent.prototype, "nodes", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewGroupComponent.prototype, "textField", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewGroupComponent.prototype, "parentDataItem", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], TreeViewGroupComponent.prototype, "parentIndex", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", TemplateRef) | ||
], TreeViewGroupComponent.prototype, "nodeTemplateRef", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "isChecked", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "isDisabled", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "isExpanded", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "isSelected", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "children", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewGroupComponent.prototype, "hasChildren", void 0); | ||
TreeViewGroupComponent = tslib_1.__decorate([ | ||
Component({ | ||
animations: [ | ||
trigger('toggle', [ | ||
transition('void => *', [ | ||
style({ height: 0 }), | ||
animate('0.1s ease-in', style({ height: "*" })) | ||
]), | ||
transition('* => void', [ | ||
style({ height: "*" }), | ||
animate('0.1s ease-in', style({ height: 0 })) | ||
]) | ||
]) | ||
], | ||
selector: '[kendoTreeViewGroup]', | ||
template: ` | ||
} | ||
TreeViewGroupComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
animations: [ | ||
trigger('toggle', [ | ||
transition('void => *', [ | ||
style({ height: 0 }), | ||
animate('0.1s ease-in', style({ height: "*" })) | ||
]), | ||
transition('* => void', [ | ||
style({ height: "*" }), | ||
animate('0.1s ease-in', style({ height: 0 })) | ||
]) | ||
]) | ||
], | ||
selector: '[kendoTreeViewGroup]', | ||
template: ` | ||
<li | ||
@@ -266,10 +203,29 @@ *ngFor="let node of data; let index = index" class="k-item" | ||
` | ||
}), | ||
tslib_1.__metadata("design:paramtypes", [ExpandStateService, | ||
LoadingNotificationService, | ||
IndexBuilderService, | ||
TreeViewLookupService, | ||
NavigationService, | ||
NodeChildrenService]) | ||
], TreeViewGroupComponent); | ||
export { TreeViewGroupComponent }; | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewGroupComponent.ctorParameters = () => [ | ||
{ type: ExpandStateService, }, | ||
{ type: LoadingNotificationService, }, | ||
{ type: IndexBuilderService, }, | ||
{ type: TreeViewLookupService, }, | ||
{ type: NavigationService, }, | ||
{ type: NodeChildrenService, }, | ||
]; | ||
TreeViewGroupComponent.propDecorators = { | ||
'kGroupClass': [{ type: HostBinding, args: ["class.k-group",] },], | ||
'role': [{ type: HostBinding, args: ["attr.role",] },], | ||
'checkboxes': [{ type: Input },], | ||
'expandIcons': [{ type: Input },], | ||
'nodes': [{ type: Input },], | ||
'textField': [{ type: Input },], | ||
'parentDataItem': [{ type: Input },], | ||
'parentIndex': [{ type: Input },], | ||
'nodeTemplateRef': [{ type: Input },], | ||
'isChecked': [{ type: Input },], | ||
'isDisabled': [{ type: Input },], | ||
'isExpanded': [{ type: Input },], | ||
'isSelected': [{ type: Input },], | ||
'children': [{ type: Input },], | ||
'hasChildren': [{ type: Input },], | ||
}; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, ElementRef, Input, Renderer2 } from '@angular/core'; | ||
@@ -12,3 +11,3 @@ import { NavigationService } from './navigation/navigation.service'; | ||
*/ | ||
let TreeViewItemContentDirective = class TreeViewItemContentDirective { | ||
export class TreeViewItemContentDirective { | ||
constructor(element, navigationService, selectionService, renderer) { | ||
@@ -52,26 +51,18 @@ this.element = element; | ||
} | ||
} | ||
TreeViewItemContentDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewItemContent]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewItemContentDirective.ctorParameters = () => [ | ||
{ type: ElementRef, }, | ||
{ type: NavigationService, }, | ||
{ type: SelectionService, }, | ||
{ type: Renderer2, }, | ||
]; | ||
TreeViewItemContentDirective.propDecorators = { | ||
'dataItem': [{ type: Input },], | ||
'index': [{ type: Input },], | ||
'initialSelection': [{ type: Input },], | ||
'isSelected': [{ type: Input },], | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewItemContentDirective.prototype, "dataItem", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], TreeViewItemContentDirective.prototype, "index", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewItemContentDirective.prototype, "initialSelection", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewItemContentDirective.prototype, "isSelected", void 0); | ||
TreeViewItemContentDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewItemContent]' }), | ||
tslib_1.__metadata("design:paramtypes", [ElementRef, | ||
NavigationService, | ||
SelectionService, | ||
Renderer2]) | ||
], TreeViewItemContentDirective); | ||
export { TreeViewItemContentDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Directive, ElementRef, Input, Renderer2 } from '@angular/core'; | ||
@@ -17,3 +16,3 @@ import { NavigationService } from './navigation/navigation.service'; | ||
*/ | ||
let TreeViewItemDirective = class TreeViewItemDirective { | ||
export class TreeViewItemDirective { | ||
constructor(element, focusService, expandService, navigationService, selectionService, lookupService, renderer, ib) { | ||
@@ -187,49 +186,26 @@ this.element = element; | ||
} | ||
} | ||
TreeViewItemDirective.decorators = [ | ||
{ type: Directive, args: [{ selector: '[kendoTreeViewItem]' },] }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewItemDirective.ctorParameters = () => [ | ||
{ type: ElementRef, }, | ||
{ type: FocusStateService, }, | ||
{ type: ExpandStateService, }, | ||
{ type: NavigationService, }, | ||
{ type: SelectionService, }, | ||
{ type: TreeViewLookupService, }, | ||
{ type: Renderer2, }, | ||
{ type: IndexBuilderService, }, | ||
]; | ||
TreeViewItemDirective.propDecorators = { | ||
'dataItem': [{ type: Input },], | ||
'index': [{ type: Input },], | ||
'parentDataItem': [{ type: Input },], | ||
'parentIndex': [{ type: Input },], | ||
'isChecked': [{ type: Input },], | ||
'isDisabled': [{ type: Input },], | ||
'isExpanded': [{ type: Input },], | ||
'isSelected': [{ type: Input },], | ||
}; | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewItemDirective.prototype, "dataItem", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], TreeViewItemDirective.prototype, "index", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewItemDirective.prototype, "parentDataItem", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String) | ||
], TreeViewItemDirective.prototype, "parentIndex", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", String), | ||
tslib_1.__metadata("design:paramtypes", [String]) | ||
], TreeViewItemDirective.prototype, "isChecked", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewItemDirective.prototype, "isDisabled", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", [Boolean]) | ||
], TreeViewItemDirective.prototype, "isExpanded", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", [Boolean]) | ||
], TreeViewItemDirective.prototype, "isSelected", null); | ||
TreeViewItemDirective = tslib_1.__decorate([ | ||
Directive({ selector: '[kendoTreeViewItem]' }), | ||
tslib_1.__metadata("design:paramtypes", [ElementRef, | ||
FocusStateService, | ||
ExpandStateService, | ||
NavigationService, | ||
SelectionService, | ||
TreeViewLookupService, | ||
Renderer2, | ||
IndexBuilderService]) | ||
], TreeViewItemDirective); | ||
export { TreeViewItemDirective }; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -7,6 +6,3 @@ import { nodeIndex } from './utils'; | ||
*/ | ||
let TreeViewLookupService = class TreeViewLookupService { | ||
/** | ||
* @hidden | ||
*/ | ||
export class TreeViewLookupService { | ||
constructor() { | ||
@@ -71,6 +67,7 @@ this.map = new Map(); | ||
} | ||
}; | ||
TreeViewLookupService = tslib_1.__decorate([ | ||
Injectable() | ||
], TreeViewLookupService); | ||
export { TreeViewLookupService }; | ||
} | ||
TreeViewLookupService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewLookupService.ctorParameters = () => []; |
/* tslint:disable:member-ordering */ | ||
import * as tslib_1 from "tslib"; | ||
import { ChangeDetectionStrategy, Component, ElementRef, HostBinding, HostListener, Input, ContentChild, Output, EventEmitter } from '@angular/core'; | ||
@@ -74,3 +73,3 @@ import { NodeTemplateDirective } from './node-template.directive'; | ||
*/ | ||
let TreeViewComponent = class TreeViewComponent { | ||
export class TreeViewComponent { | ||
constructor(focusService, expandService, navigationService, nodeChildrenService, selectionService, treeViewLookupService, element) { | ||
@@ -304,111 +303,10 @@ this.focusService = focusService; | ||
} | ||
}; | ||
tslib_1.__decorate([ | ||
HostBinding("class.k-widget"), | ||
HostBinding("class.k-treeview"), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewComponent.prototype, "classNames", void 0); | ||
tslib_1.__decorate([ | ||
HostBinding("attr.role"), | ||
tslib_1.__metadata("design:type", String), | ||
tslib_1.__metadata("design:paramtypes", []) | ||
], TreeViewComponent.prototype, "role", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
HostBinding('@.disabled'), | ||
tslib_1.__metadata("design:type", Boolean), | ||
tslib_1.__metadata("design:paramtypes", [Boolean]) | ||
], TreeViewComponent.prototype, "animate", null); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "childrenLoaded", void 0); | ||
tslib_1.__decorate([ | ||
Output('blur'), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "onBlur", void 0); | ||
tslib_1.__decorate([ | ||
Output('focus'), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "onFocus", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "expand", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "collapse", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "checkedChange", void 0); | ||
tslib_1.__decorate([ | ||
Output(), | ||
tslib_1.__metadata("design:type", EventEmitter) | ||
], TreeViewComponent.prototype, "selectionChange", void 0); | ||
tslib_1.__decorate([ | ||
ContentChild(NodeTemplateDirective), | ||
tslib_1.__metadata("design:type", NodeTemplateDirective) | ||
], TreeViewComponent.prototype, "nodeTemplate", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Array), | ||
tslib_1.__metadata("design:paramtypes", [Array]) | ||
], TreeViewComponent.prototype, "nodes", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Object) | ||
], TreeViewComponent.prototype, "textField", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], TreeViewComponent.prototype, "hasChildren", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], TreeViewComponent.prototype, "isChecked", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewComponent.prototype, "isDisabled", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], TreeViewComponent.prototype, "isExpanded", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Function]) | ||
], TreeViewComponent.prototype, "isSelected", null); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Boolean) | ||
], TreeViewComponent.prototype, "navigable", void 0); | ||
tslib_1.__decorate([ | ||
Input(), | ||
tslib_1.__metadata("design:type", Function) | ||
], TreeViewComponent.prototype, "children", void 0); | ||
tslib_1.__decorate([ | ||
HostListener('keydown', ['$event']), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Object]), | ||
tslib_1.__metadata("design:returntype", void 0) | ||
], TreeViewComponent.prototype, "handleKeydown", null); | ||
tslib_1.__decorate([ | ||
HostListener('click', ['$event']), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Object]), | ||
tslib_1.__metadata("design:returntype", void 0) | ||
], TreeViewComponent.prototype, "handleClick", null); | ||
TreeViewComponent = tslib_1.__decorate([ | ||
Component({ | ||
changeDetection: ChangeDetectionStrategy.Default, | ||
exportAs: 'kendoTreeView', | ||
providers: providers, | ||
selector: 'kendo-treeview', | ||
template: ` | ||
} | ||
TreeViewComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
changeDetection: ChangeDetectionStrategy.Default, | ||
exportAs: 'kendoTreeView', | ||
providers: providers, | ||
selector: 'kendo-treeview', | ||
template: ` | ||
<ul class="k-treeview-lines" | ||
@@ -431,11 +329,37 @@ kendoTreeViewGroup | ||
` | ||
}), | ||
tslib_1.__metadata("design:paramtypes", [FocusStateService, | ||
ExpandStateService, | ||
NavigationService, | ||
NodeChildrenService, | ||
SelectionService, | ||
TreeViewLookupService, | ||
ElementRef]) | ||
], TreeViewComponent); | ||
export { TreeViewComponent }; | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewComponent.ctorParameters = () => [ | ||
{ type: FocusStateService, }, | ||
{ type: ExpandStateService, }, | ||
{ type: NavigationService, }, | ||
{ type: NodeChildrenService, }, | ||
{ type: SelectionService, }, | ||
{ type: TreeViewLookupService, }, | ||
{ type: ElementRef, }, | ||
]; | ||
TreeViewComponent.propDecorators = { | ||
'classNames': [{ type: HostBinding, args: ["class.k-widget",] }, { type: HostBinding, args: ["class.k-treeview",] },], | ||
'role': [{ type: HostBinding, args: ["attr.role",] },], | ||
'animate': [{ type: Input }, { type: HostBinding, args: ['@.disabled',] },], | ||
'childrenLoaded': [{ type: Output },], | ||
'onBlur': [{ type: Output, args: ['blur',] },], | ||
'onFocus': [{ type: Output, args: ['focus',] },], | ||
'expand': [{ type: Output },], | ||
'collapse': [{ type: Output },], | ||
'checkedChange': [{ type: Output },], | ||
'selectionChange': [{ type: Output },], | ||
'nodeTemplate': [{ type: ContentChild, args: [NodeTemplateDirective,] },], | ||
'nodes': [{ type: Input },], | ||
'textField': [{ type: Input },], | ||
'hasChildren': [{ type: Input },], | ||
'isChecked': [{ type: Input },], | ||
'isDisabled': [{ type: Input },], | ||
'isExpanded': [{ type: Input },], | ||
'isSelected': [{ type: Input },], | ||
'navigable': [{ type: Input },], | ||
'children': [{ type: Input },], | ||
'handleKeydown': [{ type: HostListener, args: ['keydown', ['$event'],] },], | ||
'handleClick': [{ type: HostListener, args: ['click', ['$event'],] },], | ||
}; |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { NgModule } from '@angular/core'; | ||
@@ -25,10 +24,11 @@ import { TreeViewComponent } from './treeview.component'; | ||
*/ | ||
let TreeViewModule = class TreeViewModule { | ||
}; | ||
TreeViewModule = tslib_1.__decorate([ | ||
NgModule({ | ||
exports: [EXPORTS], | ||
imports: [SharedModule] | ||
}) | ||
], TreeViewModule); | ||
export { TreeViewModule }; | ||
export class TreeViewModule { | ||
} | ||
TreeViewModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
exports: [EXPORTS], | ||
imports: [SharedModule] | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
TreeViewModule.ctorParameters = () => []; |
"use strict"; | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var treeview_component_1 = require("./treeview.component"); | ||
exports.TreeViewComponent = treeview_component_1.TreeViewComponent; | ||
var treeview_module_1 = require("./treeview.module"); | ||
exports.TreeViewModule = treeview_module_1.TreeViewModule; | ||
var node_template_directive_1 = require("./node-template.directive"); | ||
exports.NodeTemplateDirective = node_template_directive_1.NodeTemplateDirective; | ||
var check_directive_1 = require("./check.directive"); | ||
exports.CheckDirective = check_directive_1.CheckDirective; | ||
var disable_directive_1 = require("./disable.directive"); | ||
exports.DisableDirective = disable_directive_1.DisableDirective; | ||
var expand_directive_1 = require("./expand.directive"); | ||
exports.ExpandDirective = expand_directive_1.ExpandDirective; | ||
var select_directive_1 = require("./selection/select.directive"); | ||
exports.SelectDirective = select_directive_1.SelectDirective; | ||
var hierarchy_binding_directive_1 = require("./hierarchy-binding.directive"); | ||
exports.HierarchyBindingDirective = hierarchy_binding_directive_1.HierarchyBindingDirective; | ||
var flat_binding_directive_1 = require("./flat-binding.directive"); | ||
exports.FlatDataBindingDirective = flat_binding_directive_1.FlatDataBindingDirective; | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./public_api"), exports); | ||
var checkbox_component_1 = require("./checkbox/checkbox.component"); | ||
exports.ɵo = checkbox_component_1.CheckBoxComponent; | ||
var checkbox_module_1 = require("./checkbox/checkbox.module"); | ||
exports.ɵn = checkbox_module_1.CheckBoxModule; | ||
var expand_state_service_1 = require("./expand-state.service"); | ||
exports.ɵb = expand_state_service_1.ExpandStateService; | ||
var focus_state_service_1 = require("./focus-state.service"); | ||
exports.ɵa = focus_state_service_1.FocusStateService; | ||
var index_builder_service_1 = require("./index-builder.service"); | ||
exports.ɵc = index_builder_service_1.IndexBuilderService; | ||
var loading_indicator_directive_1 = require("./loading-indicator.directive"); | ||
exports.ɵm = loading_indicator_directive_1.LoadingIndicatorDirective; | ||
var loading_notification_service_1 = require("./loading-notification.service"); | ||
exports.ɵe = loading_notification_service_1.LoadingNotificationService; | ||
var navigation_service_1 = require("./navigation/navigation.service"); | ||
exports.ɵg = navigation_service_1.NavigationService; | ||
var node_children_service_1 = require("./node-children.service"); | ||
exports.ɵf = node_children_service_1.NodeChildrenService; | ||
var selection_service_1 = require("./selection/selection.service"); | ||
exports.ɵh = selection_service_1.SelectionService; | ||
var shared_module_1 = require("./shared.module"); | ||
exports.ɵi = shared_module_1.SharedModule; | ||
var treeview_group_component_1 = require("./treeview-group.component"); | ||
exports.ɵj = treeview_group_component_1.TreeViewGroupComponent; | ||
var treeview_item_content_directive_1 = require("./treeview-item-content.directive"); | ||
exports.ɵl = treeview_item_content_directive_1.TreeViewItemContentDirective; | ||
var treeview_item_directive_1 = require("./treeview-item.directive"); | ||
exports.ɵk = treeview_item_directive_1.TreeViewItemDirective; | ||
var treeview_lookup_service_1 = require("./treeview-lookup.service"); | ||
exports.ɵd = treeview_lookup_service_1.TreeViewLookupService; |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-angular-treeview",["tslib","@angular/core","rxjs/Subscription","rxjs/operators/auditTime","rxjs/observable/of","rxjs/BehaviorSubject","rxjs/observable/merge","rxjs/operators/map","rxjs/operators/filter","rxjs/Subject","@angular/common","rxjs/operators/switchMap","rxjs/operators/tap","rxjs/operators/delay","rxjs/operators/takeUntil","@angular/animations","rxjs/Observable","rxjs/observable/empty","rxjs/operators/catchError"],function(e){var t,n,i,o,r,s,a,d,c,p,u,l,h,f,v,y,m,_,g;function b(e){return e.__useDefault?e.default:e}return{setters:[function(e){t=b(e)},function(e){n=b(e)},function(e){i=b(e)},function(e){o=b(e)},function(e){r=b(e)},function(e){s=b(e)},function(e){a=b(e)},function(e){d=b(e)},function(e){c=b(e)},function(e){p=b(e)},function(e){u=b(e)},function(e){l=b(e)},function(e){h=b(e)},function(e){f=b(e)},function(e){v=b(e)},function(e){y=b(e)},function(e){m=b(e)},function(e){_=b(e)},function(e){g=b(e)}],execute:function(){!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.c=t,n.p="",n(0)}([function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=i(1);n.TreeViewComponent=o.TreeViewComponent;var r=i(22);n.TreeViewModule=r.TreeViewModule;var s=i(4);n.NodeTemplateDirective=s.NodeTemplateDirective;var a=i(32);n.CheckDirective=a.CheckDirective;var d=i(34);n.DisableDirective=d.DisableDirective;var c=i(35);n.ExpandDirective=c.ExpandDirective;var p=i(38);n.SelectDirective=p.SelectDirective;var u=i(39);n.HierarchyBindingDirective=u.HierarchyBindingDirective;var l=i(44);n.FlatDataBindingDirective=l.FlatDataBindingDirective,function(t){for(var n in t)e(n,t[n])}(n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),s=n(5),a=n(7),d=n(8),c=n(9),p=n(10),u=n(11),l=n(15),h=n(16),f=n(13),v=n(17),y=n(18),m=n(19),_=n(20),g=n(21),b=[s.FocusStateService,a.ExpandStateService,d.IndexBuilderService,h.TreeViewLookupService,c.LoadingNotificationService,p.NodeChildrenService,u.NavigationService,l.SelectionService],x=function(){function e(e,t,n,i,r,s,a){this.focusService=e,this.expandService=t,this.navigationService=n,this.nodeChildrenService=i,this.selectionService=r,this.treeViewLookupService=s,this.element=a,this.classNames=!0,this.childrenLoaded=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.expand=new o.EventEmitter,this.collapse=new o.EventEmitter,this.checkedChange=new o.EventEmitter,this.selectionChange=new o.EventEmitter,this.isDisabled=v.isDisabled,this.navigable=!0,this.children=function(){return g.of([])},this.checkboxes=!1,this.expandIcons=!1,this.isActive=!1,this.data=new m.BehaviorSubject([]),this._animate=!0,this.resolvedPromise=Promise.resolve(null),this.subscriptions=new y.Subscription(function(){})}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.data.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren||v.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||v.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||v.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||v.isSelected},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),e.prototype.handleKeydown=function(e){this.isActive&&this.navigationService.move(e)},e.prototype.handleClick=function(e){var t=this,n=e.target,i=f.nodeId(f.closestNode(n));i&&!this.focusService.hasActiveContent()&&this.focusin(i).then(function(){t.isActive&&!/k-i-collapse|k-i-expand/.test(n.className)&&t.navigationService.selectIndex(i)})},e.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe(function(t){return e.childrenLoaded.emit(t)})),this.subscriptions.add(this.focusService.changes.pipe(_.auditTime(1)).subscribe(function(t){var n=t.focused,i=t.index;return n?e.focusin(i):e.focusout(i)})),this.subscriptions.add(this.expandService.changes.subscribe(function(t){var n=t.index,i=t.dataItem;return t.expand?e.expand.emit({index:n,dataItem:i}):e.collapse.emit({index:n,dataItem:i})})),this.subscriptions.add(this.navigationService.checks.subscribe(function(t){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(t))})),this.subscriptions.add(this.selectionService.changes.subscribe(function(t){return e.selectionChange.emit(t)}))},e.prototype.blur=function(){if(f.isDocumentAvailable()){var e=f.focusableNode(this.element);document.activeElement===e&&e.blur()}},e.prototype.focus=function(e){this.navigationService.activateIndex(e);var t=f.focusableNode(this.element);t&&t.focus()},e.prototype.focusin=function(e){var t=this;if(e)return this.navigationService.activateIndex(e),this.resolvedPromise.then(function(){!t.isActive&&t.navigationService.isActive(e)&&(t.isActive=!0,t.onFocus.emit())})},e.prototype.focusout=function(e){var t=this;return this.resolvedPromise.then(function(){t.isActive&&t.navigationService.isActive(e)&&(t.navigationService.deactivate(),t.isActive=!1,t.onBlur.emit())})},i.__decorate([o.HostBinding("class.k-widget"),o.HostBinding("class.k-treeview"),i.__metadata("design:type",Boolean)],e.prototype,"classNames",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"role",null),i.__decorate([o.Input(),o.HostBinding("@.disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"animate",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"childrenLoaded",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"expand",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"collapse",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"checkedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([o.ContentChild(r.NodeTemplateDirective),i.__metadata("design:type",r.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"hasChildren",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),i.__decorate([o.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),i.__decorate([o.HostListener("click",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleClick",null),e=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:b,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 [nodes]="data"\n [textField]="textField"\n >\n </ul>\n '}),i.__metadata("design:paramtypes",[s.FocusStateService,a.ExpandStateService,u.NavigationService,p.NodeChildrenService,l.SelectionService,h.TreeViewLookupService,o.ElementRef])],e)}();t.TreeViewComponent=x},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoTreeViewNodeTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.NodeTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(6),s=function(){function e(){this.changes=new r.Subject,this.activeContent=!1,this.isActive=!1}return e.prototype.hasActiveContent=function(){return!this.isActive&&this.activeContent},e.prototype.focus=function(e){this.isActive=!0,this.changes.next({focused:!0,index:e})},e.prototype.blur=function(e){this.isActive=!1,this.changes.next({focused:!1,index:e})},e.prototype.focusin=function(e){this.activeContent=!0},e.prototype.focusout=function(e){this.activeContent=!1},e=i.__decorate([o.Injectable()],e)}();t.FocusStateService=s},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(6),s=function(){function e(){this.changes=new r.Subject}return e.prototype.expand=function(e,t){this.changes.next({dataItem:t,index:e,expand:!0})},e.prototype.collapse=function(e,t){this.changes.next({dataItem:t,index:e,expand:!1})},e=i.__decorate([o.Injectable()],e)}();t.ExpandStateService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){this.INDEX_SEPARATOR="_"}return e.prototype.nodeIndex=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),""+t+(t?this.INDEX_SEPARATOR:"")+e},e.prototype.indexForLevel=function(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)},e.prototype.lastLevelIndex=function(e){void 0===e&&(e="");var t=e.split(this.INDEX_SEPARATOR);return t.length?parseInt(t[t.length-1],10):NaN},e.prototype.level=function(e){return e.split(this.INDEX_SEPARATOR).length},e=i.__decorate([o.Injectable()],e)}();t.IndexBuilderService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(6),s=function(){function e(){this.changes=new r.Subject}return e.prototype.notifyLoaded=function(e){this.changes.next(e)},e=i.__decorate([o.Injectable()],e)}();t.LoadingNotificationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(6),s=function(){function e(){this.changes=new r.Subject}return e.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},e=i.__decorate([o.Injectable()],e)}();t.NodeChildrenService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(12),s=n(13),a=n(14),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 r.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&&this.activeItem.children.length>0},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.checks.next(e)},e.prototype.selectIndex=function(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.registerItem=function(e){this.model.registerItem(e)},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([o.Injectable()],e)}();t.NavigationService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(8),o=function(e){return e[e.length-1]},r=function(e){return e||{}},s=function(e){return r(e).children||[]},a=function(e){for(var t=e,n=[].concat(s(e));n.length;)t=(n=n.concat(s(o(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(o(this.container(e)))||e:null},e.prototype.closestNode=function(e){var t=r(this.findNode(e)).prev||this.firstNode();return r(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){var t,n,i,o=this.ib.level(e),r=this.findParent(e);if(r||1===o){var s={children:[],index:e,parent:r,prev:this.prevNode(r,e),next:this.nextNode(r,e)};n=(t=s).prev,i=t.next,n&&(n.next=t),i&&(i.prev=t),this.insert(s,r)}},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 o=this.container(t.parent);o.splice(o.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),o=n===this.ib.level(e),r=t.find(function(e){return e.index===i});return r?o?r:this.find(e,r.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(o(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 o=this.closestIndexPosition(n,t),r=n.slice(o)[0];return r||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,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.noop=function(){},t.isPresent=function(e){return null!=e},t.isBlank=function(e){return null==e},t.isArray=function(e){return Array.isArray(e)},t.isNullOrEmptyString=function(e){return t.isBlank(e)||0===e.trim().length},t.isDocumentAvailable=function(){return"undefined"!=typeof document},t.isChanged=function(e,t,n){return void 0===n&&(n=!0),t[e]&&(!t[e].isFirstChange()||!n)&&t[e].previousValue!==t[e].currentValue},t.anyChanged=function(e,n,i){return void 0===i&&(i=!0),e.some(function(e){return t.isChanged(e,n,i)})},t.closestNode=function(e){var n="li.k-item";return t.isDocumentAvailable()?e.closest?e.closest(n):function(e,t){if(!document.documentElement.contains(e))return null;for(var n,i,o,r=e;null!==r&&1===r.nodeType;){if(i=t,o=void 0,(o=(n=r).matches||n.msMatchesSelector||n.webkitMatchesSelector)&&o.call(n,i))return r;r=r.parentElement||r.parentNode}return null}(e,n):null},t.focusableNode=function(e){return e.nativeElement.querySelector('li[tabindex="0"]')},t.hasActiveNode=function(e,n){var i=n||t.closestNode(e);return i&&(i===e||e.tabIndex<0)},t.nodeId=function(e){return e?e.getAttribute("data-treeindex"):""},t.nodeIndex=function(e){return(e||{}).index},t.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),o=n(3),r=n(6),s=function(){function e(){this.changes=new r.Subject}return e.prototype.isFirstSelected=function(e){return this.firstIndex===e},e.prototype.setFirstSelected=function(e,t){this.firstIndex===e&&!1===t?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)},e.prototype.select=function(e,t){this.changes.next({dataItem:t,index:e})},e=i.__decorate([o.Injectable()],e)}();t.SelectionService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(13),s=function(){function e(){this.map=new Map}return e.prototype.registerItem=function(e,t){var n={children:[],item:e,parent:this.item(r.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){this.map.delete(e)},e.prototype.replaceItem=function(e,t,n){var i=this.item(e);i&&t&&(this.unregisterItem(e),this.registerItem(t,n),e===t.index&&this.registerChildren(t.index,i.children.slice()))},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.mapChildren=function(e){var t=this;return e.map(function(e){var n=t.item(e.index),i=n.item,o=n.parent,r=n.children;return{children:t.mapChildren(r),item:i,parent:o}})},e=i.__decorate([o.Injectable()],e)}();t.TreeViewLookupService=s},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=i},function(e,t){e.exports=s},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(23),a=n(4),d=n(32),c=n(34),p=n(35),u=n(38),l=n(39),h=n(44),f=[r.TreeViewComponent,a.NodeTemplateDirective,d.CheckDirective,c.DisableDirective,p.ExpandDirective,u.SelectDirective,l.HierarchyBindingDirective,h.FlatDataBindingDirective],v=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[f],imports:[s.SharedModule]})],e)}();t.TreeViewModule=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(24),a=n(31),d=n(4),c=n(32),p=n(34),u=n(35),l=n(38),h=n(39),f=n(40),v=n(44),y=n(46),m=n(47),_=n(48),g=[r.TreeViewComponent,s.TreeViewGroupComponent,y.TreeViewItemDirective,m.TreeViewItemContentDirective,d.NodeTemplateDirective,c.CheckDirective,p.DisableDirective,u.ExpandDirective,l.SelectDirective,h.HierarchyBindingDirective,f.LoadingIndicatorDirective,v.FlatDataBindingDirective],b=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[g],exports:[g],imports:[a.CommonModule,_.CheckBoxModule]})],e)}();t.SharedModule=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(25),s=n(7),a=n(8),d=n(16),c=n(11),p=n(10),u=n(13),l=n(26),h=n(9),f=n(27),v=n(28),y=n(21),m=n(29),_=n(30),g=function(){function e(e,t,n,i,o,r){this.expandService=e,this.loadingService=t,this.indexBuilder=n,this.treeViewLookupService=i,this.navigationService=o,this.nodeChildrenService=r,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.subscription&&this.subscription.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.subscription=this.nodes.subscribe(function(t){e.data=t})},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(m.catchError(function(){return n.loadingService.notifyLoaded(t),v.empty()}),_.tap(function(){return n.loadingService.notifyLoaded(t)}))},Object.defineProperty(e.prototype,"nextFields",{get:function(){return u.isArray(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),e.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},e.prototype.mapToTreeItem=function(e){var t=this;return this.parentIndex?e.map(function(e,n){return{dataItem:e,index:t.nodeIndex(n)}}):[]},e.prototype.emitChildrenLoaded=function(e){this.parentIndex&&this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},e)},i.__decorate([o.HostBinding("class.k-group"),i.__metadata("design:type",Boolean)],e.prototype,"kGroupClass",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"role",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"checkboxes",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"expandIcons",void 0),i.__decorate([o.Input(),i.__metadata("design:type",f.Observable)],e.prototype,"nodes",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"nodeTemplateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isChecked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),e=i.__decorate([o.Component({animations:[r.trigger("toggle",[r.transition("void => *",[r.style({height:0}),r.animate("0.1s ease-in",r.style({height:"*"}))]),r.transition("* => void",[r.style({height:"*"}),r.animate("0.1s ease-in",r.style({height:0}))])])],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index" class="k-item"\n kendoTreeViewItem\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="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" (mousedown)="$event.preventDefault()">\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 (mousedown)="$event.preventDefault()"\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 (mousedown)="$event.preventDefault()"\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(node, nodeIndex(index))"\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]="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])],e)}();t.TreeViewGroupComponent=g},function(e,t){e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,r={undefined:function(e){return e}};t.getter=function(e,t){var n=e+t;if(r[n])return r[n];var s=[];return e.replace(o,function(e,t,n,o){s.push(i.isPresent(t)?t:n||o)}),r[n]=function(e){for(var n=e,o=0;o<s.length;o++)if(n=n[s[o]],!i.isPresent(n)&&t)return n;return n},r[n]}},function(e,t){e.exports=m},function(e,t){e.exports=_},function(e,t){e.exports=g},function(e,t){e.exports=h},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(13),a=n(18),d=n(33),c=function(){function e(e,t){var n=this;this.treeView=e,this.cdr=t,this.checkedKeysChange=new o.EventEmitter,this.subscriptions=new a.Subscription(function(){}),this.checkActions={multiple:function(e){return n.checkMultiple(e)},single:function(e){return n.checkSingle(e)}},this._checkedKeys=[],this.resolvedPromise=Promise.resolve(null),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})).subscribe(function(e){n.resolvedPromise.then(function(){n.addChildrenKeys(e),n.cdr.detectChanges()})})),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(!s.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?this.checkedKeys.indexOf(this.itemKey({dataItem:e,index:t}))>-1?"checked":"none":this.isIndexChecked(t)},e.prototype.isIndexChecked=function(e){var t,n=this.checkedKeys.filter(function(t){return t.indexOf&&0===t.indexOf(e)});if(t=e,n.filter(function(e){return e===t}).length>0)return"checked";var i=this.options,o=i.mode,r=i.checkParents;return"multiple"===o&&r&&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,o=this.checkActions[i]||s.noop;n&&o(e)},e.prototype.checkSingle=function(e){var t=this.itemKey(e.item);this.checkedKeys=this.checkedKeys[0]!==t?[t]:[],this.notify()},e.prototype.checkMultiple=function(e){this.checkNode(e),this.options.checkParents&&this.checkParents(e.parent),this.notify()},e.prototype.checkNode=function(e,t){var n=this,i=this.itemKey(e.item),o=this.checkedKeys.indexOf(i),r=o>-1,a=void 0===t?!r:t;!s.isPresent(i)||r&&t||(r?this.checkedKeys.splice(o,1):this.checkedKeys.push(i),this.options.checkChildren&&e.children.map(function(e){return n.checkNode(e,a)}))},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):i>-1&&this.checkedKeys.splice(i,1),t=t.parent}},e.prototype.allChildrenSelected=function(e){var t=this;return e.reduce(function(e,n){return e&&"checked"===t.isItemChecked(n.dataItem,n.index)},!0)},e.prototype.notify=function(){this.checkedKeysChange.emit(this.checkedKeys.slice())},e.prototype.addChildrenKeys=function(e){var t=this;if(-1!==this.checkedKeys.indexOf(this.itemKey(e.item))){var n=e.children.reduce(function(e,n){var i=t.itemKey(n);return t.checkedKeys.find(function(e){return i===e})||e.push(i),e},[]);n.length&&(this.checkedKeys=this.checkedKeys.concat(n),this.notify())}},i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([o.Input("checkBy"),i.__metadata("design:type",Object)],e.prototype,"checkKey",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"checkedKeys",null),i.__decorate([o.Input("kendoTreeViewCheckable"),i.__metadata("design:type",Object)],e.prototype,"checkable",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"checkedKeysChange",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewCheckable]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent,o.ChangeDetectorRef])],e)}();t.CheckDirective=c},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=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 n.disabledKeys.indexOf(n.itemKey({dataItem:e,index:t}))>-1}}return Object.defineProperty(e.prototype,"isDisabled",{set:function(e){this.treeView.isDisabled=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){void 0===e&&(e={});var t=e.disabledKeys;t&&!t.firstChange&&this.cdr.markForCheck()},e.prototype.itemKey=function(e){return this.disableKey?"string"==typeof this.disableKey?e.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(e):void 0:e.index},i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isDisabled",null),i.__decorate([o.Input("kendoTreeViewDisable"),i.__metadata("design:type",Object)],e.prototype,"disableKey",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"disabledKeys",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewDisable]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent,o.ChangeDetectorRef])],e)}();t.DisableDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(18),a=n(36),d=n(37),c=function(){function e(e){var t=this;this.treeView=e,this.expandedKeysChange=new o.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,n){return t.expandedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}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,o=this.itemKey({index:t,dataItem:n}),r=this.expandedKeys.indexOf(o),s=!1;r>-1&&!i?(this.expandedKeys.splice(r,1),s=!0):-1===r&&i&&(this.expandedKeys.push(o),s=!0),s&&this.expandedKeysChange.emit(this.expandedKeys)},i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([o.Input("expandBy"),i.__metadata("design:type",Object)],e.prototype,"expandKey",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"expandedKeysChange",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"expandedKeys",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewExpandable]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent])],e)}();t.ExpandDirective=c},function(e,t){e.exports=a},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(13),a=n(18),d=function(){function e(e){var t=this;this.treeView=e,this.selectedKeysChange=new o.EventEmitter,this.subscriptions=new a.Subscription(function(){}),this.selectActions={multiple:function(e){return t.selectMultiple(e)},single:function(e){return t.selectSingle(e)}},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,n){return t.selectedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}return Object.defineProperty(e.prototype,"isSelected",{set:function(e){this.treeView.isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{get:function(){return this._selectedKeys},set:function(e){this._selectedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={enabled:!0,mode:"single"};if(!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,o=this.selectActions[i]||s.noop;n&&o(e)},e.prototype.selectSingle=function(e){var t=this.itemKey(e);this.selectedKeys[0]!==t&&(this.selectedKeys=[t],this.notify())},e.prototype.selectMultiple=function(e){var t=this.itemKey(e),n=this.selectedKeys.indexOf(t),i=n>-1;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([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([o.Input("selectBy"),i.__metadata("design:type",Object)],e.prototype,"selectKey",void 0),i.__decorate([o.Input("kendoTreeViewSelectable"),i.__metadata("design:type",Object)],e.prototype,"selection",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectedKeysChange",void 0),i.__decorate([o.HostBinding("attr.aria-multiselectable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getAriaMultiselectable",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewSelectable]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent])],e)}();t.SelectDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(26),a=n(13),d=n(21),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 e=this;a.isPresent(this.childrenField)&&(this.treeView.children=function(t){return d.of(s.getter(e.childrenField,!0)(t))},this.treeView.hasChildren=function(t){return t&&Boolean(t[e.childrenField])})},i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"childrenField",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewHierarchyBinding]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent])],e)}();t.HierarchyBindingDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(7),s=n(9),a=n(21),d=n(41),c=n(33),p=n(42),u=n(43),l=n(30),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 e=this,t=this.loadingService.changes.pipe(c.filter(function(t){return t===e.index}));this.subscription=this.expandService.changes.pipe(c.filter(function(t){return t.index===e.index}),l.tap(function(t){!t.expand&&e.loading&&(e.loading=!1)}),c.filter(function(e){return e.expand}),p.switchMap(function(e){return a.of(e).pipe(d.delay(100),u.takeUntil(t))})).subscribe(function(){return e.loading=!0}),this.subscription.add(t.subscribe(function(){return e.loading=!1}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},i.__decorate([o.HostBinding("class.k-i-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"loading",null),i.__decorate([o.Input("kendoTreeViewLoading"),i.__metadata("design:type",String)],e.prototype,"index",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewLoading]"}),i.__metadata("design:paramtypes",[r.ExpandStateService,s.LoadingNotificationService,o.ChangeDetectorRef])],e)}();t.LoadingIndicatorDirective=h},function(e,t){e.exports=f},function(e,t){e.exports=l},function(e,t){e.exports=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(26),a=n(13),d=n(45),c=n(21),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 e=this;if(a.isPresent(this.parentIdField)&&a.isPresent(this.idField)){var t=function(t){return n=s.getter(e.parentIdField,!0),i=e.originalData||[],o=s.getter(e.idField,!0)(t),i.filter(function(e){return n(e)===o});var n,i,o};this.treeView.hasChildren=function(e){return t(e).length>0},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([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"parentIdField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"idField",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewFlatDataBinding]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent])],e)}();t.FlatDataBindingDirective=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight(function(e,t){return t(e)},t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(11),s=n(15),a=n(5),d=n(7),c=n(8),p=n(16),u=n(13),l=n(33),h=function(e,t){return{dataItem:t,index:e}},f=function(){function e(e,t,n,i,o,r,s,a){this.element=e,this.focusService=t,this.expandService=n,this.navigationService=i,this.selectionService=o,this.lookupService=r,this.renderer=s,this.ib=a,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 h(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?h(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.initEvents(),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.subscriptions=this.subscriptions.reduce(function(e,t){return t.unsubscribe(),e},[])},e.prototype.subscribe=function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe(function(){e.updateTabIndex(),e.focusItem()}),this.navigationService.expands.pipe(l.filter(function(t){return t.index===e.index&&!e.isDisabled})).subscribe(function(t){var n=t.expand;return e.expand(n)})]},e.prototype.initEvents=function(){var e=this;["focusin","focusout","focus","blur"].forEach(function(t){e.subscriptions.push(e.listen(t,function(){return e.focusService[t](e.index)}))})},e.prototype.listen=function(e,t){return{unsubscribe:this.renderer.listen(this.element.nativeElement,e,t)}},e.prototype.registerNavigationItem=function(){this.isDisabled||(this.navigationService.registerItem(this.index),this.activateItem())},e.prototype.activateItem=function(){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.isDisabled&&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,o=e.parentIndex;if((!n||!n.firstChange||this.lookupService.hasItem(this.index))&&(t||n||i||o)){var r=(n||{}).previousValue||this.index;this.lookupService.replaceItem(r,this.treeItem,this.parentTreeItem)}},e.prototype.moveNavigationItem=function(e){void 0===e&&(e={});var t=e.currentValue,n=e.firstChange,i=e.previousValue;!n&&u.isPresent(t)&&u.isPresent(i)&&(this.navigationService.unregisterItem(i),this.navigationService.registerItem(t))},e.prototype.disableNavigationItem=function(e){if(e&&!e.firstChange){var t=this.navigationService;this.isDisabled?(t.activateClosest(this.index),t.unregisterItem(this.index)):(t.registerItem(this.index),t.activateFocusable())}},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([o.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"isChecked",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isExpanded",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewItem]"}),i.__metadata("design:paramtypes",[o.ElementRef,a.FocusStateService,d.ExpandStateService,r.NavigationService,s.SelectionService,p.TreeViewLookupService,o.Renderer2,c.IndexBuilderService])],e)}();t.TreeViewItemDirective=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(11),s=n(15),a=n(18),d=n(33),c=function(){function e(e,t,n,i){var o=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===o.index})).subscribe(function(e){return o.selectionService.select(e,o.dataItem)})),this.subscriptions.add(this.selectionService.changes.subscribe(function(){o.updateSelection(o.isSelected(o.dataItem,o.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([o.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"initialSelection",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewItemContent]"}),i.__metadata("design:paramtypes",[o.ElementRef,r.NavigationService,s.SelectionService,o.Renderer2])],e)}();t.TreeViewItemContentDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=[n(49).CheckBoxComponent],s=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r],exports:[r]})],e)}();t.CheckBoxModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(13),s=function(){function e(e,t){this.element=e,this.renderer=t,this.id="_"+r.guid(),this.checkState="none",this.tabindex=0,this.checkStateChange=new o.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([o.HostBinding("class.k-checkbox-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"classWrapper",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"checkState",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"labelText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"checkStateChange",void 0),e=i.__decorate([o.Component({selector:"kendo-checkbox",template:'\n <input\n class="k-checkbox"\n type="checkbox"\n [id]="id"\n [checked]="checked"\n [indeterminate]="indeterminate"\n [tabindex]="tabindex"\n (change)="handleChange($event)"\n />\n <label\n class="k-checkbox-label"\n tabindex="-1"\n [for]="id"\n >{{labelText}}</label>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2])],e)}();t.CheckBoxComponent=s}])}}}); | ||
System.register("@progress/kendo-angular-treeview",["tslib","@angular/core","rxjs/Subscription","rxjs/BehaviorSubject","rxjs/operators/auditTime","rxjs/observable/of","rxjs/operators/filter","rxjs/observable/merge","rxjs/operators/map","rxjs/Subject","@angular/common","@angular/animations","rxjs/Observable","rxjs/observable/empty","rxjs/operators/catchError","rxjs/operators/tap","rxjs/operators/delay","rxjs/operators/switchMap","rxjs/operators/takeUntil"],function(e){var t,n,i,o,r,s,a,d,c,p,u,l,h,f,v,y,m,_,g;function b(e){return e.__useDefault?e.default:e}return{setters:[function(e){t=b(e)},function(e){n=b(e)},function(e){i=b(e)},function(e){o=b(e)},function(e){r=b(e)},function(e){s=b(e)},function(e){a=b(e)},function(e){d=b(e)},function(e){c=b(e)},function(e){p=b(e)},function(e){u=b(e)},function(e){l=b(e)},function(e){h=b(e)},function(e){f=b(e)},function(e){v=b(e)},function(e){y=b(e)},function(e){m=b(e)},function(e){_=b(e)},function(e){g=b(e)}],execute:function(){!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.c=t,n.p="",n(0)}([function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=i(1);n.TreeViewComponent=o.TreeViewComponent;var r=i(22);n.TreeViewModule=r.TreeViewModule;var s=i(4);n.NodeTemplateDirective=s.NodeTemplateDirective;var a=i(32);n.CheckDirective=a.CheckDirective;var d=i(34);n.DisableDirective=d.DisableDirective;var c=i(35);n.ExpandDirective=c.ExpandDirective;var p=i(38);n.SelectDirective=p.SelectDirective;var u=i(39);n.HierarchyBindingDirective=u.HierarchyBindingDirective;var l=i(44);n.FlatDataBindingDirective=l.FlatDataBindingDirective,function(t){for(var n in t)e(n,t[n])}(n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),s=n(5),a=n(7),d=n(8),c=n(9),p=n(10),u=n(11),l=n(15),h=n(16),f=n(13),v=n(17),y=n(18),m=n(19),_=n(20),g=n(21),b=[s.FocusStateService,a.ExpandStateService,d.IndexBuilderService,h.TreeViewLookupService,c.LoadingNotificationService,p.NodeChildrenService,u.NavigationService,l.SelectionService],x=function(){function e(e,t,n,i,r,s,a){this.focusService=e,this.expandService=t,this.navigationService=n,this.nodeChildrenService=i,this.selectionService=r,this.treeViewLookupService=s,this.element=a,this.classNames=!0,this.childrenLoaded=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.expand=new o.EventEmitter,this.collapse=new o.EventEmitter,this.checkedChange=new o.EventEmitter,this.selectionChange=new o.EventEmitter,this.isDisabled=v.isDisabled,this.navigable=!0,this.children=function(){return g.of([])},this.checkboxes=!1,this.expandIcons=!1,this.isActive=!1,this.data=new m.BehaviorSubject([]),this._animate=!0,this.resolvedPromise=Promise.resolve(null),this.subscriptions=new y.Subscription(function(){})}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.data.next(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren||v.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||v.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||v.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||v.isSelected},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),e.prototype.handleKeydown=function(e){this.isActive&&this.navigationService.move(e)},e.prototype.handleClick=function(e){var t=this,n=e.target,i=f.nodeId(f.closestNode(n));i&&!this.focusService.hasActiveContent()&&this.focusin(i).then(function(){t.isActive&&!/k-i-collapse|k-i-expand/.test(n.className)&&t.navigationService.selectIndex(i)})},e.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable)},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe(function(t){return e.childrenLoaded.emit(t)})),this.subscriptions.add(this.focusService.changes.pipe(_.auditTime(1)).subscribe(function(t){var n=t.focused,i=t.index;return n?e.focusin(i):e.focusout(i)})),this.subscriptions.add(this.expandService.changes.subscribe(function(t){var n=t.index,i=t.dataItem;return t.expand?e.expand.emit({index:n,dataItem:i}):e.collapse.emit({index:n,dataItem:i})})),this.subscriptions.add(this.navigationService.checks.subscribe(function(t){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(t))})),this.subscriptions.add(this.selectionService.changes.subscribe(function(t){return e.selectionChange.emit(t)}))},e.prototype.blur=function(){if(f.isDocumentAvailable()){var e=f.focusableNode(this.element);document.activeElement===e&&e.blur()}},e.prototype.focus=function(e){this.navigationService.activateIndex(e);var t=f.focusableNode(this.element);t&&t.focus()},e.prototype.focusin=function(e){var t=this;if(e)return this.navigationService.activateIndex(e),this.resolvedPromise.then(function(){!t.isActive&&t.navigationService.isActive(e)&&(t.isActive=!0,t.onFocus.emit())})},e.prototype.focusout=function(e){var t=this;return this.resolvedPromise.then(function(){t.isActive&&t.navigationService.isActive(e)&&(t.navigationService.deactivate(),t.isActive=!1,t.onBlur.emit())})},i.__decorate([o.HostBinding("class.k-widget"),o.HostBinding("class.k-treeview"),i.__metadata("design:type",Boolean)],e.prototype,"classNames",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"role",null),i.__decorate([o.Input(),o.HostBinding("@.disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"animate",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"childrenLoaded",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"expand",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"collapse",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"checkedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([o.ContentChild(r.NodeTemplateDirective),i.__metadata("design:type",r.NodeTemplateDirective)],e.prototype,"nodeTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"hasChildren",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),i.__decorate([o.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),i.__decorate([o.HostListener("click",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleClick",null),e=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:b,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 [nodes]="data"\n [textField]="textField"\n >\n </ul>\n '}),i.__metadata("design:paramtypes",[s.FocusStateService,a.ExpandStateService,u.NavigationService,p.NodeChildrenService,l.SelectionService,h.TreeViewLookupService,o.ElementRef])],e)}();t.TreeViewComponent=x},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoTreeViewNodeTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.NodeTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(6),s=function(){function e(){this.changes=new r.Subject,this.activeContent=!1,this.isActive=!1}return e.prototype.hasActiveContent=function(){return!this.isActive&&this.activeContent},e.prototype.focus=function(e){this.isActive=!0,this.changes.next({focused:!0,index:e})},e.prototype.blur=function(e){this.isActive=!1,this.changes.next({focused:!1,index:e})},e.prototype.focusin=function(e){this.activeContent=!0},e.prototype.focusout=function(e){this.activeContent=!1},e=i.__decorate([o.Injectable()],e)}();t.FocusStateService=s},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(6),s=function(){function e(){this.changes=new r.Subject}return e.prototype.expand=function(e,t){this.changes.next({dataItem:t,index:e,expand:!0})},e.prototype.collapse=function(e,t){this.changes.next({dataItem:t,index:e,expand:!1})},e=i.__decorate([o.Injectable()],e)}();t.ExpandStateService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){this.INDEX_SEPARATOR="_"}return e.prototype.nodeIndex=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),""+t+(t?this.INDEX_SEPARATOR:"")+e},e.prototype.indexForLevel=function(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)},e.prototype.lastLevelIndex=function(e){void 0===e&&(e="");var t=e.split(this.INDEX_SEPARATOR);return t.length?parseInt(t[t.length-1],10):NaN},e.prototype.level=function(e){return e.split(this.INDEX_SEPARATOR).length},e=i.__decorate([o.Injectable()],e)}();t.IndexBuilderService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(6),s=function(){function e(){this.changes=new r.Subject}return e.prototype.notifyLoaded=function(e){this.changes.next(e)},e=i.__decorate([o.Injectable()],e)}();t.LoadingNotificationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(6),s=function(){function e(){this.changes=new r.Subject}return e.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},e=i.__decorate([o.Injectable()],e)}();t.NodeChildrenService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(12),s=n(13),a=n(14),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 r.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&&this.activeItem.children.length>0},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.checks.next(e)},e.prototype.selectIndex=function(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.registerItem=function(e){this.model.registerItem(e)},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([o.Injectable()],e)}();t.NavigationService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(8),o=function(e){return e[e.length-1]},r=function(e){return e||{}},s=function(e){return r(e).children||[]},a=function(e){for(var t=e,n=[].concat(s(e));n.length;)t=(n=n.concat(s(o(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(o(this.container(e)))||e:null},e.prototype.closestNode=function(e){var t=r(this.findNode(e)).prev||this.firstNode();return r(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){var t,n,i,o=this.ib.level(e),r=this.findParent(e);if(r||1===o){var s={children:[],index:e,parent:r,prev:this.prevNode(r,e),next:this.nextNode(r,e)};n=(t=s).prev,i=t.next,n&&(n.next=t),i&&(i.prev=t),this.insert(s,r)}},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 o=this.container(t.parent);o.splice(o.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),o=n===this.ib.level(e),r=t.find(function(e){return e.index===i});return r?o?r:this.find(e,r.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(o(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 o=this.closestIndexPosition(n,t),r=n.slice(o)[0];return r||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,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.noop=function(){},t.isPresent=function(e){return null!=e},t.isBlank=function(e){return null==e},t.isArray=function(e){return Array.isArray(e)},t.isNullOrEmptyString=function(e){return t.isBlank(e)||0===e.trim().length},t.isDocumentAvailable=function(){return"undefined"!=typeof document},t.isChanged=function(e,t,n){return void 0===n&&(n=!0),t[e]&&(!t[e].isFirstChange()||!n)&&t[e].previousValue!==t[e].currentValue},t.anyChanged=function(e,n,i){return void 0===i&&(i=!0),e.some(function(e){return t.isChanged(e,n,i)})},t.closestNode=function(e){var n="li.k-item";return t.isDocumentAvailable()?e.closest?e.closest(n):function(e,t){if(!document.documentElement.contains(e))return null;for(var n,i,o,r=e;null!==r&&1===r.nodeType;){if(i=t,o=void 0,(o=(n=r).matches||n.msMatchesSelector||n.webkitMatchesSelector)&&o.call(n,i))return r;r=r.parentElement||r.parentNode}return null}(e,n):null},t.focusableNode=function(e){return e.nativeElement.querySelector('li[tabindex="0"]')},t.hasActiveNode=function(e,n){var i=n||t.closestNode(e);return i&&(i===e||e.tabIndex<0)},t.nodeId=function(e){return e?e.getAttribute("data-treeindex"):""},t.nodeIndex=function(e){return(e||{}).index},t.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),o=n(3),r=n(6),s=function(){function e(){this.changes=new r.Subject}return e.prototype.isFirstSelected=function(e){return this.firstIndex===e},e.prototype.setFirstSelected=function(e,t){this.firstIndex===e&&!1===t?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)},e.prototype.select=function(e,t){this.changes.next({dataItem:t,index:e})},e=i.__decorate([o.Injectable()],e)}();t.SelectionService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(13),s=function(){function e(){this.map=new Map}return e.prototype.registerItem=function(e,t){var n={children:[],item:e,parent:this.item(r.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){this.map.delete(e)},e.prototype.replaceItem=function(e,t,n){var i=this.item(e);i&&t&&(this.unregisterItem(e),this.registerItem(t,n),e===t.index&&this.registerChildren(t.index,i.children.slice()))},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.mapChildren=function(e){var t=this;return e.map(function(e){var n=t.item(e.index),i=n.item,o=n.parent,r=n.children;return{children:t.mapChildren(r),item:i,parent:o}})},e=i.__decorate([o.Injectable()],e)}();t.TreeViewLookupService=s},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=i},function(e,t){e.exports=o},function(e,t){e.exports=r},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(23),a=n(4),d=n(32),c=n(34),p=n(35),u=n(38),l=n(39),h=n(44),f=[r.TreeViewComponent,a.NodeTemplateDirective,d.CheckDirective,c.DisableDirective,p.ExpandDirective,u.SelectDirective,l.HierarchyBindingDirective,h.FlatDataBindingDirective],v=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[f],imports:[s.SharedModule]})],e)}();t.TreeViewModule=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(24),a=n(31),d=n(4),c=n(32),p=n(34),u=n(35),l=n(38),h=n(39),f=n(40),v=n(44),y=n(46),m=n(47),_=n(48),g=[r.TreeViewComponent,s.TreeViewGroupComponent,y.TreeViewItemDirective,m.TreeViewItemContentDirective,d.NodeTemplateDirective,c.CheckDirective,p.DisableDirective,u.ExpandDirective,l.SelectDirective,h.HierarchyBindingDirective,f.LoadingIndicatorDirective,v.FlatDataBindingDirective],b=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[g],exports:[g],imports:[a.CommonModule,_.CheckBoxModule]})],e)}();t.SharedModule=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(25),s=n(7),a=n(8),d=n(16),c=n(11),p=n(10),u=n(13),l=n(26),h=n(9),f=n(27),v=n(28),y=n(21),m=n(29),_=n(30),g=function(){function e(e,t,n,i,o,r){this.expandService=e,this.loadingService=t,this.indexBuilder=n,this.treeViewLookupService=i,this.navigationService=o,this.nodeChildrenService=r,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.subscription&&this.subscription.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.subscription=this.nodes.subscribe(function(t){e.data=t})},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(m.catchError(function(){return n.loadingService.notifyLoaded(t),v.empty()}),_.tap(function(){return n.loadingService.notifyLoaded(t)}))},Object.defineProperty(e.prototype,"nextFields",{get:function(){return u.isArray(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),e.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},e.prototype.mapToTreeItem=function(e){var t=this;return this.parentIndex?e.map(function(e,n){return{dataItem:e,index:t.nodeIndex(n)}}):[]},e.prototype.emitChildrenLoaded=function(e){this.parentIndex&&this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},e)},i.__decorate([o.HostBinding("class.k-group"),i.__metadata("design:type",Boolean)],e.prototype,"kGroupClass",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"role",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"checkboxes",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"expandIcons",void 0),i.__decorate([o.Input(),i.__metadata("design:type",f.Observable)],e.prototype,"nodes",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"nodeTemplateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isChecked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),e=i.__decorate([o.Component({animations:[r.trigger("toggle",[r.transition("void => *",[r.style({height:0}),r.animate("0.1s ease-in",r.style({height:"*"}))]),r.transition("* => void",[r.style({height:"*"}),r.animate("0.1s ease-in",r.style({height:0}))])])],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index" class="k-item"\n kendoTreeViewItem\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="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" (mousedown)="$event.preventDefault()">\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 (mousedown)="$event.preventDefault()"\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 (mousedown)="$event.preventDefault()"\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(node, nodeIndex(index))"\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]="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])],e)}();t.TreeViewGroupComponent=g},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,r={undefined:function(e){return e}};t.getter=function(e,t){var n=e+t;if(r[n])return r[n];var s=[];return e.replace(o,function(e,t,n,o){s.push(i.isPresent(t)?t:n||o)}),r[n]=function(e){for(var n=e,o=0;o<s.length;o++)if(n=n[s[o]],!i.isPresent(n)&&t)return n;return n},r[n]}},function(e,t){e.exports=h},function(e,t){e.exports=f},function(e,t){e.exports=v},function(e,t){e.exports=y},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(13),a=n(18),d=n(33),c=function(){function e(e,t){var n=this;this.treeView=e,this.cdr=t,this.checkedKeysChange=new o.EventEmitter,this.subscriptions=new a.Subscription(function(){}),this.checkActions={multiple:function(e){return n.checkMultiple(e)},single:function(e){return n.checkSingle(e)}},this._checkedKeys=[],this.resolvedPromise=Promise.resolve(null),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})).subscribe(function(e){n.resolvedPromise.then(function(){n.addChildrenKeys(e),n.cdr.detectChanges()})})),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(!s.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?this.checkedKeys.indexOf(this.itemKey({dataItem:e,index:t}))>-1?"checked":"none":this.isIndexChecked(t)},e.prototype.isIndexChecked=function(e){var t,n=this.checkedKeys.filter(function(t){return t.indexOf&&0===t.indexOf(e)});if(t=e,n.filter(function(e){return e===t}).length>0)return"checked";var i=this.options,o=i.mode,r=i.checkParents;return"multiple"===o&&r&&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,o=this.checkActions[i]||s.noop;n&&o(e)},e.prototype.checkSingle=function(e){var t=this.itemKey(e.item);this.checkedKeys=this.checkedKeys[0]!==t?[t]:[],this.notify()},e.prototype.checkMultiple=function(e){this.checkNode(e),this.options.checkParents&&this.checkParents(e.parent),this.notify()},e.prototype.checkNode=function(e,t){var n=this,i=this.itemKey(e.item),o=this.checkedKeys.indexOf(i),r=o>-1,a=void 0===t?!r:t;!s.isPresent(i)||r&&t||(r?this.checkedKeys.splice(o,1):this.checkedKeys.push(i),this.options.checkChildren&&e.children.map(function(e){return n.checkNode(e,a)}))},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):i>-1&&this.checkedKeys.splice(i,1),t=t.parent}},e.prototype.allChildrenSelected=function(e){var t=this;return e.reduce(function(e,n){return e&&"checked"===t.isItemChecked(n.dataItem,n.index)},!0)},e.prototype.notify=function(){this.checkedKeysChange.emit(this.checkedKeys.slice())},e.prototype.addChildrenKeys=function(e){var t=this;if(-1!==this.checkedKeys.indexOf(this.itemKey(e.item))){var n=e.children.reduce(function(e,n){var i=t.itemKey(n);return t.checkedKeys.find(function(e){return i===e})||e.push(i),e},[]);n.length&&(this.checkedKeys=this.checkedKeys.concat(n),this.notify())}},i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([o.Input("checkBy"),i.__metadata("design:type",Object)],e.prototype,"checkKey",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"checkedKeys",null),i.__decorate([o.Input("kendoTreeViewCheckable"),i.__metadata("design:type",Object)],e.prototype,"checkable",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"checkedKeysChange",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewCheckable]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent,o.ChangeDetectorRef])],e)}();t.CheckDirective=c},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=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 n.disabledKeys.indexOf(n.itemKey({dataItem:e,index:t}))>-1}}return Object.defineProperty(e.prototype,"isDisabled",{set:function(e){this.treeView.isDisabled=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){void 0===e&&(e={});var t=e.disabledKeys;t&&!t.firstChange&&this.cdr.markForCheck()},e.prototype.itemKey=function(e){return this.disableKey?"string"==typeof this.disableKey?e.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(e):void 0:e.index},i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isDisabled",null),i.__decorate([o.Input("kendoTreeViewDisable"),i.__metadata("design:type",Object)],e.prototype,"disableKey",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"disabledKeys",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewDisable]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent,o.ChangeDetectorRef])],e)}();t.DisableDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(18),a=n(36),d=n(37),c=function(){function e(e){var t=this;this.treeView=e,this.expandedKeysChange=new o.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,n){return t.expandedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}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,o=this.itemKey({index:t,dataItem:n}),r=this.expandedKeys.indexOf(o),s=!1;r>-1&&!i?(this.expandedKeys.splice(r,1),s=!0):-1===r&&i&&(this.expandedKeys.push(o),s=!0),s&&this.expandedKeysChange.emit(this.expandedKeys)},i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([o.Input("expandBy"),i.__metadata("design:type",Object)],e.prototype,"expandKey",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"expandedKeysChange",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"expandedKeys",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewExpandable]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent])],e)}();t.ExpandDirective=c},function(e,t){e.exports=d},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(13),a=n(18),d=function(){function e(e){var t=this;this.treeView=e,this.selectedKeysChange=new o.EventEmitter,this.subscriptions=new a.Subscription(function(){}),this.selectActions={multiple:function(e){return t.selectMultiple(e)},single:function(e){return t.selectSingle(e)}},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,n){return t.selectedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}return Object.defineProperty(e.prototype,"isSelected",{set:function(e){this.treeView.isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{get:function(){return this._selectedKeys},set:function(e){this._selectedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={enabled:!0,mode:"single"};if(!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,o=this.selectActions[i]||s.noop;n&&o(e)},e.prototype.selectSingle=function(e){var t=this.itemKey(e);this.selectedKeys[0]!==t&&(this.selectedKeys=[t],this.notify())},e.prototype.selectMultiple=function(e){var t=this.itemKey(e),n=this.selectedKeys.indexOf(t),i=n>-1;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([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([o.Input("selectBy"),i.__metadata("design:type",Object)],e.prototype,"selectKey",void 0),i.__decorate([o.Input("kendoTreeViewSelectable"),i.__metadata("design:type",Object)],e.prototype,"selection",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectedKeysChange",void 0),i.__decorate([o.HostBinding("attr.aria-multiselectable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getAriaMultiselectable",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewSelectable]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent])],e)}();t.SelectDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(26),a=n(13),d=n(21),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 e=this;a.isPresent(this.childrenField)&&(this.treeView.children=function(t){return d.of(s.getter(e.childrenField,!0)(t))},this.treeView.hasChildren=function(t){return t&&Boolean(t[e.childrenField])})},i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"childrenField",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewHierarchyBinding]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent])],e)}();t.HierarchyBindingDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(7),s=n(9),a=n(21),d=n(41),c=n(33),p=n(42),u=n(43),l=n(30),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 e=this,t=this.loadingService.changes.pipe(c.filter(function(t){return t===e.index}));this.subscription=this.expandService.changes.pipe(c.filter(function(t){return t.index===e.index}),l.tap(function(t){!t.expand&&e.loading&&(e.loading=!1)}),c.filter(function(e){return e.expand}),p.switchMap(function(e){return a.of(e).pipe(d.delay(100),u.takeUntil(t))})).subscribe(function(){return e.loading=!0}),this.subscription.add(t.subscribe(function(){return e.loading=!1}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},i.__decorate([o.HostBinding("class.k-i-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"loading",null),i.__decorate([o.Input("kendoTreeViewLoading"),i.__metadata("design:type",String)],e.prototype,"index",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewLoading]"}),i.__metadata("design:paramtypes",[r.ExpandStateService,s.LoadingNotificationService,o.ChangeDetectorRef])],e)}();t.LoadingIndicatorDirective=h},function(e,t){e.exports=m},function(e,t){e.exports=_},function(e,t){e.exports=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(1),s=n(26),a=n(13),d=n(45),c=n(21),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 e=this;if(a.isPresent(this.parentIdField)&&a.isPresent(this.idField)){var t=function(t){return n=s.getter(e.parentIdField,!0),i=e.originalData||[],o=s.getter(e.idField,!0)(t),i.filter(function(e){return n(e)===o});var n,i,o};this.treeView.hasChildren=function(e){return t(e).length>0},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([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"parentIdField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"idField",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewFlatDataBinding]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent])],e)}();t.FlatDataBindingDirective=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight(function(e,t){return t(e)},t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(11),s=n(15),a=n(5),d=n(7),c=n(8),p=n(16),u=n(13),l=n(33),h=function(e,t){return{dataItem:t,index:e}},f=function(){function e(e,t,n,i,o,r,s,a){this.element=e,this.focusService=t,this.expandService=n,this.navigationService=i,this.selectionService=o,this.lookupService=r,this.renderer=s,this.ib=a,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 h(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?h(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.initEvents(),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.subscriptions=this.subscriptions.reduce(function(e,t){return t.unsubscribe(),e},[])},e.prototype.subscribe=function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe(function(){e.updateTabIndex(),e.focusItem()}),this.navigationService.expands.pipe(l.filter(function(t){return t.index===e.index&&!e.isDisabled})).subscribe(function(t){var n=t.expand;return e.expand(n)})]},e.prototype.initEvents=function(){var e=this;["focusin","focusout","focus","blur"].forEach(function(t){e.subscriptions.push(e.listen(t,function(){return e.focusService[t](e.index)}))})},e.prototype.listen=function(e,t){return{unsubscribe:this.renderer.listen(this.element.nativeElement,e,t)}},e.prototype.registerNavigationItem=function(){this.isDisabled||(this.navigationService.registerItem(this.index),this.activateItem())},e.prototype.activateItem=function(){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.isDisabled&&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,o=e.parentIndex;if((!n||!n.firstChange||this.lookupService.hasItem(this.index))&&(t||n||i||o)){var r=(n||{}).previousValue||this.index;this.lookupService.replaceItem(r,this.treeItem,this.parentTreeItem)}},e.prototype.moveNavigationItem=function(e){void 0===e&&(e={});var t=e.currentValue,n=e.firstChange,i=e.previousValue;!n&&u.isPresent(t)&&u.isPresent(i)&&(this.navigationService.unregisterItem(i),this.navigationService.registerItem(t))},e.prototype.disableNavigationItem=function(e){if(e&&!e.firstChange){var t=this.navigationService;this.isDisabled?(t.activateClosest(this.index),t.unregisterItem(this.index)):(t.registerItem(this.index),t.activateFocusable())}},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([o.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"isChecked",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isExpanded",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewItem]"}),i.__metadata("design:paramtypes",[o.ElementRef,a.FocusStateService,d.ExpandStateService,r.NavigationService,s.SelectionService,p.TreeViewLookupService,o.Renderer2,c.IndexBuilderService])],e)}();t.TreeViewItemDirective=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(11),s=n(15),a=n(18),d=n(33),c=function(){function e(e,t,n,i){var o=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===o.index})).subscribe(function(e){return o.selectionService.select(e,o.dataItem)})),this.subscriptions.add(this.selectionService.changes.subscribe(function(){o.updateSelection(o.isSelected(o.dataItem,o.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([o.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"initialSelection",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewItemContent]"}),i.__metadata("design:paramtypes",[o.ElementRef,r.NavigationService,s.SelectionService,o.Renderer2])],e)}();t.TreeViewItemContentDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=[n(49).CheckBoxComponent],s=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r],exports:[r]})],e)}();t.CheckBoxModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(13),s=function(){function e(e,t){this.element=e,this.renderer=t,this.id="_"+r.guid(),this.checkState="none",this.tabindex=0,this.checkStateChange=new o.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([o.HostBinding("class.k-checkbox-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"classWrapper",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"checkState",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"labelText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"checkStateChange",void 0),e=i.__decorate([o.Component({selector:"kendo-checkbox",template:'\n <input\n class="k-checkbox"\n type="checkbox"\n [id]="id"\n [checked]="checked"\n [indeterminate]="indeterminate"\n [tabindex]="tabindex"\n (change)="handleChange($event)"\n />\n <label\n class="k-checkbox-label"\n tabindex="-1"\n [for]="id"\n >{{labelText}}</label>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2])],e)}();t.CheckBoxComponent=s}])}}}); |
@@ -6,8 +6,8 @@ { | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
"version": "2.1.2", | ||
"main": "dist/npm/main.js", | ||
"module": "dist/es/main.js", | ||
"jsnext:main": "dist/es/main.js", | ||
"es2015": "dist/es2015/main.js", | ||
"typings": "dist/npm/main.d.ts", | ||
"version": "2.1.3-dev.201802271235", | ||
"main": "dist/npm/index.js", | ||
"module": "dist/es/index.js", | ||
"jsnext:main": "dist/es/index.js", | ||
"es2015": "dist/es2015/index.js", | ||
"typings": "dist/es2015/index.d.ts", | ||
"jsdelivr": "dist/cdn/js/kendo-angular-treeview.js", | ||
@@ -14,0 +14,0 @@ "unpkg": "dist/cdn/js/kendo-angular-treeview.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
490760
171
9260
3