@progress/kendo-angular-layout
Advanced tools
Comparing version 1.0.9-dev.201711071258 to 1.0.9
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-angular-layout",["tslib","@angular/core","@progress/kendo-angular-l10n","@angular/animations","@angular/common","rxjs/Subject"],function(e){function t(e){return e.__useDefault?e.default:e}var n,a,i,o,r,s;return{setters:[function(e){n=t(e)},function(e){a=t(e)},function(e){i=t(e)},function(e){o=t(e)},function(e){r=t(e)},function(e){s=t(e)}],execute:function(){!function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={exports:{},id:a,loaded:!1};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};t.m=e,t.c=n,t.p="",t(0)}([function(t,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=a(1);n.PanelBarComponent=i.PanelBarComponent;var o=a(7);n.PanelBarItemComponent=o.PanelBarItemComponent;var r=a(10);n.PanelBarContentDirective=r.PanelBarContentDirective;var s=a(12);n.PanelBarItemTemplateDirective=s.PanelBarItemTemplateDirective;var d=a(11);n.PanelBarItemTitleDirective=d.PanelBarItemTitleDirective;var l=a(6);n.PanelBarExpandMode=l.PanelBarExpandMode;var p=a(14);n.TabStripComponent=p.TabStripComponent;var c=a(16);n.TabStripTabComponent=c.TabStripTabComponent;var u=a(17);n.TabContentDirective=u.TabContentDirective;var m=a(18);n.TabTitleDirective=m.TabTitleDirective;var h=a(19);n.SelectEvent=h.SelectEvent;var f=a(20);n.LayoutModule=f.LayoutModule;var y=a(21);n.PanelBarModule=y.PanelBarModule;var _=a(23);n.TabStripModule=_.TabStripModule,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 a=n(2),i=n(3),o=n(4),r=n(5),s=n(6),d=n(7),l=n(8),p=n(12),c=n(13),u=function(){function e(e,t,n){var a=this;this.expandMode=s.PanelBarExpandMode.Default,this.selectable=!0,this.animate=!0,this.height="400px",this.keepItemContent=!1,this.stateChange=new i.EventEmitter,this.tabIndex=0,this.role="tree",this.activeDescendant="",this.isViewInit=!0,this.focused=!1,this.updateChildrenHeight=function(){var e=0,t=a.elementRef.nativeElement.offsetHeight,n=a.expandMode===s.PanelBarExpandMode.Full?"auto":"visible";a.childrenItems.forEach(function(t){e+=t.headerHeight()}),a.childrenItems.forEach(function(i){i.contentHeight=s.PanelBarExpandMode.Full===a.expandMode?t-e+"px":"auto",i.contentOverflow=n})},this.updateAllItems=function(){a.allItems.forEach(function(e){e.keepContent=a.keepItemContent})},this.updateAnimate=function(){a.allItems.forEach(function(e){"activeWithoutAnimation"===e.state&&(e.state="active")})},this.direction=n?"rtl":"ltr",this.keyBindings=this.computedKeys,this.elementRef=e,this.eventService=t,this.eventService.children$.subscribe(function(e){return a.onItemAction(e)})}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},set:function(e){e&&(this._items=c.default.parsePanelBarItems(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostHeight",{get:function(){return this.expandMode===s.PanelBarExpandMode.Full?this.height:"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflow",{get:function(){return this.expandMode===s.PanelBarExpandMode.Full?"hidden":"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.invertKeys=function(e,t){return"rtl"===this.direction?t:e},Object.defineProperty(e.prototype,"computedKeys",{get:function(){var e=this;return t={},t[r.Keys.space]=function(){return e.selectFocusedItem()},t[r.Keys.enter]=function(){return e.selectFocusedItem()},t[r.Keys.up]=function(){return e.focusPreviousItem()},t[this.invertKeys(r.Keys.left,r.Keys.right)]=function(){return e.collapseItem()},t[r.Keys.down]=function(){return e.focusNextItem()},t[this.invertKeys(r.Keys.right,r.Keys.left)]=function(){return e.expandItem()},t[r.Keys.end]=function(){return e.focusLastItem()},t[r.Keys.home]=function(){return e.focusFirstItem()},t;var t},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewChecked=function(){var e=this;this.items?(this.childrenItems=this.viewChildItems.toArray(),this.allItems=this.viewItems):(this.childrenItems=this.contentChildItems.toArray(),this.allItems=this.contentItems.toArray()),this.isViewInit&&this.childrenItems.length&&(this.isViewInit=!1,setTimeout(function(){e.updateChildrenHeight(),e.updateAllItems()})),this.validateConfiguration()},e.prototype.ngOnChanges=function(e){(e.height||e.expandMode||e.items)&&this.childrenItems&&setTimeout(this.updateChildrenHeight),e.keepItemContent&&setTimeout(this.updateAllItems)},Object.defineProperty(e.prototype,"templateRef",{get:function(){return this.template?this.template.templateRef:void 0},enumerable:!0,configurable:!0}),e.prototype.onComponentClick=function(e){var t=this.visibleItems().some(function(t){return t.header.nativeElement.contains(e.target)});!this.focused&&t&&this.elementRef.nativeElement.focus()},e.prototype.onComponentFocus=function(){if(this.eventService.onFocus(),this.focused=!0,this.allItems.length>0){var e=this.visibleItems();!e.filter(function(e){return e.focused}).length&&e.length>0&&(e[0].focused=!0,this.activeDescendant=e[0].itemId)}this.animate&&this.updateAnimate()},e.prototype.onComponentBlur=function(){this.eventService.onBlur(),this.focused=!1,this.activeDescendant=""},e.prototype.onComponentKeyDown=function(e){if(e.target===this.elementRef.nativeElement){e.keyCode!==r.Keys.space&&e.keyCode!==r.Keys.up&&e.keyCode!==r.Keys.down&&e.keyCode!==r.Keys.left&&e.keyCode!==r.Keys.right&&e.keyCode!==r.Keys.home&&e.keyCode!==r.Keys.end&&e.keyCode!==r.Keys["page up"]&&e.keyCode!==r.Keys["page down"]||e.preventDefault();var t=this.keyBindings[e.keyCode];t&&t()}},Object.defineProperty(e.prototype,"viewItems",{get:function(){var e=[];return this.viewChildItems.toArray().forEach(function(t){e.push(t),e=e.concat(t.subTreeViewItems())}),e},enumerable:!0,configurable:!0}),e.prototype.validateConfiguration=function(){if(i.isDevMode()&&this.items&&this.contentItems&&this.contentItems.length>0)throw new Error("Invalid configuration: mixed template components and items property.")},e.prototype.onItemAction=function(e){var t=this;if(e){var n=new Array;if(this.allItems.forEach(function(a){var i=a===e,o=i;i=t.selectable?i:a.selected,a.selected===i&&a.focused===o||(a.selected=i,a.focused=o,t.activeDescendant=o?a.itemId:"",n.push(a))}),this.expandMode===s.PanelBarExpandMode.Multiple)(e.hasChildItems||e.hasContent)&&(e.animate=this.animate,e.expanded=!e.expanded),n.indexOf(e)<0&&n.push(e);else{var a=e.parent?e.parent.childrenItems:this.childrenItems;(e.hasChildItems||e.hasContent)&&a.forEach(function(a){var i=a===e;a.expanded!==i&&(a.animate=t.animate,a.expanded=i,n.indexOf(a)<0&&n.push(a))})}n.length>0&&this.stateChange.emit(n.map(function(e){return e.serialize()}))}},Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.isVisible=function(e){return this.visibleItems().some(function(t){return t===e})},e.prototype.getVisibleParent=function(e){var t=this.visibleItems();return e.parent?t.some(function(t){return t===e.parent})?e.parent:this.getVisibleParent(e.parent):e},e.prototype.focusItem=function(e){var t,n=this.visibleItems(),a=n.findIndex(function(e){return e.focused}),i=n[a];if(-1===a){var o=this.allItems.find(function(e){return e.focused});o.focused=!1,i=this.getVisibleParent(o),a=n.findIndex(function(e){return e===i})}switch(e){case"lastItem":t=n[n.length-1];break;case"firstItem":t=n[0];break;case"nextItem":t=n[a<n.length-1?a+1:0];break;case"previousItem":t=n[a>0?a-1:n.length-1]}i&&t&&i!==t&&this.moveFocus(i,t)},e.prototype.moveFocus=function(e,t){e.focused=!1,t.focused=!0,this.activeDescendant=t.itemId;var n=new Array(e.serialize(),t.serialize());this.stateChange.emit(n)},e.prototype.focusLastItem=function(){this.focusItem("lastItem")},e.prototype.focusFirstItem=function(){this.focusItem("firstItem")},e.prototype.focusNextItem=function(){this.focusItem("nextItem")},e.prototype.focusPreviousItem=function(){this.focusItem("previousItem")},e.prototype.expandItem=function(){var e=this.allItems.filter(function(e){return e.focused})[0];if(this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e.hasChildItems||e.hasContent)if(e.expanded){if(e.hasChildItems){var t=e.childrenItems.findIndex(function(e){return!e.disabled});t>-1&&this.moveFocus(e,e.childrenItems[t])}}else this.onItemAction(e)},e.prototype.collapseItem=function(){var e=this.allItems.filter(function(e){return e.focused})[0];e.expanded?this.onItemAction(e):e.parent&&this.moveFocus(e,e.parent)},e.prototype.selectFocusedItem=function(){var e=this.allItems.filter(function(e){return e.focused})[0];this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e&&e.onItemAction()},e.prototype.visibleItems=function(){return this.flatVisibleItems(this.childrenItems)},e.prototype.flatVisibleItems=function(e,t){var n=this;return void 0===e&&(e=new Array),void 0===t&&(t=new Array),e.forEach(function(e){e.disabled||(t.push(e),e.expanded&&e.hasChildItems&&n.flatVisibleItems(e.childrenItems,t))}),t},a.__decorate([i.Input(),a.__metadata("design:type",Number)],e.prototype,"expandMode",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"animate",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Object)],e.prototype,"height",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"keepItemContent",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],e.prototype,"items",null),a.__decorate([i.Output(),a.__metadata("design:type",i.EventEmitter)],e.prototype,"stateChange",void 0),a.__decorate([i.HostBinding("attr.tabIndex"),a.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),a.__decorate([i.HostBinding("attr.role"),a.__metadata("design:type",String)],e.prototype,"role",void 0),a.__decorate([i.HostBinding("attr.aria-activedescendant"),a.__metadata("design:type",String)],e.prototype,"activeDescendant",void 0),a.__decorate([i.HostBinding("style.height"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],e.prototype,"hostHeight",null),a.__decorate([i.HostBinding("style.overflow"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],e.prototype,"overflow",null),a.__decorate([i.HostBinding("attr.dir"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],e.prototype,"dir",null),a.__decorate([i.ContentChild(p.PanelBarItemTemplateDirective),a.__metadata("design:type",p.PanelBarItemTemplateDirective)],e.prototype,"template",void 0),a.__decorate([i.ContentChildren(d.PanelBarItemComponent,{descendants:!0}),a.__metadata("design:type",i.QueryList)],e.prototype,"contentItems",void 0),a.__decorate([i.ContentChildren(d.PanelBarItemComponent),a.__metadata("design:type",i.QueryList)],e.prototype,"contentChildItems",void 0),a.__decorate([i.ViewChildren(d.PanelBarItemComponent),a.__metadata("design:type",i.QueryList)],e.prototype,"viewChildItems",void 0),a.__decorate([i.HostListener("click",["$event"]),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],e.prototype,"onComponentClick",null),a.__decorate([i.HostListener("focus"),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"onComponentFocus",null),a.__decorate([i.HostListener("blur"),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"onComponentBlur",null),a.__decorate([i.HostListener("keydown",["$event"]),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],e.prototype,"onComponentKeyDown",null),a.__decorate([i.HostBinding("class.k-widget"),i.HostBinding("class.k-panelbar"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"hostClasses",null),e=a.__decorate([i.Component({exportAs:"kendoPanelbar",providers:[l.PanelBarService],selector:"kendo-panelbar",template:'\n <ng-content *ngIf="contentChildItems && !items" select="kendo-panelbar-item"></ng-content>\n <ng-template [ngIf]="items?.length">\n <kendo-panelbar-item\n *ngFor="let item of items"\n [title]="item.title"\n [id]="item.id"\n [icon]="item.icon"\n [iconClass]="item.iconClass"\n [imageUrl]="item.imageUrl"\n [selected]="!!item.selected"\n [expanded]="!!item.expanded"\n [disabled]="!!item.disabled"\n [template]="templateRef"\n [items]="item.children"\n [content]="item.content"\n >\n </kendo-panelbar-item>\n </ng-template>\n '}),a.__param(2,i.Optional()),a.__param(2,i.Inject(o.RTL)),a.__metadata("design:paramtypes",[i.ElementRef,l.PanelBarService,Boolean])],e)}();t.PanelBarComponent=u},function(e,t){e.exports=n},function(e,t){e.exports=a},function(e,t){e.exports=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.backspace=8]="backspace",e[e.tab=9]="tab",e[e.enter=13]="enter",e[e.shift=16]="shift",e[e.ctrl=17]="ctrl",e[e.alt=18]="alt",e[e["pause/break"]=19]="pause/break",e[e["caps lock"]=20]="caps lock",e[e.esc=27]="esc",e[e.space=32]="space",e[e["page up"]=33]="page up",e[e["page down"]=34]="page down",e[e.end=35]="end",e[e.home=36]="home",e[e.left=37]="left",e[e.up=38]="up",e[e.right=39]="right",e[e.down=40]="down",e[e.insert=45]="insert",e[e.delete=46]="delete",e[e.command=91]="command",e[e["left command"]=91]="left command",e[e["right command"]=93]="right command",e[e["numpad *"]=106]="numpad *",e[e["numpad +"]=107]="numpad +",e[e["numpad -"]=109]="numpad -",e[e["numpad ."]=110]="numpad .",e[e["numpad /"]=111]="numpad /",e[e["num lock"]=144]="num lock",e[e["scroll lock"]=145]="scroll lock",e[e["my computer"]=182]="my computer",e[e["my calculator"]=183]="my calculator",e[e[";"]=186]=";",e[e["="]=187]="=",e[e[","]=188]=",",e[e["-"]=189]="-",e[e["."]=190]=".",e[e["/"]=191]="/",e[e["`"]=192]="`",e[e["["]=219]="[",e[e["\\"]=220]="\\",e[e["]"]=221]="]",e[e["'"]=222]="'"}(t.Keys||(t.Keys={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Single=0]="Single",e[e.Full=1]="Full",e[e.Multiple=2]="Multiple",e[e.Default=2]="Default"}(t.PanelBarExpandMode||(t.PanelBarExpandMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(8),r=n(10),s=n(11),d=0,l=function(){function e(e,t){var n=this;this.title="Untitled",this.id="default-"+d++,this.icon="",this.iconClass="",this.imageUrl="",this.disabled=!1,this.selected=!1,this.keepContent=!1,this.hasChildItems=!1,this.hasContent=!1,this.state="inactive",this.animate=!1,this.role="treeitem",this.titleAttribute=null,this.focused=!1,this.wrapperFocused=!1,this._expanded=!1,this.eventService=t,this.eventService.parent$.subscribe(function(e){return n.onWrapperFocusChange(e)}),this.wrapperFocused=!!e&&e.focused,this.parent=e}return t=e,Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},set:function(e){var t=this.animate?"active":"activeWithoutAnimation";this.state=e?t:"inactive",this._expanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"kItemClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"kStateDefaultClass",{get:function(){return!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"kStateDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"kStateExpandedClass",{get:function(){return!this.disabled&&this.expanded&&(this.hasChildItems||this.hasContent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemId",{get:function(){return"k-panelbar-item-"+this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.hasChildItems||this.hasContent?!this.disabled&&this.expanded:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaSelected",{get:function(){return!this.disabled&&this.selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleTemplate",{get:function(){return this.titleTemplates.length>0?this.titleTemplates.toArray()[0].templateRef:void 0},enumerable:!0,configurable:!0}),e.prototype.headerHeight=function(){return this.header.nativeElement.offsetHeight},e.prototype.ngAfterContentChecked=function(){this.hasChildItems=this.contentItems.length>1||this.items&&this.items.length>0,this.hasContent=void 0!==this.contentTemplate&&this.contentTemplate.length>0||void 0!==this.content,this.validateConfiguration()},e.prototype.ngAfterViewChecked=function(){var e=this;this.items?this.childrenItems=this.viewChildItems.toArray():this.childrenItems=this.contentItems.filter(function(t){return t!==e})},e.prototype.onItemAction=function(){this.disabled||this.eventService.onSelect(this)},Object.defineProperty(e.prototype,"iconClasses",{get:function(){return e={},e[(this.icon?"k-i-"+this.icon:null)||this.iconClass]=!0,e;var e},enumerable:!0,configurable:!0}),e.prototype.serialize=function(){return{content:this.content,disabled:this.disabled,expanded:this.expanded,focused:this.focused,icon:this.icon,iconClass:this.iconClass,id:this.id,imageUrl:this.imageUrl,selected:this.selected,title:this.title}},e.prototype.subTreeViewItems=function(){var e=[];return this.viewChildItems.forEach(function(t){(e=e.concat(t.subTreeViewItems())).push(t)}),e},e.prototype.validateConfiguration=function(){if(i.isDevMode()&&this.content&&void 0!==this.contentTemplate&&this.contentTemplate.length>0)throw new Error("Invalid configuration: mixed template components and component property.")},e.prototype.onWrapperFocusChange=function(e){this.wrapperFocused=e},a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"title",void 0),a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"id",void 0),a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"icon",void 0),a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"iconClass",void 0),a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"imageUrl",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[Boolean])],e.prototype,"expanded",null),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"selected",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Object)],e.prototype,"content",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Array)],e.prototype,"items",void 0),a.__decorate([i.Input(),a.__metadata("design:type",i.TemplateRef)],e.prototype,"template",void 0),a.__decorate([i.ViewChild("header",{}),a.__metadata("design:type",i.ElementRef)],e.prototype,"header",void 0),a.__decorate([i.HostBinding("attr.role"),a.__metadata("design:type",String)],e.prototype,"role",void 0),a.__decorate([i.HostBinding("attr.title"),a.__metadata("design:type",String)],e.prototype,"titleAttribute",void 0),a.__decorate([i.HostBinding("class.k-item"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"kItemClass",null),a.__decorate([i.HostBinding("class.k-state-default"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"kStateDefaultClass",null),a.__decorate([i.HostBinding("class.k-state-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"kStateDisabledClass",null),a.__decorate([i.HostBinding("class.k-state-expanded"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"kStateExpandedClass",null),a.__decorate([i.HostBinding("id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],e.prototype,"itemId",null),a.__decorate([i.HostBinding("attr.aria-expanded"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"ariaExpanded",null),a.__decorate([i.HostBinding("attr.aria-selected"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"ariaSelected",null),a.__decorate([i.HostBinding("attr.aria-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),a.__decorate([i.ViewChildren(t),a.__metadata("design:type",i.QueryList)],e.prototype,"viewChildItems",void 0),a.__decorate([i.ContentChildren(t),a.__metadata("design:type",i.QueryList)],e.prototype,"contentItems",void 0),a.__decorate([i.ContentChildren(r.PanelBarContentDirective,{descendants:!1}),a.__metadata("design:type",i.QueryList)],e.prototype,"contentTemplate",void 0),a.__decorate([i.ContentChildren(s.PanelBarItemTitleDirective,{descendants:!1}),a.__metadata("design:type",i.QueryList)],e.prototype,"titleTemplates",void 0),e=t=a.__decorate([i.Component({animations:[i.trigger("toggle",[i.state("inactive",i.style({display:"none",height:"0px"})),i.transition("active => void",[i.animate(200,i.style({display:"block",height:"0px"}))]),i.transition("void => active",[i.style({display:"block",height:"0px"}),i.animate(200,i.style({display:"block",height:i.AUTO_STYLE}))]),i.transition("inactive => active",[i.style({display:"block",height:"0px"}),i.animate(200,i.style({display:"block",height:i.AUTO_STYLE}))]),i.transition("active => inactive",[i.animate(200,i.style({display:"none",height:"0px"}))])])],exportAs:"kendoPanelbarItem",selector:"kendo-panelbar-item",template:'<span\n #header\n [class.k-link]="true"\n [class.k-header]="!parent"\n [class.k-state-selected]="!disabled && selected"\n [class.k-state-focused]="!disabled && focused && wrapperFocused"\n (click)="onItemAction()">\n <span\n *ngIf="icon || iconClass"\n class="k-icon"\n [ngClass]="iconClasses">\n </span>\n <img\n *ngIf="imageUrl"\n class="k-image"\n [src]="imageUrl"\n alt="">\n {{title}}\n <ng-template [ngTemplateOutlet]="titleTemplate"></ng-template>\n <span *ngIf="hasChildItems || hasContent"\n [class.k-icon]="true"\n [class.k-i-arrow-n]="expanded"\n [class.k-panelbar-collapse]="expanded"\n [class.k-i-arrow-s]="!expanded"\n [class.k-panelbar-expand]="!expanded">\n </span>\n </span>\n <div\n *ngIf="keepContent || (!disabled && expanded && (hasChildItems || hasContent))"\n [@toggle]="state"\n [style.overflow]="\'hidden\'"\n [attr.role]="\'group\'"\n [attr.aria-hidden]="!disabled && !expanded">\n <div\n *ngIf="hasChildItems && !items?.length"\n [style.overflow]="contentOverflow"\n [style.height]="contentHeight"\n class="k-panel k-group">\n <ng-content select="kendo-panelbar-item"></ng-content>\n </div>\n <div\n *ngIf="hasContent && !content"\n [style.overflow]="contentOverflow"\n [style.height]="contentHeight"\n class="k-content">\n <ng-template\n [ngTemplateOutlet]="contentTemplate.first.templateRef"\n [ngTemplateOutletContext]="{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }">\n </ng-template>\n </div>\n <div\n *ngIf="items?.length"\n [style.overflow]="contentOverflow"\n [style.height]="contentHeight"\n class="k-panel k-group">\n <kendo-panelbar-item\n *ngFor="let item of items"\n [title]="item.title"\n [id]="item.id"\n [icon]="item.icon"\n [iconClass]="item.iconClass"\n [imageUrl]="item.imageUrl"\n [selected]="!!item.selected"\n [expanded]="!!item.expanded"\n [disabled]="!!item.disabled"\n [template]="template"\n [items]="item.children"\n [content]="item.content">\n </kendo-panelbar-item>\n </div>\n <div\n *ngIf="content"\n [style.overflow]="contentOverflow"\n [style.height]="contentHeight"\n class="k-content">\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{content}}</ng-template>\n </div>\n </div>'}),a.__param(0,i.SkipSelf()),a.__param(0,i.Host()),a.__param(0,i.Optional()),a.__metadata("design:paramtypes",[e,o.PanelBarService])],e);var t}();t.PanelBarItemComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(9),r=function(){function e(){this.parentSource=new o.Subject,this.childSource=new o.Subject,this.parent$=this.parentSource.asObservable(),this.children$=this.childSource.asObservable()}return e.prototype.onSelect=function(e){this.childSource.next(e)},e.prototype.onFocus=function(){this.parentSource.next(!0)},e.prototype.onBlur=function(){this.parentSource.next(!1)},e=a.__decorate([i.Injectable(),a.__metadata("design:paramtypes",[])],e)}();t.PanelBarService=r},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=function(){function e(e){this.templateRef=e}return e=a.__decorate([i.Directive({selector:"[kendoPanelBarContent]"}),a.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PanelBarContentDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=function(){function e(e){this.templateRef=e}return e=a.__decorate([i.Directive({selector:"[kendoPanelBarItemTitle]"}),a.__param(0,i.Optional()),a.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PanelBarItemTitleDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=function(){function e(e){this.templateRef=e}return e=a.__decorate([i.Directive({selector:"[kendoPanelBarItemTemplate]"}),a.__param(0,i.Optional()),a.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PanelBarItemTemplateDirective=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=0,a=function(e){return e.map(function(e){return e.id||(e.id="default-"+n++),e.children&&(e.children=a(e.children)),e})};t.default={parsePanelBarItems:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(15),r=n(4),s=n(16),d=n(5),l=n(19),p=function(){function e(e,t,n){this.renderer=t,this.wrapper=n,this.animate=!0,this.keepTabContent=!1,this.tabSelect=new i.EventEmitter,this._animate=!1,this.direction=e?"rtl":"ltr",this.keyBindings=this.computedKeys}return Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e,this.renderer.setStyle(this.wrapper.nativeElement,"height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.contentClass=function(e){return!this.keepTabContent||e?"k-content k-state-active":"k-content"},Object.defineProperty(e.prototype,"computedKeys",{get:function(){var e=this;return t={},t[this.invertKeys(d.Keys.left,d.Keys.right)]=function(t){return e.prevNavigatableIndex(t)},t[this.invertKeys(d.Keys.right,d.Keys.left)]=function(t){return e.nextNavigatableIndex(t)},t[this.invertKeys(d.Keys.down,d.Keys.up)]=function(t){return e.nextNavigatableIndex(t)},t[this.invertKeys(d.Keys.up,d.Keys.down)]=function(t){return e.prevNavigatableIndex(t)},t[d.Keys.home]=function(){return e.firstNavigatableIndex()},t[d.Keys.end]=function(){return e.lastNavigatableIndex()},t;var t},enumerable:!0,configurable:!0}),e.prototype.invertKeys=function(e,t){return"rtl"===this.direction?t:e},e.prototype.onKeyDown=function(e){var t=this.tabs.toArray().findIndex(function(e){return e.active&&!e.disabled});if(e.currentTarget===this.tablist.nativeElement)if(e.keyCode!==d.Keys.space&&e.keyCode!==d.Keys.up&&e.keyCode!==d.Keys.down&&e.keyCode!==d.Keys.left&&e.keyCode!==d.Keys.right&&e.keyCode!==d.Keys.home&&e.keyCode!==d.Keys.end&&e.keyCode!==d.Keys["page up"]&&e.keyCode!==d.Keys["page down"]||e.preventDefault(),-1===t)this.selectTab(this.firstNavigatableIndex());else{var n=this.keyBindings[e.keyCode];if(n){t!==n(t)&&this.selectTab(n(t))}}},e.prototype.tabPanelId=function(e){return"k-tabstrip-tabpanel-"+e},e.prototype.tabId=function(e){return"k-tabstrip-tab-"+e},e.prototype.selectTab=function(e){var t=this.tabs.toArray()[e];t&&!t.disabled&&this.emitEvent(t,e)},e.prototype.firstNavigatableIndex=function(){for(var e=this.tabs.toArray(),t=0;t<e.length;t++)if(!e[t].disabled)return t},e.prototype.lastNavigatableIndex=function(){for(var e=this.tabs.toArray(),t=e.length-1;t>0;t--)if(!e[t].disabled)return t},e.prototype.prevNavigatableIndex=function(e){if(e-1<0)return this.lastNavigatableIndex();for(var t=this.tabs.toArray(),n=e-1;n>-1;n--){if(!t[n].disabled)return n;if(0===n)return this.lastNavigatableIndex()}return e},e.prototype.nextNavigatableIndex=function(e){if(e+1>=this.tabs.length)return this.firstNavigatableIndex();for(var t=this.tabs.toArray(),n=e+1;n<t.length;n++){if(!t[n].disabled)return n;if(n+1===t.length)return this.firstNavigatableIndex()}},e.prototype.emitEvent=function(e,t){var n=new l.SelectEvent(t,e.title);this.tabSelect.emit(n),n.isDefaultPrevented()||(this._animate=this.animate,this.deactivateAll(),e.active=!0)},e.prototype.deactivateAll=function(){this.tabs.forEach(function(e){e.active=!1})},a.__decorate([i.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],e.prototype,"height",null),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"animate",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"keepTabContent",void 0),a.__decorate([i.ViewChild("tablist"),a.__metadata("design:type",i.ElementRef)],e.prototype,"tablist",void 0),a.__decorate([i.Output(),a.__metadata("design:type",i.EventEmitter)],e.prototype,"tabSelect",void 0),a.__decorate([i.HostBinding("class.k-widget"),i.HostBinding("class.k-tabstrip"),i.HostBinding("class.k-floatwrap"),i.HostBinding("class.k-tabstrip-top"),i.HostBinding("class.k-header"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"hostClasses",null),a.__decorate([i.HostBinding("attr.dir"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],e.prototype,"dir",null),a.__decorate([i.ContentChildren(s.TabStripTabComponent),a.__metadata("design:type",i.QueryList)],e.prototype,"tabs",void 0),e=a.__decorate([i.Component({animations:[o.trigger("state",[o.state("active",o.style({opacity:1})),o.transition("* => active",[o.style({opacity:0}),o.animate("400ms ease-in")])])],exportAs:"kendoTabStrip",selector:"kendo-tabstrip",template:'\n <ul\n class="k-reset k-tabstrip-items"\n role="tablist"\n (keydown)="onKeyDown($event)"\n [tabIndex]="0"\n #tablist\n >\n <li *ngFor="let tab of tabs; let i = index;" (click)="selectTab(i)"\n role="tab"\n [id]="tabId(i)"\n [class.k-item]="true"\n [class.k-state-default]="true"\n [class.k-state-active]="tab.active"\n [class.k-state-disabled]="tab.disabled"\n [attr.aria-selected]="tab.active"\n [attr.aria-controls]="tab.tabPanelId"\n [attr.aria-disabled]="tab.disabled"\n ><span class="k-link">{{ tab.title }}<ng-template [ngTemplateOutlet]="tab.tabTitle?.templateRef"></ng-template></span></li>\n </ul>\n <ng-template ngFor let-tab [ngForOf]="tabs" let-i="index">\n <div\n [@state]="tab.active && _animate ? \'active\' : \'inactive\'"\n *ngIf="tab.active || keepTabContent"\n [ngClass]="contentClass(tab.active)"\n role="tabpanel"\n [id]="tabPanelId(i)"\n [attr.aria-hidden]="!tab.active"\n [attr.aria-expanded]="tab.active"\n [attr.aria-labelledby]="tabId(i)"\n [attr.aria-disabled]="tab.disabled"\n >\n <ng-template [ngTemplateOutlet]="tab.tabContent?.templateRef"></ng-template>\n </div>\n </ng-template>\n '}),a.__param(0,i.Optional()),a.__param(0,i.Inject(r.RTL)),a.__metadata("design:paramtypes",[Boolean,i.Renderer2,i.ElementRef])],e)}();t.TabStripComponent=p},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(17),r=n(18),s=function(){function e(){this.active=!1,this._tabContent=new i.QueryList}return Object.defineProperty(e.prototype,"tabContent",{get:function(){return this._tabContent.first},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.active=this.selected},e.prototype.ngOnChanges=function(e){e.selected&&!e.selected.isFirstChange()&&(this.active=this.selected)},a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"title",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"selected",void 0),a.__decorate([i.ContentChildren(o.TabContentDirective),a.__metadata("design:type",i.QueryList)],e.prototype,"_tabContent",void 0),a.__decorate([i.ContentChild(r.TabTitleDirective),a.__metadata("design:type",r.TabTitleDirective)],e.prototype,"tabTitle",void 0),e=a.__decorate([i.Component({exportAs:"kendoTabStripTab",selector:"kendo-tabstrip-tab",template:""})],e)}();t.TabStripTabComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=function(){function e(e){this.templateRef=e}return e=a.__decorate([i.Directive({selector:"[kendoTabContent]"}),a.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.TabContentDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=function(){function e(e){this.templateRef=e}return e=a.__decorate([i.Directive({selector:"[kendoTabTitle]"}),a.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.TabTitleDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i;var o=function(e){function t(t,n){var a=e.call(this)||this;return a.index=t,a.title=n,a}return a.__extends(t,e),t}(i);t.SelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(21),r=n(23),s=function(){function e(){}return e=a.__decorate([i.NgModule({exports:[o.PanelBarModule,r.TabStripModule]})],e)}();t.LayoutModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(22),r=n(1),s=n(7),d=n(10),l=n(12),p=n(11),c=[r.PanelBarComponent,s.PanelBarItemComponent,d.PanelBarContentDirective,l.PanelBarItemTemplateDirective,p.PanelBarItemTitleDirective],u=c.slice(),m=function(){function e(){}return e=a.__decorate([i.NgModule({declarations:[u],exports:[c],imports:[o.CommonModule]})],e)}();t.PanelBarModule=m},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(22),r=n(14),s=n(16),d=n(17),l=n(18),p=[r.TabStripComponent,s.TabStripTabComponent,d.TabContentDirective,l.TabTitleDirective],c=p.slice(),u=function(){function e(){}return e=a.__decorate([i.NgModule({declarations:[c],exports:[p],imports:[o.CommonModule]})],e)}();t.TabStripModule=u}])}}}); | ||
System.register("@progress/kendo-angular-layout",["tslib","@progress/kendo-angular-l10n","@angular/core","@angular/animations","@angular/common","rxjs/Subject"],function(e){function t(e){return e.__useDefault?e.default:e}var n,a,i,o,r,s;return{setters:[function(e){n=t(e)},function(e){a=t(e)},function(e){i=t(e)},function(e){o=t(e)},function(e){r=t(e)},function(e){s=t(e)}],execute:function(){!function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={exports:{},id:a,loaded:!1};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};t.m=e,t.c=n,t.p="",t(0)}([function(t,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=a(1);n.PanelBarComponent=i.PanelBarComponent;var o=a(7);n.PanelBarItemComponent=o.PanelBarItemComponent;var r=a(10);n.PanelBarContentDirective=r.PanelBarContentDirective;var s=a(12);n.PanelBarItemTemplateDirective=s.PanelBarItemTemplateDirective;var d=a(11);n.PanelBarItemTitleDirective=d.PanelBarItemTitleDirective;var l=a(6);n.PanelBarExpandMode=l.PanelBarExpandMode;var p=a(14);n.TabStripComponent=p.TabStripComponent;var c=a(16);n.TabStripTabComponent=c.TabStripTabComponent;var u=a(17);n.TabContentDirective=u.TabContentDirective;var m=a(18);n.TabTitleDirective=m.TabTitleDirective;var h=a(19);n.SelectEvent=h.SelectEvent;var f=a(20);n.LayoutModule=f.LayoutModule;var y=a(21);n.PanelBarModule=y.PanelBarModule;var _=a(23);n.TabStripModule=_.TabStripModule,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 a=n(2),i=n(3),o=n(4),r=n(5),s=n(6),d=n(7),l=n(8),p=n(12),c=n(13),u=function(){function e(e,t,n){var a=this;this.expandMode=s.PanelBarExpandMode.Default,this.selectable=!0,this.animate=!0,this.height="400px",this.keepItemContent=!1,this.stateChange=new i.EventEmitter,this.tabIndex=0,this.role="tree",this.activeDescendant="",this.isViewInit=!0,this.focused=!1,this.updateChildrenHeight=function(){var e=0,t=a.elementRef.nativeElement.offsetHeight,n=a.expandMode===s.PanelBarExpandMode.Full?"auto":"visible";a.childrenItems.forEach(function(t){e+=t.headerHeight()}),a.childrenItems.forEach(function(i){i.contentHeight=s.PanelBarExpandMode.Full===a.expandMode?t-e+"px":"auto",i.contentOverflow=n})},this.updateAllItems=function(){a.allItems.forEach(function(e){e.keepContent=a.keepItemContent})},this.updateAnimate=function(){a.allItems.forEach(function(e){"activeWithoutAnimation"===e.state&&(e.state="active")})},this.direction=n?"rtl":"ltr",this.keyBindings=this.computedKeys,this.elementRef=e,this.eventService=t,this.eventService.children$.subscribe(function(e){return a.onItemAction(e)})}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},set:function(e){e&&(this._items=c.default.parsePanelBarItems(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostHeight",{get:function(){return this.expandMode===s.PanelBarExpandMode.Full?this.height:"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflow",{get:function(){return this.expandMode===s.PanelBarExpandMode.Full?"hidden":"visible"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.invertKeys=function(e,t){return"rtl"===this.direction?t:e},Object.defineProperty(e.prototype,"computedKeys",{get:function(){var e=this;return t={},t[r.Keys.space]=function(){return e.selectFocusedItem()},t[r.Keys.enter]=function(){return e.selectFocusedItem()},t[r.Keys.up]=function(){return e.focusPreviousItem()},t[this.invertKeys(r.Keys.left,r.Keys.right)]=function(){return e.collapseItem()},t[r.Keys.down]=function(){return e.focusNextItem()},t[this.invertKeys(r.Keys.right,r.Keys.left)]=function(){return e.expandItem()},t[r.Keys.end]=function(){return e.focusLastItem()},t[r.Keys.home]=function(){return e.focusFirstItem()},t;var t},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewChecked=function(){var e=this;this.items?(this.childrenItems=this.viewChildItems.toArray(),this.allItems=this.viewItems):(this.childrenItems=this.contentChildItems.toArray(),this.allItems=this.contentItems.toArray()),this.isViewInit&&this.childrenItems.length&&(this.isViewInit=!1,setTimeout(function(){e.updateChildrenHeight(),e.updateAllItems()})),this.validateConfiguration()},e.prototype.ngOnChanges=function(e){(e.height||e.expandMode||e.items)&&this.childrenItems&&setTimeout(this.updateChildrenHeight),e.keepItemContent&&setTimeout(this.updateAllItems)},Object.defineProperty(e.prototype,"templateRef",{get:function(){return this.template?this.template.templateRef:void 0},enumerable:!0,configurable:!0}),e.prototype.onComponentClick=function(e){var t=this.visibleItems().some(function(t){return t.header.nativeElement.contains(e.target)});!this.focused&&t&&this.elementRef.nativeElement.focus()},e.prototype.onComponentFocus=function(){if(this.eventService.onFocus(),this.focused=!0,this.allItems.length>0){var e=this.visibleItems();!e.filter(function(e){return e.focused}).length&&e.length>0&&(e[0].focused=!0,this.activeDescendant=e[0].itemId)}this.animate&&this.updateAnimate()},e.prototype.onComponentBlur=function(){this.eventService.onBlur(),this.focused=!1,this.activeDescendant=""},e.prototype.onComponentKeyDown=function(e){if(e.target===this.elementRef.nativeElement){e.keyCode!==r.Keys.space&&e.keyCode!==r.Keys.up&&e.keyCode!==r.Keys.down&&e.keyCode!==r.Keys.left&&e.keyCode!==r.Keys.right&&e.keyCode!==r.Keys.home&&e.keyCode!==r.Keys.end&&e.keyCode!==r.Keys["page up"]&&e.keyCode!==r.Keys["page down"]||e.preventDefault();var t=this.keyBindings[e.keyCode];t&&t()}},Object.defineProperty(e.prototype,"viewItems",{get:function(){var e=[];return this.viewChildItems.toArray().forEach(function(t){e.push(t),e=e.concat(t.subTreeViewItems())}),e},enumerable:!0,configurable:!0}),e.prototype.validateConfiguration=function(){if(i.isDevMode()&&this.items&&this.contentItems&&this.contentItems.length>0)throw new Error("Invalid configuration: mixed template components and items property.")},e.prototype.onItemAction=function(e){var t=this;if(e){var n=new Array;if(this.allItems.forEach(function(a){var i=a===e,o=i;i=t.selectable?i:a.selected,a.selected===i&&a.focused===o||(a.selected=i,a.focused=o,t.activeDescendant=o?a.itemId:"",n.push(a))}),this.expandMode===s.PanelBarExpandMode.Multiple)(e.hasChildItems||e.hasContent)&&(e.animate=this.animate,e.expanded=!e.expanded),n.indexOf(e)<0&&n.push(e);else{var a=e.parent?e.parent.childrenItems:this.childrenItems;(e.hasChildItems||e.hasContent)&&a.forEach(function(a){var i=a===e;a.expanded!==i&&(a.animate=t.animate,a.expanded=i,n.indexOf(a)<0&&n.push(a))})}n.length>0&&this.stateChange.emit(n.map(function(e){return e.serialize()}))}},Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.isVisible=function(e){return this.visibleItems().some(function(t){return t===e})},e.prototype.getVisibleParent=function(e){var t=this.visibleItems();return e.parent?t.some(function(t){return t===e.parent})?e.parent:this.getVisibleParent(e.parent):e},e.prototype.focusItem=function(e){var t,n=this.visibleItems(),a=n.findIndex(function(e){return e.focused}),i=n[a];if(-1===a){var o=this.allItems.find(function(e){return e.focused});o.focused=!1,i=this.getVisibleParent(o),a=n.findIndex(function(e){return e===i})}switch(e){case"lastItem":t=n[n.length-1];break;case"firstItem":t=n[0];break;case"nextItem":t=n[a<n.length-1?a+1:0];break;case"previousItem":t=n[a>0?a-1:n.length-1]}i&&t&&i!==t&&this.moveFocus(i,t)},e.prototype.moveFocus=function(e,t){e.focused=!1,t.focused=!0,this.activeDescendant=t.itemId;var n=new Array(e.serialize(),t.serialize());this.stateChange.emit(n)},e.prototype.focusLastItem=function(){this.focusItem("lastItem")},e.prototype.focusFirstItem=function(){this.focusItem("firstItem")},e.prototype.focusNextItem=function(){this.focusItem("nextItem")},e.prototype.focusPreviousItem=function(){this.focusItem("previousItem")},e.prototype.expandItem=function(){var e=this.allItems.filter(function(e){return e.focused})[0];if(this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e.hasChildItems||e.hasContent)if(e.expanded){if(e.hasChildItems){var t=e.childrenItems.findIndex(function(e){return!e.disabled});t>-1&&this.moveFocus(e,e.childrenItems[t])}}else this.onItemAction(e)},e.prototype.collapseItem=function(){var e=this.allItems.filter(function(e){return e.focused})[0];e.expanded?this.onItemAction(e):e.parent&&this.moveFocus(e,e.parent)},e.prototype.selectFocusedItem=function(){var e=this.allItems.filter(function(e){return e.focused})[0];this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e&&e.onItemAction()},e.prototype.visibleItems=function(){return this.flatVisibleItems(this.childrenItems)},e.prototype.flatVisibleItems=function(e,t){var n=this;return void 0===e&&(e=new Array),void 0===t&&(t=new Array),e.forEach(function(e){e.disabled||(t.push(e),e.expanded&&e.hasChildItems&&n.flatVisibleItems(e.childrenItems,t))}),t},a.__decorate([i.Input(),a.__metadata("design:type",Number)],e.prototype,"expandMode",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"animate",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Object)],e.prototype,"height",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"keepItemContent",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Array),a.__metadata("design:paramtypes",[Array])],e.prototype,"items",null),a.__decorate([i.Output(),a.__metadata("design:type",i.EventEmitter)],e.prototype,"stateChange",void 0),a.__decorate([i.HostBinding("attr.tabIndex"),a.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),a.__decorate([i.HostBinding("attr.role"),a.__metadata("design:type",String)],e.prototype,"role",void 0),a.__decorate([i.HostBinding("attr.aria-activedescendant"),a.__metadata("design:type",String)],e.prototype,"activeDescendant",void 0),a.__decorate([i.HostBinding("style.height"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],e.prototype,"hostHeight",null),a.__decorate([i.HostBinding("style.overflow"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],e.prototype,"overflow",null),a.__decorate([i.HostBinding("attr.dir"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],e.prototype,"dir",null),a.__decorate([i.ContentChild(p.PanelBarItemTemplateDirective),a.__metadata("design:type",p.PanelBarItemTemplateDirective)],e.prototype,"template",void 0),a.__decorate([i.ContentChildren(d.PanelBarItemComponent,{descendants:!0}),a.__metadata("design:type",i.QueryList)],e.prototype,"contentItems",void 0),a.__decorate([i.ContentChildren(d.PanelBarItemComponent),a.__metadata("design:type",i.QueryList)],e.prototype,"contentChildItems",void 0),a.__decorate([i.ViewChildren(d.PanelBarItemComponent),a.__metadata("design:type",i.QueryList)],e.prototype,"viewChildItems",void 0),a.__decorate([i.HostListener("click",["$event"]),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],e.prototype,"onComponentClick",null),a.__decorate([i.HostListener("focus"),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"onComponentFocus",null),a.__decorate([i.HostListener("blur"),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"onComponentBlur",null),a.__decorate([i.HostListener("keydown",["$event"]),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],e.prototype,"onComponentKeyDown",null),a.__decorate([i.HostBinding("class.k-widget"),i.HostBinding("class.k-panelbar"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"hostClasses",null),e=a.__decorate([i.Component({exportAs:"kendoPanelbar",providers:[l.PanelBarService],selector:"kendo-panelbar",template:'\n <ng-content *ngIf="contentChildItems && !items" select="kendo-panelbar-item"></ng-content>\n <ng-template [ngIf]="items?.length">\n <kendo-panelbar-item\n *ngFor="let item of items"\n [title]="item.title"\n [id]="item.id"\n [icon]="item.icon"\n [iconClass]="item.iconClass"\n [imageUrl]="item.imageUrl"\n [selected]="!!item.selected"\n [expanded]="!!item.expanded"\n [disabled]="!!item.disabled"\n [template]="templateRef"\n [items]="item.children"\n [content]="item.content"\n >\n </kendo-panelbar-item>\n </ng-template>\n '}),a.__param(2,i.Optional()),a.__param(2,i.Inject(o.RTL)),a.__metadata("design:paramtypes",[i.ElementRef,l.PanelBarService,Boolean])],e)}();t.PanelBarComponent=u},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.backspace=8]="backspace",e[e.tab=9]="tab",e[e.enter=13]="enter",e[e.shift=16]="shift",e[e.ctrl=17]="ctrl",e[e.alt=18]="alt",e[e["pause/break"]=19]="pause/break",e[e["caps lock"]=20]="caps lock",e[e.esc=27]="esc",e[e.space=32]="space",e[e["page up"]=33]="page up",e[e["page down"]=34]="page down",e[e.end=35]="end",e[e.home=36]="home",e[e.left=37]="left",e[e.up=38]="up",e[e.right=39]="right",e[e.down=40]="down",e[e.insert=45]="insert",e[e.delete=46]="delete",e[e.command=91]="command",e[e["left command"]=91]="left command",e[e["right command"]=93]="right command",e[e["numpad *"]=106]="numpad *",e[e["numpad +"]=107]="numpad +",e[e["numpad -"]=109]="numpad -",e[e["numpad ."]=110]="numpad .",e[e["numpad /"]=111]="numpad /",e[e["num lock"]=144]="num lock",e[e["scroll lock"]=145]="scroll lock",e[e["my computer"]=182]="my computer",e[e["my calculator"]=183]="my calculator",e[e[";"]=186]=";",e[e["="]=187]="=",e[e[","]=188]=",",e[e["-"]=189]="-",e[e["."]=190]=".",e[e["/"]=191]="/",e[e["`"]=192]="`",e[e["["]=219]="[",e[e["\\"]=220]="\\",e[e["]"]=221]="]",e[e["'"]=222]="'"}(t.Keys||(t.Keys={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Single=0]="Single",e[e.Full=1]="Full",e[e.Multiple=2]="Multiple",e[e.Default=2]="Default"}(t.PanelBarExpandMode||(t.PanelBarExpandMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(8),r=n(10),s=n(11),d=0,l=function(){function e(e,t){var n=this;this.title="Untitled",this.id="default-"+d++,this.icon="",this.iconClass="",this.imageUrl="",this.disabled=!1,this.selected=!1,this.keepContent=!1,this.hasChildItems=!1,this.hasContent=!1,this.state="inactive",this.animate=!1,this.role="treeitem",this.titleAttribute=null,this.focused=!1,this.wrapperFocused=!1,this._expanded=!1,this.eventService=t,this.eventService.parent$.subscribe(function(e){return n.onWrapperFocusChange(e)}),this.wrapperFocused=!!e&&e.focused,this.parent=e}return t=e,Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},set:function(e){var t=this.animate?"active":"activeWithoutAnimation";this.state=e?t:"inactive",this._expanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"kItemClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"kStateDefaultClass",{get:function(){return!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"kStateDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"kStateExpandedClass",{get:function(){return!this.disabled&&this.expanded&&(this.hasChildItems||this.hasContent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemId",{get:function(){return"k-panelbar-item-"+this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.hasChildItems||this.hasContent?!this.disabled&&this.expanded:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaSelected",{get:function(){return!this.disabled&&this.selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleTemplate",{get:function(){return this.titleTemplates.length>0?this.titleTemplates.toArray()[0].templateRef:void 0},enumerable:!0,configurable:!0}),e.prototype.headerHeight=function(){return this.header.nativeElement.offsetHeight},e.prototype.ngAfterContentChecked=function(){this.hasChildItems=this.contentItems.length>1||this.items&&this.items.length>0,this.hasContent=void 0!==this.contentTemplate&&this.contentTemplate.length>0||void 0!==this.content,this.validateConfiguration()},e.prototype.ngAfterViewChecked=function(){var e=this;this.items?this.childrenItems=this.viewChildItems.toArray():this.childrenItems=this.contentItems.filter(function(t){return t!==e})},e.prototype.onItemAction=function(){this.disabled||this.eventService.onSelect(this)},Object.defineProperty(e.prototype,"iconClasses",{get:function(){return e={},e[(this.icon?"k-i-"+this.icon:null)||this.iconClass]=!0,e;var e},enumerable:!0,configurable:!0}),e.prototype.serialize=function(){return{content:this.content,disabled:this.disabled,expanded:this.expanded,focused:this.focused,icon:this.icon,iconClass:this.iconClass,id:this.id,imageUrl:this.imageUrl,selected:this.selected,title:this.title}},e.prototype.subTreeViewItems=function(){var e=[];return this.viewChildItems.forEach(function(t){(e=e.concat(t.subTreeViewItems())).push(t)}),e},e.prototype.validateConfiguration=function(){if(i.isDevMode()&&this.content&&void 0!==this.contentTemplate&&this.contentTemplate.length>0)throw new Error("Invalid configuration: mixed template components and component property.")},e.prototype.onWrapperFocusChange=function(e){this.wrapperFocused=e},a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"title",void 0),a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"id",void 0),a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"icon",void 0),a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"iconClass",void 0),a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"imageUrl",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[Boolean])],e.prototype,"expanded",null),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"selected",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Object)],e.prototype,"content",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Array)],e.prototype,"items",void 0),a.__decorate([i.Input(),a.__metadata("design:type",i.TemplateRef)],e.prototype,"template",void 0),a.__decorate([i.ViewChild("header",{}),a.__metadata("design:type",i.ElementRef)],e.prototype,"header",void 0),a.__decorate([i.HostBinding("attr.role"),a.__metadata("design:type",String)],e.prototype,"role",void 0),a.__decorate([i.HostBinding("attr.title"),a.__metadata("design:type",String)],e.prototype,"titleAttribute",void 0),a.__decorate([i.HostBinding("class.k-item"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"kItemClass",null),a.__decorate([i.HostBinding("class.k-state-default"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"kStateDefaultClass",null),a.__decorate([i.HostBinding("class.k-state-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"kStateDisabledClass",null),a.__decorate([i.HostBinding("class.k-state-expanded"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"kStateExpandedClass",null),a.__decorate([i.HostBinding("id"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],e.prototype,"itemId",null),a.__decorate([i.HostBinding("attr.aria-expanded"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"ariaExpanded",null),a.__decorate([i.HostBinding("attr.aria-selected"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"ariaSelected",null),a.__decorate([i.HostBinding("attr.aria-disabled"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),a.__decorate([i.ViewChildren(t),a.__metadata("design:type",i.QueryList)],e.prototype,"viewChildItems",void 0),a.__decorate([i.ContentChildren(t),a.__metadata("design:type",i.QueryList)],e.prototype,"contentItems",void 0),a.__decorate([i.ContentChildren(r.PanelBarContentDirective,{descendants:!1}),a.__metadata("design:type",i.QueryList)],e.prototype,"contentTemplate",void 0),a.__decorate([i.ContentChildren(s.PanelBarItemTitleDirective,{descendants:!1}),a.__metadata("design:type",i.QueryList)],e.prototype,"titleTemplates",void 0),e=t=a.__decorate([i.Component({animations:[i.trigger("toggle",[i.state("inactive",i.style({display:"none",height:"0px"})),i.transition("active => void",[i.animate(200,i.style({display:"block",height:"0px"}))]),i.transition("void => active",[i.style({display:"block",height:"0px"}),i.animate(200,i.style({display:"block",height:i.AUTO_STYLE}))]),i.transition("inactive => active",[i.style({display:"block",height:"0px"}),i.animate(200,i.style({display:"block",height:i.AUTO_STYLE}))]),i.transition("active => inactive",[i.animate(200,i.style({display:"none",height:"0px"}))])])],exportAs:"kendoPanelbarItem",selector:"kendo-panelbar-item",template:'<span\n #header\n [class.k-link]="true"\n [class.k-header]="!parent"\n [class.k-state-selected]="!disabled && selected"\n [class.k-state-focused]="!disabled && focused && wrapperFocused"\n (click)="onItemAction()">\n <span\n *ngIf="icon || iconClass"\n class="k-icon"\n [ngClass]="iconClasses">\n </span>\n <img\n *ngIf="imageUrl"\n class="k-image"\n [src]="imageUrl"\n alt="">\n {{title}}\n <ng-template [ngTemplateOutlet]="titleTemplate"></ng-template>\n <span *ngIf="hasChildItems || hasContent"\n [class.k-icon]="true"\n [class.k-i-arrow-n]="expanded"\n [class.k-panelbar-collapse]="expanded"\n [class.k-i-arrow-s]="!expanded"\n [class.k-panelbar-expand]="!expanded">\n </span>\n </span>\n <div\n *ngIf="keepContent || (!disabled && expanded && (hasChildItems || hasContent))"\n [@toggle]="state"\n [style.overflow]="\'hidden\'"\n [attr.role]="\'group\'"\n [attr.aria-hidden]="!disabled && !expanded">\n <div\n *ngIf="hasChildItems && !items?.length"\n [style.overflow]="contentOverflow"\n [style.height]="contentHeight"\n class="k-panel k-group">\n <ng-content select="kendo-panelbar-item"></ng-content>\n </div>\n <div\n *ngIf="hasContent && !content"\n [style.overflow]="contentOverflow"\n [style.height]="contentHeight"\n class="k-content">\n <ng-template\n [ngTemplateOutlet]="contentTemplate.first.templateRef"\n [ngTemplateOutletContext]="{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }">\n </ng-template>\n </div>\n <div\n *ngIf="items?.length"\n [style.overflow]="contentOverflow"\n [style.height]="contentHeight"\n class="k-panel k-group">\n <kendo-panelbar-item\n *ngFor="let item of items"\n [title]="item.title"\n [id]="item.id"\n [icon]="item.icon"\n [iconClass]="item.iconClass"\n [imageUrl]="item.imageUrl"\n [selected]="!!item.selected"\n [expanded]="!!item.expanded"\n [disabled]="!!item.disabled"\n [template]="template"\n [items]="item.children"\n [content]="item.content">\n </kendo-panelbar-item>\n </div>\n <div\n *ngIf="content"\n [style.overflow]="contentOverflow"\n [style.height]="contentHeight"\n class="k-content">\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n $implicit: {\n title: title,\n id: id,\n icon: icon,\n imageUrl: imageUrl,\n disabled: disabled,\n content: content\n }\n }">\n </ng-template>\n <ng-template [ngIf]="!template">{{content}}</ng-template>\n </div>\n </div>'}),a.__param(0,i.SkipSelf()),a.__param(0,i.Host()),a.__param(0,i.Optional()),a.__metadata("design:paramtypes",[e,o.PanelBarService])],e);var t}();t.PanelBarItemComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(9),r=function(){function e(){this.parentSource=new o.Subject,this.childSource=new o.Subject,this.parent$=this.parentSource.asObservable(),this.children$=this.childSource.asObservable()}return e.prototype.onSelect=function(e){this.childSource.next(e)},e.prototype.onFocus=function(){this.parentSource.next(!0)},e.prototype.onBlur=function(){this.parentSource.next(!1)},e=a.__decorate([i.Injectable(),a.__metadata("design:paramtypes",[])],e)}();t.PanelBarService=r},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=function(){function e(e){this.templateRef=e}return e=a.__decorate([i.Directive({selector:"[kendoPanelBarContent]"}),a.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PanelBarContentDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=function(){function e(e){this.templateRef=e}return e=a.__decorate([i.Directive({selector:"[kendoPanelBarItemTitle]"}),a.__param(0,i.Optional()),a.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PanelBarItemTitleDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=function(){function e(e){this.templateRef=e}return e=a.__decorate([i.Directive({selector:"[kendoPanelBarItemTemplate]"}),a.__param(0,i.Optional()),a.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PanelBarItemTemplateDirective=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=0,a=function(e){return e.map(function(e){return e.id||(e.id="default-"+n++),e.children&&(e.children=a(e.children)),e})};t.default={parsePanelBarItems:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(15),r=n(4),s=n(16),d=n(5),l=n(19),p=function(){function e(e,t,n){this.renderer=t,this.wrapper=n,this.animate=!0,this.keepTabContent=!1,this.tabSelect=new i.EventEmitter,this._animate=!1,this.direction=e?"rtl":"ltr",this.keyBindings=this.computedKeys}return Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e,this.renderer.setStyle(this.wrapper.nativeElement,"height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.contentClass=function(e){return!this.keepTabContent||e?"k-content k-state-active":"k-content"},Object.defineProperty(e.prototype,"computedKeys",{get:function(){var e=this;return t={},t[this.invertKeys(d.Keys.left,d.Keys.right)]=function(t){return e.prevNavigatableIndex(t)},t[this.invertKeys(d.Keys.right,d.Keys.left)]=function(t){return e.nextNavigatableIndex(t)},t[this.invertKeys(d.Keys.down,d.Keys.up)]=function(t){return e.nextNavigatableIndex(t)},t[this.invertKeys(d.Keys.up,d.Keys.down)]=function(t){return e.prevNavigatableIndex(t)},t[d.Keys.home]=function(){return e.firstNavigatableIndex()},t[d.Keys.end]=function(){return e.lastNavigatableIndex()},t;var t},enumerable:!0,configurable:!0}),e.prototype.invertKeys=function(e,t){return"rtl"===this.direction?t:e},e.prototype.onKeyDown=function(e){var t=this.tabs.toArray().findIndex(function(e){return e.active&&!e.disabled});if(e.currentTarget===this.tablist.nativeElement)if(e.keyCode!==d.Keys.space&&e.keyCode!==d.Keys.up&&e.keyCode!==d.Keys.down&&e.keyCode!==d.Keys.left&&e.keyCode!==d.Keys.right&&e.keyCode!==d.Keys.home&&e.keyCode!==d.Keys.end&&e.keyCode!==d.Keys["page up"]&&e.keyCode!==d.Keys["page down"]||e.preventDefault(),-1===t)this.selectTab(this.firstNavigatableIndex());else{var n=this.keyBindings[e.keyCode];if(n){t!==n(t)&&this.selectTab(n(t))}}},e.prototype.tabPanelId=function(e){return"k-tabstrip-tabpanel-"+e},e.prototype.tabId=function(e){return"k-tabstrip-tab-"+e},e.prototype.selectTab=function(e){var t=this.tabs.toArray()[e];t&&!t.disabled&&this.emitEvent(t,e)},e.prototype.firstNavigatableIndex=function(){for(var e=this.tabs.toArray(),t=0;t<e.length;t++)if(!e[t].disabled)return t},e.prototype.lastNavigatableIndex=function(){for(var e=this.tabs.toArray(),t=e.length-1;t>0;t--)if(!e[t].disabled)return t},e.prototype.prevNavigatableIndex=function(e){if(e-1<0)return this.lastNavigatableIndex();for(var t=this.tabs.toArray(),n=e-1;n>-1;n--){if(!t[n].disabled)return n;if(0===n)return this.lastNavigatableIndex()}return e},e.prototype.nextNavigatableIndex=function(e){if(e+1>=this.tabs.length)return this.firstNavigatableIndex();for(var t=this.tabs.toArray(),n=e+1;n<t.length;n++){if(!t[n].disabled)return n;if(n+1===t.length)return this.firstNavigatableIndex()}},e.prototype.emitEvent=function(e,t){var n=new l.SelectEvent(t,e.title);this.tabSelect.emit(n),n.isDefaultPrevented()||(this._animate=this.animate,this.deactivateAll(),e.active=!0)},e.prototype.deactivateAll=function(){this.tabs.forEach(function(e){e.active=!1})},a.__decorate([i.Input(),a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[Object])],e.prototype,"height",null),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"animate",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"keepTabContent",void 0),a.__decorate([i.ViewChild("tablist"),a.__metadata("design:type",i.ElementRef)],e.prototype,"tablist",void 0),a.__decorate([i.Output(),a.__metadata("design:type",i.EventEmitter)],e.prototype,"tabSelect",void 0),a.__decorate([i.HostBinding("class.k-widget"),i.HostBinding("class.k-tabstrip"),i.HostBinding("class.k-floatwrap"),i.HostBinding("class.k-tabstrip-top"),i.HostBinding("class.k-header"),a.__metadata("design:type",Boolean),a.__metadata("design:paramtypes",[])],e.prototype,"hostClasses",null),a.__decorate([i.HostBinding("attr.dir"),a.__metadata("design:type",String),a.__metadata("design:paramtypes",[])],e.prototype,"dir",null),a.__decorate([i.ContentChildren(s.TabStripTabComponent),a.__metadata("design:type",i.QueryList)],e.prototype,"tabs",void 0),e=a.__decorate([i.Component({animations:[o.trigger("state",[o.state("active",o.style({opacity:1})),o.transition("* => active",[o.style({opacity:0}),o.animate("400ms ease-in")])])],exportAs:"kendoTabStrip",selector:"kendo-tabstrip",template:'\n <ul\n class="k-reset k-tabstrip-items"\n role="tablist"\n (keydown)="onKeyDown($event)"\n [tabIndex]="0"\n #tablist\n >\n <li *ngFor="let tab of tabs; let i = index;" (click)="selectTab(i)"\n role="tab"\n [id]="tabId(i)"\n [class.k-item]="true"\n [class.k-state-default]="true"\n [class.k-state-active]="tab.active"\n [class.k-state-disabled]="tab.disabled"\n [attr.aria-selected]="tab.active"\n [attr.aria-controls]="tab.tabPanelId"\n [attr.aria-disabled]="tab.disabled"\n ><span class="k-link">{{ tab.title }}<ng-template [ngTemplateOutlet]="tab.tabTitle?.templateRef"></ng-template></span></li>\n </ul>\n <ng-template ngFor let-tab [ngForOf]="tabs" let-i="index">\n <div\n [@state]="tab.active && _animate ? \'active\' : \'inactive\'"\n *ngIf="tab.active || keepTabContent"\n [ngClass]="contentClass(tab.active)"\n role="tabpanel"\n [id]="tabPanelId(i)"\n [attr.aria-hidden]="!tab.active"\n [attr.aria-expanded]="tab.active"\n [attr.aria-labelledby]="tabId(i)"\n [attr.aria-disabled]="tab.disabled"\n >\n <ng-template [ngTemplateOutlet]="tab.tabContent?.templateRef"></ng-template>\n </div>\n </ng-template>\n '}),a.__param(0,i.Optional()),a.__param(0,i.Inject(r.RTL)),a.__metadata("design:paramtypes",[Boolean,i.Renderer2,i.ElementRef])],e)}();t.TabStripComponent=p},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(17),r=n(18),s=function(){function e(){this.active=!1,this._tabContent=new i.QueryList}return Object.defineProperty(e.prototype,"tabContent",{get:function(){return this._tabContent.first},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.active=this.selected},e.prototype.ngOnChanges=function(e){e.selected&&!e.selected.isFirstChange()&&(this.active=this.selected)},a.__decorate([i.Input(),a.__metadata("design:type",String)],e.prototype,"title",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),a.__decorate([i.Input(),a.__metadata("design:type",Boolean)],e.prototype,"selected",void 0),a.__decorate([i.ContentChildren(o.TabContentDirective),a.__metadata("design:type",i.QueryList)],e.prototype,"_tabContent",void 0),a.__decorate([i.ContentChild(r.TabTitleDirective),a.__metadata("design:type",r.TabTitleDirective)],e.prototype,"tabTitle",void 0),e=a.__decorate([i.Component({exportAs:"kendoTabStripTab",selector:"kendo-tabstrip-tab",template:""})],e)}();t.TabStripTabComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=function(){function e(e){this.templateRef=e}return e=a.__decorate([i.Directive({selector:"[kendoTabContent]"}),a.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.TabContentDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=function(){function e(e){this.templateRef=e}return e=a.__decorate([i.Directive({selector:"[kendoTabTitle]"}),a.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.TabTitleDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i;var o=function(e){function t(t,n){var a=e.call(this)||this;return a.index=t,a.title=n,a}return a.__extends(t,e),t}(i);t.SelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(21),r=n(23),s=function(){function e(){}return e=a.__decorate([i.NgModule({exports:[o.PanelBarModule,r.TabStripModule]})],e)}();t.LayoutModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(22),r=n(1),s=n(7),d=n(10),l=n(12),p=n(11),c=[r.PanelBarComponent,s.PanelBarItemComponent,d.PanelBarContentDirective,l.PanelBarItemTemplateDirective,p.PanelBarItemTitleDirective],u=c.slice(),m=function(){function e(){}return e=a.__decorate([i.NgModule({declarations:[u],exports:[c],imports:[o.CommonModule]})],e)}();t.PanelBarModule=m},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=n(3),o=n(22),r=n(14),s=n(16),d=n(17),l=n(18),p=[r.TabStripComponent,s.TabStripTabComponent,d.TabContentDirective,l.TabTitleDirective],c=p.slice(),u=function(){function e(){}return e=a.__decorate([i.NgModule({declarations:[c],exports:[p],imports:[o.CommonModule]})],e)}();t.TabStripModule=u}])}}}); |
{ | ||
"name": "@progress/kendo-angular-layout", | ||
"description": "Layout Package for Angular 2", | ||
"version": "1.0.9-dev.201711071258", | ||
"version": "1.0.9", | ||
"main": "dist/npm/main.js", | ||
@@ -6,0 +6,0 @@ "module": "dist/es/main.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
335582
127