@progress/kendo-angular-menu 3.0.4 → 3.0.6-dev.202203091409
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-menu.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/rendering/item.component.js +1 -1
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/rendering/item.component.js +1 -1
- package/dist/fesm2015/index.js +2 -2
- package/dist/fesm5/index.js +2 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rendering/item.component.js +1 -1
- package/dist/systemjs/kendo-angular-menu.js +1 -1
- package/package.json +2 -2
|
@@ -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-menu",["tslib","@angular/core","@progress/kendo-angular-l10n","@progress/kendo-licensing","@progress/kendo-angular-common","@angular/common","@progress/kendo-angular-popup"],function(r){var a,s,p,c,u,l,d;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=t(e)},function(e){s=t(e)},function(e){p=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){l=t(e)},function(e){d=t(e)}],execute:function(){function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n,o;o={},i.m=n=[function(e,t){e.exports=a},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,t){return e.siblingIndex-t.siblingIndex}function i(e,t,n){for(var i=t[e+n];!i;)e<0?e=t.length-1:e>=t.length?e=0:e+=n,i=t[e];return i}var r=n(0),n=n(1),a=/_?\d+$/,s=0,n=(Object.defineProperty(p.prototype,"hasItems",{get:function(){return 0<Object.keys(this.items).length},enumerable:!0,configurable:!0}),p.prototype.childId=function(e){return this.idPrefix+"-child"+e},p.prototype.itemIndex=function(e,t){return(e?e+"_":"")+t},p.prototype.get=function(e){return this.items[e]},p.prototype.add=function(e){this.items[e.index]=e},p.prototype.remove=function(e){this.items[e.index]===e&&delete this.items[e.index]},p.prototype.addList=function(e){this.lists.push(e)},p.prototype.removeList=function(e){e=this.lists.indexOf(e);0<=e&&this.lists.splice(e,1)},p.prototype.containsList=function(t){return Boolean(this.lists.find(function(e){return e.element.nativeElement===t}))},p.prototype.siblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter(function(e){return t.parentIndex(e)===n})},p.prototype.otherSiblings=function(t){var n=this,i=this.parentIndex(t.index);return this.filter(function(e){return n.parentIndex(e)===i&&e!==t.index})},p.prototype.children=function(t){var n=this;return this.filter(function(e){return n.parentIndex(e)===t.index})},p.prototype.parent=function(e){return this.items[this.parentIndex(e.index)]},p.prototype.root=function(e){return this.items[this.indices(e.index)[0]]},p.prototype.indices=function(e){return e.split("_")},p.prototype.filter=function(e){var t,n=[],i=this.items;for(t in i)e(t,i[t])&&n.push(i[t]);return n.sort(o)},p.prototype.previous=function(e){var t=this.siblings(e),e=t.indexOf(e);return i(e,t,-1)},p.prototype.next=function(e){var t=this.siblings(e),e=t.indexOf(e);return i(e,t,1)},p.prototype.hasParent=function(e,t){return e.index.startsWith(t.index)},p.prototype.areSiblings=function(e,t){return e!==t&&this.parent(e)===this.parent(t)},p.prototype.forEach=function(e){var t,n=this.items;for(t in n)n.hasOwnProperty(t)&&e(n[t])},p.prototype.parentIndex=function(e){return e.replace(a,"")},r.__decorate([n.Injectable()],p));function p(){this.items={},this.lists=[],this.idPrefix="k-menu"+s++}t.ItemsService=n},function(e,t){e.exports=u},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoMenuItemLinkTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.ItemLinkTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoMenuItemTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.ItemTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(15),a=n(6),n=n(5),o=(Object.defineProperty(s.prototype,"rootItems",{get:function(){return this.items||(this.children?this.children.toArray():[])},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Array)],s.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],s.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],s.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],s.prototype,"hoverDelay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],s.prototype,"animate",void 0),i.__decorate([o.ContentChildren(a.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],s.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(n.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],s.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(r.MenuItemComponent),i.__metadata("design:type",o.QueryList)],s.prototype,"children",void 0),s);function s(){this.vertical=!1,this.openOnClick=!1,this.hoverDelay=100,this.animate=!0}t.MenuBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(9),i=(s.prototype.emit=function(e,t){this.owner.emitMenuEvent(e,t)},s.prototype.hasObservers=function(e){return this.owner&&r.hasObservers(this.owner[e])},s.prototype.leaveMenu=function(e){return!this.items||!a.inMenu(e.target,this.items)},i.__decorate([o.Injectable()],s));function s(){this.keydown=new o.EventEmitter}t.ContextMenuService=i},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(35),o=/^(?:a|input|select|option|textarea|button|object)$/i;r.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},r.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},r.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,n=null!==n&&!i;return n=o.test(t)?!e.disabled&&!i:n}return!1};function i(e){return String(e).trim().split(" ")}r.hasClass=function(e,t){return 0<=i(e.className).indexOf(t)},r.matchesClasses=function(e){var n=i(e);return function(e){var t=i(e.className);return Boolean(n.find(function(e){return 0<=t.indexOf(e)}))}},r.nodeIndex=function(e){return e.getAttribute(n.NODE_INDEX)},r.closestItem=function(e,t){return r.closestInScope(e,r.nodeIndex,t)},r.closestList=function(e){e=r.closest(e,r.matchesClasses("k-menu-popup k-menu k-menu-group"));return e=e&&r.hasClass(e,"k-menu-popup")?e.querySelector(".k-menu-group"):e},r.inMenu=function(e,t){if(e===t.lists[0].element.nativeElement)return!1;e=r.closestList(e);return e&&t.containsList(e)},r.findInContainer=function(e,t,n){var i=n.getAttribute("id");i||n.setAttribute("id","kendo-matches-container");var o="#"+(i||"kendo-matches-container")+" "+t,e=r.closestInScope(e,function(e){return((e=e).matches||e.msMatchesSelector).call(e,o)},n);return i||n.removeAttribute("id"),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(17),s=n(3),r=(p.prototype.open=function(e,t){e.disabled||(e.hasContent&&!e.opened?this.actions.push({name:"open",requiresZone:e.hasContentTemplates(),item:e,finished:t}):t&&t())},p.prototype.close=function(e){this.closeChildren(e),this.closeItem(e)},p.prototype.closeItem=function(e){e.opened&&this.actions.push({name:"close",item:e})},p.prototype.closeToRoot=function(e){this.closeChildren(e);for(var t=e;this.closeItem(t),t=this.items.parent(t););},p.prototype.closeOthers=function(e){this.closeChildren(e);for(var t=e;t;){var n=this.items.otherSiblings(t);this.closeItems(n),t=this.items.parent(t)}},p.prototype.closeAll=function(){var t=this;this.items.forEach(function(e){e.opened&&0===e.level&&t.close(e)})},p.prototype.select=function(e,t,n,i){this.actions.push({name:"select",item:e,prevented:n,finished:i,domEvent:t})},p.prototype.emit=function(e,t,n){var i=this.owner,t=new a.MenuEvent({sender:i,item:t.item,index:t.index,originalEvent:n,hasContent:t.hasContent});return i[e].emit(t),i.contextService&&i.contextService.emit(e,t),t.isDefaultPrevented()},Object.defineProperty(p.prototype,"hasPending",{get:function(){return 0<this.actions.length},enumerable:!0,configurable:!0}),p.prototype.execute=function(e){var t,n=this;(this.hasPending||e)&&(t=e||this.clear(),!o.NgZone.isInAngularZone()&&this.requiresZone(t)?this.ngZone.run(function(){n.executeActions(t)}):this.executeActions(t))},p.prototype.clear=function(){var e=this.actions;return this.actions=[],e},p.prototype.executeActions=function(e){for(var t,n=0;n<e.length;n++){var i=e[n],o=i.item,r=i.name,a=i.prevented,s=i.finished,p=i.domEvent;t=o,"open"===(i=r)&&t.opened||"close"===i&&!t.opened||(this.emit(r,o,p)?a&&a():(o[r]&&o[r](),s&&s()))}},p.prototype.requiresZone=function(e){for(var t=e||this.actions,n=this.owner,i=n.contextService,o=0;o<t.length;o++){var r=t[o],a=r.name;if(r.requiresZone||a&&(s.hasObservers(n[a])||i&&i.hasObservers(a)))return!0}return!1},p.prototype.closeChildren=function(e){e.opened&&(e=this.items.children(e),this.closeItems(e))},p.prototype.closeItems=function(e){for(var t=0;t<e.length;t++)this.close(e[t])},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone,r.ItemsService])],p));function p(e,t){this.ngZone=e,this.items=t,this.actions=[]}t.ActionsService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoContextMenuTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.ContextMenuTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(26),a=n(4),s=n(38),p=n(15),c=n(34),u=n(33),l=n(32),d=n(31),m=n(6),h=n(5),v=n(14),f=n(30),n=n(27),d=[s.MenuComponent,p.MenuItemComponent,m.ItemTemplateDirective,h.ItemLinkTemplateDirective,v.ItemContentTemplateDirective,f.HierarchyBindingDirective,n.FlatBindingDirective,l.LinkDirective,d.ExpandArrowDirective],u=d.concat([c.ListComponent,u.ItemComponent]),r=i.__decorate([o.NgModule({declarations:[u],exports:[d],imports:[a.PopupModule,r.CommonModule]})],_);function _(){}t.MenuModule=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(3);t.defined=function(e){return void 0!==e},t.bodyFactory=function(){if(o.isDocumentAvailable())return new i.ElementRef(document.body)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=i.__decorate([n.Directive({selector:"[kendoMenuItemContentTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.ItemContentTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),a=n(5),s=n(14),o=(n=p,Object.defineProperty(p.prototype,"template",{get:function(){if(this.itemTemplate&&this.itemTemplate.length)return this.itemTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"linkTemplate",{get:function(){if(this.itemLinkTemplate&&this.itemLinkTemplate.length)return this.itemLinkTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"contentTemplate",{get:function(){if(this.itemContentTemplate&&this.itemContentTemplate.length)return this.itemContentTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"items",{get:function(){var t=this;if(this.children.length)return this.children.toArray().filter(function(e){return e!==t})},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],p.prototype,"text",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],p.prototype,"url",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],p.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],p.prototype,"cssStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],p.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],p.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],p.prototype,"separator",void 0),i.__decorate([o.ContentChildren(r.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],p.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(a.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],p.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(s.ItemContentTemplateDirective),i.__metadata("design:type",o.QueryList)],p.prototype,"itemContentTemplate",void 0),i.__decorate([o.ContentChildren(n),i.__metadata("design:type",o.QueryList)],p.prototype,"children",void 0),i.__decorate([o.Component({selector:"kendo-menu-item",template:""})],p));function p(){}t.MenuItemComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(18),a=n(2),n=n(10),s=/\S/,p={37:"left",39:"right",38:"up",40:"down",36:"home",35:"end",32:"enter",13:"enter",27:"esc",9:"tab"},c=Object.assign({},p,{37:"right",39:"left"}),u=Promise.resolve(null),o=(Object.defineProperty(l.prototype,"focusedItem",{get:function(){return this.items.get(this.focusedIdx)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"activeItem",{get:function(){return this.items.get(this.activeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"handlers",{get:function(){return this.localization.rtl?c:p},enumerable:!0,configurable:!0}),l.prototype.focus=function(e){e.index!==this.focusedIdx&&(this.activeItem&&this.items.hasParent(e,this.activeItem)||this.setActive(e),this.setFocus(e))},l.prototype.setFocus=function(e){this.focusedIdx=e.index,e.focus()},l.prototype.focusLeave=function(){var e=this.focusedItem;e&&(this.actions.closeToRoot(e),this.actions.execute()),this.focusedIdx=null},l.prototype.updateActive=function(){var e=this;!this.activeItem&&this.items.hasItems&&(this.items.get("0").toggleActive(!0),this.ngZone.runOutsideAngular(function(){u.then(function(){e.activeIndex="0"})}))},l.prototype.keydown=function(e){var t=this.focusedItem||this.activeItem,n=this.handlers[e.keyCode];t&&(n?("tab"!==n&&e.preventDefault(),this[n](t,e)):1===(n=e.key).length&&s.test(n)&&this.search(t,e.key),this.actions.execute())},l.prototype.focusIndex=function(e){!e&&this.activeItem?this.setFocus(this.activeItem):"first"===e?this.focusFirst():"last"===e?this.focusLast():(e=this.items.get(e))&&this.focus(e)},l.prototype.focusFirst=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[0])},l.prototype.focusLast=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[e.length-1])},l.prototype.search=function(e,t){for(var n=this.items.siblings(e),e=n.indexOf(e),i=n.slice(e+1).concat(n.slice(0,e)),o=0;o<i.length;o++){var r=i[o];if((r.item.text||"").toLowerCase().startsWith(t.toLowerCase())){this.focus(r);break}}},l.prototype.down=function(e){0!==e.level||this.vertical?this.focus(this.items.next(e)):e.hasContent&&this.actions.open(e,this.focusChild(e,0))},l.prototype.up=function(e){0!==e.level||this.vertical?this.focus(this.items.previous(e)):e.hasContent&&this.actions.open(e,this.focusChild(e,e.children.length-1))},l.prototype.left=function(e){var t;this.vertical&&0===e.level&&e.disabled||(1<e.level||this.vertical&&0<e.level?(t=this.items.parent(e),this.focus(t),this.actions.close(t)):this.vertical&&0===e.level&&!e.disabled?e.hasContent&&this.actions.open(e,this.focusChild(e,e.children.length-1)):this.focus(this.items.previous(this.activeItem)))},l.prototype.right=function(e){this.vertical&&0===e.level&&e.disabled||(e.horizontal&&!e.disabled?e.hasContent?this.actions.open(e,this.focusChild(e,0)):(!this.vertical||0<e.level)&&this.focus(this.items.next(this.activeItem)):this.focus(this.items.next(this.activeItem)))},l.prototype.home=function(e){e=this.items.siblings(e);this.focus(e[0])},l.prototype.end=function(e){e=this.items.siblings(e);this.focus(e[e.length-1])},l.prototype.enter=function(e,t){var n=this.actions;e.disabled||(e.hasContent?(n.select(e,t),n.open(e,this.focusChild(e,0))):(n.select(e,t,null,function(){e.navigate()}),this.focus(this.items.root(e)),n.closeToRoot(e)))},l.prototype.esc=function(e){0<e.level&&(e=this.items.parent(e),this.actions.close(e),this.focus(e))},l.prototype.tab=function(e){0<e.level&&this.activeItem.focus()},l.prototype.focusChild=function(t,n){var i=this;return function(){var e=i.items.children(t)[n];i.setFocus(e)}},l.prototype.setActive=function(e){var t=this.focusedItem,e=this.items.root(e);this.activeItem&&this.activeItem.toggleActive(!1),this.activeIndex=e.index,e.toggleActive(!0),t&&(this.actions.closeToRoot(t),0<t.level&&this.actions.open(e))},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.ItemsService,n.ActionsService,r.LocalizationService,o.NgZone])],l));function l(e,t,n,i){this.items=e,this.actions=t,this.localization=n,this.ngZone=i,this.vertical=!1,this.activeIndex="0"}t.NavigationService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),o=(i=n(37).PreventableEvent,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.MenuEvent=o},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(26),a=n(4),s=n(12),p=n(23),c=n(11),u=n(20),n=n(22),n=[p.ContextMenuComponent,c.ContextMenuTemplateDirective,u.ContextMenuTargetDirective,n.ContextMenuTargetContainerDirective],s=i.__decorate([o.NgModule({declarations:[n],exports:[n,s.MenuModule],imports:[a.PopupModule,r.CommonModule,s.MenuModule]})],l);function l(){}t.ContextMenuModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(21);t.TARGET_CLASS="k-contextmenu-target";r.prototype.ngOnDestroy=function(){this.targetService.remove(this)},i.__decorate([o.Input("kendoContextMenuTarget"),i.__metadata("design:type",Object)],r.prototype,"data",void 0),i.__decorate([o.HostBinding("class."+t.TARGET_CLASS),i.__metadata("design:type",Boolean)],r.prototype,"hostClass",void 0),n=i.__decorate([o.Directive({selector:"[kendoContextMenuTarget]",exportAs:"kendoContextMenuTarget"}),i.__metadata("design:paramtypes",[o.ElementRef,n.ContextMenuTargetService])],r);function r(e,t){this.targetService=t,this.hostClass=!0,e&&(this.element=e.nativeElement),t.add(this)}t.ContextMenuTargetDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),n=(o.prototype.add=function(e){this.targets.push(e)},o.prototype.remove=function(e){e=this.targets.indexOf(e);this.targets.splice(e,1)},o.prototype.find=function(t){return this.targets.find(function(e){return e.element===t})},i.__decorate([n.Injectable()],o));function o(){this.targets=[]}t.ContextMenuTargetService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(21),n=i.__decorate([o.Directive({selector:"[kendoContextMenuTargetContainer]",exportAs:"kendoContextMenuTargetContainer",providers:[n.ContextMenuTargetService]}),i.__metadata("design:paramtypes",[o.ElementRef,n.ContextMenuTargetService])],r);function r(e,t){this.targetService=t,e&&(this.element=e.nativeElement)}t.ContextMenuTargetContainerDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return e.preventDefault()}var r,i,a=n(0),s=n(1),p=n(18),c=n(4),u=n(3),l=n(7),d=n(24),m=n(8),h=n(40),v=n(11),f=n(9),_=n(13),g=n(2),y=n(22),b=n(20),n=n(13),I="contextmenu",x={horizontal:"left",vertical:"bottom"},C={horizontal:"left",vertical:"top"},O={horizontal:"fit",vertical:"flip"},m=(r=l.MenuBase,a.__extends(k,r),(i=k).prototype.hide=function(){this.removePopup()},k.prototype.show=function(e){e&&(e=e,this.removePopup(),_.defined(e.left)&&_.defined(e.top)?this.createPopup({offset:e}):(this.currentTarget=e.nativeElement||e,this.createPopup({anchor:this.currentTarget})))},k.prototype.ngOnChanges=function(e){(e.target||e.showOn)&&this.bindShowHandler()},k.prototype.ngOnInit=function(){var n=this;this.ngZone.runOutsideAngular(function(){var e=n.renderer.listen("document","mousedown",function(e){n.popupRef&&!f.closest(e.target,function(e){return e===n.popupRef.popupElement})&&n.service.leaveMenu(e)&&n.closePopup(e)}),t=n.renderer.listen("window","blur",function(e){n.popupRef&&n.closePopup(e)});n.closeSubscription=function(){e(),t()}})},k.prototype.ngOnDestroy=function(){this.closeSubscription&&(this.closeSubscription(),this.closeSubscription=null),this.unbindShowHandler(),this.removePopup()},k.prototype.emitMenuEvent=function(e,t){t.target=this.currentTarget,(t.sender=this)[e].emit(t),"select"!==e||t.hasContent||this.closeAndFocus(t.originalEvent)},k.prototype.bindShowHandler=function(){var n=this;this.unbindShowHandler(),this.ngZone.runOutsideAngular(function(){var e,t=n.targetElement();t&&(e=n.showOn||I,n.showSubscription=n.renderer.listen(t,n.showOn||I,function(e){n.showContextMenu(e,t)}),e===I&&(n.keydownSubscription=n.renderer.listen(t,"keydown",function(e){e.shiftKey&&e.keyCode===u.Keys.F10&&n.showContextMenu(e,t)})))})},k.prototype.showContextMenu=function(e,t){var n=this,i=this.targetFilter(),o=t;if(i){if((o=f.findInContainer(e.target,i,t))&&o!==e.target&&f.isFocusable(e.target))return;o&&this.directiveTarget&&(o=this.target.targetService.find(o))}o?this.ngZone.run(function(){n.closePopup(e)||(n.currentTarget=o,n.openPopup(e))}):this.closePopup(e)},k.prototype.unbindShowHandler=function(){this.showSubscription&&(this.showSubscription(),this.showSubscription=null),this.keydownSubscription&&(this.keydownSubscription(),this.keydownSubscription=null)},k.prototype.targetElement=function(){if(u.isDocumentAvailable()){this.directiveTarget=!1;var e=this.target;return"string"==typeof e?e=document.querySelector(e):e&&e.nativeElement?e=e.nativeElement:e instanceof y.ContextMenuTargetContainerDirective&&(e=e.element,this.directiveTarget=!0),e}},k.prototype.targetFilter=function(){return this.directiveTarget?"."+b.TARGET_CLASS:this.filter},k.prototype.closePopup=function(e){var t=this;if(this.popupRef)return this.popupAction("popupClose",e,function(){t.removePopup()})},k.prototype.removePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.currentTarget=null),this.popupSubscriptions&&(this.popupSubscriptions(),this.popupSubscriptions=null)},k.prototype.openPopup=function(n){var i=this;this.popupAction("popupOpen",n,function(){var e,t;n.preventDefault(),i.alignToAnchor||"keydown"===n.type?e=i.currentTargetElement:t={left:n.pageX,top:n.pageY},i.createPopup({anchor:e,offset:t})})},k.prototype.createPopup=function(e){var n=this;this.popupRef=this.popupService.open(Object.assign({animate:!_.defined(this.popupAnimate)||this.popupAnimate,appendTo:this.appendTo,collision:this.collision||O,popupAlign:this.popupAlign||C,anchorAlign:this.anchorAlign||x,content:this.contentTemplate?this.contentTemplate.templateRef:this.defaultContentTemplate,popupClass:"k-menu-popup"},e));var i=this.popupRef.popupElement;this.renderer.addClass(i,"k-context-menu-popup"),this.renderer.setAttribute(i,"tabindex","-1"),this.renderer.setStyle(i,"outline","0"),this.ariaLabel&&this.renderer.setAttribute(i,"aria-label",this.ariaLabel),this.activeTarget=this.currentTargetElement===document.activeElement,this.ngZone.runOutsideAngular(function(){var e=n.renderer.listen(i,"keydown",n.popupKeyDownHandler),t=n.renderer.listen(i,"contextmenu",o);n.popupSubscriptions=function(){e(),t()}}),i.focus()},k.prototype.closeAndFocus=function(e){var t=this.currentTargetElement;!this.closePopup(e)&&this.activeTarget&&t.focus()},k.prototype.popupKeyDownHandler=function(e){var t=this.popupRef.popupElement;e.keyCode!==u.Keys.Escape||!f.hasClass(e.target,"k-menu-item")&&e.target!==t?e.target===t&&this.service.keydown.emit(e):this.closeAndFocus(e)},k.prototype.popupAction=function(e,t,n){var i=this,o=this[e],r=!1;return u.hasObservers(o)?this.ngZone.run(function(){var e=new d.ContextMenuPopupEvent({originalEvent:t,sender:i,target:i.currentTarget});o.emit(e),e.isDefaultPrevented()||n(),r=e.isDefaultPrevented()}):n(),r},Object.defineProperty(k.prototype,"currentTargetElement",{get:function(){return this.directiveTarget&&this.currentTarget?this.currentTarget.element:this.currentTarget},enumerable:!0,configurable:!0}),a.__decorate([s.Input(),a.__metadata("design:type",String)],k.prototype,"showOn",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Object)],k.prototype,"target",void 0),a.__decorate([s.Input(),a.__metadata("design:type",String)],k.prototype,"filter",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Boolean)],k.prototype,"alignToAnchor",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Boolean)],k.prototype,"vertical",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Object)],k.prototype,"popupAnimate",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Object)],k.prototype,"popupAlign",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Object)],k.prototype,"anchorAlign",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Object)],k.prototype,"collision",void 0),a.__decorate([s.Input(),a.__metadata("design:type",s.ViewContainerRef)],k.prototype,"appendTo",void 0),a.__decorate([s.Input(),a.__metadata("design:type",String)],k.prototype,"ariaLabel",void 0),a.__decorate([s.Output(),a.__metadata("design:type",s.EventEmitter)],k.prototype,"popupOpen",void 0),a.__decorate([s.Output(),a.__metadata("design:type",s.EventEmitter)],k.prototype,"popupClose",void 0),a.__decorate([s.Output(),a.__metadata("design:type",s.EventEmitter)],k.prototype,"select",void 0),a.__decorate([s.Output(),a.__metadata("design:type",s.EventEmitter)],k.prototype,"open",void 0),a.__decorate([s.Output(),a.__metadata("design:type",s.EventEmitter)],k.prototype,"close",void 0),a.__decorate([s.ContentChild(v.ContextMenuTemplateDirective,{static:!1}),a.__metadata("design:type",v.ContextMenuTemplateDirective)],k.prototype,"contentTemplate",void 0),a.__decorate([s.ViewChild("default",{static:!1}),a.__metadata("design:type",s.TemplateRef)],k.prototype,"defaultContentTemplate",void 0),i=a.__decorate([s.Component({exportAs:"kendoContextMenu",providers:[m.ContextMenuService,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.contextmenu"},{provide:g.ItemsService,useClass:h.ContextMenuItemsService},{provide:l.MenuBase,useExisting:s.forwardRef(function(){return i})},c.PopupService,{provide:c.POPUP_CONTAINER,useFactory:n.bodyFactory}],selector:"kendo-contextmenu",template:'\n <ng-template #default>\n <kendo-menu [items]="rootItems"\n [vertical]="vertical"\n [openOnClick]="openOnClick"\n [hoverDelay]="hoverDelay"\n [animate]="animate"\n [menuItemTemplate]="itemTemplate.first?.templateRef"\n [menuItemLinkTemplate]="itemLinkTemplate.first?.templateRef"\n ></kendo-menu>\n </ng-template>\n '}),a.__metadata("design:paramtypes",[c.PopupService,m.ContextMenuService,s.NgZone,s.Renderer2])],k));function k(e,t,n,i){var o=r.call(this)||this;return o.popupService=e,o.service=t,o.ngZone=n,o.renderer=i,o.showOn=I,o.alignToAnchor=!1,o.vertical=!0,o.popupOpen=new s.EventEmitter,o.popupClose=new s.EventEmitter,o.select=new s.EventEmitter,o.open=new s.EventEmitter,o.close=new s.EventEmitter,(o.service.owner=o).popupKeyDownHandler=o.popupKeyDownHandler.bind(o),o}t.ContextMenuComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),o=(i=n(37).PreventableEvent,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.ContextMenuPopupEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContextMenuEvent=function(){}},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),r=n(1),a=n(7),s=n(29),p=n(28),a=(i=s.BindingDirectiveBase,o.__extends(c,i),c.prototype.mapItems=function(e){var t=this;if(!this.idField||!this.parentIdField)return e.map(function(e){return t.createItem(e)});for(var n=[],i={},o=0;o<e.length;o++){var r=e[o],a=this.createItem(r),s=p.getter(this.idField)(r),r=p.getter(this.parentIdField)(r);null==r?n.push(a):((r=i[r]=i[r]||{}).items=r.items||[],r.items.push(a)),i[s]&&(a.items=i[s].items),i[s]=a}return n},c.prototype.createItem=function(e){for(var t={data:e},n=this.fields,i=0;i<n.length;i++){var o=n[i],r=o.source;t[o.target]=p.getter(r)(e)}return t},o.__decorate([r.Input("kendoMenuFlatBinding"),o.__metadata("design:type",Array)],c.prototype,"data",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"textField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"urlField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],c.prototype,"iconField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"disabledField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"cssClassField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"cssStyleField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"separatorField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"idField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"parentIdField",void 0),o.__decorate([r.Directive({exportAs:"kendoMenuFlatBinding",selector:"[kendoMenuFlatBinding]"}),o.__metadata("design:paramtypes",[a.MenuBase])],c));function c(e){return i.call(this,e)||this}t.FlatBindingDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,r={undefined:function(e){return e}};t.getter=function(e){if(r[e])return r[e];var o=[];return e.replace(i,function(e,t,n,i){o.push(void 0!==t?t:n||i)}),r[e]=function(e){for(var t=e,n=0;n<o.length&&t;n++)t=t[o[n]];return t},r[e]},t.last=function(e){return e[e.length-1]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=["textField","urlField","iconField","disabledField","cssClassField","cssStyleField","separatorField"],i=(r.prototype.ngOnChanges=function(){this.rebind()},r.prototype.rebind=function(){for(var e=this.fields=[],t=0;t<o.length;t++){var n=o[t],i=this[n];i&&e.push({target:n.replace("Field",""),source:i})}this.menu.items=this.data?this.mapItems(this.data):[]},r);function r(e){this.menu=e}t.BindingDirectiveBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function s(e,t){return Array.isArray(e)?e[t]||c.last(e):e}var i,o=n(0),r=n(1),a=n(7),p=n(29),c=n(28),a=(i=p.BindingDirectiveBase,o.__extends(u,i),u.prototype.mapItems=function(e,n){var i=this;return void 0===n&&(n=0),e.map(function(e){var t=i.createItem(e,n),e=i.getChildren(e,n);return e&&(t.items=i.mapItems(e,n+1)),t})},u.prototype.createItem=function(e,t){for(var n={data:e},i=this.fields,o=0;o<i.length;o++){var r=i[o],a=r.target,r=r.source;n[a]=c.getter(s(r,t))(e)}return n},u.prototype.getChildren=function(e,t){if(this.childrenField)return e[s(this.childrenField,t)]},o.__decorate([r.Input("kendoMenuHierarchyBinding"),o.__metadata("design:type",Array)],u.prototype,"data",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"textField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"urlField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"iconField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"disabledField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"cssClassField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"cssStyleField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"separatorField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"childrenField",void 0),o.__decorate([r.Directive({exportAs:"kendoMenuHierarchyBinding",selector:"[kendoMenuHierarchyBinding]"}),o.__metadata("design:paramtypes",[a.MenuBase])],u));function u(e){return i.call(this,e)||this}t.HierarchyBindingDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(2),n=(Object.defineProperty(r.prototype,"arrowDown",{get:function(){return!this.item.horizontal},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"arrowRight",{get:function(){return this.item.horizontal&&!this.item.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"arrowLeft",{get:function(){return this.item.horizontal&&this.item.rtl},enumerable:!0,configurable:!0}),r.prototype.ngOnInit=function(){if(o.isDevMode()&&!this.index)throw new Error("The kendoMenuExpandArrow directive requires the item index to be set.");this.item=this.itemsService.get(this.index)||{}},i.__decorate([o.Input("kendoMenuExpandArrow"),i.__metadata("design:type",String)],r.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-icon"),o.HostBinding("class.k-menu-expand-arrow"),i.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],r.prototype,"role",void 0),i.__decorate([o.HostBinding("class.k-i-arrow-60-down"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],r.prototype,"arrowDown",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-right"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],r.prototype,"arrowRight",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-left"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],r.prototype,"arrowLeft",null),i.__decorate([o.Directive({selector:"[kendoMenuExpandArrow]"}),i.__metadata("design:paramtypes",[n.ItemsService])],r));function r(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation"}t.ExpandArrowDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(2),n=(Object.defineProperty(r.prototype,"activeClass",{get:function(){return this.item.opened},enumerable:!0,configurable:!0}),r.prototype.ngOnInit=function(){if(o.isDevMode()&&!this.index)throw new Error("The kendoMenuItemLink directive requires the item index to be set.");this.item=this.itemsService.get(this.index)||{}},i.__decorate([o.Input("kendoMenuItemLink"),i.__metadata("design:type",String)],r.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-link"),o.HostBinding("class.k-menu-link"),i.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],r.prototype,"role",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String)],r.prototype,"tabindex",void 0),i.__decorate([o.HostBinding("class.k-state-active"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],r.prototype,"activeClass",null),i.__decorate([o.Directive({selector:"[kendoMenuItemLink]"}),i.__metadata("design:paramtypes",[n.ItemsService])],r));function r(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation",this.tabindex="-1"}t.LinkDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(16),s=n(43),p=n(4),n=n(13),o=(Object.defineProperty(c.prototype,"index",{get:function(){return this._index},set:function(e){this._index&&this._index!==e?(this.itemsService.remove(this),this._index=e,this.itemsService.add(this)):this._index=e,this.childId=this.itemsService.childId(e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"disabled",{get:function(){return this.item.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasPopup",{get:function(){return!!this.hasContent||null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"expanded",{get:function(){return this.hasContent?this.opened:null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"label",{get:function(){return this.item.text||null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"activeId",{get:function(){return this.index===this.navigation.activeIndex?"0":"-1"},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"popupSettings",{get:function(){var e=this.rtl?s.POPUP_SETTINGS_RTL:s.POPUP_SETTINGS;return this.horizontal?e.horizontal:e.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"horizontal",{get:function(){return this.vertical||0<this.level},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasLink",{get:function(){return Boolean(this.item.url)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"linkTemplate",{get:function(){return this.item.linkTemplate||this.itemLinkTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasContent",{get:function(){var e=this.item.items;return e&&e.length||this.item.contentTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isContent",{get:function(){return Boolean(this.item.content)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"iconClass",{get:function(){return"k-i-"+this.item.icon},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"children",{get:function(){var e=this.item;return e.contentTemplate?(this.contentItems||(this.contentItems=[{content:e.contentTemplate,owner:e,ownerIndex:this.index}]),this.contentItems):e.items},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"template",{get:function(){return this.item.template||this.itemTemplate},enumerable:!0,configurable:!0}),c.prototype.hasContentTemplates=function(){var e=this.item;return this.itemTemplate||e.contentTemplate||this.itemLinkTemplate||e.items&&e.items.find(function(e){return e.template||e.linkTemplate})},c.prototype.ngOnInit=function(){this.itemsService.add(this)},c.prototype.ngOnDestroy=function(){this.itemsService.remove(this),this.destroyed=!0,this.popupRef&&(this.popupRef.close(),this.popupRef=null)},c.prototype.focus=function(){this.element.nativeElement.focus()},c.prototype.blur=function(){this.element.nativeElement.blur()},c.prototype.toggleActive=function(e){e?this.setAttribute("tabindex","0"):this.setAttribute("tabindex","-1")},c.prototype.open=function(){var e,t;this.destroyed||!this.hasContent||this.opened||(e=this.popupSettings,t=!!this.animate&&Object.assign({},this.animate,{direction:e.animate}),this.opened=!0,this.popupRef=this.popupService.open({popupAlign:e.popup,anchorAlign:e.anchor,collision:e.collision,anchor:this.element,positionMode:"absolute",content:this.popupTemplate,popupClass:{"k-rtl":this.rtl,"k-menu-popup":!0},animate:t}),this.setAttribute("aria-expanded","true"),this.setAttribute("aria-owns",this.childId),this.changeDetector.detectChanges())},c.prototype.close=function(){!this.destroyed&&this.opened&&(this.opened=!1,this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.changeDetector.detectChanges(),this.setAttribute("aria-expanded","false"),this.renderer.removeAttribute(this.element.nativeElement,"aria-owns"))},c.prototype.navigate=function(){var e;this.linkTemplate?e=this.element.nativeElement.querySelector("a.k-menu-link"):this.hasLink&&(e=this.link.nativeElement),e&&(this.navigating=!0,e.click(),this.navigating=!1)},c.prototype.setAttribute=function(e,t){this.renderer.setAttribute(this.element.nativeElement,e,t)},i.__decorate([o.Input(),i.__metadata("design:type",Object)],c.prototype,"item",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],c.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],c.prototype,"index",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],c.prototype,"siblingIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],c.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],c.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],c.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],c.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],c.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],c.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ViewChild("link",{static:!1}),i.__metadata("design:type",o.ElementRef)],c.prototype,"link",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",o.TemplateRef)],c.prototype,"popupTemplate",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],c.prototype,"disabled",null),i.__decorate([o.HostBinding("attr.aria-haspopup"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],c.prototype,"hasPopup",null),i.__decorate([o.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],c.prototype,"expanded",null),i.__decorate([o.HostBinding("attr.aria-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],c.prototype,"label",null),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],c.prototype,"activeId",null),i.__decorate([o.Component({providers:[p.PopupService,{provide:p.POPUP_CONTAINER,useFactory:n.bodyFactory}],selector:"[kendoMenuItem]",template:'\n <span *ngIf="!hasLink && !item.content && !linkTemplate" class="k-link k-menu-link" #link\n [class.k-state-active]="opened" role="presentation">\n <ng-template [ngTemplateOutlet]="itemcontent">\n </ng-template>\n </span>\n <a *ngIf="item.url && !linkTemplate" class="k-link k-menu-link" #link [attr.href]="item.url"\n [class.k-state-active]="opened" tabindex="-1" role="presentation">\n <ng-template [ngTemplateOutlet]="itemcontent">\n </ng-template>\n </a>\n <ng-template *ngIf="linkTemplate && !item.content" [ngTemplateOutlet]="linkTemplate"\n [ngTemplateOutletContext]="{ item: item, index: index }">\n </ng-template>\n\n <div class="k-content" *ngIf="item.content" role="presentation">\n <ng-template [ngTemplateOutlet]="item.content" [ngTemplateOutletContext]="{ item: item.owner, index: item.ownerIndex }">\n </ng-template>\n </div>\n\n <ng-template #popupTemplate>\n <ul kendoMenuList\n [attr.id]="childId"\n [animate]="animate"\n [rtl]="rtl"\n [vertical]="vertical"\n [openOnClick]="openOnClick"\n [items]="children"\n [level]="level + 1"\n [index]="index"\n [itemTemplate]="itemTemplate"\n [itemLinkTemplate]="itemLinkTemplate"\n role="menu"\n class="k-group k-menu-group k-reset">\n </ul>\n </ng-template>\n\n <ng-template #itemcontent>\n <span *ngIf="item.icon" class="k-icon" [ngClass]="iconClass" role="presentation"></span>\n <ng-container *ngIf="!template">\n {{ item.text }}\n </ng-container>\n <ng-template *ngIf="template" [ngTemplateOutlet]="template" [ngTemplateOutletContext]="{ item: item, index: index }">\n </ng-template>\n <span class="k-icon k-menu-expand-arrow" *ngIf="hasContent"\n role="presentation"\n [class.k-i-arrow-60-down]="!horizontal"\n [class.k-i-arrow-60-right]="horizontal && !rtl"\n [class.k-i-arrow-60-left]="horizontal && rtl">\n </span>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.ItemsService,a.NavigationService,o.ChangeDetectorRef,o.Renderer2,p.PopupService,o.ElementRef])],c));function c(e,t,n,i,o,r){this.itemsService=e,this.navigation=t,this.changeDetector=n,this.renderer=i,this.popupService=o,this.element=r,this.animate=!0,this.openOnClick=!1,this.opened=!1,this.navigating=!1,this.destroyed=!1}t.ItemComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(10),s=n(16),p=n(36),c=n(35),u=n(9),l=n(3),o=(d.prototype.hierarchyIndex=function(e){return this.itemsService.itemIndex(this.index,e)},d.prototype.ngOnInit=function(){this.itemsService.addList(this),this.initDomEvents()},d.prototype.ngOnDestroy=function(){this.itemsService.removeList(this),this.domSubscriptions&&this.domSubscriptions()},d.prototype.initDomEvents=function(){var p=this;l.isDocumentAvailable()&&this.element&&this.ngZone.runOutsideAngular(function(){var t=p.element.nativeElement,e=0<p.level?u.closest(t,function(e){return u.hasClass(e,"k-popup")}):t,n=p.renderer.listen(t,"mouseover",function(e){e.target===t&&0===p.level?p.onLeave():!(e=p.nodeItem(e.target)||p.itemsService.get(p.index))||p.openOnClick&&"click"===p.openOnClick.toggle&&0===e.level&&!e.hasContent||p.hover.over(e)}),i=p.renderer.listen(e,"mouseleave",function(e){p.leavesMenu(e)&&p.onLeave()}),o=p.renderer.listen(t,"keydown",function(e){u.hasClass(e.target,"k-menu-item")&&p.navigation.keydown(e)}),r=p.renderer.listen(t,"focusout",function(e){p.leavesMenu(e)&&p.navigation.focusLeave()}),a=p.renderer.listen(document,"touchstart",function(e){var t;u.inMenu(e.target,p.itemsService)?(t=p.nodeItem(e.target),p.navigation.focus(t),t.opened||p.hover.over(t)):p.navigation.focusedIdx&&(t=p.itemsService.get(p.navigation.activeIndex),p.onLeave(),t.blur())}),s=p.renderer.listen(t,"click",p.clickHandler.bind(p));p.domSubscriptions=function(){n(),i(),o(),r(),s(),a()}})},d.prototype.leavesMenu=function(e){return!e.relatedTarget||!u.inMenu(e.relatedTarget,this.itemsService)},d.prototype.onLeave=function(){var e=this.openOnClick;e&&"click"===e.toggle||this.hover.leave(e&&"leave"===e.toggle)},d.prototype.nodeItem=function(e){e=u.closestItem(e,this.element.nativeElement);if(e){e=u.nodeIndex(e);return this.itemsService.get(e)}},d.prototype.clickHandler=function(e){var t,n;u.isFocusable(e.target)&&!u.hasClass(e.target,"k-menu-item")||(!(t=this.nodeItem(e.target))||t.isContent||t.navigating||(t.disabled?e.preventDefault():(this.actions.select(t,e,function(){e.preventDefault()}),this.navigation.focus(t),0<t.level&&!t.hasContent&&this.actions.closeToRoot(t),this.openOnClick&&(n=this.hover,t.opened?0===t.level&&(n.openOnOver=!1,this.actions.close(t)):t.hasContent?(n.openOnOver=!0,this.actions.closeOthers(t),this.actions.open(t)):(n.openOnOver=!1,0===t.level&&"click"===this.openOnClick.toggle&&this.hover.closeCurrent())),this.actions.execute())))},i.__decorate([o.Input(),i.__metadata("design:type",Array)],d.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],d.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],d.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],d.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],d.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],d.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],d.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],d.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],d.prototype,"itemLinkTemplate",void 0),i.__decorate([o.Component({selector:"[kendoMenuList]",template:'\n <ng-container *ngFor="let item of items; let idx = index">\n <li *ngIf="!item.separator" kendoMenuItem\n [item]="item" [level]="level" [vertical]="vertical" [animate]="animate" [rtl]="rtl"\n [itemTemplate]="itemTemplate" [itemLinkTemplate]="itemLinkTemplate" [openOnClick]="openOnClick"\n [index]="hierarchyIndex(idx)" [siblingIndex]="idx" [attr.'+c.NODE_INDEX+']="hierarchyIndex(idx)"\n [ngClass]="item.cssClass" [ngStyle]="item.cssStyle"\n role="menuitem"\n class="k-item k-menu-item"\n [class.k-first]="idx === 0" [class.k-last]="idx === items.length - 1"\n [class.k-state-disabled]="item.disabled"></li>\n <li *ngIf="item.separator" class="k-separator k-item"\n role="separator" [ngClass]="item.cssClass" [ngStyle]="item.cssStyle">\n \n </li>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[r.ItemsService,p.HoverService,a.ActionsService,s.NavigationService,o.Renderer2,o.NgZone,o.ElementRef])],d));function d(e,t,n,i,o,r,a){this.itemsService=e,this.hover=t,this.actions=n,this.navigation=i,this.renderer=o,this.ngZone=r,this.element=a,this.animate=!0}t.ListComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NODE_INDEX="data-kendo-menu-index"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),n=n(10),r=(Object.defineProperty(a.prototype,"openOnOver",{get:function(){return this._openOnOver},set:function(e){this.cancelActions(),this._openOnOver=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hovered",{get:function(){return this.items.get(this.hoveredIdx)},set:function(e){this.hoveredIdx=e?e.index:null},enumerable:!0,configurable:!0}),a.prototype.ngOnDestroy=function(){this.cancelActions()},a.prototype.over=function(t){var n=this;this.cancelActions(function(e){return"openOnOver"===e.name}),this.hovered&&this.hovered===t||(this.actions.closeOthers(t),(0<(this.hovered=t).level||this.openOnOver)&&!t.disabled&&(this.actions.open(t),this.cancelActions(function(e){return"close"===e.name&&(t===e.item||n.items.hasParent(t,e.item))||"open"===e.name&&!n.items.hasParent(t,e.item)})),this.scheduleActions())},a.prototype.leave=function(e){var t=this.hovered;t&&(this.actions.closeToRoot(t),this.cancelActions(function(e){return"open"===e.name}),this.scheduleActions()),e&&this._openOnOver&&this.scheduleDisableOpenOnOver(),this.hovered=null},a.prototype.closeCurrent=function(){var e=this.hovered;e&&(this.actions.closeToRoot(e),this.hovered=null)},a.prototype.scheduleActions=function(){var e,t=this;this.actions.hasPending&&((e={}).actions=this.actions.clear(),e.id=setTimeout(function(){t.actions.execute(e.actions),t.removeScheduled(e)},this.delay),this.scheduled.push(e))},a.prototype.scheduleDisableOpenOnOver=function(){var e=this,t={actions:[{name:"openOnOver"}]};t.id=setTimeout(function(){e._openOnOver=!1,e.removeScheduled(t)},Math.max(this.delay,500)),this.scheduled.push(t)},a.prototype.removeScheduled=function(e){for(var t=this.scheduled,n=0;n<t.length;n++)if(t[n]===e)return void t.splice(n,1)},a.prototype.cancelActions=function(e){for(var t=this.scheduled,n=t.length-1;0<=n;n--){var i=t[n],o=i.actions;if(e)for(var r=o.length-1;0<=r;r--)e(o[r])&&o.splice(r,1);e&&0!==o.length||(clearTimeout(i.id),t.splice(n,1))}},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[n.ActionsService,r.ItemsService])],a));function a(e,t){this.actions=e,this.items=t,this.delay=100,this._openOnOver=!0,this.scheduled=[]}t.HoverService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(o.prototype.preventDefault=function(){this.prevented=!0},o.prototype.isDefaultPrevented=function(){return this.prevented},o);function o(e){this.prevented=!1,Object.assign(this,e)}t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c,i,o=n(0),u=n(1),r=n(18),l=n(46),d=n(45),a=n(2),s=n(10),p=n(16),m=n(36),h=n(44),v=n(9),f=n(8),_=n(7),g=n(3),f=(c=_.MenuBase,o.__extends(y,c),i=y,Object.defineProperty(y.prototype,"ariaOrientation",{get:function(){if(this.vertical)return"vertical"},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"contextMenuClass",{get:function(){return Boolean(this.contextService)},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"direction",{get:function(){return this.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"rtl",{get:function(){return this.localization.rtl},enumerable:!0,configurable:!0}),y.prototype.toggle=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++){var o=this.itemsService.get(t[i]);o&&!o.disabled&&(e?o.open():o.close())}},y.prototype.focus=function(e){this.navigation.focusIndex(e)},y.prototype.ngOnChanges=function(e){this.navigation.vertical=this.vertical,this.hover.delay=this.hoverDelay,e.openOnClick&&(e=this.openOnClick=h.normalize(this.openOnClick),this.hover.openOnOver=!e,e&&"click"===e.toggle?this.attachCloseClick():this.unsubscribeClick())},y.prototype.ngAfterViewChecked=function(){this.navigation.updateActive()},y.prototype.ngOnDestroy=function(){this.unsubscribeClick(),this.contextService&&(this.contextService.items=null,this.contextKeyDownSubscription.unsubscribe())},y.prototype.attachCloseClick=function(){var t=this;!this.closeClickSubscription&&g.isDocumentAvailable()&&this.ngZone.runOutsideAngular(function(){t.closeClickSubscription=t.renderer.listen("document","click",function(e){v.inMenu(e.target,t.itemsService)||(t.hover.openOnOver=!1,t.actions.closeAll(),t.actions.execute())})})},y.prototype.unsubscribeClick=function(){this.closeClickSubscription&&this.closeClickSubscription()},y.prototype.contextKeyDown=function(e){var t,n,i,o;this.itemsService.hasItems&&(o=e.keyCode,n=this.localization.rtl,i=o===g.Keys.ArrowDown||o===g.Keys.ArrowRight,o=o===g.Keys.ArrowUp||o===g.Keys.ArrowLeft,i&&!n||o&&n?t="first":(i&&n||o&&!n)&&(t="last"),t&&(e.preventDefault(),this.focus(t)))},o.__decorate([u.Input(),o.__metadata("design:type",u.TemplateRef)],y.prototype,"menuItemTemplate",void 0),o.__decorate([u.Input(),o.__metadata("design:type",u.TemplateRef)],y.prototype,"menuItemLinkTemplate",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],y.prototype,"select",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],y.prototype,"open",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],y.prototype,"close",void 0),o.__decorate([u.HostBinding("class.k-rtl"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],y.prototype,"direction",null),i=o.__decorate([u.Component({exportAs:"kendoMenu",providers:[a.ItemsService,s.ActionsService,p.NavigationService,m.HoverService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.menu"},{provide:_.MenuBase,useExisting:u.forwardRef(function(){return i})}],selector:"kendo-menu",template:'\n <ul role="menubar"\n [attr.aria-orientation]="ariaOrientation"\n kendoMenuList [items]="rootItems" [level]="0" class="k-widget k-reset k-header k-menu"\n [vertical]="vertical" [rtl]="rtl" [animate]="animate" [openOnClick]="openOnClick"\n [itemTemplate]="itemTemplate.first?.templateRef || menuItemTemplate"\n [itemLinkTemplate]="itemLinkTemplate.first?.templateRef || menuItemLinkTemplate"\n [class.k-menu-horizontal]="!vertical"\n [class.k-menu-vertical]="vertical"\n [class.k-context-menu]="contextMenuClass">\n </ul>\n '}),o.__param(7,u.Optional()),o.__metadata("design:paramtypes",[a.ItemsService,m.HoverService,s.ActionsService,p.NavigationService,r.LocalizationService,u.NgZone,u.Renderer2,f.ContextMenuService])],y));function y(e,t,n,i,o,r,a,s){var p=c.call(this)||this;return p.itemsService=e,p.hover=t,p.actions=n,p.navigation=i,p.localization=o,p.ngZone=r,p.renderer=a,p.contextService=s,p.select=new u.EventEmitter,p.open=new u.EventEmitter,p.close=new u.EventEmitter,l.validatePackage(d.packageMetadata),p.actions.owner=p,s&&(s.items=p.itemsService,p.contextKeyDownSubscription=s.keydown.subscribe(p.contextKeyDown.bind(p))),p}t.MenuComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(12),n=n(19),n=i.__decorate([o.NgModule({exports:[r.MenuModule,n.ContextMenuModule]})],a);function a(){}t.MenusModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(8),n=(r.prototype.get=function(e){if(this.contextService.items)return this.contextService.items.get(e)},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[n.ContextMenuService])],r));function r(e){this.contextService=e}t.ContextMenuItemsService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),o=(i=n(25).ContextMenuEvent,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.ContextMenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),o=(i=n(17).MenuEvent,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.MenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={vertical:"top",horizontal:"left"},o={vertical:"top",horizontal:"right"},r={vertical:"flip",horizontal:"fit"},a={vertical:"fit",horizontal:"flip"};t.POPUP_SETTINGS_RTL={vertical:{anchor:{vertical:"bottom",horizontal:"right"},popup:o,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"left"},popup:o,collision:a,animate:"left"}},t.POPUP_SETTINGS={vertical:{anchor:{vertical:"bottom",horizontal:"left"},popup:i,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"right"},popup:i,collision:a,animate:"right"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){return e&&Object.assign({toggle:"select"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-menu",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642589534,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(38);t.MenuComponent=i.MenuComponent;i=n(34);t.ListComponent=i.ListComponent;i=n(33);t.ItemComponent=i.ItemComponent;i=n(32);t.LinkDirective=i.LinkDirective;i=n(31);t.ExpandArrowDirective=i.ExpandArrowDirective;i=n(15);t.MenuItemComponent=i.MenuItemComponent;i=n(17);t.MenuEvent=i.MenuEvent;i=n(42);t.MenuSelectEvent=i.MenuSelectEvent;i=n(14);t.ItemContentTemplateDirective=i.ItemContentTemplateDirective;i=n(6);t.ItemTemplateDirective=i.ItemTemplateDirective;i=n(5);t.ItemLinkTemplateDirective=i.ItemLinkTemplateDirective;i=n(30);t.HierarchyBindingDirective=i.HierarchyBindingDirective;i=n(27);t.FlatBindingDirective=i.FlatBindingDirective;i=n(12);t.MenuModule=i.MenuModule;i=n(25);t.ContextMenuEvent=i.ContextMenuEvent;i=n(41);t.ContextMenuSelectEvent=i.ContextMenuSelectEvent;i=n(24);t.ContextMenuPopupEvent=i.ContextMenuPopupEvent;i=n(11);t.ContextMenuTemplateDirective=i.ContextMenuTemplateDirective;i=n(23);t.ContextMenuComponent=i.ContextMenuComponent;i=n(19);t.ContextMenuModule=i.ContextMenuModule;i=n(8);t.ContextMenuService=i.ContextMenuService;n=n(39);t.MenusModule=n.MenusModule,function(e){for(var t in e)r(t,e[t])}(t)}],i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=47)}}});
|
|
5
|
+
System.register("@progress/kendo-angular-menu",["tslib","@progress/kendo-licensing","@progress/kendo-angular-l10n","@progress/kendo-angular-common","@angular/core","@angular/common","@progress/kendo-angular-popup"],function(a){var r,s,p,c,u,l,d;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){r=t(e)},function(e){s=t(e)},function(e){p=t(e)},function(e){c=t(e)},function(e){u=t(e)},function(e){l=t(e)},function(e){d=t(e)}],execute:function(){function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var n,o;n=[function(e,t){e.exports=r},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,t){return e.siblingIndex-t.siblingIndex}function i(e,t,n){for(var i=t[e+n];!i;)e<0?e=t.length-1:e>=t.length?e=0:e+=n,i=t[e];return i}var r=n(0),n=n(1),a=/_?\d+$/,s=0,r=(Object.defineProperty(p.prototype,"hasItems",{get:function(){return 0<Object.keys(this.items).length},enumerable:!0,configurable:!0}),p.prototype.childId=function(e){return this.idPrefix+"-child"+e},p.prototype.itemIndex=function(e,t){return(e?e+"_":"")+t},p.prototype.get=function(e){return this.items[e]},p.prototype.add=function(e){this.items[e.index]=e},p.prototype.remove=function(e){this.items[e.index]===e&&delete this.items[e.index]},p.prototype.addList=function(e){this.lists.push(e)},p.prototype.removeList=function(e){e=this.lists.indexOf(e);0<=e&&this.lists.splice(e,1)},p.prototype.containsList=function(t){return Boolean(this.lists.find(function(e){return e.element.nativeElement===t}))},p.prototype.siblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter(function(e){return t.parentIndex(e)===n})},p.prototype.otherSiblings=function(t){var n=this,i=this.parentIndex(t.index);return this.filter(function(e){return n.parentIndex(e)===i&&e!==t.index})},p.prototype.children=function(t){var n=this;return this.filter(function(e){return n.parentIndex(e)===t.index})},p.prototype.parent=function(e){return this.items[this.parentIndex(e.index)]},p.prototype.root=function(e){return this.items[this.indices(e.index)[0]]},p.prototype.indices=function(e){return e.split("_")},p.prototype.filter=function(e){var t,n=[],i=this.items;for(t in i)e(t,i[t])&&n.push(i[t]);return n.sort(o)},p.prototype.previous=function(e){var t=this.siblings(e),e=t.indexOf(e);return i(e,t,-1)},p.prototype.next=function(e){var t=this.siblings(e),e=t.indexOf(e);return i(e,t,1)},p.prototype.hasParent=function(e,t){return e.index.startsWith(t.index)},p.prototype.areSiblings=function(e,t){return e!==t&&this.parent(e)===this.parent(t)},p.prototype.forEach=function(e){var t,n=this.items;for(t in n)n.hasOwnProperty(t)&&e(n[t])},p.prototype.parentIndex=function(e){return e.replace(a,"")},r.__decorate([n.Injectable()],p));function p(){this.items={},this.lists=[],this.idPrefix="k-menu"+s++}t.ItemsService=r},function(e,t){e.exports=c},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),i=i.__decorate([n.Directive({selector:"[kendoMenuItemLinkTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.ItemLinkTemplateDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),i=i.__decorate([n.Directive({selector:"[kendoMenuItemTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.ItemTemplateDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(15),a=n(6),n=n(5);function s(){this.vertical=!1,this.openOnClick=!1,this.hoverDelay=100,this.animate=!0}Object.defineProperty(s.prototype,"rootItems",{get:function(){return this.items||(this.children?this.children.toArray():[])},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Array)],s.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],s.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],s.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],s.prototype,"hoverDelay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],s.prototype,"animate",void 0),i.__decorate([o.ContentChildren(a.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],s.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(n.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],s.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(r.MenuItemComponent),i.__metadata("design:type",o.QueryList)],s.prototype,"children",void 0),t.MenuBase=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(9),n=(s.prototype.emit=function(e,t){this.owner.emitMenuEvent(e,t)},s.prototype.hasObservers=function(e){return this.owner&&r.hasObservers(this.owner[e])},s.prototype.leaveMenu=function(e){return!this.items||!a.inMenu(e.target,this.items)},i.__decorate([o.Injectable()],s));function s(){this.keydown=new o.EventEmitter}t.ContextMenuService=n},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function i(e){return String(e).trim().split(" ")}var n=t(35),o=/^(?:a|input|select|option|textarea|button|object)$/i;r.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},r.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},r.isFocusable=function(e){var t,n,i;return!!e.tagName&&(t=e.tagName.toLowerCase(),n="-1"===(i=e.getAttribute("tabIndex")),i=null!==i&&!n,o.test(t)?!e.disabled&&!n:i)};r.hasClass=function(e,t){return 0<=i(e.className).indexOf(t)},r.matchesClasses=function(e){var n=i(e);return function(e){var t=i(e.className);return Boolean(n.find(function(e){return 0<=t.indexOf(e)}))}},r.nodeIndex=function(e){return e.getAttribute(n.NODE_INDEX)},r.closestItem=function(e,t){return r.closestInScope(e,r.nodeIndex,t)},r.closestList=function(e){e=r.closest(e,r.matchesClasses("k-menu-popup k-menu k-menu-group"));return e=e&&r.hasClass(e,"k-menu-popup")?e.querySelector(".k-menu-group"):e},r.inMenu=function(e,t){if(e===t.lists[0].element.nativeElement)return!1;e=r.closestList(e);return e&&t.containsList(e)},r.findInContainer=function(e,t,n){var i=n.getAttribute("id"),o=(i||n.setAttribute("id","kendo-matches-container"),"#"+(i||"kendo-matches-container")+" "+t),t=r.closestInScope(e,function(e){return((e=e).matches||e.msMatchesSelector).call(e,o)},n);return i||n.removeAttribute("id"),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(17),s=n(3),n=(p.prototype.open=function(e,t){e.disabled||(e.hasContent&&!e.opened?this.actions.push({name:"open",requiresZone:e.hasContentTemplates(),item:e,finished:t}):t&&t())},p.prototype.close=function(e){this.closeChildren(e),this.closeItem(e)},p.prototype.closeItem=function(e){e.opened&&this.actions.push({name:"close",item:e})},p.prototype.closeToRoot=function(e){this.closeChildren(e);for(var t=e;this.closeItem(t),t=this.items.parent(t););},p.prototype.closeOthers=function(e){this.closeChildren(e);for(var t=e;t;){var n=this.items.otherSiblings(t);this.closeItems(n),t=this.items.parent(t)}},p.prototype.closeAll=function(){var t=this;this.items.forEach(function(e){e.opened&&0===e.level&&t.close(e)})},p.prototype.select=function(e,t,n,i){this.actions.push({name:"select",item:e,prevented:n,finished:i,domEvent:t})},p.prototype.emit=function(e,t,n){var i=this.owner,n=new a.MenuEvent({sender:i,item:t.item,index:t.index,originalEvent:n,hasContent:t.hasContent});return i[e].emit(n),i.contextService&&i.contextService.emit(e,n),n.isDefaultPrevented()},Object.defineProperty(p.prototype,"hasPending",{get:function(){return 0<this.actions.length},enumerable:!0,configurable:!0}),p.prototype.execute=function(e){var t,n=this;(this.hasPending||e)&&(t=e||this.clear(),!o.NgZone.isInAngularZone()&&this.requiresZone(t)?this.ngZone.run(function(){n.executeActions(t)}):this.executeActions(t))},p.prototype.clear=function(){var e=this.actions;return this.actions=[],e},p.prototype.executeActions=function(e){for(var t,n,i=0;i<e.length;i++){var o=e[i],r=o.item,a=o.name,s=o.prevented,p=o.finished,o=o.domEvent;t=r,"open"===(n=a)&&t.opened||"close"===n&&!t.opened||(this.emit(a,r,o)?s&&s():(r[a]&&r[a](),p&&p()))}},p.prototype.requiresZone=function(e){for(var t=e||this.actions,n=this.owner,i=n.contextService,o=0;o<t.length;o++){var r=t[o],a=r.name;if(r.requiresZone||a&&(s.hasObservers(n[a])||i&&i.hasObservers(a)))return!0}return!1},p.prototype.closeChildren=function(e){e.opened&&(e=this.items.children(e),this.closeItems(e))},p.prototype.closeItems=function(e){for(var t=0;t<e.length;t++)this.close(e[t])},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone,r.ItemsService])],p));function p(e,t){this.ngZone=e,this.items=t,this.actions=[]}t.ActionsService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),i=i.__decorate([n.Directive({selector:"[kendoContextMenuTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.ContextMenuTemplateDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(26),a=n(4),s=n(38),p=n(15),c=n(34),u=n(33),l=n(32),d=n(31),m=n(6),h=n(5),v=n(14),f=n(30),n=n(27),s=[s.MenuComponent,p.MenuItemComponent,m.ItemTemplateDirective,h.ItemLinkTemplateDirective,v.ItemContentTemplateDirective,f.HierarchyBindingDirective,n.FlatBindingDirective,l.LinkDirective,d.ExpandArrowDirective],p=s.concat([c.ListComponent,u.ItemComponent]),m=i.__decorate([o.NgModule({declarations:[p],exports:[s],imports:[a.PopupModule,r.CommonModule]})],_);function _(){}t.MenuModule=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(3);t.defined=function(e){return void 0!==e},t.bodyFactory=function(){if(o.isDocumentAvailable())return new i.ElementRef(document.body)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),i=i.__decorate([n.Directive({selector:"[kendoMenuItemContentTemplate]"}),i.__param(0,n.Optional()),i.__metadata("design:paramtypes",[n.TemplateRef])],o);function o(e){this.templateRef=e}t.ItemContentTemplateDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),r=n(1),a=n(6),s=n(5),n=n(14),a=(i=p,Object.defineProperty(p.prototype,"template",{get:function(){if(this.itemTemplate&&this.itemTemplate.length)return this.itemTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"linkTemplate",{get:function(){if(this.itemLinkTemplate&&this.itemLinkTemplate.length)return this.itemLinkTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"contentTemplate",{get:function(){if(this.itemContentTemplate&&this.itemContentTemplate.length)return this.itemContentTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"items",{get:function(){var t=this;if(this.children.length)return this.children.toArray().filter(function(e){return e!==t})},enumerable:!0,configurable:!0}),o.__decorate([r.Input(),o.__metadata("design:type",String)],p.prototype,"text",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],p.prototype,"url",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],p.prototype,"cssClass",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],p.prototype,"cssStyle",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],p.prototype,"icon",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],p.prototype,"data",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Boolean)],p.prototype,"separator",void 0),o.__decorate([r.ContentChildren(a.ItemTemplateDirective),o.__metadata("design:type",r.QueryList)],p.prototype,"itemTemplate",void 0),o.__decorate([r.ContentChildren(s.ItemLinkTemplateDirective),o.__metadata("design:type",r.QueryList)],p.prototype,"itemLinkTemplate",void 0),o.__decorate([r.ContentChildren(n.ItemContentTemplateDirective),o.__metadata("design:type",r.QueryList)],p.prototype,"itemContentTemplate",void 0),o.__decorate([r.ContentChildren(i),o.__metadata("design:type",r.QueryList)],p.prototype,"children",void 0),o.__decorate([r.Component({selector:"kendo-menu-item",template:""})],p));function p(){}t.MenuItemComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(18),a=n(2),n=n(10),s=/\S/,p={37:"left",39:"right",38:"up",40:"down",36:"home",35:"end",32:"enter",13:"enter",27:"esc",9:"tab"},c=Object.assign({},p,{37:"right",39:"left"}),u=Promise.resolve(null),i=(Object.defineProperty(l.prototype,"focusedItem",{get:function(){return this.items.get(this.focusedIdx)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"activeItem",{get:function(){return this.items.get(this.activeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"handlers",{get:function(){return this.localization.rtl?c:p},enumerable:!0,configurable:!0}),l.prototype.focus=function(e){e.index!==this.focusedIdx&&(this.activeItem&&this.items.hasParent(e,this.activeItem)||this.setActive(e),this.setFocus(e))},l.prototype.setFocus=function(e){this.focusedIdx=e.index,e.focus()},l.prototype.focusLeave=function(){var e=this.focusedItem;e&&(this.actions.closeToRoot(e),this.actions.execute()),this.focusedIdx=null},l.prototype.updateActive=function(){var e=this;!this.activeItem&&this.items.hasItems&&(this.items.get("0").toggleActive(!0),this.ngZone.runOutsideAngular(function(){u.then(function(){e.activeIndex="0"})}))},l.prototype.keydown=function(e){var t=this.focusedItem||this.activeItem,n=this.handlers[e.keyCode];t&&(n?("tab"!==n&&e.preventDefault(),this[n](t,e)):1===(n=e.key).length&&s.test(n)&&this.search(t,e.key),this.actions.execute())},l.prototype.focusIndex=function(e){!e&&this.activeItem?this.setFocus(this.activeItem):"first"===e?this.focusFirst():"last"===e?this.focusLast():(e=this.items.get(e))&&this.focus(e)},l.prototype.focusFirst=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[0])},l.prototype.focusLast=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[e.length-1])},l.prototype.search=function(e,t){for(var n=this.items.siblings(e),e=n.indexOf(e),i=n.slice(e+1).concat(n.slice(0,e)),o=0;o<i.length;o++){var r=i[o];if((r.item.text||"").toLowerCase().startsWith(t.toLowerCase())){this.focus(r);break}}},l.prototype.down=function(e){0!==e.level||this.vertical?this.focus(this.items.next(e)):e.hasContent&&this.actions.open(e,this.focusChild(e,0))},l.prototype.up=function(e){0!==e.level||this.vertical?this.focus(this.items.previous(e)):e.hasContent&&this.actions.open(e,this.focusChild(e,e.children.length-1))},l.prototype.left=function(e){var t;this.vertical&&0===e.level&&e.disabled||(1<e.level||this.vertical&&0<e.level?(t=this.items.parent(e),this.focus(t),this.actions.close(t)):this.vertical&&0===e.level&&!e.disabled?e.hasContent&&this.actions.open(e,this.focusChild(e,e.children.length-1)):this.focus(this.items.previous(this.activeItem)))},l.prototype.right=function(e){this.vertical&&0===e.level&&e.disabled||(e.horizontal&&!e.disabled?e.hasContent?this.actions.open(e,this.focusChild(e,0)):(!this.vertical||0<e.level)&&this.focus(this.items.next(this.activeItem)):this.focus(this.items.next(this.activeItem)))},l.prototype.home=function(e){e=this.items.siblings(e);this.focus(e[0])},l.prototype.end=function(e){e=this.items.siblings(e);this.focus(e[e.length-1])},l.prototype.enter=function(e,t){var n=this.actions;e.disabled||(e.hasContent?(n.select(e,t),n.open(e,this.focusChild(e,0))):(n.select(e,t,null,function(){e.navigate()}),this.focus(this.items.root(e)),n.closeToRoot(e)))},l.prototype.esc=function(e){0<e.level&&(e=this.items.parent(e),this.actions.close(e),this.focus(e))},l.prototype.tab=function(e){0<e.level&&this.activeItem.focus()},l.prototype.focusChild=function(t,n){var i=this;return function(){var e=i.items.children(t)[n];i.setFocus(e)}},l.prototype.setActive=function(e){var t=this.focusedItem,e=this.items.root(e);this.activeItem&&this.activeItem.toggleActive(!1),this.activeIndex=e.index,e.toggleActive(!0),t&&(this.actions.closeToRoot(t),0<t.level&&this.actions.open(e))},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.ItemsService,n.ActionsService,r.LocalizationService,o.NgZone])],l));function l(e,t,n,i){this.items=e,this.actions=t,this.localization=n,this.ngZone=i,this.vertical=!1,this.activeIndex="0"}t.NavigationService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),n=(i=n(37).PreventableEvent,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.MenuEvent=n},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(26),a=n(4),s=n(12),p=n(23),c=n(11),u=n(20),n=n(22),p=[p.ContextMenuComponent,c.ContextMenuTemplateDirective,u.ContextMenuTargetDirective,n.ContextMenuTargetContainerDirective],c=i.__decorate([o.NgModule({declarations:[p],exports:[p,s.MenuModule],imports:[a.PopupModule,r.CommonModule,s.MenuModule]})],l);function l(){}t.ContextMenuModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(21),i=(t.TARGET_CLASS="k-contextmenu-target",r.prototype.ngOnDestroy=function(){this.targetService.remove(this)},i.__decorate([o.Input("kendoContextMenuTarget"),i.__metadata("design:type",Object)],r.prototype,"data",void 0),i.__decorate([o.HostBinding("class."+t.TARGET_CLASS),i.__metadata("design:type",Boolean)],r.prototype,"hostClass",void 0),i.__decorate([o.Directive({selector:"[kendoContextMenuTarget]",exportAs:"kendoContextMenuTarget"}),i.__metadata("design:paramtypes",[o.ElementRef,n.ContextMenuTargetService])],r));function r(e,t){this.targetService=t,this.hostClass=!0,e&&(this.element=e.nativeElement),t.add(this)}t.ContextMenuTargetDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),n=n(1),i=(o.prototype.add=function(e){this.targets.push(e)},o.prototype.remove=function(e){e=this.targets.indexOf(e);this.targets.splice(e,1)},o.prototype.find=function(t){return this.targets.find(function(e){return e.element===t})},i.__decorate([n.Injectable()],o));function o(){this.targets=[]}t.ContextMenuTargetService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(21),i=i.__decorate([o.Directive({selector:"[kendoContextMenuTargetContainer]",exportAs:"kendoContextMenuTargetContainer",providers:[n.ContextMenuTargetService]}),i.__metadata("design:paramtypes",[o.ElementRef,n.ContextMenuTargetService])],r);function r(e,t){this.targetService=t,e&&(this.element=e.nativeElement)}t.ContextMenuTargetContainerDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){return e.preventDefault()}var r,i,a=n(0),s=n(1),p=n(18),c=n(4),u=n(3),l=n(7),d=n(24),m=n(8),h=n(40),v=n(11),f=n(9),_=n(13),g=n(2),y=n(22),b=n(20),n=n(13),I="contextmenu",x={horizontal:"left",vertical:"bottom"},C={horizontal:"left",vertical:"top"},O={horizontal:"fit",vertical:"flip"},v=(r=l.MenuBase,a.__extends(k,r),(i=k).prototype.hide=function(){this.removePopup()},k.prototype.show=function(e){e&&(e=e,this.removePopup(),_.defined(e.left)&&_.defined(e.top)?this.createPopup({offset:e}):(this.currentTarget=e.nativeElement||e,this.createPopup({anchor:this.currentTarget})))},k.prototype.ngOnChanges=function(e){(e.target||e.showOn)&&this.bindShowHandler()},k.prototype.ngOnInit=function(){var n=this;this.ngZone.runOutsideAngular(function(){var e=n.renderer.listen("document","mousedown",function(e){n.popupRef&&!f.closest(e.target,function(e){return e===n.popupRef.popupElement})&&n.service.leaveMenu(e)&&n.closePopup(e)}),t=n.renderer.listen("window","blur",function(e){n.popupRef&&n.closePopup(e)});n.closeSubscription=function(){e(),t()}})},k.prototype.ngOnDestroy=function(){this.closeSubscription&&(this.closeSubscription(),this.closeSubscription=null),this.unbindShowHandler(),this.removePopup()},k.prototype.emitMenuEvent=function(e,t){t.target=this.currentTarget,(t.sender=this)[e].emit(t),"select"!==e||t.hasContent||this.closeAndFocus(t.originalEvent)},k.prototype.bindShowHandler=function(){var n=this;this.unbindShowHandler(),this.ngZone.runOutsideAngular(function(){var e,t=n.targetElement();t&&(e=n.showOn||I,n.showSubscription=n.renderer.listen(t,n.showOn||I,function(e){n.showContextMenu(e,t)}),e===I&&(n.keydownSubscription=n.renderer.listen(t,"keydown",function(e){e.shiftKey&&e.keyCode===u.Keys.F10&&n.showContextMenu(e,t)})))})},k.prototype.showContextMenu=function(e,t){var n=this,i=this.targetFilter(),o=t;if(i){if((o=f.findInContainer(e.target,i,t))&&o!==e.target&&f.isFocusable(e.target))return;o&&this.directiveTarget&&(o=this.target.targetService.find(o))}o?this.ngZone.run(function(){n.closePopup(e)||(n.currentTarget=o,n.openPopup(e))}):this.closePopup(e)},k.prototype.unbindShowHandler=function(){this.showSubscription&&(this.showSubscription(),this.showSubscription=null),this.keydownSubscription&&(this.keydownSubscription(),this.keydownSubscription=null)},k.prototype.targetElement=function(){var e;if(u.isDocumentAvailable())return this.directiveTarget=!1,"string"==typeof(e=this.target)?e=document.querySelector(e):e&&e.nativeElement?e=e.nativeElement:e instanceof y.ContextMenuTargetContainerDirective&&(e=e.element,this.directiveTarget=!0),e},k.prototype.targetFilter=function(){return this.directiveTarget?"."+b.TARGET_CLASS:this.filter},k.prototype.closePopup=function(e){var t=this;if(this.popupRef)return this.popupAction("popupClose",e,function(){t.removePopup()})},k.prototype.removePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.currentTarget=null),this.popupSubscriptions&&(this.popupSubscriptions(),this.popupSubscriptions=null)},k.prototype.openPopup=function(n){var i=this;this.popupAction("popupOpen",n,function(){var e,t;n.preventDefault(),i.alignToAnchor||"keydown"===n.type?e=i.currentTargetElement:t={left:n.pageX,top:n.pageY},i.createPopup({anchor:e,offset:t})})},k.prototype.createPopup=function(e){var n=this,i=(this.popupRef=this.popupService.open(Object.assign({animate:!_.defined(this.popupAnimate)||this.popupAnimate,appendTo:this.appendTo,collision:this.collision||O,popupAlign:this.popupAlign||C,anchorAlign:this.anchorAlign||x,content:this.contentTemplate?this.contentTemplate.templateRef:this.defaultContentTemplate,popupClass:"k-menu-popup"},e)),this.popupRef.popupElement);this.renderer.addClass(i,"k-context-menu-popup"),this.renderer.setAttribute(i,"tabindex","-1"),this.renderer.setStyle(i,"outline","0"),this.ariaLabel&&this.renderer.setAttribute(i,"aria-label",this.ariaLabel),this.activeTarget=this.currentTargetElement===document.activeElement,this.ngZone.runOutsideAngular(function(){var e=n.renderer.listen(i,"keydown",n.popupKeyDownHandler),t=n.renderer.listen(i,"contextmenu",o);n.popupSubscriptions=function(){e(),t()}}),i.focus()},k.prototype.closeAndFocus=function(e){var t=this.currentTargetElement;!this.closePopup(e)&&this.activeTarget&&t.focus()},k.prototype.popupKeyDownHandler=function(e){var t=this.popupRef.popupElement;e.keyCode!==u.Keys.Escape||!f.hasClass(e.target,"k-menu-item")&&e.target!==t?e.target===t&&this.service.keydown.emit(e):this.closeAndFocus(e)},k.prototype.popupAction=function(e,t,n){var i=this,o=this[e],r=!1;return u.hasObservers(o)?this.ngZone.run(function(){var e=new d.ContextMenuPopupEvent({originalEvent:t,sender:i,target:i.currentTarget});o.emit(e),e.isDefaultPrevented()||n(),r=e.isDefaultPrevented()}):n(),r},Object.defineProperty(k.prototype,"currentTargetElement",{get:function(){return this.directiveTarget&&this.currentTarget?this.currentTarget.element:this.currentTarget},enumerable:!0,configurable:!0}),a.__decorate([s.Input(),a.__metadata("design:type",String)],k.prototype,"showOn",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Object)],k.prototype,"target",void 0),a.__decorate([s.Input(),a.__metadata("design:type",String)],k.prototype,"filter",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Boolean)],k.prototype,"alignToAnchor",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Boolean)],k.prototype,"vertical",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Object)],k.prototype,"popupAnimate",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Object)],k.prototype,"popupAlign",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Object)],k.prototype,"anchorAlign",void 0),a.__decorate([s.Input(),a.__metadata("design:type",Object)],k.prototype,"collision",void 0),a.__decorate([s.Input(),a.__metadata("design:type",s.ViewContainerRef)],k.prototype,"appendTo",void 0),a.__decorate([s.Input(),a.__metadata("design:type",String)],k.prototype,"ariaLabel",void 0),a.__decorate([s.Output(),a.__metadata("design:type",s.EventEmitter)],k.prototype,"popupOpen",void 0),a.__decorate([s.Output(),a.__metadata("design:type",s.EventEmitter)],k.prototype,"popupClose",void 0),a.__decorate([s.Output(),a.__metadata("design:type",s.EventEmitter)],k.prototype,"select",void 0),a.__decorate([s.Output(),a.__metadata("design:type",s.EventEmitter)],k.prototype,"open",void 0),a.__decorate([s.Output(),a.__metadata("design:type",s.EventEmitter)],k.prototype,"close",void 0),a.__decorate([s.ContentChild(v.ContextMenuTemplateDirective,{static:!1}),a.__metadata("design:type",v.ContextMenuTemplateDirective)],k.prototype,"contentTemplate",void 0),a.__decorate([s.ViewChild("default",{static:!1}),a.__metadata("design:type",s.TemplateRef)],k.prototype,"defaultContentTemplate",void 0),i=a.__decorate([s.Component({exportAs:"kendoContextMenu",providers:[m.ContextMenuService,p.LocalizationService,{provide:p.L10N_PREFIX,useValue:"kendo.contextmenu"},{provide:g.ItemsService,useClass:h.ContextMenuItemsService},{provide:l.MenuBase,useExisting:s.forwardRef(function(){return i})},c.PopupService,{provide:c.POPUP_CONTAINER,useFactory:n.bodyFactory}],selector:"kendo-contextmenu",template:'\n <ng-template #default>\n <kendo-menu [items]="rootItems"\n [vertical]="vertical"\n [openOnClick]="openOnClick"\n [hoverDelay]="hoverDelay"\n [animate]="animate"\n [menuItemTemplate]="itemTemplate.first?.templateRef"\n [menuItemLinkTemplate]="itemLinkTemplate.first?.templateRef"\n ></kendo-menu>\n </ng-template>\n '}),a.__metadata("design:paramtypes",[c.PopupService,m.ContextMenuService,s.NgZone,s.Renderer2])],k));function k(e,t,n,i){var o=r.call(this)||this;return o.popupService=e,o.service=t,o.ngZone=n,o.renderer=i,o.showOn=I,o.alignToAnchor=!1,o.vertical=!0,o.popupOpen=new s.EventEmitter,o.popupClose=new s.EventEmitter,o.select=new s.EventEmitter,o.open=new s.EventEmitter,o.close=new s.EventEmitter,(o.service.owner=o).popupKeyDownHandler=o.popupKeyDownHandler.bind(o),o}t.ContextMenuComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),n=(i=n(37).PreventableEvent,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.ContextMenuPopupEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContextMenuEvent=function(){}},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),r=n(1),a=n(7),s=n(29),p=n(28),n=(i=s.BindingDirectiveBase,o.__extends(c,i),c.prototype.mapItems=function(e){var t=this;if(!this.idField||!this.parentIdField)return e.map(function(e){return t.createItem(e)});for(var n=[],i={},o=0;o<e.length;o++){var r=e[o],a=this.createItem(r),s=p.getter(this.idField)(r),r=p.getter(this.parentIdField)(r);null==r?n.push(a):((r=i[r]=i[r]||{}).items=r.items||[],r.items.push(a)),i[s]&&(a.items=i[s].items),i[s]=a}return n},c.prototype.createItem=function(e){for(var t={data:e},n=this.fields,i=0;i<n.length;i++){var o=n[i],r=o.source;t[o.target]=p.getter(r)(e)}return t},o.__decorate([r.Input("kendoMenuFlatBinding"),o.__metadata("design:type",Array)],c.prototype,"data",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"textField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"urlField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],c.prototype,"iconField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"disabledField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"cssClassField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"cssStyleField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"separatorField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"idField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",String)],c.prototype,"parentIdField",void 0),o.__decorate([r.Directive({exportAs:"kendoMenuFlatBinding",selector:"[kendoMenuFlatBinding]"}),o.__metadata("design:paramtypes",[a.MenuBase])],c));function c(e){return i.call(this,e)||this}t.FlatBindingDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,r={undefined:function(e){return e}};t.getter=function(e){if(r[e])return r[e];var o=[];return e.replace(i,function(e,t,n,i){o.push(void 0!==t?t:n||i)}),r[e]=function(e){for(var t=e,n=0;n<o.length&&t;n++)t=t[o[n]];return t},r[e]},t.last=function(e){return e[e.length-1]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=["textField","urlField","iconField","disabledField","cssClassField","cssStyleField","separatorField"];function i(e){this.menu=e}i.prototype.ngOnChanges=function(){this.rebind()},i.prototype.rebind=function(){for(var e=this.fields=[],t=0;t<o.length;t++){var n=o[t],i=this[n];i&&e.push({target:n.replace("Field",""),source:i})}this.menu.items=this.data?this.mapItems(this.data):[]},t.BindingDirectiveBase=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function s(e,t){return Array.isArray(e)?e[t]||c.last(e):e}var i,o=n(0),r=n(1),a=n(7),p=n(29),c=n(28),n=(i=p.BindingDirectiveBase,o.__extends(u,i),u.prototype.mapItems=function(e,n){var i=this;return void 0===n&&(n=0),e.map(function(e){var t=i.createItem(e,n),e=i.getChildren(e,n);return e&&(t.items=i.mapItems(e,n+1)),t})},u.prototype.createItem=function(e,t){for(var n={data:e},i=this.fields,o=0;o<i.length;o++){var r=i[o],a=r.target,r=r.source;n[a]=c.getter(s(r,t))(e)}return n},u.prototype.getChildren=function(e,t){if(this.childrenField)return e[s(this.childrenField,t)]},o.__decorate([r.Input("kendoMenuHierarchyBinding"),o.__metadata("design:type",Array)],u.prototype,"data",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"textField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"urlField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"iconField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"disabledField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"cssClassField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"cssStyleField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"separatorField",void 0),o.__decorate([r.Input(),o.__metadata("design:type",Object)],u.prototype,"childrenField",void 0),o.__decorate([r.Directive({exportAs:"kendoMenuHierarchyBinding",selector:"[kendoMenuHierarchyBinding]"}),o.__metadata("design:paramtypes",[a.MenuBase])],u));function u(e){return i.call(this,e)||this}t.HierarchyBindingDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(2),i=(Object.defineProperty(r.prototype,"arrowDown",{get:function(){return!this.item.horizontal},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"arrowRight",{get:function(){return this.item.horizontal&&!this.item.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"arrowLeft",{get:function(){return this.item.horizontal&&this.item.rtl},enumerable:!0,configurable:!0}),r.prototype.ngOnInit=function(){if(o.isDevMode()&&!this.index)throw new Error("The kendoMenuExpandArrow directive requires the item index to be set.");this.item=this.itemsService.get(this.index)||{}},i.__decorate([o.Input("kendoMenuExpandArrow"),i.__metadata("design:type",String)],r.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-icon"),o.HostBinding("class.k-menu-expand-arrow"),i.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],r.prototype,"role",void 0),i.__decorate([o.HostBinding("class.k-i-arrow-60-down"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],r.prototype,"arrowDown",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-right"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],r.prototype,"arrowRight",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-left"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],r.prototype,"arrowLeft",null),i.__decorate([o.Directive({selector:"[kendoMenuExpandArrow]"}),i.__metadata("design:paramtypes",[n.ItemsService])],r));function r(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation"}t.ExpandArrowDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(2),i=(Object.defineProperty(r.prototype,"activeClass",{get:function(){return this.item.opened},enumerable:!0,configurable:!0}),r.prototype.ngOnInit=function(){if(o.isDevMode()&&!this.index)throw new Error("The kendoMenuItemLink directive requires the item index to be set.");this.item=this.itemsService.get(this.index)||{}},i.__decorate([o.Input("kendoMenuItemLink"),i.__metadata("design:type",String)],r.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-link"),o.HostBinding("class.k-menu-link"),i.__metadata("design:type",Boolean)],r.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],r.prototype,"role",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String)],r.prototype,"tabindex",void 0),i.__decorate([o.HostBinding("class.k-state-active"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],r.prototype,"activeClass",null),i.__decorate([o.Directive({selector:"[kendoMenuItemLink]"}),i.__metadata("design:paramtypes",[n.ItemsService])],r));function r(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation",this.tabindex="-1"}t.LinkDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(16),s=n(43),p=n(4),n=n(13),n=(Object.defineProperty(c.prototype,"index",{get:function(){return this._index},set:function(e){this._index&&this._index!==e?(this.itemsService.remove(this),this._index=e,this.itemsService.add(this)):this._index=e,this.childId=this.itemsService.childId(e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"disabled",{get:function(){return this.item.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasPopup",{get:function(){return!!this.hasContent||null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"expanded",{get:function(){return this.hasContent?this.opened:null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"label",{get:function(){return this.item.text||null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"activeId",{get:function(){return this.index===this.navigation.activeIndex?"0":"-1"},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"popupSettings",{get:function(){var e=this.rtl?s.POPUP_SETTINGS_RTL:s.POPUP_SETTINGS;return this.horizontal?e.horizontal:e.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"horizontal",{get:function(){return this.vertical||0<this.level},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasLink",{get:function(){return Boolean(this.item.url)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"linkTemplate",{get:function(){return this.item.linkTemplate||this.itemLinkTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasContent",{get:function(){var e=this.item.items;return e&&e.length||this.item.contentTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isContent",{get:function(){return Boolean(this.item.content)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"iconClass",{get:function(){return"k-i-"+this.item.icon},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"children",{get:function(){var e=this.item;return e.contentTemplate?(this.contentItems||(this.contentItems=[{content:e.contentTemplate,owner:e,ownerIndex:this.index}]),this.contentItems):e.items},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"template",{get:function(){return this.item.template||this.itemTemplate},enumerable:!0,configurable:!0}),c.prototype.hasContentTemplates=function(){var e=this.item;return this.itemTemplate||e.contentTemplate||this.itemLinkTemplate||e.items&&e.items.find(function(e){return e.template||e.linkTemplate})},c.prototype.ngOnInit=function(){this.itemsService.add(this)},c.prototype.ngOnDestroy=function(){this.itemsService.remove(this),this.destroyed=!0,this.popupRef&&(this.popupRef.close(),this.popupRef=null)},c.prototype.focus=function(){this.element.nativeElement.focus()},c.prototype.blur=function(){this.element.nativeElement.blur()},c.prototype.toggleActive=function(e){e?this.setAttribute("tabindex","0"):this.setAttribute("tabindex","-1")},c.prototype.open=function(){var e,t;this.destroyed||!this.hasContent||this.opened||(e=this.popupSettings,t=!!this.animate&&Object.assign({},this.animate,{direction:e.animate}),this.opened=!0,this.popupRef=this.popupService.open({popupAlign:e.popup,anchorAlign:e.anchor,collision:e.collision,anchor:this.element,positionMode:"absolute",content:this.popupTemplate,popupClass:{"k-rtl":this.rtl,"k-menu-popup":!0},animate:t}),this.setAttribute("aria-expanded","true"),this.setAttribute("aria-owns",this.childId),this.changeDetector.detectChanges())},c.prototype.close=function(){!this.destroyed&&this.opened&&(this.opened=!1,this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.changeDetector.detectChanges(),this.setAttribute("aria-expanded","false"),this.renderer.removeAttribute(this.element.nativeElement,"aria-owns"))},c.prototype.navigate=function(){var e;this.linkTemplate?e=this.element.nativeElement.querySelector("a.k-menu-link"):this.hasLink&&(e=this.link.nativeElement),e&&(this.navigating=!0,e.click(),this.navigating=!1)},c.prototype.setAttribute=function(e,t){this.renderer.setAttribute(this.element.nativeElement,e,t)},i.__decorate([o.Input(),i.__metadata("design:type",Object)],c.prototype,"item",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],c.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],c.prototype,"index",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],c.prototype,"siblingIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],c.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],c.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],c.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],c.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],c.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],c.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ViewChild("link",{static:!1}),i.__metadata("design:type",o.ElementRef)],c.prototype,"link",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",o.TemplateRef)],c.prototype,"popupTemplate",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],c.prototype,"disabled",null),i.__decorate([o.HostBinding("attr.aria-haspopup"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],c.prototype,"hasPopup",null),i.__decorate([o.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],c.prototype,"expanded",null),i.__decorate([o.HostBinding("attr.aria-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],c.prototype,"label",null),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],c.prototype,"activeId",null),i.__decorate([o.Component({providers:[p.PopupService,{provide:p.POPUP_CONTAINER,useFactory:n.bodyFactory}],selector:"[kendoMenuItem]",template:'\n <span *ngIf="!hasLink && !item.content && !linkTemplate" class="k-link k-menu-link" #link\n [class.k-state-active]="opened" role="presentation">\n <ng-template [ngTemplateOutlet]="itemcontent">\n </ng-template>\n </span>\n <a *ngIf="item.url && !linkTemplate" class="k-link k-menu-link" #link [attr.href]="item.url"\n [class.k-state-active]="opened" tabindex="-1" role="presentation">\n <ng-template [ngTemplateOutlet]="itemcontent">\n </ng-template>\n </a>\n <ng-template *ngIf="linkTemplate && !item.content" [ngTemplateOutlet]="linkTemplate"\n [ngTemplateOutletContext]="{ item: item, index: index }">\n </ng-template>\n\n <div class="k-content" *ngIf="item.content" role="presentation">\n <ng-template [ngTemplateOutlet]="item.content" [ngTemplateOutletContext]="{ item: item.owner, index: item.ownerIndex }">\n </ng-template>\n </div>\n\n <ng-template #popupTemplate>\n <ul kendoMenuList\n [attr.id]="childId"\n [animate]="animate"\n [rtl]="rtl"\n [vertical]="vertical"\n [openOnClick]="openOnClick"\n [items]="children"\n [level]="level + 1"\n [index]="index"\n [itemTemplate]="itemTemplate"\n [itemLinkTemplate]="itemLinkTemplate"\n role="menu"\n class="k-group k-menu-group k-reset">\n </ul>\n </ng-template>\n\n <ng-template #itemcontent>\n <span *ngIf="item.icon" class="k-icon" [ngClass]="iconClass" role="presentation"></span>\n <ng-container *ngIf="!template">\n <span class="k-menu-link-text">{{ item.text }}</span>\n </ng-container>\n <ng-template *ngIf="template" [ngTemplateOutlet]="template" [ngTemplateOutletContext]="{ item: item, index: index }">\n </ng-template>\n <span class="k-icon k-menu-expand-arrow" *ngIf="hasContent"\n role="presentation"\n [class.k-i-arrow-60-down]="!horizontal"\n [class.k-i-arrow-60-right]="horizontal && !rtl"\n [class.k-i-arrow-60-left]="horizontal && rtl">\n </span>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.ItemsService,a.NavigationService,o.ChangeDetectorRef,o.Renderer2,p.PopupService,o.ElementRef])],c));function c(e,t,n,i,o,r){this.itemsService=e,this.navigation=t,this.changeDetector=n,this.renderer=i,this.popupService=o,this.element=r,this.animate=!0,this.openOnClick=!1,this.opened=!1,this.navigating=!1,this.destroyed=!1}t.ItemComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(10),s=n(16),p=n(36),c=n(35),u=n(9),l=n(3),n=(d.prototype.hierarchyIndex=function(e){return this.itemsService.itemIndex(this.index,e)},d.prototype.ngOnInit=function(){this.itemsService.addList(this),this.initDomEvents()},d.prototype.ngOnDestroy=function(){this.itemsService.removeList(this),this.domSubscriptions&&this.domSubscriptions()},d.prototype.initDomEvents=function(){var p=this;l.isDocumentAvailable()&&this.element&&this.ngZone.runOutsideAngular(function(){var t=p.element.nativeElement,e=0<p.level?u.closest(t,function(e){return u.hasClass(e,"k-popup")}):t,n=p.renderer.listen(t,"mouseover",function(e){e.target===t&&0===p.level?p.onLeave():!(e=p.nodeItem(e.target)||p.itemsService.get(p.index))||p.openOnClick&&"click"===p.openOnClick.toggle&&0===e.level&&!e.hasContent||p.hover.over(e)}),i=p.renderer.listen(e,"mouseleave",function(e){p.leavesMenu(e)&&p.onLeave()}),o=p.renderer.listen(t,"keydown",function(e){u.hasClass(e.target,"k-menu-item")&&p.navigation.keydown(e)}),r=p.renderer.listen(t,"focusout",function(e){p.leavesMenu(e)&&p.navigation.focusLeave()}),a=p.renderer.listen(document,"touchstart",function(e){u.inMenu(e.target,p.itemsService)?(e=p.nodeItem(e.target),p.navigation.focus(e),e.opened||p.hover.over(e)):p.navigation.focusedIdx&&(e=p.itemsService.get(p.navigation.activeIndex),p.onLeave(),e.blur())}),s=p.renderer.listen(t,"click",p.clickHandler.bind(p));p.domSubscriptions=function(){n(),i(),o(),r(),s(),a()}})},d.prototype.leavesMenu=function(e){return!e.relatedTarget||!u.inMenu(e.relatedTarget,this.itemsService)},d.prototype.onLeave=function(){var e=this.openOnClick;e&&"click"===e.toggle||this.hover.leave(e&&"leave"===e.toggle)},d.prototype.nodeItem=function(e){var e=u.closestItem(e,this.element.nativeElement);if(e)return e=u.nodeIndex(e),this.itemsService.get(e)},d.prototype.clickHandler=function(e){var t,n;u.isFocusable(e.target)&&!u.hasClass(e.target,"k-menu-item")||(!(t=this.nodeItem(e.target))||t.isContent||t.navigating||(t.disabled?e.preventDefault():(this.actions.select(t,e,function(){e.preventDefault()}),this.navigation.focus(t),0<t.level&&!t.hasContent&&this.actions.closeToRoot(t),this.openOnClick&&(n=this.hover,t.opened?0===t.level&&(n.openOnOver=!1,this.actions.close(t)):t.hasContent?(n.openOnOver=!0,this.actions.closeOthers(t),this.actions.open(t)):(n.openOnOver=!1,0===t.level&&"click"===this.openOnClick.toggle&&this.hover.closeCurrent())),this.actions.execute())))},i.__decorate([o.Input(),i.__metadata("design:type",Array)],d.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],d.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],d.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],d.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],d.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],d.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],d.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],d.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],d.prototype,"itemLinkTemplate",void 0),i.__decorate([o.Component({selector:"[kendoMenuList]",template:'\n <ng-container *ngFor="let item of items; let idx = index">\n <li *ngIf="!item.separator" kendoMenuItem\n [item]="item" [level]="level" [vertical]="vertical" [animate]="animate" [rtl]="rtl"\n [itemTemplate]="itemTemplate" [itemLinkTemplate]="itemLinkTemplate" [openOnClick]="openOnClick"\n [index]="hierarchyIndex(idx)" [siblingIndex]="idx" [attr.'+c.NODE_INDEX+']="hierarchyIndex(idx)"\n [ngClass]="item.cssClass" [ngStyle]="item.cssStyle"\n role="menuitem"\n class="k-item k-menu-item"\n [class.k-first]="idx === 0" [class.k-last]="idx === items.length - 1"\n [class.k-state-disabled]="item.disabled"></li>\n <li *ngIf="item.separator" class="k-separator k-item"\n role="separator" [ngClass]="item.cssClass" [ngStyle]="item.cssStyle">\n \n </li>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[r.ItemsService,p.HoverService,a.ActionsService,s.NavigationService,o.Renderer2,o.NgZone,o.ElementRef])],d));function d(e,t,n,i,o,r,a){this.itemsService=e,this.hover=t,this.actions=n,this.navigation=i,this.renderer=o,this.ngZone=r,this.element=a,this.animate=!0}t.ListComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NODE_INDEX="data-kendo-menu-index"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),n=n(10),o=(Object.defineProperty(a.prototype,"openOnOver",{get:function(){return this._openOnOver},set:function(e){this.cancelActions(),this._openOnOver=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hovered",{get:function(){return this.items.get(this.hoveredIdx)},set:function(e){this.hoveredIdx=e?e.index:null},enumerable:!0,configurable:!0}),a.prototype.ngOnDestroy=function(){this.cancelActions()},a.prototype.over=function(t){var n=this;this.cancelActions(function(e){return"openOnOver"===e.name}),this.hovered&&this.hovered===t||(this.actions.closeOthers(t),(0<(this.hovered=t).level||this.openOnOver)&&!t.disabled&&(this.actions.open(t),this.cancelActions(function(e){return"close"===e.name&&(t===e.item||n.items.hasParent(t,e.item))||"open"===e.name&&!n.items.hasParent(t,e.item)})),this.scheduleActions())},a.prototype.leave=function(e){var t=this.hovered;t&&(this.actions.closeToRoot(t),this.cancelActions(function(e){return"open"===e.name}),this.scheduleActions()),e&&this._openOnOver&&this.scheduleDisableOpenOnOver(),this.hovered=null},a.prototype.closeCurrent=function(){var e=this.hovered;e&&(this.actions.closeToRoot(e),this.hovered=null)},a.prototype.scheduleActions=function(){var e,t=this;this.actions.hasPending&&((e={}).actions=this.actions.clear(),e.id=setTimeout(function(){t.actions.execute(e.actions),t.removeScheduled(e)},this.delay),this.scheduled.push(e))},a.prototype.scheduleDisableOpenOnOver=function(){var e=this,t={actions:[{name:"openOnOver"}]};t.id=setTimeout(function(){e._openOnOver=!1,e.removeScheduled(t)},Math.max(this.delay,500)),this.scheduled.push(t)},a.prototype.removeScheduled=function(e){for(var t=this.scheduled,n=0;n<t.length;n++)if(t[n]===e)return void t.splice(n,1)},a.prototype.cancelActions=function(e){for(var t=this.scheduled,n=t.length-1;0<=n;n--){var i=t[n],o=i.actions;if(e)for(var r=o.length-1;0<=r;r--)e(o[r])&&o.splice(r,1);e&&0!==o.length||(clearTimeout(i.id),t.splice(n,1))}},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[n.ActionsService,r.ItemsService])],a));function a(e,t){this.actions=e,this.items=t,this.delay=100,this._openOnOver=!0,this.scheduled=[]}t.HoverService=o},function(e,t,n){"use strict";function i(e){this.prevented=!1,Object.assign(this,e)}Object.defineProperty(t,"__esModule",{value:!0}),i.prototype.preventDefault=function(){this.prevented=!0},i.prototype.isDefaultPrevented=function(){return this.prevented},t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c,i,o=n(0),u=n(1),r=n(18),l=n(46),d=n(45),a=n(2),s=n(10),p=n(16),m=n(36),h=n(44),v=n(9),f=n(8),_=n(7),g=n(3),n=(c=_.MenuBase,o.__extends(y,c),i=y,Object.defineProperty(y.prototype,"ariaOrientation",{get:function(){if(this.vertical)return"vertical"},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"contextMenuClass",{get:function(){return Boolean(this.contextService)},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"direction",{get:function(){return this.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"rtl",{get:function(){return this.localization.rtl},enumerable:!0,configurable:!0}),y.prototype.toggle=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++){var o=this.itemsService.get(t[i]);o&&!o.disabled&&(e?o.open():o.close())}},y.prototype.focus=function(e){this.navigation.focusIndex(e)},y.prototype.ngOnChanges=function(e){this.navigation.vertical=this.vertical,this.hover.delay=this.hoverDelay,e.openOnClick&&(e=this.openOnClick=h.normalize(this.openOnClick),this.hover.openOnOver=!e,e&&"click"===e.toggle?this.attachCloseClick():this.unsubscribeClick())},y.prototype.ngAfterViewChecked=function(){this.navigation.updateActive()},y.prototype.ngOnDestroy=function(){this.unsubscribeClick(),this.contextService&&(this.contextService.items=null,this.contextKeyDownSubscription.unsubscribe())},y.prototype.attachCloseClick=function(){var t=this;!this.closeClickSubscription&&g.isDocumentAvailable()&&this.ngZone.runOutsideAngular(function(){t.closeClickSubscription=t.renderer.listen("document","click",function(e){v.inMenu(e.target,t.itemsService)||(t.hover.openOnOver=!1,t.actions.closeAll(),t.actions.execute())})})},y.prototype.unsubscribeClick=function(){this.closeClickSubscription&&this.closeClickSubscription()},y.prototype.contextKeyDown=function(e){var t,n,i,o;this.itemsService.hasItems&&(o=e.keyCode,n=this.localization.rtl,i=o===g.Keys.ArrowDown||o===g.Keys.ArrowRight,o=o===g.Keys.ArrowUp||o===g.Keys.ArrowLeft,i&&!n||o&&n?t="first":(i&&n||o&&!n)&&(t="last"),t&&(e.preventDefault(),this.focus(t)))},o.__decorate([u.Input(),o.__metadata("design:type",u.TemplateRef)],y.prototype,"menuItemTemplate",void 0),o.__decorate([u.Input(),o.__metadata("design:type",u.TemplateRef)],y.prototype,"menuItemLinkTemplate",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],y.prototype,"select",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],y.prototype,"open",void 0),o.__decorate([u.Output(),o.__metadata("design:type",u.EventEmitter)],y.prototype,"close",void 0),o.__decorate([u.HostBinding("class.k-rtl"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],y.prototype,"direction",null),i=o.__decorate([u.Component({exportAs:"kendoMenu",providers:[a.ItemsService,s.ActionsService,p.NavigationService,m.HoverService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.menu"},{provide:_.MenuBase,useExisting:u.forwardRef(function(){return i})}],selector:"kendo-menu",template:'\n <ul role="menubar"\n [attr.aria-orientation]="ariaOrientation"\n kendoMenuList [items]="rootItems" [level]="0" class="k-widget k-reset k-header k-menu"\n [vertical]="vertical" [rtl]="rtl" [animate]="animate" [openOnClick]="openOnClick"\n [itemTemplate]="itemTemplate.first?.templateRef || menuItemTemplate"\n [itemLinkTemplate]="itemLinkTemplate.first?.templateRef || menuItemLinkTemplate"\n [class.k-menu-horizontal]="!vertical"\n [class.k-menu-vertical]="vertical"\n [class.k-context-menu]="contextMenuClass">\n </ul>\n '}),o.__param(7,u.Optional()),o.__metadata("design:paramtypes",[a.ItemsService,m.HoverService,s.ActionsService,p.NavigationService,r.LocalizationService,u.NgZone,u.Renderer2,f.ContextMenuService])],y));function y(e,t,n,i,o,r,a,s){var p=c.call(this)||this;return p.itemsService=e,p.hover=t,p.actions=n,p.navigation=i,p.localization=o,p.ngZone=r,p.renderer=a,p.contextService=s,p.select=new u.EventEmitter,p.open=new u.EventEmitter,p.close=new u.EventEmitter,l.validatePackage(d.packageMetadata),p.actions.owner=p,s&&(s.items=p.itemsService,p.contextKeyDownSubscription=s.keydown.subscribe(p.contextKeyDown.bind(p))),p}t.MenuComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(12),n=n(19),i=i.__decorate([o.NgModule({exports:[r.MenuModule,n.ContextMenuModule]})],a);function a(){}t.MenusModule=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),n=n(8),o=(r.prototype.get=function(e){if(this.contextService.items)return this.contextService.items.get(e)},i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[n.ContextMenuService])],r));function r(e){this.contextService=e}t.ContextMenuItemsService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),n=(i=n(25).ContextMenuEvent,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.ContextMenuSelectEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),n=(i=n(17).MenuEvent,o.__extends(r,i),r);function r(){return null!==i&&i.apply(this,arguments)||this}t.MenuSelectEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={vertical:"top",horizontal:"left"},o={vertical:"top",horizontal:"right"},r={vertical:"flip",horizontal:"fit"},a={vertical:"fit",horizontal:"flip"};t.POPUP_SETTINGS_RTL={vertical:{anchor:{vertical:"bottom",horizontal:"right"},popup:o,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"left"},popup:o,collision:a,animate:"left"}},t.POPUP_SETTINGS={vertical:{anchor:{vertical:"bottom",horizontal:"left"},popup:i,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"right"},popup:i,collision:a,animate:"right"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){return e&&Object.assign({toggle:"select"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-menu",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646834920,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(38),o=(t.MenuComponent=o.MenuComponent,n(34)),o=(t.ListComponent=o.ListComponent,n(33)),o=(t.ItemComponent=o.ItemComponent,n(32)),o=(t.LinkDirective=o.LinkDirective,n(31)),o=(t.ExpandArrowDirective=o.ExpandArrowDirective,n(15)),o=(t.MenuItemComponent=o.MenuItemComponent,n(17)),o=(t.MenuEvent=o.MenuEvent,n(42)),o=(t.MenuSelectEvent=o.MenuSelectEvent,n(14)),o=(t.ItemContentTemplateDirective=o.ItemContentTemplateDirective,n(6)),o=(t.ItemTemplateDirective=o.ItemTemplateDirective,n(5)),o=(t.ItemLinkTemplateDirective=o.ItemLinkTemplateDirective,n(30)),o=(t.HierarchyBindingDirective=o.HierarchyBindingDirective,n(27)),o=(t.FlatBindingDirective=o.FlatBindingDirective,n(12)),o=(t.MenuModule=o.MenuModule,n(25)),o=(t.ContextMenuEvent=o.ContextMenuEvent,n(41)),o=(t.ContextMenuSelectEvent=o.ContextMenuSelectEvent,n(24)),o=(t.ContextMenuPopupEvent=o.ContextMenuPopupEvent,n(11)),o=(t.ContextMenuTemplateDirective=o.ContextMenuTemplateDirective,n(23)),o=(t.ContextMenuComponent=o.ContextMenuComponent,n(19)),o=(t.ContextMenuModule=o.ContextMenuModule,n(8)),o=(t.ContextMenuService=o.ContextMenuService,n(39)),r=(t.MenusModule=o.MenusModule,t);for(i in r)a(i,r[i])}],o={},i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=47)}}});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Kendo UI Angular Menu component",
|
|
4
4
|
"author": "Progress",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
-
"version": "3.0.
|
|
6
|
+
"version": "3.0.6-dev.202203091409",
|
|
7
7
|
"main": "dist/npm/index.js",
|
|
8
8
|
"module": "dist/fesm5/index.js",
|
|
9
9
|
"es2015": "dist/fesm2015/index.js",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@progress/kendo-angular-label": "^3.0.0",
|
|
73
73
|
"@progress/kendo-angular-pdf-export": "^3.0.0",
|
|
74
74
|
"@progress/kendo-angular-popup": "^4.0.0",
|
|
75
|
-
"@progress/kendo-angular-tasks": "
|
|
75
|
+
"@progress/kendo-angular-tasks": "cdn-bundle-v18",
|
|
76
76
|
"@progress/kendo-angular-treeview": "^6.0.0",
|
|
77
77
|
"@progress/kendo-data-query": "^1.4.0",
|
|
78
78
|
"@progress/kendo-drawing": "^1.5.6",
|