@progress/kendo-angular-toolbar 4.1.1 → 4.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- System.register("@progress/kendo-angular-toolbar",["tslib","@angular/common","@angular/core","@progress/kendo-angular-popup","@progress/kendo-angular-common","@progress/kendo-angular-buttons","@progress/kendo-angular-l10n","rxjs/operators","rxjs","@progress/kendo-licensing"],function(r){var a,s,l,p,u,d,c,f,g,m;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){a=e(t)},function(t){s=e(t)},function(t){l=e(t)},function(t){p=e(t)},function(t){u=e(t)},function(t){d=e(t)},function(t){c=e(t)},function(t){f=e(t)},function(t){g=e(t)},function(t){m=e(t)}],execute:function(){function n(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var o,i;o=[function(t,e){t.exports=l},function(t,e){t.exports=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),o=o(0),o=(Object.defineProperty(i.prototype,"toolbarDisplay",{get:function(){return this.overflows?"none":"inline-block"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"overflowDisplay",{get:function(){return this.overflows?"block":"none"},enumerable:!0,configurable:!0}),i.prototype.canFocus=function(){return!1},i.prototype.focus=function(t){},i.prototype.handleKey=function(t){return!1},n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],i.prototype,"responsive",void 0),n.__decorate([o.Component({selector:"toolbar-tool",template:""})],i));function i(){this.tabIndex=-1,this.overflows=!0,this.responsive=!0}e.ToolBarToolComponent=o},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e(5),i=/^(?:a|input|select|textarea|button|object)$/i;r.outerWidth=function(t){var e=t.offsetWidth,t=getComputedStyle(t);return e+(parseFloat(t.marginLeft)||0+parseFloat(t.marginRight)||0)},r.innerWidth=function(t){var e=t.offsetWidth,t=getComputedStyle(t);return(e-=parseFloat(t.paddingLeft)||0+parseFloat(t.borderLeftWidth)||0)-(parseFloat(t.paddingRight)||0+parseFloat(t.borderRightWidth)||0)},r.outerHeight=function(t){var e=t.offsetHeight,t=getComputedStyle(t);return e+(parseFloat(t.marginTop)||0+parseFloat(t.marginBottom)||0)},r.closest=function(t,e){for(;t&&!e(t);)t=t.parentNode;return t},r.isVisible=function(t){var e=t.getBoundingClientRect(),o=0<e.width&&0<e.height,e=0!==e.x&&0!==e.y;return(o||e)&&"hidden"!==window.getComputedStyle(t).visibility},r.findElement=function(t,e,o){if(void 0===o&&(o=!0),t){if(o&&e(t))return t;for(t=t.firstChild;t;){if(1===t.nodeType){var n=r.findElement(t,e);if(n)return n}t=t.nextSibling}}},r.isFocusable=function(t,e){if(void 0===e&&(e=!0),t.tagName){var o=t.tagName.toLowerCase(),n=null!==t.getAttribute("tabIndex");return(n=i.test(o)?!t.disabled:n)&&(!e||r.isVisible(t))}return!1},r.findFocusable=function(t,e){return void 0===e&&(e=!0),r.findElement(t,function(t){return r.isFocusable(t,e)})},r.findFocusableChild=function(t,e){return void 0===e&&(e=!0),r.findElement(t,function(t){return r.isFocusable(t,e)},!1)},r.findFocusableSibling=function(t,e,o){void 0===e&&(e=!0);for(var n=o?t.prevSibling:t.nextSibling;n;){if(1===n.nodeType){var i=r.findElement(n,function(t){return r.isFocusable(t,e)});if(i)return i}n=o?n.prevSibling:n.nextSibling}},r.isPresent=function(t){return null!=t},r.makePeeker=function(e){return function(t){return r.isPresent(e[t])}},r.getIndexOfFocused=function(t,o,n){return function(e){switch(e.type){case"keydown":if(e.keyCode===t)return n.length-1;if(e.keyCode===o)return 0;break;case"click":return n.findIndex(function(t){return t===e.target||t.contains(e.target)});default:return 0}}},r.seekFocusedIndex=function(o,n,i){return function(t,e){switch(e.keyCode){case o:return i(t-1)?t-1:t;case n:return i(t+1)?t+1:t;default:return t}}},r.areEqual=function(e){return function(t){return e===t}},r.getNextKey=function(e){return void 0===e&&(e=!1),function(t){return(t=void 0===t?!0:t)?o.Keys.ArrowDown:e?o.Keys.ArrowLeft:o.Keys.ArrowRight}},r.getPrevKey=function(e){return void 0===e&&(e=!1),function(t){return(t=void 0===t?!0:t)?o.Keys.ArrowUp:e?o.Keys.ArrowRight:o.Keys.ArrowLeft}},r.getValueForLocation=function(t,e,o){switch(e){case"toolbar":return o?void 0:t;case"overflow":return o?t:void 0;default:return t}}},function(t,e){t.exports=c},function(t,e){t.exports=u},function(t,e){t.exports=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),n=(r.prototype.getText=function(t){if(t)return this.textField?t[this.textField]:t.text||t},r.prototype.onClick=function(t,e){e=this.data[e];t.click&&t.click(e),this.itemClick.emit(e)},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"textField",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"look",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"itemClick",void 0),n.__decorate([i.ViewChildren("button"),n.__metadata("design:type",i.QueryList)],r.prototype,"buttons",void 0),n.__decorate([i.Component({selector:"kendo-toolbar-buttonlist",template:'\n <button\n #button\n type="button"\n tabindex="-1"\n kendoButton\n style="padding-left: 16px"\n class="k-overflow-button"\n *ngFor="let item of data; let i = index"\n [disabled]="disabled || item.disabled"\n [icon]="item.icon"\n [iconClass]="item.iconClass"\n [imageUrl]="item.imageUrl"\n [look]="look"\n (click)="onClick(item, i)"\n >\n {{ getText(item) }}\n </button>\n '})],r));function r(){this.disabled=!1,this.look="default",this.itemClick=new i.EventEmitter}e.ToolBarButtonListComponent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(2),l=o(3),r=(n=s.ToolBarToolComponent,r.__extends(p,n),i=p,Object.defineProperty(p.prototype,"text",{set:function(t){this.toolbarOptions.text=l.getValueForLocation(t,this.showText,!1),this.overflowOptions.text=l.getValueForLocation(t,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"togglable",{get:function(){return this.toggleable},set:function(t){this.toggleable=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"icon",{set:function(t){this.toolbarOptions.icon=l.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.icon=l.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"iconClass",{set:function(t){this.toolbarOptions.iconClass=l.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.iconClass=l.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"imageUrl",{set:function(t){this.toolbarOptions.imageUrl=l.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.imageUrl=l.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),p.prototype.onBlur=function(){this.getButton().tabIndex=-1},p.prototype.canFocus=function(){return!this.disabled},p.prototype.focus=function(t){t&&"focus"!==t.type&&"keydown"!==t.type||this.getButton().focus(),this.getButton().tabIndex=0},p.prototype.handleKey=function(){return!(this.getButton().tabIndex=-1)},p.prototype.getButton=function(){return(this.overflows?this.overflowButtonElement:this.toolbarButtonElement).nativeElement},r.__decorate([a.Input(),r.__metadata("design:type",String)],p.prototype,"showText",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],p.prototype,"showIcon",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],p.prototype,"text",null),r.__decorate([a.Input(),r.__metadata("design:type",Object)],p.prototype,"style",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],p.prototype,"className",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],p.prototype,"title",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],p.prototype,"toggleable",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[Boolean])],p.prototype,"togglable",null),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],p.prototype,"primary",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],p.prototype,"look",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],p.prototype,"selected",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],p.prototype,"icon",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],p.prototype,"iconClass",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],p.prototype,"imageUrl",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],p.prototype,"click",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],p.prototype,"pointerdown",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],p.prototype,"selectedChange",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],p.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],p.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("toolbarButton",{read:a.ElementRef,static:!1}),r.__metadata("design:type",a.ElementRef)],p.prototype,"toolbarButtonElement",void 0),r.__decorate([a.ViewChild("overflowButton",{read:a.ElementRef,static:!1}),r.__metadata("design:type",a.ElementRef)],p.prototype,"overflowButtonElement",void 0),i=r.__decorate([a.Component({exportAs:"kendoToolBarButton",providers:[{provide:s.ToolBarToolComponent,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-button",template:'\n <ng-template #toolbarTemplate>\n <button\n #toolbarButton\n [tabindex]="tabIndex"\n type="button"\n kendoButton\n [ngStyle]="style"\n [ngClass]="className"\n [attr.title]="title"\n [disabled]="disabled"\n [toggleable]="toggleable"\n [primary]="primary"\n [selected]="selected"\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n [look]="look"\n (click)="click.emit($event)"\n (pointerdown)="pointerdown.emit($event)"\n (selectedChange)="selectedChange.emit($event)"\n (blur)="onBlur()"\n >\n {{ toolbarOptions.text }}\n </button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #overflowButton\n tabindex="-1"\n type="button"\n kendoButton\n class="k-overflow-button"\n [ngStyle]="style"\n [ngClass]="className"\n [attr.title]="title"\n [disabled]="disabled"\n [toggleable]="toggleable"\n [primary]="primary"\n [selected]="selected"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n [look]="look"\n (click)="click.emit($event)"\n (selectedChange)="selectedChange.emit($event)"\n >\n {{ overflowOptions.text }}\n </button>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[])],p));function p(){var t=n.call(this)||this;return t.showText="both",t.showIcon="both",t.toggleable=!1,t.primary=!1,t.look="default",t.selected=!1,t.click=new a.EventEmitter,t.pointerdown=new a.EventEmitter,t.selectedChange=new a.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t}e.ToolBarButtonComponent=r},function(t,e){t.exports=f},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(4),o=o(11),s=(n=o.ToolbarMessages,r.__extends(l,n),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=r.__decorate([a.Component({providers:[{provide:o.ToolbarMessages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-messages",template:""}),r.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(t){var e=n.call(this)||this;return e.service=t,e}e.ToolbarCustomMessagesComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(1),r=o(0),i=(n=o(4).ComponentMessages,i.__extends(a,n),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"moreToolsTitle",void 0),a);function a(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarMessages=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(4),o=o(11),s=(n=o.ToolbarMessages,r.__extends(l,n),i=l,i=r.__decorate([a.Directive({providers:[{provide:o.ToolbarMessages,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoToolbarLocalizedMessages]"}),r.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(t){var e=n.call(this)||this;return e.service=t,e}e.LocalizedToolbarMessagesDirective=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),o=o(2),r=(n=o.ToolBarToolComponent,r.__extends(s,n),(i=s).prototype.canFocus=function(){return!1},s.prototype.focus=function(){},s.prototype.handleKey=function(){return!1},s.prototype.ngAfterViewInit=function(){this.popupTemplate||(this.popupTemplate=this.toolbarTemplate)},r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],s.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],s.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("separator",{static:!1}),r.__metadata("design:type",a.ElementRef)],s.prototype,"separator",void 0),i=r.__decorate([a.Component({exportAs:"kendoToolBarSeparator",providers:[{provide:o.ToolBarToolComponent,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-separator",template:'\n <ng-template #toolbarTemplate>\n <div class="k-separator"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[])],s));function s(){return n.call(this)||this}e.ToolBarSeparatorComponent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(6),l=o(2),p=o(7),u=o(3),r=(n=l.ToolBarToolComponent,r.__extends(d,n),i=d,Object.defineProperty(d.prototype,"text",{set:function(t){this.toolbarOptions.text=u.getValueForLocation(t,this.showText,!1),this.overflowOptions.text=u.getValueForLocation(t,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"icon",{set:function(t){this.toolbarOptions.icon=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.icon=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"iconClass",{set:function(t){this.toolbarOptions.iconClass=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.iconClass=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"imageUrl",{set:function(t){this.toolbarOptions.imageUrl=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.imageUrl=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"popupSettings",{get:function(){return this._popupSettings||(this._popupSettings={animate:!0,popupClass:""}),this._popupSettings},set:function(t){this._popupSettings=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"data",{get:function(){return this._data||(this.data=[]),this._data},set:function(t){this._data=t||[]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"overflowButtons",{get:function(){return[this.overflowSplitButton].concat(this.overflowSplitButtonButtonList.buttons.toArray().filter(function(t){return!t.nativeElement.disabled}))},enumerable:!0,configurable:!0}),d.prototype.onButtonListClick=function(e){this.focusedIndex=this.overflowButtons.findIndex(function(t){return t.nativeElement.contains(e.target)})},d.prototype.onMainButtonClick=function(t){this.buttonClick.emit(t),this.focusedIndex=0},d.prototype.canFocus=function(){return!this.disabled},d.prototype.focus=function(t){void 0===t&&(t={}),this.overflows?0<this.overflowButtons.length&&(this.focusedIndex=u.getIndexOfFocused(this.getPrevKey(),this.getNextKey(),this.overflowButtons.map(function(t){return t.nativeElement}))(t),this.focusButton(this.focusedIndex,t)):"focus"!==t.type&&"keydown"!==t.type||this.toolbarSplitButton.focus()},d.prototype.handleKey=function(t){if(!this.overflows&&(t.keyCode===this.getPrevKey(this.overflows)||t.keyCode===this.getNextKey(this.overflows)))return!1;if(this.overflows){var e=u.makePeeker(this.overflowButtons),o=u.areEqual(this.focusedIndex);return this.focusedIndex=u.seekFocusedIndex(this.getPrevKey(),this.getNextKey(),e)(this.focusedIndex,t),this.focusButton(this.focusedIndex,t),!o(this.focusedIndex)}},d.prototype.focusButton=function(t,e){e.type&&"focus"!==e.type&&"keydown"!==e.type&&"click"!==e.type||this.overflowButtons[t].nativeElement.focus()},r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"showText",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"showIcon",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"text",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"icon",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"iconClass",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"imageUrl",null),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"look",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],d.prototype,"popupSettings",null),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"buttonClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],d.prototype,"arrowButtonClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"arrowButtonIcon",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"textField",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],d.prototype,"data",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"buttonClick",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"itemClick",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"open",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"close",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],d.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],d.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("toolbarSplitButton",{static:!1}),r.__metadata("design:type",s.SplitButtonComponent)],d.prototype,"toolbarSplitButton",void 0),r.__decorate([a.ViewChild("overflowSplitButton",{read:a.ElementRef,static:!1}),r.__metadata("design:type",a.ElementRef)],d.prototype,"overflowSplitButton",void 0),r.__decorate([a.ViewChild("overflowSplitButtonButtonList",{static:!1}),r.__metadata("design:type",p.ToolBarButtonListComponent)],d.prototype,"overflowSplitButtonButtonList",void 0),i=r.__decorate([a.Component({exportAs:"kendoToolBarSplitButton",providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-splitbutton",template:'\n <ng-template #toolbarTemplate>\n <kendo-splitbutton\n #toolbarSplitButton\n [data]="data"\n [text]="toolbarOptions.text"\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n [buttonClass]="buttonClass"\n [arrowButtonClass]="arrowButtonClass"\n [arrowButtonIcon]="arrowButtonIcon"\n [disabled]="disabled"\n [tabIndex]="-1"\n [textField]="textField"\n [popupSettings]="popupSettings"\n [look]="look"\n (buttonClick)="buttonClick.emit($event)"\n (open)="open.emit($event)"\n (close)="close.emit($event)"\n (itemClick)="itemClick.emit($event)"\n >\n </kendo-splitbutton>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #overflowSplitButton\n type="button"\n tabindex="-1"\n kendoButton\n class="k-overflow-button"\n [disabled]="disabled"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n [look]="look"\n [ngClass]="buttonClass"\n (click)="buttonClick.emit($event)"\n (click)="onMainButtonClick($event)"\n >\n {{ overflowOptions.text }}\n </button>\n <kendo-toolbar-buttonlist\n #overflowSplitButtonButtonList\n [look]="look"\n [data]="data"\n [disabled]="disabled"\n [textField]="textField"\n (itemClick)="itemClick.emit($event)"\n (click)="onButtonListClick($event)"\n >\n </kendo-toolbar-buttonlist>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[])],d));function d(){var t=n.call(this)||this;return t.showText="both",t.showIcon="both",t.look="default",t.arrowButtonIcon="arrow-s",t.textField="text",t.buttonClick=new a.EventEmitter,t.itemClick=new a.EventEmitter,t.open=new a.EventEmitter,t.close=new a.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t._popupSettings={animate:!0,popupClass:""},t.focusedIndex=-1,t.getNextKey=u.getNextKey(),t.getPrevKey=u.getPrevKey(),t}e.ToolBarSplitButtonComponent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(2),l=o(6),p=o(7),u=o(3),r=(n=s.ToolBarToolComponent,r.__extends(d,n),i=d,Object.defineProperty(d.prototype,"text",{set:function(t){this.toolbarOptions.text=u.getValueForLocation(t,this.showText,!1),this.overflowOptions.text=u.getValueForLocation(t,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"icon",{set:function(t){this.toolbarOptions.icon=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.icon=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"iconClass",{set:function(t){this.toolbarOptions.iconClass=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.iconClass=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"imageUrl",{set:function(t){this.toolbarOptions.imageUrl=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.imageUrl=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(t){this._popupSettings=Object.assign({animate:!0,popupClass:""},t)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"data",{get:function(){return this._data||(this.data=[]),this._data},set:function(t){this._data=t||[]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"overflowButtons",{get:function(){return this.overflowDropDownButtonButtonList.buttons.toArray().filter(function(t){return!t.nativeElement.disabled}).slice()},enumerable:!0,configurable:!0}),d.prototype.onButtonListClick=function(e){this.focusedIndex=this.overflowDropDownButtonButtonList.buttons.toArray().findIndex(function(t){return t.nativeElement.contains(e.target)})},d.prototype.canFocus=function(){return!this.disabled},d.prototype.focus=function(t){void 0===t&&(t={}),this.overflows?0<this.overflowButtons.length&&(this.focusedIndex=u.getIndexOfFocused(this.getPrevKey(),this.getNextKey(),this.overflowButtons.map(function(t){return t.nativeElement}))(t),this.focusButton(this.focusedIndex,t)):"focus"!==t.type&&"keydown"!==t.type||this.toolbarDropDownButton.focus()},d.prototype.handleKey=function(t){if(!this.overflows&&(t.keyCode===this.getPrevKey(this.overflows)||t.keyCode===this.getNextKey(this.overflows)))return!1;if(this.overflows){var e=u.makePeeker(this.overflowButtons),o=u.areEqual(this.focusedIndex);return this.focusedIndex=u.seekFocusedIndex(this.getPrevKey(),this.getNextKey(),e)(this.focusedIndex,t),this.focusButton(this.focusedIndex,t),!o(this.focusedIndex)}},d.prototype.focusButton=function(t,e){e.type&&"focus"!==e.type&&"keydown"!==e.type||this.overflowButtons[t].nativeElement.focus()},r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"showText",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"showIcon",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"text",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"icon",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"iconClass",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"imageUrl",null),r.__decorate([a.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],d.prototype,"popupSettings",null),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"buttonClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"textField",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"look",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],d.prototype,"data",null),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],d.prototype,"primary",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"itemClick",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"open",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"close",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],d.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],d.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("dropdownButton",{read:a.ElementRef,static:!0}),r.__metadata("design:type",a.ElementRef)],d.prototype,"dropdownButton",void 0),r.__decorate([a.ViewChild(l.DropDownButtonComponent,{static:!1}),r.__metadata("design:type",l.DropDownButtonComponent)],d.prototype,"dropDownButtonComponent",void 0),r.__decorate([a.ViewChild("toolbarDropDownButton",{static:!1}),r.__metadata("design:type",l.DropDownButtonComponent)],d.prototype,"toolbarDropDownButton",void 0),r.__decorate([a.ViewChild("overflowDropDownButtonButtonList",{static:!1}),r.__metadata("design:type",p.ToolBarButtonListComponent)],d.prototype,"overflowDropDownButtonButtonList",void 0),i=r.__decorate([a.Component({exportAs:"kendoToolBarDropDownButton",providers:[{provide:s.ToolBarToolComponent,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-dropdownbutton",template:'\n <ng-template #toolbarTemplate>\n <kendo-dropdownbutton\n #toolbarDropDownButton\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n [buttonClass]="buttonClass"\n [disabled]="disabled"\n [tabIndex]="-1"\n [data]="data"\n [textField]="textField"\n [popupSettings]="popupSettings"\n [look]="look"\n [primary]="primary"\n (open)="open.emit($event)"\n (close)="close.emit($event)"\n (itemClick)="itemClick.emit($event)"\n >\n {{ toolbarOptions.text }}\n </kendo-dropdownbutton>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n type="button"\n tabindex="-1"\n kendoButton\n class="k-overflow-button"\n [disabled]="true"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n [ngClass]="buttonClass"\n (click)="itemClick.emit($event)"\n >\n {{ overflowOptions.text }}\n </button>\n <kendo-toolbar-buttonlist\n #overflowDropDownButtonButtonList\n [data]="data"\n [disabled]="disabled"\n [textField]="textField"\n (itemClick)="itemClick.emit($event)"\n (click)="onButtonListClick($event)"\n >\n </kendo-toolbar-buttonlist>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[])],d));function d(){var t=n.call(this)||this;return t.showText="both",t.showIcon="both",t.look="default",t.primary=!1,t.itemClick=new a.EventEmitter,t.open=new a.EventEmitter,t.close=new a.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t._popupSettings={animate:!0,popupClass:""},t.focusedIndex=-1,t.getNextKey=u.getNextKey(),t.getPrevKey=u.getPrevKey(),t}e.ToolBarDropDownButtonComponent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(4),l=o(2),p=o(8),u=o(6),d=o(3),s=(n=l.ToolBarToolComponent,r.__extends(c,n),i=c,Object.defineProperty(c.prototype,"buttonElements",{get:function(){return this.getButtonGroup().buttons.filter(function(t){return!t.isDisabled}).map(function(t){return t.element})},enumerable:!0,configurable:!0}),c.prototype.onFocus=function(){this.focusedIndex=0},c.prototype.onNavigate=function(t){t.preventDefault()},c.prototype.selectedChangeHandler=function(t,e){e.selected=t,e.selectedChange.emit(t)},c.prototype.onButtonClick=function(e){this.focusedIndex=this.buttonElements.findIndex(function(t){return t===e.target||t.contains(e.target)}),this.focusButton(this.focusedIndex,e)},c.prototype.canFocus=function(){return!(this.disabled||0===this.buttonElements.length)},c.prototype.focus=function(t){void 0===t&&(t={});var e=this.getNextKey(this.overflows),o=this.getPrevKey(this.overflows);this.focusedIndex=d.getIndexOfFocused(o,e,this.buttonElements)(t),this.focusButton(this.focusedIndex,t)},c.prototype.handleKey=function(t){var e=this.getNextKey(this.overflows),o=this.getPrevKey(this.overflows),n=d.makePeeker(this.buttonElements),i=d.areEqual(this.focusedIndex);return this.focusedIndex=d.seekFocusedIndex(o,e,n)(this.focusedIndex,t),this.focusButton(this.focusedIndex,t),!i(this.focusedIndex)},c.prototype.getButtonGroup=function(){return this.overflows?this.overflowButtonGroup:this.toolbarButtonGroup},c.prototype.focusButton=function(t,e){e.type&&"focus"!==e.type&&"keydown"!==e.type||this.buttonElements[t].focus()},r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],c.prototype,"disabled",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],c.prototype,"selection",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],c.prototype,"width",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],c.prototype,"look",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],c.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],c.prototype,"popupTemplate",void 0),r.__decorate([a.ContentChildren(a.forwardRef(function(){return p.ToolBarButtonComponent})),r.__metadata("design:type",a.QueryList)],c.prototype,"buttonComponents",void 0),r.__decorate([a.ViewChild("toolbarButtonGroup",{static:!1}),r.__metadata("design:type",u.ButtonGroupComponent)],c.prototype,"toolbarButtonGroup",void 0),r.__decorate([a.ViewChild("overflowButtonGroup",{static:!1}),r.__metadata("design:type",u.ButtonGroupComponent)],c.prototype,"overflowButtonGroup",void 0),i=r.__decorate([a.Component({exportAs:"kendoToolBarButtonGroup",providers:[s.LocalizationService,{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-buttongroup",template:'\n <ng-template #toolbarTemplate>\n <kendo-buttongroup\n #toolbarButtonGroup\n [tabIndex]="-1"\n [selection]="selection"\n [disabled]="disabled"\n [look]="look"\n [width]="width"\n (navigate)="onNavigate($event)"\n (focus)="onFocus()"\n >\n <span\n kendoButton\n *ngFor="let button of buttonComponents"\n [ngStyle]="button.style"\n [ngClass]="button.className"\n [attr.title]="button.title"\n [disabled]="button.disabled"\n [togglable]="button.togglable"\n [primary]="button.primary"\n [selected]="button.selected"\n [icon]="button.toolbarOptions.icon"\n [iconClass]="button.toolbarOptions.iconClass"\n [imageUrl]="button.toolbarOptions.imageUrl"\n (click)="button.click.emit($event); onButtonClick($event)"\n (pointerdown)="button.pointerdown.emit($event)"\n (selectedChange)="selectedChangeHandler($event, button)"\n >\n {{ button.toolbarOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n <ng-template #popupTemplate>\n <kendo-buttongroup\n #overflowButtonGroup\n class="k-overflow-button"\n [tabIndex]="-1"\n [selection]="selection"\n [disabled]="disabled"\n [look]="look"\n [width]="width"\n >\n <span\n kendoButton\n class="k-overflow-button"\n *ngFor="let button of buttonComponents"\n [ngStyle]="button.style"\n [ngClass]="button.className"\n [attr.title]="button.title"\n [disabled]="button.disabled"\n [togglable]="button.togglable"\n [primary]="button.primary"\n [selected]="button.selected"\n [icon]="button.overflowOptions.icon"\n [iconClass]="button.overflowOptions.iconClass"\n [imageUrl]="button.overflowOptions.imageUrl"\n (click)="button.click.emit($event); onButtonClick($event)"\n (selectedChange)="selectedChangeHandler($event, button)"\n >\n {{ button.overflowOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(t){var e=n.call(this)||this;return e.localization=t,e.selection="multiple",e.look="default",e.focusedIndex=-1,e.getNextKey=d.getNextKey(e.localization.rtl),e.getPrevKey=d.getPrevKey(e.localization.rtl),e}e.ToolBarButtonGroupComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),n=(r.prototype.refresh=function(t){this.onRefresh.emit(t)},n.__decorate([i.Injectable()],r));function r(){this.onRefresh=new i.EventEmitter}e.RefreshService=n},function(t,e){t.exports=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){return{animate:!0,anchorAlign:{horizontal:t?"left":"right",vertical:"bottom"},popupAlign:{horizontal:t?"left":"right",vertical:"top"}}}var i=o(1),l=o(0),r=o(18),a=o(5),s=o(4),p=o(29),u=o(28),d=o(17),c=o(27),f=o(2),g=o(3),m=o(5),h=o(26),y=o(25),b=o(9),v=o(9),_=o(5),w=o(24),c=(Object.defineProperty(C.prototype,"resizable",{get:function(){return this.overflow},set:function(t){this.overflow=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"popupSettings",{get:function(){return this._popupSettings||n(this.localization.rtl)},set:function(t){this._popupSettings=Object.assign({},n(this.localization.rtl),t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(t){this.tabindex=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"appendTo",{get:function(){var t=this.popupSettings.appendTo;if(t&&"root"!==t)return"component"===t?this.container:t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"popupOpen",{get:function(){return this._open},set:function(t){var e;this.popupOpen!==t&&(e=new h.PreventableEvent,(t?this.open:this.close).emit(e),e.isDefaultPrevented()||this.toggle(t))},enumerable:!0,configurable:!0}),C.prototype.onFocus=function(t){this.navigationService.resetNavigation(),this.navigationService.focusFirst(t),this.element.nativeElement.setAttribute("tabindex","-1")},C.prototype.onFocusOut=function(t){var e=this;g.closest(t.relatedTarget,function(t){return t===e.element.nativeElement})?this.element.nativeElement.setAttribute("tabindex","-1"):this.element.nativeElement.setAttribute("tabindex",this.tabindex.toString())},Object.defineProperty(C.prototype,"getRole",{get:function(){return"toolbar"},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"getDir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"resizableClass",{get:function(){return this.overflow},enumerable:!0,configurable:!0}),C.prototype.ngAfterViewInit=function(){var e=this;this.element.nativeElement.getAttribute("tabindex")||this.element.nativeElement.setAttribute("tabindex","0"),this.zone.runOutsideAngular(function(){e.toolbarKeydownListener=e.renderer.listen(e.element.nativeElement,"keydown",function(t){switch(t.keyCode){case m.Keys.ArrowLeft:e.zone.run(function(){t.preventDefault(),"ltr"===e.direction?e.navigationService.focusPrev(t):e.navigationService.focusNext(t),e.element.nativeElement.setAttribute("tabindex","-1")});break;case m.Keys.ArrowRight:e.zone.run(function(){t.preventDefault(),"ltr"===e.direction?e.navigationService.focusNext(t):e.navigationService.focusPrev(t),e.element.nativeElement.setAttribute("tabindex","-1")});break;case m.Keys.Tab:e.zone.run(function(){return e.navigationService.resetNavigation()});break;case m.Keys.Escape:e.zone.run(function(){return e.toggle(!1)})}})}),this.overflow&&(this.subscriptions.add(y.merge(this.resizeSensor.resize.pipe(v.filter(function(){return e.overflow})),this.renderedTools.changes).subscribe(function(){return e.onResize()})),this.zone.runOutsideAngular(function(){return setTimeout(function(){return e.onResize()})}),this.navigationService.overflowButton=this.overflowButton),this.navigationService.setRenderedTools(this.renderedTools.toArray()),this.subscriptions.add(this.renderedTools.changes.subscribe(function(t){return e.navigationService.setRenderedTools(t.toArray())}))},C.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe(function(t){t=t.rtl;return e.direction=t?"rtl":"ltr"})),_.isDocumentAvailable()&&this.zone.runOutsideAngular(function(){return e.subscriptions.add(y.fromEvent(document,"click").pipe(v.filter(function(){return!!e.popupRef}),v.filter(function(t){return!e.popupRef.popup.instance.container.nativeElement.contains(t.target)}),v.filter(function(t){return!e.overflowButton.nativeElement.contains(t.target)})).subscribe(function(){e.zone.run(function(){e.popupOpen=!1})}))})},C.prototype.ngOnChanges=function(t){t.tabindex&&this.element.nativeElement.setAttribute("tabindex",t.tabindex.currentValue.toString())},C.prototype.ngOnDestroy=function(){this.popupRef&&this.popupRef.close(),this.toolbarKeydownListener&&this.toolbarKeydownListener(),this.cancelRenderedToolsSubscription$.next(),this.subscriptions.unsubscribe()},Object.defineProperty(C.prototype,"moreToolsTitle",{get:function(){return this.localization.get("moreToolsTitle")},enumerable:!0,configurable:!0}),C.prototype.onRendererClick=function(t){this.navigationService.click(t),this.element.nativeElement.setAttribute("tabindex","-1")},C.prototype.showPopup=function(){this.popupOpen=!this.popupOpen,this.navigationService.click({context:void 0,event:void 0})},C.prototype.toggle=function(t){this._open=void 0!==t?t:!this.popupOpen,this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupOpen&&(this.popupRef=this.popupService.open({anchor:this.overflowButton,anchorAlign:this.popupSettings.anchorAlign,popupAlign:this.popupSettings.popupAlign,content:this.popupTemplate,appendTo:this.appendTo,animate:this.popupSettings.animate,popupClass:this.popupSettings.popupClass,positionMode:"absolute"}),this.setPopupContentDimensions(),this.popupRef.popupOpen.subscribe(this.onPopupOpen.bind(this)),this.popupRef.popupClose.subscribe(this.onPopupClose.bind(this)))},C.prototype.onResize=function(){var t;_.isDocumentAvailable()&&(t=g.innerWidth(this.element.nativeElement)-this.overflowAnchorWidth,this.shrink(t,this.childrenWidth),this.stretch(t,this.childrenWidth)),this.cdr.detectChanges(),this.resizeSensor.acceptSize()},C.prototype.onPopupOpen=function(){var e=this;this.zone.runOutsideAngular(function(){e.overflowKeydownListener=e.renderer.listen(e.popupRef.popupElement,"keydown",function(t){switch(t.keyCode){case m.Keys.ArrowUp:e.zone.run(function(){t.preventDefault(),e.navigationService.focusPrev(t)});break;case m.Keys.ArrowDown:e.zone.run(function(){t.preventDefault(),e.navigationService.focusNext(t)});break;case m.Keys.Escape:e.zone.run(function(){return e.toggle(!1)});break;case m.Keys.Tab:e.zone.run(function(){e.toggle(!1),e.navigationService.resetNavigation()})}})}),this.cancelRenderedToolsSubscription$.next(),this.navigationService.moveFocusToPopup(),this.navigationService.setRenderedTools(this.overflowRenderedTools.toArray()),this.overflowRenderedTools.changes.pipe(b.takeUntil(this.cancelRenderedToolsSubscription$)).subscribe(function(t){return e.navigationService.setRenderedTools(t.toArray())})},C.prototype.onPopupClose=function(){var e=this;this.cancelRenderedToolsSubscription$.next(),this.navigationService.setRenderedTools(this.renderedTools.toArray()),this.renderedTools.changes.pipe(b.takeUntil(this.cancelRenderedToolsSubscription$)).subscribe(function(t){return e.navigationService.setRenderedTools(t.toArray())}),this.navigationService.moveFocusToToolBar(),this.overflowKeydownListener&&this.overflowKeydownListener()},Object.defineProperty(C.prototype,"displayAnchor",{get:function(){return 0<this.allTools.filter(function(t){return t.overflows&&t.responsive}).length?"visible":"hidden"},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"popupWidth",{get:function(){return this.popupSettings&&this.popupSettings.width?isNaN(this.popupSettings.width)?this.popupSettings.width:this.popupSettings.width+"px":w.defaultPopupWidth},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"popupHeight",{get:function(){if(this.popupSettings&&this.popupSettings.height)return isNaN(this.popupSettings.height)?this.popupSettings.height:this.popupSettings.height+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"overflowAnchorWidth",{get:function(){return this.overflow?(this.cachedOverflowAnchorWidth||(this.cachedOverflowAnchorWidth=g.outerWidth(this.overflowButton.nativeElement)),this.cachedOverflowAnchorWidth):0},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"childrenWidth",{get:function(){var t=this.renderedTools.reduce(function(t,e){return e.width+t},0);return Math.ceil(t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"visibleTools",{get:function(){return this.allTools.filter(function(t){return!1===t.overflows})},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"overflowTools",{get:function(){return this.allTools.filter(function(t){return!0===t.overflows})},enumerable:!0,configurable:!0}),C.prototype.shrink=function(t,e){if(t<e)for(var o=this.visibleTools.length-1;0<=o&&!(e<t);o--)e-=this.hideLastVisibleTool()},C.prototype.stretch=function(t,e){var o;if(e<t)for(var n=this.overflowTools.length-1;0<=n&&(o=this.showFirstHiddenTool(t,e));n--)e+=o},C.prototype.hideLastVisibleTool=function(){var e=this.visibleTools[this.visibleTools.length-1],t=this.renderedTools.find(function(t){return t.tool===e}).width;return e.overflows=!0,this.refreshService.refresh(e),t},C.prototype.showFirstHiddenTool=function(t,e){var o=this.overflowTools[0],n=this.renderedTools.find(function(t){return t.tool===o});return o.overflows=!1,o.visibility="hidden",this.refreshService.refresh(o),t>e+n.width?o.visibility="visible":o.overflows=!0,this.refreshService.refresh(o),n.width},C.prototype.setPopupContentDimensions=function(){var t=this.popupRef.popup.instance.contentContainer.nativeElement;t.style.width=this.popupWidth,t.style.height=this.popupHeight,t.style.overflow="auto"},i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],C.prototype,"overflow",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],C.prototype,"resizable",null),i.__decorate([l.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],C.prototype,"popupSettings",null),i.__decorate([l.Input(),i.__metadata("design:type",Number)],C.prototype,"tabindex",void 0),i.__decorate([l.Input("tabIndex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],C.prototype,"tabIndex",null),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],C.prototype,"open",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],C.prototype,"close",void 0),i.__decorate([l.ContentChildren(f.ToolBarToolComponent),i.__metadata("design:type",l.QueryList)],C.prototype,"allTools",void 0),i.__decorate([l.ViewChild("overflowButton",{static:!1}),i.__metadata("design:type",l.ElementRef)],C.prototype,"overflowButton",void 0),i.__decorate([l.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",l.TemplateRef)],C.prototype,"popupTemplate",void 0),i.__decorate([l.ViewChild("resizeSensor",{static:!1}),i.__metadata("design:type",a.ResizeSensorComponent)],C.prototype,"resizeSensor",void 0),i.__decorate([l.ViewChild("container",{read:l.ViewContainerRef,static:!0}),i.__metadata("design:type",l.ViewContainerRef)],C.prototype,"container",void 0),i.__decorate([l.ViewChildren("toolbarRenderer"),i.__metadata("design:type",l.QueryList)],C.prototype,"renderedTools",void 0),i.__decorate([l.ViewChildren("overflowRenderer"),i.__metadata("design:type",l.QueryList)],C.prototype,"overflowRenderedTools",void 0),i.__decorate([l.HostBinding("class.k-widget"),l.HostBinding("class.k-toolbar"),i.__metadata("design:type",Boolean)],C.prototype,"hostClasses",void 0),i.__decorate([l.HostListener("focus",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],C.prototype,"onFocus",null),i.__decorate([l.HostListener("focusout",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],C.prototype,"onFocusOut",null),i.__decorate([l.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],C.prototype,"getRole",null),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],C.prototype,"getDir",null),i.__decorate([l.HostBinding("class.k-toolbar-resizable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],C.prototype,"resizableClass",null),i.__decorate([l.Component({exportAs:"kendoToolBar",providers:[d.RefreshService,c.NavigationService,s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.toolbar"}],selector:"kendo-toolbar",template:'\n <ng-container kendoToolbarLocalizedMessages\n i18n-moreToolsTitle="kendo.toolbar.moreToolsTitle|The title of the **more tools** button in a responsive ToolBar"\n moreToolsTitle="More tools"\n >\n </ng-container>\n <ng-container *ngFor="let tool of allTools; let index = index">\n <kendo-toolbar-renderer\n #toolbarRenderer\n (rendererClick)="onRendererClick($event)"\n [location]="\'toolbar\'"\n [resizable]="overflow"\n [tool]="tool"\n ></kendo-toolbar-renderer>\n </ng-container>\n <button\n #overflowButton\n type="button"\n tabindex="-1"\n [title]="moreToolsTitle"\n [attr.aria-label]="moreToolsTitle"\n *ngIf="overflow"\n [style.visibility]="displayAnchor"\n class="k-overflow-anchor k-button"\n (click)="showPopup()"\n >\n <span class="k-icon k-i-more-vertical"></span>\n </button>\n <ng-template #popupTemplate>\n <ul class="k-overflow-container k-list-container k-reset">\n <ng-container *ngFor="let tool of allTools; let index = index">\n <li class="k-item">\n <kendo-toolbar-renderer\n #overflowRenderer\n (rendererClick)="onRendererClick($event)"\n [location]="\'overflow\'"\n [resizable]="overflow"\n [tool]="tool"\n ></kendo-toolbar-renderer>\n </li>\n </ng-container>\n </ul>\n </ng-template>\n <ng-container #container></ng-container>\n <kendo-resize-sensor *ngIf="overflow" [rateLimit]="1000" #resizeSensor></kendo-resize-sensor>\n '}),i.__metadata("design:paramtypes",[s.LocalizationService,r.PopupService,d.RefreshService,c.NavigationService,l.ElementRef,l.ChangeDetectorRef,l.NgZone,l.Renderer2])],C));function C(t,e,o,n,i,r,a,s){this.localization=t,this.popupService=e,this.refreshService=o,this.navigationService=n,this.element=i,this.cdr=r,this.zone=a,this.renderer=s,this.overflow=!1,this.tabindex=0,this.open=new l.EventEmitter,this.close=new l.EventEmitter,this.hostClasses=!0,this.cancelRenderedToolsSubscription$=new y.Subject,this.subscriptions=new y.Subscription,p.validatePackage(u.packageMetadata),this.direction=t.rtl?"rtl":"ltr"}e.ToolBarComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=o(3),i=(a.prototype.getElement=function(){return this.element.nativeElement},a.prototype.querySelector=function(t){return this.element.nativeElement.querySelector(t)},a.prototype.querySelectorAll=function(t){return this.element.nativeElement.querySelectorAll(t)},a.prototype.findFocusable=function(){return r.findFocusable(this.element.nativeElement,!1)},a.prototype.findFocusableChild=function(t){return t=t||this.findFocusable(),r.findFocusableChild(t,!1)},a.prototype.findNextFocusableSibling=function(t){return t=t||this.findFocusable(),r.findFocusableSibling(t,!1)},a.prototype.findPrevFocusableSibling=function(t){return t=t||this.findFocusable(),r.findFocusableSibling(t,!1,!0)},a.prototype.setAttribute=function(t,e,o){this.renderer.setAttribute(t,e,o)},n.__decorate([i.Injectable()],a));function a(){}e.RendererService=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),r=o(0),i=o(3),a=o(2),s=o(17),o=o(20),s=(l.prototype.onClick=function(t){this.rendererClick.emit({context:this,event:t})},l.prototype.ngOnInit=function(){this.resizable?("toolbar"===this.location?(this.template=this.tool.toolbarTemplate,this.renderer.setStyle(this.element.nativeElement,"visibility","hidden")):this.template=this.tool.popupTemplate,this.renderer.setStyle(this.element.nativeElement,"display","none")):(this.tool.overflows=!1,this.template=this.tool.toolbarTemplate,this.renderer.setStyle(this.element.nativeElement,"visibility","display"),this.renderer.setStyle(this.element.nativeElement,"display","inline-block"))},l.prototype.ngOnDestroy=function(){this.refreshSubscription.unsubscribe()},l.prototype.ngAfterViewInit=function(){this.resizable&&this.refresh()},Object.defineProperty(l.prototype,"width",{get:function(){return this.tool.overflows?0:i.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),l.prototype.isDisplayed=function(){return"none"!==this.element.nativeElement.style.display},l.prototype.refresh=function(){this.resizable&&("toolbar"===this.location?(this.renderer.setStyle(this.element.nativeElement,"visibility",this.tool.visibility),this.renderer.setStyle(this.element.nativeElement,"display",this.tool.toolbarDisplay)):this.renderer.setStyle(this.element.nativeElement,"display",this.tool.overflowDisplay))},l.prototype.setAttribute=function(t,e,o){this.renderer.setAttribute(t,e,o)},n.__decorate([r.Input(),n.__metadata("design:type",a.ToolBarToolComponent)],l.prototype,"tool",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],l.prototype,"location",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],l.prototype,"resizable",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],l.prototype,"rendererClick",void 0),n.__decorate([r.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],l.prototype,"onClick",null),n.__decorate([r.Component({exportAs:"kendoToolBarRenderer",providers:[o.RendererService],selector:"kendo-toolbar-renderer",template:'\n <ng-container *ngIf="location === \'toolbar\'">\n <ng-template [ngTemplateOutlet]="template"></ng-template>\n </ng-container>\n <ng-container *ngIf="location === \'overflow\' && tool.responsive">\n <ng-template [ngTemplateOutlet]="template"></ng-template>\n </ng-container>\n '}),n.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,o.RendererService,s.RefreshService])],l));function l(t,e,o,n){var i=this;this.element=t,this.renderer=e,this.rendererService=o,this.refreshService=n,this.rendererClick=new r.EventEmitter,this.rendererService.element=t,(this.rendererService.renderer=this).refreshSubscription=this.refreshService.onRefresh.subscribe(function(t){i.tool===t&&i.refresh()})}e.ToolBarRendererComponent=s},function(t,e){t.exports=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=o(22),a=o(6),s=o(18),l=o(5),p=o(19),u=o(2),d=o(8),c=o(16),f=o(15),g=o(14),m=o(13),h=o(21),y=o(7),b=o(12),o=o(10),m=[u.ToolBarToolComponent,d.ToolBarButtonComponent,c.ToolBarButtonGroupComponent,f.ToolBarDropDownButtonComponent,g.ToolBarSplitButtonComponent,m.ToolBarSeparatorComponent],y=[h.ToolBarRendererComponent,y.ToolBarButtonListComponent,o.ToolbarCustomMessagesComponent,b.LocalizedToolbarMessagesDirective],l=n.__decorate([i.NgModule({declarations:[p.ToolBarComponent,m,y],exports:[p.ToolBarComponent,m,o.ToolbarCustomMessagesComponent,b.LocalizedToolbarMessagesDirective],imports:[r.CommonModule,a.ButtonsModule,s.PopupModule,l.ResizeSensorModule]})],function(){});e.ToolBarModule=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultPopupWidth="150px"},function(t,e){t.exports=g},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(i.prototype.preventDefault=function(){this.prevented=!0},i.prototype.isDefaultPrevented=function(){return this.prevented},i);function i(){this.prevented=!1}e.PreventableEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=o(9),a=o(3),i=(s.prototype.setRenderedTools=function(t){this.renderedTools=t.slice()},s.prototype.click=function(t){var e=t.context,t=t.event;this.focused.renderedTool!==e&&t&&this.focus(e,t)},s.prototype.moveFocusToToolBar=function(){this.isPopupFocused=!1,this.focusOverflowButton()},s.prototype.moveFocusToPopup=function(){this.isPopupFocused=!0,this.blurOverflowButton(),this.focus()},s.prototype.focusNext=function(t){var e;this.isOverflowButtonFocused||!this.focused.renderedTool||this.focused.renderedTool.tool.handleKey(t)||((e=this.getFocusableTools().slice(this.focused.index+1)[0])?this.focus(e,t):this.isOverflowButtonVisible()&&!this.isPopupFocused&&this.focusOverflowButton())},s.prototype.focusPrev=function(t){var e;this.isOverflowButtonFocused?(e=this.getFocusableTools().reverse()[0],this.focus(e,t)):!this.focused.renderedTool||this.focused.renderedTool.tool.handleKey(t)||(e=this.getFocusableTools().slice(0,this.focused.index).reverse()[0])&&this.focus(e,t)},s.prototype.resetNavigation=function(){this.blurOverflowButton(),this.focused.renderedTool=null,this.focused.index=-1},s.prototype.focusFirst=function(t){var e=this.getFocusableTools()[0];e&&(this.focused.renderedTool=e,this.focused.index=this.getFocusableTools().findIndex(function(t){return t===e}),this.focus(e,t))},s.prototype.getFocusableTools=function(){var e=this;return this.renderedTools.filter(function(t){return t.tool.overflows===e.isPopupFocused&&t.tool.canFocus()})},s.prototype.focus=function(o,n){var i=this;this.zone.onStable.pipe(r.take(1)).subscribe(function(){var t,e;o?o.tool.canFocus&&o.tool.canFocus()&&(i.focused.renderedTool=o,i.focused.index=i.getFocusableTools().findIndex(function(t){return t===o}),o.tool.focus(n),i.blurOverflowButton()):(t=i.getFocusableTools(),(e=t.find(function(t){return t===i.focused.renderedTool})||t[0])&&(i.focused.renderedTool=e,i.focused.index=i.getFocusableTools().findIndex(function(t){return t===e}),e.tool.focus(n)))})},s.prototype.blurOverflowButton=function(){this.overflowButton&&(this.isOverflowButtonFocused=!1,this.overflowButton.nativeElement.tabIndex=-1)},s.prototype.focusOverflowButton=function(){this.isOverflowButtonFocused=!0,this.overflowButton.nativeElement.tabIndex=0,this.overflowButton.nativeElement.focus()},s.prototype.isOverflowButtonVisible=function(){return a.isPresent(this.overflowButton)&&"visible"===window.getComputedStyle(this.overflowButton.nativeElement).getPropertyValue("visibility")},n.__decorate([i.Injectable(),n.__metadata("design:paramtypes",[i.NgZone])],s));function s(t){this.zone=t,this.focused={renderedTool:null,index:-1},this.renderedTools=[],this.isPopupFocused=!1,this.isOverflowButtonFocused=!1}e.NavigationService=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-toolbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1625208480,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e){t.exports=m},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(19);e.ToolBarComponent=n.ToolBarComponent;n=o(2);e.ToolBarToolComponent=n.ToolBarToolComponent;n=o(8);e.ToolBarButtonComponent=n.ToolBarButtonComponent;n=o(16);e.ToolBarButtonGroupComponent=n.ToolBarButtonGroupComponent;n=o(15);e.ToolBarDropDownButtonComponent=n.ToolBarDropDownButtonComponent;n=o(14);e.ToolBarSplitButtonComponent=n.ToolBarSplitButtonComponent;n=o(13);e.ToolBarSeparatorComponent=n.ToolBarSeparatorComponent;n=o(23);e.ToolBarModule=n.ToolBarModule;n=o(12);e.LocalizedToolbarMessagesDirective=n.LocalizedToolbarMessagesDirective;o=o(10);e.ToolbarCustomMessagesComponent=o.ToolbarCustomMessagesComponent,function(t){for(var e in t)r(e,t[e])}(e)}],i={},n.m=o,n.c=i,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=30)}}});
5
+ System.register("@progress/kendo-angular-toolbar",["@angular/core","tslib","@progress/kendo-angular-buttons","@angular/common","@progress/kendo-angular-common","@progress/kendo-angular-popup","@progress/kendo-angular-l10n","rxjs","@progress/kendo-licensing","rxjs/operators"],function(r){var a,s,l,p,u,d,c,f,g,m;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){a=e(t)},function(t){s=e(t)},function(t){l=e(t)},function(t){p=e(t)},function(t){u=e(t)},function(t){d=e(t)},function(t){c=e(t)},function(t){f=e(t)},function(t){g=e(t)},function(t){m=e(t)}],execute:function(){function n(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var o,i;o=[function(t,e){t.exports=a},function(t,e){t.exports=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),o=o(0),o=(Object.defineProperty(i.prototype,"toolbarDisplay",{get:function(){return this.overflows?"none":"inline-block"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"overflowDisplay",{get:function(){return this.overflows?"block":"none"},enumerable:!0,configurable:!0}),i.prototype.canFocus=function(){return!1},i.prototype.focus=function(t){},i.prototype.handleKey=function(t){return!1},n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],i.prototype,"responsive",void 0),n.__decorate([o.Component({selector:"toolbar-tool",template:""})],i));function i(){this.tabIndex=-1,this.overflows=!0,this.responsive=!0}e.ToolBarToolComponent=o},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e(5),i=/^(?:a|input|select|textarea|button|object)$/i;r.outerWidth=function(t){var e=t.offsetWidth,t=getComputedStyle(t);return e+(parseFloat(t.marginLeft)||0+parseFloat(t.marginRight)||0)},r.innerWidth=function(t){var e=t.offsetWidth,t=getComputedStyle(t);return(e-=parseFloat(t.paddingLeft)||0+parseFloat(t.borderLeftWidth)||0)-(parseFloat(t.paddingRight)||0+parseFloat(t.borderRightWidth)||0)},r.outerHeight=function(t){var e=t.offsetHeight,t=getComputedStyle(t);return e+(parseFloat(t.marginTop)||0+parseFloat(t.marginBottom)||0)},r.closest=function(t,e){for(;t&&!e(t);)t=t.parentNode;return t},r.isVisible=function(t){var e=t.getBoundingClientRect(),o=0<e.width&&0<e.height,e=0!==e.x&&0!==e.y;return(o||e)&&"hidden"!==window.getComputedStyle(t).visibility},r.findElement=function(t,e,o){if(void 0===o&&(o=!0),t){if(o&&e(t))return t;for(t=t.firstChild;t;){if(1===t.nodeType){var n=r.findElement(t,e);if(n)return n}t=t.nextSibling}}},r.isFocusable=function(t,e){if(void 0===e&&(e=!0),t.tagName){var o=t.tagName.toLowerCase(),n=null!==t.getAttribute("tabIndex");return(n=i.test(o)?!t.disabled:n)&&(!e||r.isVisible(t))}return!1},r.findFocusable=function(t,e){return void 0===e&&(e=!0),r.findElement(t,function(t){return r.isFocusable(t,e)})},r.findFocusableChild=function(t,e){return void 0===e&&(e=!0),r.findElement(t,function(t){return r.isFocusable(t,e)},!1)},r.findFocusableSibling=function(t,e,o){void 0===e&&(e=!0);for(var n=o?t.prevSibling:t.nextSibling;n;){if(1===n.nodeType){var i=r.findElement(n,function(t){return r.isFocusable(t,e)});if(i)return i}n=o?n.prevSibling:n.nextSibling}},r.isPresent=function(t){return null!=t},r.makePeeker=function(e){return function(t){return r.isPresent(e[t])}},r.getIndexOfFocused=function(t,o,n){return function(e){switch(e.type){case"keydown":if(e.keyCode===t)return n.length-1;if(e.keyCode===o)return 0;break;case"click":return n.findIndex(function(t){return t===e.target||t.contains(e.target)});default:return 0}}},r.seekFocusedIndex=function(o,n,i){return function(t,e){switch(e.keyCode){case o:return i(t-1)?t-1:t;case n:return i(t+1)?t+1:t;default:return t}}},r.areEqual=function(e){return function(t){return e===t}},r.getNextKey=function(e){return void 0===e&&(e=!1),function(t){return(t=void 0===t?!0:t)?o.Keys.ArrowDown:e?o.Keys.ArrowLeft:o.Keys.ArrowRight}},r.getPrevKey=function(e){return void 0===e&&(e=!1),function(t){return(t=void 0===t?!0:t)?o.Keys.ArrowUp:e?o.Keys.ArrowRight:o.Keys.ArrowLeft}},r.getValueForLocation=function(t,e,o){switch(e){case"toolbar":return o?void 0:t;case"overflow":return o?t:void 0;default:return t}}},function(t,e){t.exports=c},function(t,e){t.exports=u},function(t,e){t.exports=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),n=(r.prototype.getText=function(t){if(t)return this.textField?t[this.textField]:t.text||t},r.prototype.onClick=function(t,e){e=this.data[e];t.click&&t.click(e),this.itemClick.emit(e)},n.__decorate([i.Input(),n.__metadata("design:type",Array)],r.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"textField",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],r.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],r.prototype,"look",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],r.prototype,"itemClick",void 0),n.__decorate([i.ViewChildren("button"),n.__metadata("design:type",i.QueryList)],r.prototype,"buttons",void 0),n.__decorate([i.Component({selector:"kendo-toolbar-buttonlist",template:'\n <button\n #button\n type="button"\n tabindex="-1"\n kendoButton\n style="padding-left: 16px"\n class="k-overflow-button"\n *ngFor="let item of data; let i = index"\n [disabled]="disabled || item.disabled"\n [icon]="item.icon"\n [iconClass]="item.iconClass"\n [imageUrl]="item.imageUrl"\n [look]="look"\n (click)="onClick(item, i)"\n >\n {{ getText(item) }}\n </button>\n '})],r));function r(){this.disabled=!1,this.look="default",this.itemClick=new i.EventEmitter}e.ToolBarButtonListComponent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(2),l=o(3),r=(n=s.ToolBarToolComponent,r.__extends(p,n),i=p,Object.defineProperty(p.prototype,"text",{set:function(t){this.toolbarOptions.text=l.getValueForLocation(t,this.showText,!1),this.overflowOptions.text=l.getValueForLocation(t,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"togglable",{get:function(){return this.toggleable},set:function(t){this.toggleable=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"icon",{set:function(t){this.toolbarOptions.icon=l.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.icon=l.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"iconClass",{set:function(t){this.toolbarOptions.iconClass=l.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.iconClass=l.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"imageUrl",{set:function(t){this.toolbarOptions.imageUrl=l.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.imageUrl=l.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),p.prototype.onBlur=function(){this.getButton().tabIndex=-1},p.prototype.canFocus=function(){return!this.disabled},p.prototype.focus=function(t){t&&"focus"!==t.type&&"keydown"!==t.type||this.getButton().focus(),this.getButton().tabIndex=0},p.prototype.handleKey=function(){return!(this.getButton().tabIndex=-1)},p.prototype.getButton=function(){return(this.overflows?this.overflowButtonElement:this.toolbarButtonElement).nativeElement},r.__decorate([a.Input(),r.__metadata("design:type",String)],p.prototype,"showText",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],p.prototype,"showIcon",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],p.prototype,"text",null),r.__decorate([a.Input(),r.__metadata("design:type",Object)],p.prototype,"style",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],p.prototype,"className",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],p.prototype,"title",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],p.prototype,"toggleable",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[Boolean])],p.prototype,"togglable",null),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],p.prototype,"primary",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],p.prototype,"look",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],p.prototype,"selected",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],p.prototype,"icon",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],p.prototype,"iconClass",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],p.prototype,"imageUrl",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],p.prototype,"click",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],p.prototype,"pointerdown",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],p.prototype,"selectedChange",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],p.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],p.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("toolbarButton",{read:a.ElementRef,static:!1}),r.__metadata("design:type",a.ElementRef)],p.prototype,"toolbarButtonElement",void 0),r.__decorate([a.ViewChild("overflowButton",{read:a.ElementRef,static:!1}),r.__metadata("design:type",a.ElementRef)],p.prototype,"overflowButtonElement",void 0),i=r.__decorate([a.Component({exportAs:"kendoToolBarButton",providers:[{provide:s.ToolBarToolComponent,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-button",template:'\n <ng-template #toolbarTemplate>\n <button\n #toolbarButton\n [tabindex]="tabIndex"\n type="button"\n kendoButton\n [ngStyle]="style"\n [ngClass]="className"\n [attr.title]="title"\n [disabled]="disabled"\n [toggleable]="toggleable"\n [primary]="primary"\n [selected]="selected"\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n [look]="look"\n (click)="click.emit($event)"\n (pointerdown)="pointerdown.emit($event)"\n (selectedChange)="selectedChange.emit($event)"\n (blur)="onBlur()"\n >\n {{ toolbarOptions.text }}\n </button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #overflowButton\n tabindex="-1"\n type="button"\n kendoButton\n class="k-overflow-button"\n [ngStyle]="style"\n [ngClass]="className"\n [attr.title]="title"\n [disabled]="disabled"\n [toggleable]="toggleable"\n [primary]="primary"\n [selected]="selected"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n [look]="look"\n (click)="click.emit($event)"\n (selectedChange)="selectedChange.emit($event)"\n >\n {{ overflowOptions.text }}\n </button>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[])],p));function p(){var t=n.call(this)||this;return t.showText="both",t.showIcon="both",t.toggleable=!1,t.primary=!1,t.look="default",t.selected=!1,t.click=new a.EventEmitter,t.pointerdown=new a.EventEmitter,t.selectedChange=new a.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t}e.ToolBarButtonComponent=r},function(t,e){t.exports=m},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(4),o=o(11),s=(n=o.ToolbarMessages,r.__extends(l,n),i=l,Object.defineProperty(l.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=r.__decorate([a.Component({providers:[{provide:o.ToolbarMessages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-messages",template:""}),r.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(t){var e=n.call(this)||this;return e.service=t,e}e.ToolbarCustomMessagesComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(1),r=o(0),i=(n=o(4).ComponentMessages,i.__extends(a,n),i.__decorate([r.Input(),i.__metadata("design:type",String)],a.prototype,"moreToolsTitle",void 0),a);function a(){return null!==n&&n.apply(this,arguments)||this}e.ToolbarMessages=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(4),o=o(11),s=(n=o.ToolbarMessages,r.__extends(l,n),i=l,i=r.__decorate([a.Directive({providers:[{provide:o.ToolbarMessages,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoToolbarLocalizedMessages]"}),r.__metadata("design:paramtypes",[s.LocalizationService])],l));function l(t){var e=n.call(this)||this;return e.service=t,e}e.LocalizedToolbarMessagesDirective=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),o=o(2),r=(n=o.ToolBarToolComponent,r.__extends(s,n),(i=s).prototype.canFocus=function(){return!1},s.prototype.focus=function(){},s.prototype.handleKey=function(){return!1},s.prototype.ngAfterViewInit=function(){this.popupTemplate||(this.popupTemplate=this.toolbarTemplate)},r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],s.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],s.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("separator",{static:!1}),r.__metadata("design:type",a.ElementRef)],s.prototype,"separator",void 0),i=r.__decorate([a.Component({exportAs:"kendoToolBarSeparator",providers:[{provide:o.ToolBarToolComponent,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-separator",template:'\n <ng-template #toolbarTemplate>\n <div class="k-separator"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[])],s));function s(){return n.call(this)||this}e.ToolBarSeparatorComponent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(6),l=o(2),p=o(7),u=o(3),r=(n=l.ToolBarToolComponent,r.__extends(d,n),i=d,Object.defineProperty(d.prototype,"text",{set:function(t){this.toolbarOptions.text=u.getValueForLocation(t,this.showText,!1),this.overflowOptions.text=u.getValueForLocation(t,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"icon",{set:function(t){this.toolbarOptions.icon=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.icon=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"iconClass",{set:function(t){this.toolbarOptions.iconClass=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.iconClass=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"imageUrl",{set:function(t){this.toolbarOptions.imageUrl=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.imageUrl=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"popupSettings",{get:function(){return this._popupSettings||(this._popupSettings={animate:!0,popupClass:""}),this._popupSettings},set:function(t){this._popupSettings=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"data",{get:function(){return this._data||(this.data=[]),this._data},set:function(t){this._data=t||[]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"overflowButtons",{get:function(){return[this.overflowSplitButton].concat(this.overflowSplitButtonButtonList.buttons.toArray().filter(function(t){return!t.nativeElement.disabled}))},enumerable:!0,configurable:!0}),d.prototype.onButtonListClick=function(e){this.focusedIndex=this.overflowButtons.findIndex(function(t){return t.nativeElement.contains(e.target)})},d.prototype.onMainButtonClick=function(t){this.buttonClick.emit(t),this.focusedIndex=0},d.prototype.canFocus=function(){return!this.disabled},d.prototype.focus=function(t){void 0===t&&(t={}),this.overflows?0<this.overflowButtons.length&&(this.focusedIndex=u.getIndexOfFocused(this.getPrevKey(),this.getNextKey(),this.overflowButtons.map(function(t){return t.nativeElement}))(t),this.focusButton(this.focusedIndex,t)):"focus"!==t.type&&"keydown"!==t.type||this.toolbarSplitButton.focus()},d.prototype.handleKey=function(t){if(!this.overflows&&(t.keyCode===this.getPrevKey(this.overflows)||t.keyCode===this.getNextKey(this.overflows)))return!1;if(this.overflows){var e=u.makePeeker(this.overflowButtons),o=u.areEqual(this.focusedIndex);return this.focusedIndex=u.seekFocusedIndex(this.getPrevKey(),this.getNextKey(),e)(this.focusedIndex,t),this.focusButton(this.focusedIndex,t),!o(this.focusedIndex)}},d.prototype.focusButton=function(t,e){e.type&&"focus"!==e.type&&"keydown"!==e.type&&"click"!==e.type||this.overflowButtons[t].nativeElement.focus()},r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"showText",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"showIcon",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"text",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"icon",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"iconClass",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"imageUrl",null),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"look",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],d.prototype,"popupSettings",null),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"buttonClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],d.prototype,"arrowButtonClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"arrowButtonIcon",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"textField",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],d.prototype,"data",null),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"buttonClick",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"itemClick",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"open",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"close",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],d.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],d.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("toolbarSplitButton",{static:!1}),r.__metadata("design:type",s.SplitButtonComponent)],d.prototype,"toolbarSplitButton",void 0),r.__decorate([a.ViewChild("overflowSplitButton",{read:a.ElementRef,static:!1}),r.__metadata("design:type",a.ElementRef)],d.prototype,"overflowSplitButton",void 0),r.__decorate([a.ViewChild("overflowSplitButtonButtonList",{static:!1}),r.__metadata("design:type",p.ToolBarButtonListComponent)],d.prototype,"overflowSplitButtonButtonList",void 0),i=r.__decorate([a.Component({exportAs:"kendoToolBarSplitButton",providers:[{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-splitbutton",template:'\n <ng-template #toolbarTemplate>\n <kendo-splitbutton\n #toolbarSplitButton\n [data]="data"\n [text]="toolbarOptions.text"\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n [buttonClass]="buttonClass"\n [arrowButtonClass]="arrowButtonClass"\n [arrowButtonIcon]="arrowButtonIcon"\n [disabled]="disabled"\n [tabIndex]="-1"\n [textField]="textField"\n [popupSettings]="popupSettings"\n [look]="look"\n (buttonClick)="buttonClick.emit($event)"\n (open)="open.emit($event)"\n (close)="close.emit($event)"\n (itemClick)="itemClick.emit($event)"\n >\n </kendo-splitbutton>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #overflowSplitButton\n type="button"\n tabindex="-1"\n kendoButton\n class="k-overflow-button"\n [disabled]="disabled"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n [look]="look"\n [ngClass]="buttonClass"\n (click)="buttonClick.emit($event)"\n (click)="onMainButtonClick($event)"\n >\n {{ overflowOptions.text }}\n </button>\n <kendo-toolbar-buttonlist\n #overflowSplitButtonButtonList\n [look]="look"\n [data]="data"\n [disabled]="disabled"\n [textField]="textField"\n (itemClick)="itemClick.emit($event)"\n (click)="onButtonListClick($event)"\n >\n </kendo-toolbar-buttonlist>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[])],d));function d(){var t=n.call(this)||this;return t.showText="both",t.showIcon="both",t.look="default",t.arrowButtonIcon="arrow-s",t.textField="text",t.buttonClick=new a.EventEmitter,t.itemClick=new a.EventEmitter,t.open=new a.EventEmitter,t.close=new a.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t._popupSettings={animate:!0,popupClass:""},t.focusedIndex=-1,t.getNextKey=u.getNextKey(),t.getPrevKey=u.getPrevKey(),t}e.ToolBarSplitButtonComponent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(2),l=o(6),p=o(7),u=o(3),r=(n=s.ToolBarToolComponent,r.__extends(d,n),i=d,Object.defineProperty(d.prototype,"text",{set:function(t){this.toolbarOptions.text=u.getValueForLocation(t,this.showText,!1),this.overflowOptions.text=u.getValueForLocation(t,this.showText,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"icon",{set:function(t){this.toolbarOptions.icon=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.icon=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"iconClass",{set:function(t){this.toolbarOptions.iconClass=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.iconClass=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"imageUrl",{set:function(t){this.toolbarOptions.imageUrl=u.getValueForLocation(t,this.showIcon,!1),this.overflowOptions.imageUrl=u.getValueForLocation(t,this.showIcon,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(t){this._popupSettings=Object.assign({animate:!0,popupClass:""},t)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"data",{get:function(){return this._data||(this.data=[]),this._data},set:function(t){this._data=t||[]},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"overflowButtons",{get:function(){return this.overflowDropDownButtonButtonList.buttons.toArray().filter(function(t){return!t.nativeElement.disabled}).slice()},enumerable:!0,configurable:!0}),d.prototype.onButtonListClick=function(e){this.focusedIndex=this.overflowDropDownButtonButtonList.buttons.toArray().findIndex(function(t){return t.nativeElement.contains(e.target)})},d.prototype.canFocus=function(){return!this.disabled},d.prototype.focus=function(t){void 0===t&&(t={}),this.overflows?0<this.overflowButtons.length&&(this.focusedIndex=u.getIndexOfFocused(this.getPrevKey(),this.getNextKey(),this.overflowButtons.map(function(t){return t.nativeElement}))(t),this.focusButton(this.focusedIndex,t)):"focus"!==t.type&&"keydown"!==t.type||this.toolbarDropDownButton.focus()},d.prototype.handleKey=function(t){if(!this.overflows&&(t.keyCode===this.getPrevKey(this.overflows)||t.keyCode===this.getNextKey(this.overflows)))return!1;if(this.overflows){var e=u.makePeeker(this.overflowButtons),o=u.areEqual(this.focusedIndex);return this.focusedIndex=u.seekFocusedIndex(this.getPrevKey(),this.getNextKey(),e)(this.focusedIndex,t),this.focusButton(this.focusedIndex,t),!o(this.focusedIndex)}},d.prototype.focusButton=function(t,e){e.type&&"focus"!==e.type&&"keydown"!==e.type||this.overflowButtons[t].nativeElement.focus()},r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"showText",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"showIcon",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"text",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"icon",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"iconClass",null),r.__decorate([a.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],d.prototype,"imageUrl",null),r.__decorate([a.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],d.prototype,"popupSettings",null),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"buttonClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"textField",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],d.prototype,"disabled",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],d.prototype,"look",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],d.prototype,"data",null),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],d.prototype,"primary",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"itemClick",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"open",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],d.prototype,"close",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],d.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],d.prototype,"popupTemplate",void 0),r.__decorate([a.ViewChild("dropdownButton",{read:a.ElementRef,static:!0}),r.__metadata("design:type",a.ElementRef)],d.prototype,"dropdownButton",void 0),r.__decorate([a.ViewChild(l.DropDownButtonComponent,{static:!1}),r.__metadata("design:type",l.DropDownButtonComponent)],d.prototype,"dropDownButtonComponent",void 0),r.__decorate([a.ViewChild("toolbarDropDownButton",{static:!1}),r.__metadata("design:type",l.DropDownButtonComponent)],d.prototype,"toolbarDropDownButton",void 0),r.__decorate([a.ViewChild("overflowDropDownButtonButtonList",{static:!1}),r.__metadata("design:type",p.ToolBarButtonListComponent)],d.prototype,"overflowDropDownButtonButtonList",void 0),i=r.__decorate([a.Component({exportAs:"kendoToolBarDropDownButton",providers:[{provide:s.ToolBarToolComponent,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-dropdownbutton",template:'\n <ng-template #toolbarTemplate>\n <kendo-dropdownbutton\n #toolbarDropDownButton\n [icon]="toolbarOptions.icon"\n [iconClass]="toolbarOptions.iconClass"\n [imageUrl]="toolbarOptions.imageUrl"\n [buttonClass]="buttonClass"\n [disabled]="disabled"\n [tabIndex]="-1"\n [data]="data"\n [textField]="textField"\n [popupSettings]="popupSettings"\n [look]="look"\n [primary]="primary"\n (open)="open.emit($event)"\n (close)="close.emit($event)"\n (itemClick)="itemClick.emit($event)"\n >\n {{ toolbarOptions.text }}\n </kendo-dropdownbutton>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n type="button"\n tabindex="-1"\n kendoButton\n class="k-overflow-button"\n [disabled]="true"\n [icon]="overflowOptions.icon"\n [iconClass]="overflowOptions.iconClass"\n [imageUrl]="overflowOptions.imageUrl"\n [ngClass]="buttonClass"\n (click)="itemClick.emit($event)"\n >\n {{ overflowOptions.text }}\n </button>\n <kendo-toolbar-buttonlist\n #overflowDropDownButtonButtonList\n [data]="data"\n [disabled]="disabled"\n [textField]="textField"\n (itemClick)="itemClick.emit($event)"\n (click)="onButtonListClick($event)"\n >\n </kendo-toolbar-buttonlist>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[])],d));function d(){var t=n.call(this)||this;return t.showText="both",t.showIcon="both",t.look="default",t.primary=!1,t.itemClick=new a.EventEmitter,t.open=new a.EventEmitter,t.close=new a.EventEmitter,t.toolbarOptions={text:"",icon:"",iconClass:"",imageUrl:""},t.overflowOptions={text:"",icon:"",iconClass:"",imageUrl:""},t._popupSettings={animate:!0,popupClass:""},t.focusedIndex=-1,t.getNextKey=u.getNextKey(),t.getPrevKey=u.getPrevKey(),t}e.ToolBarDropDownButtonComponent=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,r=o(1),a=o(0),s=o(4),l=o(2),p=o(8),u=o(6),d=o(3),s=(n=l.ToolBarToolComponent,r.__extends(c,n),i=c,Object.defineProperty(c.prototype,"buttonElements",{get:function(){return this.getButtonGroup().buttons.filter(function(t){return!t.isDisabled}).map(function(t){return t.element})},enumerable:!0,configurable:!0}),c.prototype.onFocus=function(){this.focusedIndex=0},c.prototype.onNavigate=function(t){t.preventDefault()},c.prototype.selectedChangeHandler=function(t,e){e.selected=t,e.selectedChange.emit(t)},c.prototype.onButtonClick=function(e){this.focusedIndex=this.buttonElements.findIndex(function(t){return t===e.target||t.contains(e.target)}),this.focusButton(this.focusedIndex,e)},c.prototype.canFocus=function(){return!(this.disabled||0===this.buttonElements.length)},c.prototype.focus=function(t){void 0===t&&(t={});var e=this.getNextKey(this.overflows),o=this.getPrevKey(this.overflows);this.focusedIndex=d.getIndexOfFocused(o,e,this.buttonElements)(t),this.focusButton(this.focusedIndex,t)},c.prototype.handleKey=function(t){var e=this.getNextKey(this.overflows),o=this.getPrevKey(this.overflows),n=d.makePeeker(this.buttonElements),i=d.areEqual(this.focusedIndex);return this.focusedIndex=d.seekFocusedIndex(o,e,n)(this.focusedIndex,t),this.focusButton(this.focusedIndex,t),!i(this.focusedIndex)},c.prototype.getButtonGroup=function(){return this.overflows?this.overflowButtonGroup:this.toolbarButtonGroup},c.prototype.focusButton=function(t,e){e.type&&"focus"!==e.type&&"keydown"!==e.type||this.buttonElements[t].focus()},r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],c.prototype,"disabled",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],c.prototype,"selection",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],c.prototype,"width",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],c.prototype,"look",void 0),r.__decorate([a.ViewChild("toolbarTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],c.prototype,"toolbarTemplate",void 0),r.__decorate([a.ViewChild("popupTemplate",{static:!0}),r.__metadata("design:type",a.TemplateRef)],c.prototype,"popupTemplate",void 0),r.__decorate([a.ContentChildren(a.forwardRef(function(){return p.ToolBarButtonComponent})),r.__metadata("design:type",a.QueryList)],c.prototype,"buttonComponents",void 0),r.__decorate([a.ViewChild("toolbarButtonGroup",{static:!1}),r.__metadata("design:type",u.ButtonGroupComponent)],c.prototype,"toolbarButtonGroup",void 0),r.__decorate([a.ViewChild("overflowButtonGroup",{static:!1}),r.__metadata("design:type",u.ButtonGroupComponent)],c.prototype,"overflowButtonGroup",void 0),i=r.__decorate([a.Component({exportAs:"kendoToolBarButtonGroup",providers:[s.LocalizationService,{provide:l.ToolBarToolComponent,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-toolbar-buttongroup",template:'\n <ng-template #toolbarTemplate>\n <kendo-buttongroup\n #toolbarButtonGroup\n [tabIndex]="-1"\n [selection]="selection"\n [disabled]="disabled"\n [look]="look"\n [width]="width"\n (navigate)="onNavigate($event)"\n (focus)="onFocus()"\n >\n <span\n kendoButton\n *ngFor="let button of buttonComponents"\n [ngStyle]="button.style"\n [ngClass]="button.className"\n [attr.title]="button.title"\n [disabled]="button.disabled"\n [togglable]="button.togglable"\n [primary]="button.primary"\n [selected]="button.selected"\n [icon]="button.toolbarOptions.icon"\n [iconClass]="button.toolbarOptions.iconClass"\n [imageUrl]="button.toolbarOptions.imageUrl"\n (click)="button.click.emit($event); onButtonClick($event)"\n (pointerdown)="button.pointerdown.emit($event)"\n (selectedChange)="selectedChangeHandler($event, button)"\n >\n {{ button.toolbarOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n <ng-template #popupTemplate>\n <kendo-buttongroup\n #overflowButtonGroup\n class="k-overflow-button"\n [tabIndex]="-1"\n [selection]="selection"\n [disabled]="disabled"\n [look]="look"\n [width]="width"\n >\n <span\n kendoButton\n class="k-overflow-button"\n *ngFor="let button of buttonComponents"\n [ngStyle]="button.style"\n [ngClass]="button.className"\n [attr.title]="button.title"\n [disabled]="button.disabled"\n [togglable]="button.togglable"\n [primary]="button.primary"\n [selected]="button.selected"\n [icon]="button.overflowOptions.icon"\n [iconClass]="button.overflowOptions.iconClass"\n [imageUrl]="button.overflowOptions.imageUrl"\n (click)="button.click.emit($event); onButtonClick($event)"\n (selectedChange)="selectedChangeHandler($event, button)"\n >\n {{ button.overflowOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(t){var e=n.call(this)||this;return e.localization=t,e.selection="multiple",e.look="default",e.focusedIndex=-1,e.getNextKey=d.getNextKey(e.localization.rtl),e.getPrevKey=d.getPrevKey(e.localization.rtl),e}e.ToolBarButtonGroupComponent=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),n=(r.prototype.refresh=function(t){this.onRefresh.emit(t)},n.__decorate([i.Injectable()],r));function r(){this.onRefresh=new i.EventEmitter}e.RefreshService=n},function(t,e){t.exports=d},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){return{animate:!0,anchorAlign:{horizontal:t?"left":"right",vertical:"bottom"},popupAlign:{horizontal:t?"left":"right",vertical:"top"}}}var i=o(1),l=o(0),r=o(18),a=o(5),s=o(4),p=o(29),u=o(28),d=o(17),c=o(27),f=o(2),g=o(3),m=o(5),h=o(26),y=o(25),v=o(9),b=o(9),_=o(5),w=o(24),c=(Object.defineProperty(C.prototype,"resizable",{get:function(){return this.overflow},set:function(t){this.overflow=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"popupSettings",{get:function(){return this._popupSettings||n(this.localization.rtl)},set:function(t){this._popupSettings=Object.assign({},n(this.localization.rtl),t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(t){this.tabindex=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"appendTo",{get:function(){var t=this.popupSettings.appendTo;if(t&&"root"!==t)return"component"===t?this.container:t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"popupOpen",{get:function(){return this._open},set:function(t){var e;this.popupOpen!==t&&(e=new h.PreventableEvent,(t?this.open:this.close).emit(e),e.isDefaultPrevented()||this.toggle(t))},enumerable:!0,configurable:!0}),C.prototype.onFocus=function(t){this.navigationService.resetNavigation(),this.navigationService.focusFirst(t),this.element.nativeElement.setAttribute("tabindex","-1")},C.prototype.onFocusOut=function(t){var e=this;g.closest(t.relatedTarget,function(t){return t===e.element.nativeElement})?this.element.nativeElement.setAttribute("tabindex","-1"):this.element.nativeElement.setAttribute("tabindex",this.tabindex.toString())},Object.defineProperty(C.prototype,"getRole",{get:function(){return"toolbar"},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"getDir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"resizableClass",{get:function(){return this.overflow},enumerable:!0,configurable:!0}),C.prototype.ngAfterViewInit=function(){var e=this;this.element.nativeElement.getAttribute("tabindex")||this.element.nativeElement.setAttribute("tabindex","0"),this.zone.runOutsideAngular(function(){e.toolbarKeydownListener=e.renderer.listen(e.element.nativeElement,"keydown",function(t){switch(t.keyCode){case m.Keys.ArrowLeft:e.zone.run(function(){t.preventDefault(),"ltr"===e.direction?e.navigationService.focusPrev(t):e.navigationService.focusNext(t),e.element.nativeElement.setAttribute("tabindex","-1")});break;case m.Keys.ArrowRight:e.zone.run(function(){t.preventDefault(),"ltr"===e.direction?e.navigationService.focusNext(t):e.navigationService.focusPrev(t),e.element.nativeElement.setAttribute("tabindex","-1")});break;case m.Keys.Tab:e.zone.run(function(){return e.navigationService.resetNavigation()});break;case m.Keys.Escape:e.zone.run(function(){return e.toggle(!1)})}})}),this.overflow&&(this.subscriptions.add(y.merge(this.resizeSensor.resize.pipe(b.filter(function(){return e.overflow})),this.renderedTools.changes).subscribe(function(){return e.onResize()})),this.zone.runOutsideAngular(function(){return setTimeout(function(){return e.onResize()})}),this.navigationService.overflowButton=this.overflowButton),this.navigationService.setRenderedTools(this.renderedTools.toArray()),this.subscriptions.add(this.renderedTools.changes.subscribe(function(t){return e.navigationService.setRenderedTools(t.toArray())}))},C.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe(function(t){t=t.rtl;return e.direction=t?"rtl":"ltr"})),_.isDocumentAvailable()&&this.zone.runOutsideAngular(function(){return e.subscriptions.add(y.fromEvent(document,"click").pipe(b.filter(function(){return!!e.popupRef}),b.filter(function(t){return!e.popupRef.popup.instance.container.nativeElement.contains(t.target)}),b.filter(function(t){return!e.overflowButton.nativeElement.contains(t.target)})).subscribe(function(){e.zone.run(function(){e.popupOpen=!1})}))})},C.prototype.ngOnChanges=function(t){t.tabindex&&this.element.nativeElement.setAttribute("tabindex",t.tabindex.currentValue.toString())},C.prototype.ngOnDestroy=function(){this.popupRef&&this.popupRef.close(),this.toolbarKeydownListener&&this.toolbarKeydownListener(),this.cancelRenderedToolsSubscription$.next(),this.subscriptions.unsubscribe()},Object.defineProperty(C.prototype,"moreToolsTitle",{get:function(){return this.localization.get("moreToolsTitle")},enumerable:!0,configurable:!0}),C.prototype.onRendererClick=function(t){this.navigationService.click(t),this.element.nativeElement.setAttribute("tabindex","-1")},C.prototype.showPopup=function(){this.popupOpen=!this.popupOpen,this.navigationService.click({context:void 0,event:void 0})},C.prototype.toggle=function(t){this._open=void 0!==t?t:!this.popupOpen,this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupOpen&&(this.popupRef=this.popupService.open({anchor:this.overflowButton,anchorAlign:this.popupSettings.anchorAlign,popupAlign:this.popupSettings.popupAlign,content:this.popupTemplate,appendTo:this.appendTo,animate:this.popupSettings.animate,popupClass:this.popupSettings.popupClass,positionMode:"absolute"}),this.setPopupContentDimensions(),this.popupRef.popupOpen.subscribe(this.onPopupOpen.bind(this)),this.popupRef.popupClose.subscribe(this.onPopupClose.bind(this)))},C.prototype.onResize=function(){var t;_.isDocumentAvailable()&&(t=g.innerWidth(this.element.nativeElement)-this.overflowAnchorWidth,this.shrink(t,this.childrenWidth),this.stretch(t,this.childrenWidth)),this.cdr.detectChanges(),this.resizeSensor.acceptSize()},C.prototype.onPopupOpen=function(){var e=this;this.zone.runOutsideAngular(function(){e.overflowKeydownListener=e.renderer.listen(e.popupRef.popupElement,"keydown",function(t){switch(t.keyCode){case m.Keys.ArrowUp:e.zone.run(function(){t.preventDefault(),e.navigationService.focusPrev(t)});break;case m.Keys.ArrowDown:e.zone.run(function(){t.preventDefault(),e.navigationService.focusNext(t)});break;case m.Keys.Escape:e.zone.run(function(){return e.toggle(!1)});break;case m.Keys.Tab:e.zone.run(function(){e.toggle(!1),e.navigationService.resetNavigation()})}})}),this.cancelRenderedToolsSubscription$.next(),this.navigationService.moveFocusToPopup(),this.navigationService.setRenderedTools(this.overflowRenderedTools.toArray()),this.overflowRenderedTools.changes.pipe(v.takeUntil(this.cancelRenderedToolsSubscription$)).subscribe(function(t){return e.navigationService.setRenderedTools(t.toArray())})},C.prototype.onPopupClose=function(){var e=this;this.cancelRenderedToolsSubscription$.next(),this.navigationService.setRenderedTools(this.renderedTools.toArray()),this.renderedTools.changes.pipe(v.takeUntil(this.cancelRenderedToolsSubscription$)).subscribe(function(t){return e.navigationService.setRenderedTools(t.toArray())}),this.navigationService.moveFocusToToolBar(),this.overflowKeydownListener&&this.overflowKeydownListener()},Object.defineProperty(C.prototype,"displayAnchor",{get:function(){return 0<this.allTools.filter(function(t){return t.overflows&&t.responsive}).length?"visible":"hidden"},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"popupWidth",{get:function(){return this.popupSettings&&this.popupSettings.width?isNaN(this.popupSettings.width)?this.popupSettings.width:this.popupSettings.width+"px":w.defaultPopupWidth},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"popupHeight",{get:function(){if(this.popupSettings&&this.popupSettings.height)return isNaN(this.popupSettings.height)?this.popupSettings.height:this.popupSettings.height+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"overflowAnchorWidth",{get:function(){return this.overflow?(this.cachedOverflowAnchorWidth||(this.cachedOverflowAnchorWidth=g.outerWidth(this.overflowButton.nativeElement)),this.cachedOverflowAnchorWidth):0},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"childrenWidth",{get:function(){var t=this.renderedTools.reduce(function(t,e){return e.width+t},0);return Math.ceil(t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"visibleTools",{get:function(){return this.allTools.filter(function(t){return!1===t.overflows})},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"overflowTools",{get:function(){return this.allTools.filter(function(t){return!0===t.overflows})},enumerable:!0,configurable:!0}),C.prototype.shrink=function(t,e){if(t<e)for(var o=this.visibleTools.length-1;0<=o&&!(e<t);o--)e-=this.hideLastVisibleTool()},C.prototype.stretch=function(t,e){var o;if(e<t)for(var n=this.overflowTools.length-1;0<=n&&(o=this.showFirstHiddenTool(t,e));n--)e+=o},C.prototype.hideLastVisibleTool=function(){var e=this.visibleTools[this.visibleTools.length-1],t=this.renderedTools.find(function(t){return t.tool===e}).width;return e.overflows=!0,this.refreshService.refresh(e),t},C.prototype.showFirstHiddenTool=function(t,e){var o=this.overflowTools[0],n=this.renderedTools.find(function(t){return t.tool===o});return o.overflows=!1,o.visibility="hidden",this.refreshService.refresh(o),t>e+n.width?o.visibility="visible":o.overflows=!0,this.refreshService.refresh(o),n.width},C.prototype.setPopupContentDimensions=function(){var t=this.popupRef.popup.instance.contentContainer.nativeElement;t.style.width=this.popupWidth,t.style.height=this.popupHeight,t.style.overflow="auto"},i.__decorate([l.Input(),i.__metadata("design:type",Boolean)],C.prototype,"overflow",void 0),i.__decorate([l.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],C.prototype,"resizable",null),i.__decorate([l.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],C.prototype,"popupSettings",null),i.__decorate([l.Input(),i.__metadata("design:type",Number)],C.prototype,"tabindex",void 0),i.__decorate([l.Input("tabIndex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],C.prototype,"tabIndex",null),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],C.prototype,"open",void 0),i.__decorate([l.Output(),i.__metadata("design:type",l.EventEmitter)],C.prototype,"close",void 0),i.__decorate([l.ContentChildren(f.ToolBarToolComponent),i.__metadata("design:type",l.QueryList)],C.prototype,"allTools",void 0),i.__decorate([l.ViewChild("overflowButton",{static:!1}),i.__metadata("design:type",l.ElementRef)],C.prototype,"overflowButton",void 0),i.__decorate([l.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",l.TemplateRef)],C.prototype,"popupTemplate",void 0),i.__decorate([l.ViewChild("resizeSensor",{static:!1}),i.__metadata("design:type",a.ResizeSensorComponent)],C.prototype,"resizeSensor",void 0),i.__decorate([l.ViewChild("container",{read:l.ViewContainerRef,static:!0}),i.__metadata("design:type",l.ViewContainerRef)],C.prototype,"container",void 0),i.__decorate([l.ViewChildren("toolbarRenderer"),i.__metadata("design:type",l.QueryList)],C.prototype,"renderedTools",void 0),i.__decorate([l.ViewChildren("overflowRenderer"),i.__metadata("design:type",l.QueryList)],C.prototype,"overflowRenderedTools",void 0),i.__decorate([l.HostBinding("class.k-widget"),l.HostBinding("class.k-toolbar"),i.__metadata("design:type",Boolean)],C.prototype,"hostClasses",void 0),i.__decorate([l.HostListener("focus",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],C.prototype,"onFocus",null),i.__decorate([l.HostListener("focusout",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],C.prototype,"onFocusOut",null),i.__decorate([l.HostBinding("attr.role"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],C.prototype,"getRole",null),i.__decorate([l.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],C.prototype,"getDir",null),i.__decorate([l.HostBinding("class.k-toolbar-resizable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],C.prototype,"resizableClass",null),i.__decorate([l.Component({exportAs:"kendoToolBar",providers:[d.RefreshService,c.NavigationService,s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.toolbar"}],selector:"kendo-toolbar",template:'\n <ng-container kendoToolbarLocalizedMessages\n i18n-moreToolsTitle="kendo.toolbar.moreToolsTitle|The title of the **more tools** button in a responsive ToolBar"\n moreToolsTitle="More tools"\n >\n </ng-container>\n <ng-container *ngFor="let tool of allTools; let index = index">\n <kendo-toolbar-renderer\n #toolbarRenderer\n (rendererClick)="onRendererClick($event)"\n [location]="\'toolbar\'"\n [resizable]="overflow"\n [tool]="tool"\n ></kendo-toolbar-renderer>\n </ng-container>\n <button\n #overflowButton\n type="button"\n tabindex="-1"\n [title]="moreToolsTitle"\n [attr.aria-label]="moreToolsTitle"\n *ngIf="overflow"\n [style.visibility]="displayAnchor"\n class="k-overflow-anchor k-button"\n (click)="showPopup()"\n >\n <span class="k-icon k-i-more-vertical"></span>\n </button>\n <ng-template #popupTemplate>\n <ul class="k-overflow-container k-list-container k-reset">\n <ng-container *ngFor="let tool of allTools; let index = index">\n <li class="k-item">\n <kendo-toolbar-renderer\n #overflowRenderer\n (rendererClick)="onRendererClick($event)"\n [location]="\'overflow\'"\n [resizable]="overflow"\n [tool]="tool"\n ></kendo-toolbar-renderer>\n </li>\n </ng-container>\n </ul>\n </ng-template>\n <ng-container #container></ng-container>\n <kendo-resize-sensor *ngIf="overflow" [rateLimit]="1000" #resizeSensor></kendo-resize-sensor>\n '}),i.__metadata("design:paramtypes",[s.LocalizationService,r.PopupService,d.RefreshService,c.NavigationService,l.ElementRef,l.ChangeDetectorRef,l.NgZone,l.Renderer2])],C));function C(t,e,o,n,i,r,a,s){this.localization=t,this.popupService=e,this.refreshService=o,this.navigationService=n,this.element=i,this.cdr=r,this.zone=a,this.renderer=s,this.overflow=!1,this.tabindex=0,this.open=new l.EventEmitter,this.close=new l.EventEmitter,this.hostClasses=!0,this.cancelRenderedToolsSubscription$=new y.Subject,this.subscriptions=new y.Subscription,p.validatePackage(u.packageMetadata),this.direction=t.rtl?"rtl":"ltr"}e.ToolBarComponent=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=o(3),i=(a.prototype.getElement=function(){return this.element.nativeElement},a.prototype.querySelector=function(t){return this.element.nativeElement.querySelector(t)},a.prototype.querySelectorAll=function(t){return this.element.nativeElement.querySelectorAll(t)},a.prototype.findFocusable=function(){return r.findFocusable(this.element.nativeElement,!1)},a.prototype.findFocusableChild=function(t){return t=t||this.findFocusable(),r.findFocusableChild(t,!1)},a.prototype.findNextFocusableSibling=function(t){return t=t||this.findFocusable(),r.findFocusableSibling(t,!1)},a.prototype.findPrevFocusableSibling=function(t){return t=t||this.findFocusable(),r.findFocusableSibling(t,!1,!0)},a.prototype.setAttribute=function(t,e,o){this.renderer.setAttribute(t,e,o)},n.__decorate([i.Injectable()],a));function a(){}e.RendererService=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),r=o(0),i=o(3),a=o(2),s=o(17),o=o(20),s=(l.prototype.onClick=function(t){this.rendererClick.emit({context:this,event:t})},l.prototype.ngOnInit=function(){this.resizable?("toolbar"===this.location?(this.template=this.tool.toolbarTemplate,this.renderer.setStyle(this.element.nativeElement,"visibility","hidden")):this.template=this.tool.popupTemplate,this.renderer.setStyle(this.element.nativeElement,"display","none")):(this.tool.overflows=!1,this.template=this.tool.toolbarTemplate,this.renderer.setStyle(this.element.nativeElement,"visibility","display"),this.renderer.setStyle(this.element.nativeElement,"display","inline-block"))},l.prototype.ngOnDestroy=function(){this.refreshSubscription.unsubscribe()},l.prototype.ngAfterViewInit=function(){this.resizable&&this.refresh()},Object.defineProperty(l.prototype,"width",{get:function(){return this.tool.overflows?0:i.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),l.prototype.isDisplayed=function(){return"none"!==this.element.nativeElement.style.display},l.prototype.refresh=function(){this.resizable&&("toolbar"===this.location?(this.renderer.setStyle(this.element.nativeElement,"visibility",this.tool.visibility),this.renderer.setStyle(this.element.nativeElement,"display",this.tool.toolbarDisplay)):this.renderer.setStyle(this.element.nativeElement,"display",this.tool.overflowDisplay))},l.prototype.setAttribute=function(t,e,o){this.renderer.setAttribute(t,e,o)},n.__decorate([r.Input(),n.__metadata("design:type",a.ToolBarToolComponent)],l.prototype,"tool",void 0),n.__decorate([r.Input(),n.__metadata("design:type",String)],l.prototype,"location",void 0),n.__decorate([r.Input(),n.__metadata("design:type",Boolean)],l.prototype,"resizable",void 0),n.__decorate([r.Output(),n.__metadata("design:type",r.EventEmitter)],l.prototype,"rendererClick",void 0),n.__decorate([r.HostListener("click",["$event"]),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],l.prototype,"onClick",null),n.__decorate([r.Component({exportAs:"kendoToolBarRenderer",providers:[o.RendererService],selector:"kendo-toolbar-renderer",template:'\n <ng-container *ngIf="location === \'toolbar\'">\n <ng-template [ngTemplateOutlet]="template"></ng-template>\n </ng-container>\n <ng-container *ngIf="location === \'overflow\' && tool.responsive">\n <ng-template [ngTemplateOutlet]="template"></ng-template>\n </ng-container>\n '}),n.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,o.RendererService,s.RefreshService])],l));function l(t,e,o,n){var i=this;this.element=t,this.renderer=e,this.rendererService=o,this.refreshService=n,this.rendererClick=new r.EventEmitter,this.rendererService.element=t,(this.rendererService.renderer=this).refreshSubscription=this.refreshService.onRefresh.subscribe(function(t){i.tool===t&&i.refresh()})}e.ToolBarRendererComponent=s},function(t,e){t.exports=p},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=o(22),a=o(6),s=o(18),l=o(5),p=o(19),u=o(2),d=o(8),c=o(16),f=o(15),g=o(14),m=o(13),h=o(21),y=o(7),v=o(12),o=o(10),m=[u.ToolBarToolComponent,d.ToolBarButtonComponent,c.ToolBarButtonGroupComponent,f.ToolBarDropDownButtonComponent,g.ToolBarSplitButtonComponent,m.ToolBarSeparatorComponent],y=[h.ToolBarRendererComponent,y.ToolBarButtonListComponent,o.ToolbarCustomMessagesComponent,v.LocalizedToolbarMessagesDirective],l=n.__decorate([i.NgModule({declarations:[p.ToolBarComponent,m,y],exports:[p.ToolBarComponent,m,o.ToolbarCustomMessagesComponent,v.LocalizedToolbarMessagesDirective],imports:[r.CommonModule,a.ButtonsModule,s.PopupModule,l.ResizeSensorModule]})],b);function b(){}e.ToolBarModule=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultPopupWidth="150px"},function(t,e){t.exports=f},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(i.prototype.preventDefault=function(){this.prevented=!0},i.prototype.isDefaultPrevented=function(){return this.prevented},i);function i(){this.prevented=!1}e.PreventableEvent=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),i=o(0),r=o(9),a=o(3),i=(s.prototype.setRenderedTools=function(t){this.renderedTools=t.slice()},s.prototype.click=function(t){var e=t.context,t=t.event;this.focused.renderedTool!==e&&t&&this.focus(e,t)},s.prototype.moveFocusToToolBar=function(){this.isPopupFocused=!1,this.focusOverflowButton()},s.prototype.moveFocusToPopup=function(){this.isPopupFocused=!0,this.blurOverflowButton(),this.focus()},s.prototype.focusNext=function(t){var e;this.isOverflowButtonFocused||!this.focused.renderedTool||this.focused.renderedTool.tool.handleKey(t)||((e=this.getFocusableTools().slice(this.focused.index+1)[0])?this.focus(e,t):this.isOverflowButtonVisible()&&!this.isPopupFocused&&this.focusOverflowButton())},s.prototype.focusPrev=function(t){var e;this.isOverflowButtonFocused?(e=this.getFocusableTools().reverse()[0],this.focus(e,t)):!this.focused.renderedTool||this.focused.renderedTool.tool.handleKey(t)||(e=this.getFocusableTools().slice(0,this.focused.index).reverse()[0])&&this.focus(e,t)},s.prototype.resetNavigation=function(){this.blurOverflowButton(),this.focused.renderedTool=null,this.focused.index=-1},s.prototype.focusFirst=function(t){var e=this.getFocusableTools()[0],o=this.overflowButton;e?(this.focused.renderedTool=e,this.focused.index=this.getFocusableTools().findIndex(function(t){return t===e}),this.focus(e,t)):o&&o.nativeElement.focus()},s.prototype.getFocusableTools=function(){var e=this;return this.renderedTools.filter(function(t){return t.tool.overflows===e.isPopupFocused&&t.tool.canFocus()})},s.prototype.focus=function(o,n){var i=this;this.zone.onStable.pipe(r.take(1)).subscribe(function(){var t,e;o?o.tool.canFocus&&o.tool.canFocus()&&(i.focused.renderedTool=o,i.focused.index=i.getFocusableTools().findIndex(function(t){return t===o}),o.tool.focus(n),i.blurOverflowButton()):(t=i.getFocusableTools(),(e=t.find(function(t){return t===i.focused.renderedTool})||t[0])&&(i.focused.renderedTool=e,i.focused.index=i.getFocusableTools().findIndex(function(t){return t===e}),e.tool.focus(n)))})},s.prototype.blurOverflowButton=function(){this.overflowButton&&(this.isOverflowButtonFocused=!1,this.overflowButton.nativeElement.tabIndex=-1)},s.prototype.focusOverflowButton=function(){this.isOverflowButtonFocused=!0,this.overflowButton.nativeElement.tabIndex=0,this.overflowButton.nativeElement.focus()},s.prototype.isOverflowButtonVisible=function(){return a.isPresent(this.overflowButton)&&"visible"===window.getComputedStyle(this.overflowButton.nativeElement).getPropertyValue("visibility")},n.__decorate([i.Injectable(),n.__metadata("design:paramtypes",[i.NgZone])],s));function s(t){this.zone=t,this.focused={renderedTool:null,index:-1},this.renderedTools=[],this.isPopupFocused=!1,this.isOverflowButtonFocused=!1}e.NavigationService=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-toolbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635939564,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e){t.exports=g},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(19);e.ToolBarComponent=n.ToolBarComponent;n=o(2);e.ToolBarToolComponent=n.ToolBarToolComponent;n=o(8);e.ToolBarButtonComponent=n.ToolBarButtonComponent;n=o(16);e.ToolBarButtonGroupComponent=n.ToolBarButtonGroupComponent;n=o(15);e.ToolBarDropDownButtonComponent=n.ToolBarDropDownButtonComponent;n=o(14);e.ToolBarSplitButtonComponent=n.ToolBarSplitButtonComponent;n=o(13);e.ToolBarSeparatorComponent=n.ToolBarSeparatorComponent;n=o(23);e.ToolBarModule=n.ToolBarModule;n=o(12);e.LocalizedToolbarMessagesDirective=n.LocalizedToolbarMessagesDirective;o=o(10);e.ToolbarCustomMessagesComponent=o.ToolbarCustomMessagesComponent,function(t){for(var e in t)r(e,t[e])}(e)}],i={},n.m=o,n.c=i,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=30)}}});
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Kendo UI Angular component starter template",
4
4
  "author": "Progress",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
- "version": "4.1.1",
6
+ "version": "4.1.3",
7
7
  "main": "dist/npm/index.js",
8
8
  "module": "dist/fesm5/index.js",
9
9
  "es2015": "dist/fesm2015/index.js",
@@ -32,14 +32,14 @@
32
32
  "ToolBar"
33
33
  ],
34
34
  "peerDependencies": {
35
- "@angular/common": "8 - 12",
36
- "@angular/core": "8 - 12",
35
+ "@angular/common": "8 - 13",
36
+ "@angular/core": "8 - 13",
37
37
  "@progress/kendo-angular-buttons": "^6.0.0",
38
38
  "@progress/kendo-angular-common": "^2.0.0",
39
39
  "@progress/kendo-angular-l10n": "^3.0.0",
40
40
  "@progress/kendo-angular-popup": "^4.0.0",
41
41
  "@progress/kendo-licensing": "^1.0.2",
42
- "rxjs": "^6.4.0"
42
+ "rxjs": "^6.4.0 || ^7.0.0"
43
43
  },
44
44
  "dependencies": {
45
45
  "@progress/kendo-schematics": "^1.0.0",