@progress/kendo-angular-menu
Advanced tools
Comparing version 1.1.0-dev.201808141445 to 1.1.0-dev.201808160830
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-popup"),require("@angular/common")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-l10n","@progress/kendo-angular-popup","@angular/common"],t):"object"==typeof exports?exports.KendoAngularMenu=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-popup"),require("@angular/common")):e.KendoAngularMenu=t(e.tslib,e["@angular/core"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-angular-popup"],e["@angular/common"])}(this,function(e,t,n,i,o){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.MenuComponent=i.MenuComponent;var o=n(21);t.ListComponent=o.ListComponent;var r=n(22);t.ItemComponent=r.ItemComponent;var a=n(25);t.LinkDirective=a.LinkDirective;var s=n(26);t.ExpandArrowDirective=s.ExpandArrowDirective;var p=n(17);t.MenuItemComponent=p.MenuItemComponent;var c=n(7);t.MenuEvent=c.MenuEvent;var u=n(27);t.MenuSelectEvent=u.MenuSelectEvent;var l=n(20);t.ItemContentTemplateDirective=l.ItemContentTemplateDirective;var d=n(18);t.ItemTemplateDirective=d.ItemTemplateDirective;var m=n(19);t.ItemLinkTemplateDirective=m.ItemLinkTemplateDirective;var h=n(28);t.HierarchyBindingDirective=h.HierarchyBindingDirective;var v=n(31);t.FlatBindingDirective=v.FlatBindingDirective;var f=n(32);t.MenuModule=f.MenuModule;var _=n(34);t.ContextMenuEvent=_.ContextMenuEvent;var g=n(35);t.ContextMenuSelectEvent=g.ContextMenuSelectEvent;var y=n(36);t.ContextMenuPopupEvent=y.ContextMenuPopupEvent;var b=n(37);t.ContextMenuTemplateDirective=b.ContextMenuTemplateDirective;var I=n(38);t.ContextMenuComponent=I.ContextMenuComponent;var C=n(43);t.ContextMenuModule=C.ContextMenuModule;var x=n(44);t.MenusModule=x.MenusModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),a=n(5),s=n(6),p=n(10),c=n(11),u=n(12),l=n(13),d=n(15),m=n(16),h=n(14),v=function(e){function t(t,n,i,r,a,s,p,c){var u=e.call(this)||this;return u.itemsService=t,u.hover=n,u.actions=i,u.navigation=r,u.localization=a,u.ngZone=s,u.renderer=p,u.contextService=c,u.select=new o.EventEmitter,u.open=new o.EventEmitter,u.close=new o.EventEmitter,u.actions.owner=u,c&&(c.items=u.itemsService,u.contextKeyDownSubscription=c.keydown.subscribe(u.contextKeyDown.bind(u))),u}return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"ariaOrientation",{get:function(){if(this.vertical)return"vertical"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contextMenuClass",{get:function(){return Boolean(this.contextService)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return this.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rtl",{get:function(){return this.localization.rtl},enumerable:!0,configurable:!0}),t.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())}},t.prototype.focus=function(e){this.navigation.focusIndex(e)},t.prototype.ngOnChanges=function(e){if(this.navigation.vertical=this.vertical,this.hover.delay=this.hoverDelay,e.openOnClick){var t=this.openOnClick=u.normalize(this.openOnClick);this.hover.openOnOver=!t,t&&"click"===t.toggle?this.attachCloseClick():this.unsubscribeClick()}},t.prototype.ngAfterViewChecked=function(){this.navigation.updateActive()},t.prototype.ngOnDestroy=function(){this.unsubscribeClick(),this.contextService&&(this.contextService.items=null,this.contextKeyDownSubscription.unsubscribe())},t.prototype.attachCloseClick=function(){var e=this;this.closeClickSubscription||"undefined"==typeof document||this.ngZone.runOutsideAngular(function(){e.closeClickSubscription=e.renderer.listen("document","click",function(t){l.inMenu(t.target,e.itemsService)||(e.hover.openOnOver=!1,e.actions.closeAll(),e.actions.execute())})})},t.prototype.unsubscribeClick=function(){this.closeClickSubscription&&this.closeClickSubscription()},t.prototype.contextKeyDown=function(e){if(this.itemsService.hasItems){var t,n=e.keyCode,i=this.localization.rtl,o=n===h.KeyCodes.DOWN||n===h.KeyCodes.RIGHT,r=n===h.KeyCodes.UP||n===h.KeyCodes.LEFT;o&&!i||r&&i?t="first":(o&&i||r&&!i)&&(t="last"),t&&(e.preventDefault(),this.focus(t))}},i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"menuItemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"menuItemLinkTemplate",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"select",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"close",void 0),i.__decorate([o.HostBinding("class.k-rtl"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"direction",null),t=n=i.__decorate([o.Component({exportAs:"kendoMenu",providers:[a.ItemsService,s.ActionsService,p.NavigationService,c.HoverService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.menu"},{provide:m.MenuBase,useExisting:o.forwardRef(function(){return n})}],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 '}),i.__param(7,o.Optional()),i.__metadata("design:paramtypes",[a.ItemsService,c.HoverService,s.ActionsService,p.NavigationService,r.LocalizationService,o.NgZone,o.Renderer2,d.ContextMenuService])],t);var n}(m.MenuBase);t.MenuComponent=v},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=/_?\d+$/,a="_",s=0,p=function(e,t){return e.siblingIndex-t.siblingIndex},c=function(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},u=function(){function e(){this.items={},this.lists=[],this.idPrefix="k-menu"+s++}return Object.defineProperty(e.prototype,"hasItems",{get:function(){return Object.keys(this.items).length>0},enumerable:!0,configurable:!0}),e.prototype.childId=function(e){return this.idPrefix+"-child"+e},e.prototype.itemIndex=function(e,t){return(e?e+a:"")+t},e.prototype.get=function(e){return this.items[e]},e.prototype.add=function(e){this.items[e.index]=e},e.prototype.remove=function(e){delete this.items[e.index]},e.prototype.addList=function(e){this.lists.push(e)},e.prototype.removeList=function(e){var t=this.lists.indexOf(e);t>=0&&this.lists.splice(t,1)},e.prototype.containsList=function(e){return Boolean(this.lists.find(function(t){return t.element.nativeElement===e}))},e.prototype.siblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter(function(e){return t.parentIndex(e)===n})},e.prototype.otherSiblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter(function(i){return t.parentIndex(i)===n&&i!==e.index})},e.prototype.children=function(e){var t=this;return this.filter(function(n){return t.parentIndex(n)===e.index})},e.prototype.parent=function(e){return this.items[this.parentIndex(e.index)]},e.prototype.root=function(e){return this.items[this.indices(e.index)[0]]},e.prototype.indices=function(e){return e.split(a)},e.prototype.filter=function(e){var t=[],n=this.items;for(var i in n)e(i,n[i])&&t.push(n[i]);return t.sort(p)},e.prototype.previous=function(e){var t=this.siblings(e),n=t.indexOf(e);return c(n,t,-1)},e.prototype.next=function(e){var t=this.siblings(e),n=t.indexOf(e);return c(n,t,1)},e.prototype.hasParent=function(e,t){return e.index.startsWith(t.index)},e.prototype.areSiblings=function(e,t){return e!==t&&this.parent(e)===this.parent(t)},e.prototype.forEach=function(e){var t=this.items;for(var n in t)t.hasOwnProperty(n)&&e(t[n])},e.prototype.parentIndex=function(e){return e.replace(r,"")},e=i.__decorate([o.Injectable()],e)}();t.ItemsService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(7),s=n(9),p=function(e,t){return!("open"===t&&e.opened||"close"===t&&!e.opened)},c=function(){function e(e,t){this.ngZone=e,this.items=t,this.actions=[]}return e.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())},e.prototype.close=function(e){this.closeChildren(e),this.closeItem(e)},e.prototype.closeItem=function(e){e.opened&&this.actions.push({name:"close",item:e})},e.prototype.closeToRoot=function(e){this.closeChildren(e);var t=e;do this.closeItem(t),t=this.items.parent(t);while(t)},e.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)}},e.prototype.closeAll=function(){var e=this;this.items.forEach(function(t){t.opened&&0===t.level&&e.close(t)})},e.prototype.select=function(e,t,n,i){this.actions.push({name:"select",item:e,prevented:n,finished:i,domEvent:t})},e.prototype.emit=function(e,t,n){var i=this.owner,o=new a.MenuEvent({sender:i,item:t.item,index:t.index,originalEvent:n,hasContent:t.hasContent});return i[e].emit(o),i.contextService&&i.contextService.emit(e,o),o.isDefaultPrevented()},Object.defineProperty(e.prototype,"hasPending",{get:function(){return this.actions.length>0},enumerable:!0,configurable:!0}),e.prototype.execute=function(e){var t=this;if(this.hasPending||e){var n=e||this.clear();!o.NgZone.isInAngularZone()&&this.requiresZone(n)?this.ngZone.run(function(){t.executeActions(n)}):this.executeActions(n)}},e.prototype.clear=function(){var e=this.actions;return this.actions=[],e},e.prototype.executeActions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.item,o=n.name,r=n.prevented,a=n.finished,s=n.domEvent;p(i,o)&&(this.emit(o,i,s)?r&&r():(i[o]&&i[o](),a&&a()))}},e.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},e.prototype.closeChildren=function(e){if(e.opened){var t=this.items.children(e);this.closeItems(t)}},e.prototype.closeItems=function(e){for(var t=0;t<e.length;t++)this.close(e[t])},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone,r.ItemsService])],e)}();t.ActionsService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(8),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o.PreventableEvent);t.MenuEvent=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.prevented=!1,Object.assign(this,e)}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.hasObservers=function(e){return e&&e.observers.length>0},t.defined=function(e){return"undefined"!=typeof e},t.bodyFactory=function(){if("undefined"!=typeof document)return new i.ElementRef(document.body)}},function(e,t,n){"use strict";function i(e){return 1===e.length&&u.test(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=n(3),a=n(4),s=n(5),p=n(6),c="0",u=/\S/,l={};l[37]="left",l[39]="right",l[38]="up",l[40]="down",l[36]="home",l[35]="end",l[32]="enter",l[13]="enter",l[27]="esc",l[9]="tab";var d=Object.assign({},l,{37:"right",39:"left"}),m=Promise.resolve(null),h=function(){function e(e,t,n,i){this.items=e,this.actions=t,this.localization=n,this.ngZone=i,this.vertical=!1,this.activeIndex=c}return Object.defineProperty(e.prototype,"focusedItem",{get:function(){return this.items.get(this.focusedIdx)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this.items.get(this.activeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handlers",{get:function(){return this.localization.rtl?d:l},enumerable:!0,configurable:!0}),e.prototype.focus=function(e){e.index!==this.focusedIdx&&(this.activeItem&&this.items.hasParent(e,this.activeItem)||this.setActive(e),this.setFocus(e))},e.prototype.setFocus=function(e){this.focusedIdx=e.index,e.focus()},e.prototype.focusLeave=function(){var e=this.focusedItem;e&&(this.actions.closeToRoot(e),this.actions.execute()),this.focusedIdx=null},e.prototype.updateActive=function(){var e=this;if(!this.activeItem&&this.items.hasItems){var t=this.items.get(c);t.toggleActive(!0),this.ngZone.runOutsideAngular(function(){m.then(function(){e.activeIndex=c})})}},e.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)):i(e.key)&&this.search(t,e.key),this.actions.execute())},e.prototype.focusIndex=function(e){if(!e&&this.activeItem)this.setFocus(this.activeItem);else if("first"===e)this.focusFirst();else if("last"===e)this.focusLast();else{var t=this.items.get(e);t&&this.focus(t)}},e.prototype.focusFirst=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[0])},e.prototype.focusLast=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[e.length-1])},e.prototype.search=function(e,t){for(var n=this.items.siblings(e),i=n.indexOf(e),o=n.slice(i+1).concat(n.slice(0,i)),r=0;r<o.length;r++){var a=o[r],s=a.item.text||"";if(s.toLowerCase().startsWith(t.toLowerCase())){this.focus(a);break}}},e.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))},e.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))},e.prototype.left=function(e){if(!this.vertical||0!==e.level||!e.disabled)if(e.level>1||this.vertical&&e.level>0){var t=this.items.parent(e);this.focus(t),this.actions.close(t)}else 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))},e.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||e.level>0)&&this.focus(this.items.next(this.activeItem)):this.focus(this.items.next(this.activeItem)))},e.prototype.home=function(e){var t=this.items.siblings(e);this.focus(t[0])},e.prototype.end=function(e){var t=this.items.siblings(e);this.focus(t[t.length-1])},e.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)))},e.prototype.esc=function(e){if(e.level>0){var t=this.items.parent(e);this.actions.close(t),this.focus(t)}},e.prototype.tab=function(e){e.level>0&&this.activeItem.focus()},e.prototype.focusChild=function(e,t){var n=this;return function(){var i=n.items.children(e)[t];n.setFocus(i)}},e.prototype.setActive=function(e){var t=this.focusedItem,n=this.items.root(e);this.activeItem&&this.activeItem.toggleActive(!1),this.activeIndex=n.index,n.toggleActive(!0),t&&(this.actions.closeToRoot(t),t.level>0&&this.actions.open(n))},e=o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[s.ItemsService,p.ActionsService,a.LocalizationService,r.NgZone])],e)}();t.NavigationService=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(6),s=500,p=function(){function e(e,t){this.actions=e,this.items=t,this.delay=100,this._openOnOver=!0,this.scheduled=[]}return Object.defineProperty(e.prototype,"openOnOver",{get:function(){return this._openOnOver},set:function(e){this.cancelActions(),this._openOnOver=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hovered",{get:function(){return this.items.get(this.hoveredIdx)},set:function(e){this.hoveredIdx=e?e.index:null},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.cancelActions()},e.prototype.over=function(e){var t=this;this.cancelActions(function(e){return"openOnOver"===e.name}),this.hovered&&this.hovered===e||(this.actions.closeOthers(e),this.hovered=e,(e.level>0||this.openOnOver)&&!e.disabled&&(this.actions.open(e),this.cancelActions(function(n){return"close"===n.name&&(e===n.item||t.items.hasParent(e,n.item))||"open"===n.name&&!t.items.hasParent(e,n.item)})),this.scheduleActions())},e.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},e.prototype.closeCurrent=function(){var e=this.hovered;e&&(this.actions.closeToRoot(e),this.hovered=null)},e.prototype.scheduleActions=function(){var e=this;if(this.actions.hasPending){var t={};t.actions=this.actions.clear(),t.id=setTimeout(function(){e.actions.execute(t.actions),e.removeScheduled(t)},this.delay),this.scheduled.push(t)}},e.prototype.scheduleDisableOpenOnOver=function(){var e=this,t={actions:[{name:"openOnOver"}]};t.id=setTimeout(function(){e._openOnOver=!1,e.removeScheduled(t)},Math.max(this.delay,s)),this.scheduled.push(t)},e.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)},e.prototype.cancelActions=function(e){for(var t=this.scheduled,n=t.length-1;n>=0;n--){var i=t[n],o=i.actions;if(e)for(var r=o.length-1;r>=0;r--)e(o[r])&&o.splice(r,1);e&&0!==o.length||(clearTimeout(i.id),t.splice(n,1))}},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.ActionsService,r.ItemsService])],e)}();t.HoverService=p},function(e,t){"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});var i=n(14),o="kendo-matches-container",r=/^(?:a|input|select|option|textarea|button|object)$/i,a=function(e,t){return(e.matches||e.msMatchesSelector).call(e,t)};t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,o=null!==n&&!i;return r.test(t)&&(o=!e.disabled&&!i),o}return!1};var s=function(e){return String(e).trim().split(" ")};t.hasClass=function(e,t){return s(e.className).indexOf(t)>=0},t.matchesClasses=function(e){var t=s(e);return function(e){var n=s(e.className);return Boolean(t.find(function(e){return n.indexOf(e)>=0}))}},t.nodeIndex=function(e){return e.getAttribute(i.NODE_INDEX)},t.closestItem=function(e,n){return t.closestInScope(e,t.nodeIndex,n)},t.closestList=function(e){var n=t.closest(e,t.matchesClasses("k-menu-popup k-menu k-menu-group"));return n&&t.hasClass(n,"k-menu-popup")&&(n=n.querySelector(".k-menu-group")),n},t.inMenu=function(e,n){if(e===n.lists[0].element.nativeElement)return!1;var i=t.closestList(e);return i&&n.containsList(i)},t.findInContainer=function(e,n,i){var r=i.getAttribute("id");r||i.setAttribute("id",o);var s="#"+(r||o)+" "+n,p=t.closestInScope(e,function(e){return a(e,s)},i);return r||i.removeAttribute("id"),p}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NODE_INDEX="data-kendo-menu-index";var n;!function(e){e[e.ESC=27]="ESC",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN",e[e.F10=121]="F10"}(n=t.KeyCodes||(t.KeyCodes={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(9),a=n(13),s=function(){function e(){this.keydown=new o.EventEmitter}return e.prototype.emit=function(e,t){this.owner.emitMenuEvent(e,t)},e.prototype.hasObservers=function(e){return this.owner&&r.hasObservers(this.owner[e])},e.prototype.leaveMenu=function(e){return!this.items||!a.inMenu(e.target,this.items)},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(17),a=n(18),s=n(19),p=function(){function e(){this.vertical=!1,this.openOnClick=!1,this.hoverDelay=100,this.animate=!0}return Object.defineProperty(e.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)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"hoverDelay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.ContentChildren(a.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(s.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(r.MenuItemComponent),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e}();t.MenuBase=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(18),a=n(19),s=n(20),p=function(){function e(){}return t=e,Object.defineProperty(e.prototype,"template",{get:function(){if(this.itemTemplate&&this.itemTemplate.length)return this.itemTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{get:function(){if(this.itemLinkTemplate&&this.itemLinkTemplate.length)return this.itemLinkTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentTemplate",{get:function(){if(this.itemContentTemplate&&this.itemContentTemplate.length)return this.itemContentTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){if(this.children.length)return this.children.toArray().slice(1)},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"url",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"separator",void 0),i.__decorate([o.ContentChildren(r.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(a.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(s.ItemContentTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemContentTemplate",void 0),i.__decorate([o.ContentChildren(t),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e=t=i.__decorate([o.Component({selector:"kendo-menu-item",template:""})],e);var t}();t.MenuItemComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemLinkTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemLinkTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemContentTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemContentTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(6),s=n(10),p=n(11),c=n(14),u=n(13),l=function(){function e(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}return e.prototype.hierarchyIndex=function(e){return this.itemsService.itemIndex(this.index,e)},e.prototype.ngOnInit=function(){this.itemsService.addList(this),this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.itemsService.removeList(this),this.domSubscriptions&&this.domSubscriptions()},e.prototype.initDomEvents=function(){var e=this;this.element&&this.ngZone.runOutsideAngular(function(){var t=e.element.nativeElement,n=e.level>0?u.closest(t,function(e){return u.hasClass(e,"k-menu-popup")}):t,i=e.renderer.listen(t,"mouseover",function(n){if(n.target===t&&0===e.level)e.onLeave();else{var i=e.nodeItem(n.target)||e.itemsService.get(e.index);!i||e.openOnClick&&"click"===e.openOnClick.toggle&&0===i.level&&!i.hasContent||e.hover.over(i)}}),o=e.renderer.listen(n,"mouseleave",function(t){e.leavesMenu(t)&&e.onLeave()}),r=e.renderer.listen(t,"keydown",function(t){u.hasClass(t.target,"k-menu-item")&&e.navigation.keydown(t)}),a=e.renderer.listen(t,"focusout",function(t){e.leavesMenu(t)&&e.navigation.focusLeave()}),s=e.renderer.listen(t,"click",e.clickHandler.bind(e));e.domSubscriptions=function(){i(),o(),r(),a(),s()}})},e.prototype.leavesMenu=function(e){return!e.relatedTarget||!u.inMenu(e.relatedTarget,this.itemsService)},e.prototype.onLeave=function(){var e=this.openOnClick;e&&"click"===e.toggle||this.hover.leave(e&&"leave"===e.toggle)},e.prototype.nodeItem=function(e){var t=u.closestItem(e,this.element.nativeElement);if(t){var n=u.nodeIndex(t);return this.itemsService.get(n)}},e.prototype.clickHandler=function(e){if(!u.isFocusable(e.target)||u.hasClass(e.target,"k-menu-item")){var t=this.nodeItem(e.target);if(t&&!t.isContent&&!t.navigating){if(t.disabled)return void e.preventDefault();if(this.actions.select(t,e,function(){e.preventDefault()}),this.navigation.focus(t),t.level>0&&!t.hasContent&&this.actions.closeToRoot(t),this.openOnClick){var 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)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),e=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])],e)}();t.ListComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(10),s=n(23),p=n(24),c=n(9),u=function(){function e(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}return Object.defineProperty(e.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(e.prototype,"disabled",{get:function(){return this.item.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPopup",{get:function(){return!!this.hasContent||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this.hasContent?this.opened:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this.item.text?this.item.text:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeId",{get:function(){return this.index===this.navigation.activeIndex?"0":"-1"},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"horizontal",{get:function(){return this.vertical||this.level>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLink",{get:function(){return Boolean(this.item.url)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{ | ||
get:function(){return this.item.linkTemplate||this.itemLinkTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasContent",{get:function(){var e=this.item.items;return e&&e.length||this.item.contentTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isContent",{get:function(){return Boolean(this.item.content)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClass",{get:function(){return"k-i-"+this.item.icon},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"template",{get:function(){return this.item.template||this.itemTemplate},enumerable:!0,configurable:!0}),e.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})},e.prototype.ngOnInit=function(){this.itemsService.add(this)},e.prototype.ngOnDestroy=function(){this.itemsService.remove(this),this.destroyed=!0,this.popupRef&&(this.popupRef.close(),this.popupRef=null)},e.prototype.focus=function(){this.element.nativeElement.focus()},e.prototype.toggleActive=function(e){e?this.setAttribute("tabindex","0"):this.setAttribute("tabindex","-1")},e.prototype.open=function(){if(!this.destroyed&&this.hasContent&&!this.opened){var 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()}},e.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"))},e.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)},e.prototype.setAttribute=function(e,t){this.renderer.setAttribute(this.element.nativeElement,e,t)},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"item",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"index",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"siblingIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ViewChild("link"),i.__metadata("design:type",o.ElementRef)],e.prototype,"link",void 0),i.__decorate([o.ViewChild("popupTemplate"),i.__metadata("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabled",null),i.__decorate([o.HostBinding("attr.aria-haspopup"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hasPopup",null),i.__decorate([o.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"expanded",null),i.__decorate([o.HostBinding("attr.aria-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"label",null),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"activeId",null),e=i.__decorate([o.Component({providers:[p.PopupService,{provide:p.POPUP_CONTAINER,useFactory:c.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])],e)}();t.ItemComponent=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={vertical:"top",horizontal:"left"},i={vertical:"top",horizontal:"right"},o={vertical:"flip",horizontal:"fit"},r={vertical:"fit",horizontal:"flip"};t.POPUP_SETTINGS_RTL={vertical:{anchor:{vertical:"bottom",horizontal:"right"},popup:i,collision:o,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"left"},popup:i,collision:r,animate:"left"}},t.POPUP_SETTINGS={vertical:{anchor:{vertical:"bottom",horizontal:"left"},popup:n,collision:o,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"right"},popup:n,collision:r,animate:"right"}}},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation",this.tabindex="-1"}return Object.defineProperty(e.prototype,"activeClass",{get:function(){return this.item.opened},enumerable:!0,configurable:!0}),e.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)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-link"),o.HostBinding("class.k-menu-link"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String)],e.prototype,"tabindex",void 0),i.__decorate([o.HostBinding("class.k-state-active"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"activeClass",null),e=i.__decorate([o.Directive({selector:"[kendoMenuItemLink]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.LinkDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation"}return Object.defineProperty(e.prototype,"arrowDown",{get:function(){return!this.item.horizontal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowRight",{get:function(){return this.item.horizontal&&!this.item.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowLeft",{get:function(){return this.item.horizontal&&this.item.rtl},enumerable:!0,configurable:!0}),e.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)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-icon"),o.HostBinding("class.k-menu-expand-arrow"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("class.k-i-arrow-60-down"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowDown",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-right"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowRight",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-left"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowLeft",null),e=i.__decorate([o.Directive({selector:"[kendoMenuExpandArrow]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.ExpandArrowDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(7),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o.MenuEvent);t.MenuSelectEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(16),a=n(29),s=n(30),p=function(e,t){return Array.isArray(e)?e[t]||s.last(e):e},c=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.mapItems=function(e,t){var n=this;return void 0===t&&(t=0),e.map(function(e){var i=n.createItem(e,t),o=n.getChildren(e,t);return o&&(i.items=n.mapItems(o,t+1)),i})},t.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,c=r.source;n[a]=s.getter(p(c,t))(e)}return n},t.prototype.getChildren=function(e,t){if(this.childrenField){var n=p(this.childrenField,t);return e[n]}},i.__decorate([o.Input("kendoMenuHierarchyBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"childrenField",void 0),t=i.__decorate([o.Directive({exportAs:"kendoMenuHierarchyBinding",selector:"[kendoMenuHierarchyBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],t)}(a.BindingDirectiveBase);t.HierarchyBindingDirective=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["textField","urlField","iconField","disabledField","cssClassField","cssStyleField","separatorField"],i=function(){function e(e){this.menu=e}return e.prototype.ngOnChanges=function(){this.rebind()},e.prototype.rebind=function(){for(var e=this.fields=[],t=0;t<n.length;t++){var i=n[t],o=this[i];o&&e.push({target:i.replace("Field",""),source:o})}this.menu.items=this.data?this.mapItems(this.data):[]},e}();t.BindingDirectiveBase=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,i={};i.undefined=function(e){return e},t.getter=function(e){if(i[e])return i[e];var t=[];return e.replace(n,function(e,n,i,o){t.push(void 0!==n?n:i||o)}),i[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},i[e]},t.last=function(e){return e[e.length-1]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(16),a=n(29),s=n(30),p=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.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),p=s.getter(this.idField)(r),c=s.getter(this.parentIdField)(r);if(null===c||void 0===c)n.push(a);else{var u=i[c]=i[c]||{};u.items=u.items||[],u.items.push(a)}i[p]&&(a.items=i[p].items),i[p]=a}return n},t.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,a=o.target;t[a]=s.getter(r)(e)}return t},i.__decorate([o.Input("kendoMenuFlatBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"idField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"parentIdField",void 0),t=i.__decorate([o.Directive({exportAs:"kendoMenuFlatBinding",selector:"[kendoMenuFlatBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],t)}(a.BindingDirectiveBase);t.FlatBindingDirective=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(33),a=n(24),s=n(1),p=n(17),c=n(21),u=n(22),l=n(25),d=n(26),m=n(18),h=n(19),v=n(20),f=n(28),_=n(31),g=[s.MenuComponent,p.MenuItemComponent,m.ItemTemplateDirective,h.ItemLinkTemplateDirective,v.ItemContentTemplateDirective,f.HierarchyBindingDirective,_.FlatBindingDirective,l.LinkDirective,d.ExpandArrowDirective],y=g.concat([c.ListComponent,u.ItemComponent]),b=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[y],exports:[g],imports:[a.PopupModule,r.CommonModule]})],e)}();t.MenuModule=b},function(e,t){e.exports=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e}();t.ContextMenuEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(34),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o.ContextMenuEvent);t.ContextMenuSelectEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(8),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o.PreventableEvent);t.ContextMenuPopupEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ContextMenuTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),a=n(24),s=n(16),p=n(36),c=n(15),u=n(39),l=n(37),d=n(13),m=n(9),h=n(5),v=n(40),f=n(42),_=n(9),g=n(14),y="contextmenu",b={horizontal:"left",vertical:"bottom"},I={horizontal:"left",vertical:"top"},C={horizontal:"fit",vertical:"flip"},x=function(e){function t(t,n,i,r){var a=e.call(this)||this;return a.popupService=t,a.service=n,a.ngZone=i,a.renderer=r,a.showOn=y,a.alignToAnchor=!1,a.vertical=!0,a.popupOpen=new o.EventEmitter,a.popupClose=new o.EventEmitter,a.select=new o.EventEmitter,a.open=new o.EventEmitter,a.close=new o.EventEmitter,a.service.owner=a,a.popupKeyDownHandler=a.popupKeyDownHandler.bind(a),a}return i.__extends(t,e),n=t,t.prototype.hide=function(){this.removePopup()},t.prototype.show=function(e){if(e){var t=e;this.removePopup(),m.defined(t.left)&&m.defined(t.top)?this.createPopup({offset:t}):(this.currentTarget=t.nativeElement||t,this.createPopup({anchor:this.currentTarget}))}},t.prototype.ngOnChanges=function(e){(e.target||e.showOn)&&this.bindShowHandler()},t.prototype.ngOnInit=function(){var e=this;this.ngZone.runOutsideAngular(function(){var t=e.renderer.listen("document","mousedown",function(t){e.popupRef&&!d.closest(t.target,function(t){return t===e.popupRef.popupElement})&&e.service.leaveMenu(t)&&e.closePopup(t)}),n=e.renderer.listen("window","blur",function(t){e.popupRef&&e.closePopup(t)});e.closeSubscription=function(){t(),n()}})},t.prototype.ngOnDestroy=function(){this.closeSubscription&&(this.closeSubscription(),this.closeSubscription=null),this.unbindShowHandler(),this.removePopup()},t.prototype.emitMenuEvent=function(e,t){t.target=this.currentTarget,t.sender=this,this[e].emit(t),"select"!==e||t.hasContent||this.closePopup(t.originalEvent)},t.prototype.bindShowHandler=function(){var e=this;this.unbindShowHandler(),this.ngZone.runOutsideAngular(function(){var t=e.targetElement();if(t){var n=e.showOn||y;e.showSubscription=e.renderer.listen(t,e.showOn||y,function(n){e.showContextMenu(n,t)}),n===y&&(e.keydownSubscription=e.renderer.listen(t,"keydown",function(n){n.shiftKey&&n.keyCode===g.KeyCodes.F10&&e.showContextMenu(n,t)}))}})},t.prototype.showContextMenu=function(e,t){var n=this,i=this.targetFilter();if(this.currentTarget=t,i){var o=this.currentTarget=d.findInContainer(e.target,i,t);if(o&&o!==e.target&&d.isFocusable(e.target))return void(this.currentTarget=null);o&&this.directiveTarget&&(this.currentTarget=this.target.targetService.find(o))}return this.currentTarget?void this.ngZone.run(function(){n.closePopup(e)||n.openPopup(e)}):void this.closePopup(e)},t.prototype.unbindShowHandler=function(){this.showSubscription&&(this.showSubscription(),this.showSubscription=null),this.keydownSubscription&&(this.keydownSubscription(),this.keydownSubscription=null)},t.prototype.targetElement=function(){if("undefined"!=typeof document){this.directiveTarget=!1;var e=this.target;return"string"==typeof e?e=document.querySelector(e):e&&e.nativeElement?e=e.nativeElement:e instanceof v.ContextMenuTargetContainerDirective&&(e=e.element,this.directiveTarget=!0),e}},t.prototype.targetFilter=function(){return this.directiveTarget?"."+f.TARGET_CLASS:this.filter},t.prototype.closePopup=function(e){var t=this;if(this.popupRef)return this.popupAction("popupClose",e,function(){t.removePopup()})},t.prototype.removePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.currentTarget=null),this.popupKeydownSubscription&&(this.popupKeydownSubscription(),this.popupKeydownSubscription=null)},t.prototype.openPopup=function(e){var t=this;this.popupAction("popupOpen",e,function(){e.preventDefault();var n,i;t.alignToAnchor||"keydown"===e.type?n=t.currentTargetElement:i={left:e.pageX,top:e.pageY},t.createPopup({anchor:n,offset:i})})},t.prototype.createPopup=function(e){var t=this;this.popupRef=this.popupService.open(Object.assign({animate:!m.defined(this.popupAnimate)||this.popupAnimate,appendTo:this.appendTo,collision:this.collision||C,popupAlign:this.popupAlign||I,anchorAlign:this.anchorAlign||b,content:this.contentTemplate?this.contentTemplate.templateRef:this.defaultContentTemplate},e));var n=this.popupRef.popupElement;this.renderer.setAttribute(n,"tabindex","-1"),this.renderer.setStyle(n,"outline","0"),this.ariaLabel&&this.renderer.setAttribute(n,"aria-label",this.ariaLabel),this.activeTarget=this.currentTargetElement===document.activeElement,this.ngZone.runOutsideAngular(function(){t.popupKeydownSubscription=t.renderer.listen(n,"keydown",t.popupKeyDownHandler)}),n.focus()},t.prototype.popupKeyDownHandler=function(e){var t=this.popupRef.popupElement;if(e.keyCode!==g.KeyCodes.ESC||!d.hasClass(e.target,"k-menu-item")&&e.target!==t)e.target===t&&this.service.keydown.emit(e);else{var n=this.currentTargetElement;!this.closePopup(e)&&this.activeTarget&&n.focus()}},t.prototype.popupAction=function(e,t,n){var i=this,o=this[e],r=!1;return m.hasObservers(o)?this.ngZone.run(function(){var e=new p.ContextMenuPopupEvent({originalEvent:t,sender:i,target:i.currentTarget});o.emit(e),e.isDefaultPrevented()||n(),r=e.isDefaultPrevented()}):n(),r},Object.defineProperty(t.prototype,"currentTargetElement",{get:function(){return this.directiveTarget&&this.currentTarget?this.currentTarget.element:this.currentTarget},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"showOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"target",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"alignToAnchor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"popupAnimate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"popupAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"anchorAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"collision",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.ViewContainerRef)],t.prototype,"appendTo",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"ariaLabel",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"popupOpen",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"popupClose",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"select",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"close",void 0),i.__decorate([o.ContentChild(l.ContextMenuTemplateDirective),i.__metadata("design:type",l.ContextMenuTemplateDirective)],t.prototype,"contentTemplate",void 0),i.__decorate([o.ViewChild("default"),i.__metadata("design:type",o.TemplateRef)],t.prototype,"defaultContentTemplate",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoContextMenu",providers:[c.ContextMenuService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.contextmenu"},{provide:h.ItemsService,useClass:u.ContextMenuItemsService},{provide:s.MenuBase,useExisting:o.forwardRef(function(){return n})},a.PopupService,{provide:a.POPUP_CONTAINER,useFactory:_.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 '}),i.__metadata("design:paramtypes",[a.PopupService,c.ContextMenuService,o.NgZone,o.Renderer2])],t);var n}(s.MenuBase);t.ContextMenuComponent=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(15),a=function(){function e(e){this.contextService=e}return e.prototype.get=function(e){if(this.contextService.items)return this.contextService.items.get(e)},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.ContextMenuService])],e)}();t.ContextMenuItemsService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(41),a=function(){function e(e,t){this.targetService=t,e&&(this.element=e.nativeElement)}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTargetContainer]",exportAs:"kendoContextMenuTargetContainer",providers:[r.ContextMenuTargetService]}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetContainerDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){this.targets=[]}return e.prototype.add=function(e){this.targets.push(e)},e.prototype.remove=function(e){var t=this.targets.indexOf(e);this.targets.splice(t,1)},e.prototype.find=function(e){return this.targets.find(function(t){return t.element===e})},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuTargetService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(41);t.TARGET_CLASS="k-contextmenu-target";var a=function(){function e(e,t){this.targetService=t,this.hostClass=!0,e&&(this.element=e.nativeElement),t.add(this)}return e.prototype.ngOnDestroy=function(){this.targetService.remove(this)},i.__decorate([o.Input("kendoContextMenuTarget"),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.HostBinding("class."+t.TARGET_CLASS),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([o.Directive({selector:"[kendoContextMenuTarget]",exportAs:"kendoContextMenuTarget"}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(33),a=n(24),s=n(32),p=n(38),c=n(37),u=n(42),l=n(40),d=[p.ContextMenuComponent,c.ContextMenuTemplateDirective,u.ContextMenuTargetDirective,l.ContextMenuTargetContainerDirective],m=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[d],exports:[d,s.MenuModule],imports:[a.PopupModule,r.CommonModule,s.MenuModule]})],e)}();t.ContextMenuModule=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(32),a=n(43),s=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[r.MenuModule,a.ContextMenuModule]})],e)}();t.MenusModule=s}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-popup"),require("@angular/common")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-l10n","@progress/kendo-angular-popup","@angular/common"],t):"object"==typeof exports?exports.KendoAngularMenu=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-popup"),require("@angular/common")):e.KendoAngularMenu=t(e.tslib,e["@angular/core"],e["@progress/kendo-angular-l10n"],e["@progress/kendo-angular-popup"],e["@angular/common"])}(this,function(e,t,n,i,o){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.MenuComponent=i.MenuComponent;var o=n(21);t.ListComponent=o.ListComponent;var r=n(22);t.ItemComponent=r.ItemComponent;var a=n(25);t.LinkDirective=a.LinkDirective;var s=n(26);t.ExpandArrowDirective=s.ExpandArrowDirective;var p=n(17);t.MenuItemComponent=p.MenuItemComponent;var c=n(7);t.MenuEvent=c.MenuEvent;var u=n(27);t.MenuSelectEvent=u.MenuSelectEvent;var l=n(20);t.ItemContentTemplateDirective=l.ItemContentTemplateDirective;var d=n(18);t.ItemTemplateDirective=d.ItemTemplateDirective;var m=n(19);t.ItemLinkTemplateDirective=m.ItemLinkTemplateDirective;var h=n(28);t.HierarchyBindingDirective=h.HierarchyBindingDirective;var v=n(31);t.FlatBindingDirective=v.FlatBindingDirective;var f=n(32);t.MenuModule=f.MenuModule;var _=n(34);t.ContextMenuEvent=_.ContextMenuEvent;var g=n(35);t.ContextMenuSelectEvent=g.ContextMenuSelectEvent;var y=n(36);t.ContextMenuPopupEvent=y.ContextMenuPopupEvent;var b=n(37);t.ContextMenuTemplateDirective=b.ContextMenuTemplateDirective;var C=n(38);t.ContextMenuComponent=C.ContextMenuComponent;var I=n(43);t.ContextMenuModule=I.ContextMenuModule;var x=n(15);t.ContextMenuService=x.ContextMenuService;var O=n(44);t.MenusModule=O.MenusModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),a=n(5),s=n(6),p=n(10),c=n(11),u=n(12),l=n(13),d=n(15),m=n(16),h=n(14),v=function(e){function t(t,n,i,r,a,s,p,c){var u=e.call(this)||this;return u.itemsService=t,u.hover=n,u.actions=i,u.navigation=r,u.localization=a,u.ngZone=s,u.renderer=p,u.contextService=c,u.select=new o.EventEmitter,u.open=new o.EventEmitter,u.close=new o.EventEmitter,u.actions.owner=u,c&&(c.items=u.itemsService,u.contextKeyDownSubscription=c.keydown.subscribe(u.contextKeyDown.bind(u))),u}return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"ariaOrientation",{get:function(){if(this.vertical)return"vertical"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contextMenuClass",{get:function(){return Boolean(this.contextService)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"direction",{get:function(){return this.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rtl",{get:function(){return this.localization.rtl},enumerable:!0,configurable:!0}),t.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())}},t.prototype.focus=function(e){this.navigation.focusIndex(e)},t.prototype.ngOnChanges=function(e){if(this.navigation.vertical=this.vertical,this.hover.delay=this.hoverDelay,e.openOnClick){var t=this.openOnClick=u.normalize(this.openOnClick);this.hover.openOnOver=!t,t&&"click"===t.toggle?this.attachCloseClick():this.unsubscribeClick()}},t.prototype.ngAfterViewChecked=function(){this.navigation.updateActive()},t.prototype.ngOnDestroy=function(){this.unsubscribeClick(),this.contextService&&(this.contextService.items=null,this.contextKeyDownSubscription.unsubscribe())},t.prototype.attachCloseClick=function(){var e=this;this.closeClickSubscription||"undefined"==typeof document||this.ngZone.runOutsideAngular(function(){e.closeClickSubscription=e.renderer.listen("document","click",function(t){l.inMenu(t.target,e.itemsService)||(e.hover.openOnOver=!1,e.actions.closeAll(),e.actions.execute())})})},t.prototype.unsubscribeClick=function(){this.closeClickSubscription&&this.closeClickSubscription()},t.prototype.contextKeyDown=function(e){if(this.itemsService.hasItems){var t,n=e.keyCode,i=this.localization.rtl,o=n===h.KeyCodes.DOWN||n===h.KeyCodes.RIGHT,r=n===h.KeyCodes.UP||n===h.KeyCodes.LEFT;o&&!i||r&&i?t="first":(o&&i||r&&!i)&&(t="last"),t&&(e.preventDefault(),this.focus(t))}},i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"menuItemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],t.prototype,"menuItemLinkTemplate",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"select",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"close",void 0),i.__decorate([o.HostBinding("class.k-rtl"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"direction",null),t=n=i.__decorate([o.Component({exportAs:"kendoMenu",providers:[a.ItemsService,s.ActionsService,p.NavigationService,c.HoverService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.menu"},{provide:m.MenuBase,useExisting:o.forwardRef(function(){return n})}],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 '}),i.__param(7,o.Optional()),i.__metadata("design:paramtypes",[a.ItemsService,c.HoverService,s.ActionsService,p.NavigationService,r.LocalizationService,o.NgZone,o.Renderer2,d.ContextMenuService])],t);var n}(m.MenuBase);t.MenuComponent=v},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=/_?\d+$/,a="_",s=0,p=function(e,t){return e.siblingIndex-t.siblingIndex},c=function(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},u=function(){function e(){this.items={},this.lists=[],this.idPrefix="k-menu"+s++}return Object.defineProperty(e.prototype,"hasItems",{get:function(){return Object.keys(this.items).length>0},enumerable:!0,configurable:!0}),e.prototype.childId=function(e){return this.idPrefix+"-child"+e},e.prototype.itemIndex=function(e,t){return(e?e+a:"")+t},e.prototype.get=function(e){return this.items[e]},e.prototype.add=function(e){this.items[e.index]=e},e.prototype.remove=function(e){delete this.items[e.index]},e.prototype.addList=function(e){this.lists.push(e)},e.prototype.removeList=function(e){var t=this.lists.indexOf(e);t>=0&&this.lists.splice(t,1)},e.prototype.containsList=function(e){return Boolean(this.lists.find(function(t){return t.element.nativeElement===e}))},e.prototype.siblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter(function(e){return t.parentIndex(e)===n})},e.prototype.otherSiblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter(function(i){return t.parentIndex(i)===n&&i!==e.index})},e.prototype.children=function(e){var t=this;return this.filter(function(n){return t.parentIndex(n)===e.index})},e.prototype.parent=function(e){return this.items[this.parentIndex(e.index)]},e.prototype.root=function(e){return this.items[this.indices(e.index)[0]]},e.prototype.indices=function(e){return e.split(a)},e.prototype.filter=function(e){var t=[],n=this.items;for(var i in n)e(i,n[i])&&t.push(n[i]);return t.sort(p)},e.prototype.previous=function(e){var t=this.siblings(e),n=t.indexOf(e);return c(n,t,-1)},e.prototype.next=function(e){var t=this.siblings(e),n=t.indexOf(e);return c(n,t,1)},e.prototype.hasParent=function(e,t){return e.index.startsWith(t.index)},e.prototype.areSiblings=function(e,t){return e!==t&&this.parent(e)===this.parent(t)},e.prototype.forEach=function(e){var t=this.items;for(var n in t)t.hasOwnProperty(n)&&e(t[n])},e.prototype.parentIndex=function(e){return e.replace(r,"")},e=i.__decorate([o.Injectable()],e)}();t.ItemsService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(7),s=n(9),p=function(e,t){return!("open"===t&&e.opened||"close"===t&&!e.opened)},c=function(){function e(e,t){this.ngZone=e,this.items=t,this.actions=[]}return e.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())},e.prototype.close=function(e){this.closeChildren(e),this.closeItem(e)},e.prototype.closeItem=function(e){e.opened&&this.actions.push({name:"close",item:e})},e.prototype.closeToRoot=function(e){this.closeChildren(e);var t=e;do this.closeItem(t),t=this.items.parent(t);while(t)},e.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)}},e.prototype.closeAll=function(){var e=this;this.items.forEach(function(t){t.opened&&0===t.level&&e.close(t)})},e.prototype.select=function(e,t,n,i){this.actions.push({name:"select",item:e,prevented:n,finished:i,domEvent:t})},e.prototype.emit=function(e,t,n){var i=this.owner,o=new a.MenuEvent({sender:i,item:t.item,index:t.index,originalEvent:n,hasContent:t.hasContent});return i[e].emit(o),i.contextService&&i.contextService.emit(e,o),o.isDefaultPrevented()},Object.defineProperty(e.prototype,"hasPending",{get:function(){return this.actions.length>0},enumerable:!0,configurable:!0}),e.prototype.execute=function(e){var t=this;if(this.hasPending||e){var n=e||this.clear();!o.NgZone.isInAngularZone()&&this.requiresZone(n)?this.ngZone.run(function(){t.executeActions(n)}):this.executeActions(n)}},e.prototype.clear=function(){var e=this.actions;return this.actions=[],e},e.prototype.executeActions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.item,o=n.name,r=n.prevented,a=n.finished,s=n.domEvent;p(i,o)&&(this.emit(o,i,s)?r&&r():(i[o]&&i[o](),a&&a()))}},e.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},e.prototype.closeChildren=function(e){if(e.opened){var t=this.items.children(e);this.closeItems(t)}},e.prototype.closeItems=function(e){for(var t=0;t<e.length;t++)this.close(e[t])},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone,r.ItemsService])],e)}();t.ActionsService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(8),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o.PreventableEvent);t.MenuEvent=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.prevented=!1,Object.assign(this,e)}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.hasObservers=function(e){return e&&e.observers.length>0},t.defined=function(e){return"undefined"!=typeof e},t.bodyFactory=function(){if("undefined"!=typeof document)return new i.ElementRef(document.body)}},function(e,t,n){"use strict";function i(e){return 1===e.length&&u.test(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=n(3),a=n(4),s=n(5),p=n(6),c="0",u=/\S/,l={};l[37]="left",l[39]="right",l[38]="up",l[40]="down",l[36]="home",l[35]="end",l[32]="enter",l[13]="enter",l[27]="esc",l[9]="tab";var d=Object.assign({},l,{37:"right",39:"left"}),m=Promise.resolve(null),h=function(){function e(e,t,n,i){this.items=e,this.actions=t,this.localization=n,this.ngZone=i,this.vertical=!1,this.activeIndex=c}return Object.defineProperty(e.prototype,"focusedItem",{get:function(){return this.items.get(this.focusedIdx)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this.items.get(this.activeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handlers",{get:function(){return this.localization.rtl?d:l},enumerable:!0,configurable:!0}),e.prototype.focus=function(e){e.index!==this.focusedIdx&&(this.activeItem&&this.items.hasParent(e,this.activeItem)||this.setActive(e),this.setFocus(e))},e.prototype.setFocus=function(e){this.focusedIdx=e.index,e.focus()},e.prototype.focusLeave=function(){var e=this.focusedItem;e&&(this.actions.closeToRoot(e),this.actions.execute()),this.focusedIdx=null},e.prototype.updateActive=function(){var e=this;if(!this.activeItem&&this.items.hasItems){var t=this.items.get(c);t.toggleActive(!0),this.ngZone.runOutsideAngular(function(){m.then(function(){e.activeIndex=c})})}},e.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)):i(e.key)&&this.search(t,e.key),this.actions.execute())},e.prototype.focusIndex=function(e){if(!e&&this.activeItem)this.setFocus(this.activeItem);else if("first"===e)this.focusFirst();else if("last"===e)this.focusLast();else{var t=this.items.get(e);t&&this.focus(t)}},e.prototype.focusFirst=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[0])},e.prototype.focusLast=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[e.length-1])},e.prototype.search=function(e,t){for(var n=this.items.siblings(e),i=n.indexOf(e),o=n.slice(i+1).concat(n.slice(0,i)),r=0;r<o.length;r++){var a=o[r],s=a.item.text||"";if(s.toLowerCase().startsWith(t.toLowerCase())){this.focus(a);break}}},e.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))},e.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))},e.prototype.left=function(e){if(!this.vertical||0!==e.level||!e.disabled)if(e.level>1||this.vertical&&e.level>0){var t=this.items.parent(e);this.focus(t),this.actions.close(t)}else 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))},e.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||e.level>0)&&this.focus(this.items.next(this.activeItem)):this.focus(this.items.next(this.activeItem)))},e.prototype.home=function(e){var t=this.items.siblings(e);this.focus(t[0])},e.prototype.end=function(e){var t=this.items.siblings(e);this.focus(t[t.length-1])},e.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)))},e.prototype.esc=function(e){if(e.level>0){var t=this.items.parent(e);this.actions.close(t),this.focus(t)}},e.prototype.tab=function(e){e.level>0&&this.activeItem.focus()},e.prototype.focusChild=function(e,t){var n=this;return function(){var i=n.items.children(e)[t];n.setFocus(i)}},e.prototype.setActive=function(e){var t=this.focusedItem,n=this.items.root(e);this.activeItem&&this.activeItem.toggleActive(!1),this.activeIndex=n.index,n.toggleActive(!0),t&&(this.actions.closeToRoot(t),t.level>0&&this.actions.open(n))},e=o.__decorate([r.Injectable(),o.__metadata("design:paramtypes",[s.ItemsService,p.ActionsService,a.LocalizationService,r.NgZone])],e)}();t.NavigationService=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(6),s=500,p=function(){function e(e,t){this.actions=e,this.items=t,this.delay=100,this._openOnOver=!0,this.scheduled=[]}return Object.defineProperty(e.prototype,"openOnOver",{get:function(){return this._openOnOver},set:function(e){this.cancelActions(),this._openOnOver=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hovered",{get:function(){return this.items.get(this.hoveredIdx)},set:function(e){this.hoveredIdx=e?e.index:null},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.cancelActions()},e.prototype.over=function(e){var t=this;this.cancelActions(function(e){return"openOnOver"===e.name}),this.hovered&&this.hovered===e||(this.actions.closeOthers(e),this.hovered=e,(e.level>0||this.openOnOver)&&!e.disabled&&(this.actions.open(e),this.cancelActions(function(n){return"close"===n.name&&(e===n.item||t.items.hasParent(e,n.item))||"open"===n.name&&!t.items.hasParent(e,n.item)})),this.scheduleActions())},e.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},e.prototype.closeCurrent=function(){var e=this.hovered;e&&(this.actions.closeToRoot(e),this.hovered=null)},e.prototype.scheduleActions=function(){var e=this;if(this.actions.hasPending){var t={};t.actions=this.actions.clear(),t.id=setTimeout(function(){e.actions.execute(t.actions),e.removeScheduled(t)},this.delay),this.scheduled.push(t)}},e.prototype.scheduleDisableOpenOnOver=function(){var e=this,t={actions:[{name:"openOnOver"}]};t.id=setTimeout(function(){e._openOnOver=!1,e.removeScheduled(t)},Math.max(this.delay,s)),this.scheduled.push(t)},e.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)},e.prototype.cancelActions=function(e){for(var t=this.scheduled,n=t.length-1;n>=0;n--){var i=t[n],o=i.actions;if(e)for(var r=o.length-1;r>=0;r--)e(o[r])&&o.splice(r,1);e&&0!==o.length||(clearTimeout(i.id),t.splice(n,1))}},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.ActionsService,r.ItemsService])],e)}();t.HoverService=p},function(e,t){"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});var i=n(14),o="kendo-matches-container",r=/^(?:a|input|select|option|textarea|button|object)$/i,a=function(e,t){return(e.matches||e.msMatchesSelector).call(e,t)};t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,o=null!==n&&!i;return r.test(t)&&(o=!e.disabled&&!i),o}return!1};var s=function(e){return String(e).trim().split(" ")};t.hasClass=function(e,t){return s(e.className).indexOf(t)>=0},t.matchesClasses=function(e){var t=s(e);return function(e){var n=s(e.className);return Boolean(t.find(function(e){return n.indexOf(e)>=0}))}},t.nodeIndex=function(e){return e.getAttribute(i.NODE_INDEX)},t.closestItem=function(e,n){return t.closestInScope(e,t.nodeIndex,n)},t.closestList=function(e){var n=t.closest(e,t.matchesClasses("k-menu-popup k-menu k-menu-group"));return n&&t.hasClass(n,"k-menu-popup")&&(n=n.querySelector(".k-menu-group")),n},t.inMenu=function(e,n){if(e===n.lists[0].element.nativeElement)return!1;var i=t.closestList(e);return i&&n.containsList(i)},t.findInContainer=function(e,n,i){var r=i.getAttribute("id");r||i.setAttribute("id",o);var s="#"+(r||o)+" "+n,p=t.closestInScope(e,function(e){return a(e,s)},i);return r||i.removeAttribute("id"),p}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NODE_INDEX="data-kendo-menu-index";var n;!function(e){e[e.ESC=27]="ESC",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN",e[e.F10=121]="F10"}(n=t.KeyCodes||(t.KeyCodes={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(9),a=n(13),s=function(){function e(){this.keydown=new o.EventEmitter}return e.prototype.emit=function(e,t){this.owner.emitMenuEvent(e,t)},e.prototype.hasObservers=function(e){return this.owner&&r.hasObservers(this.owner[e])},e.prototype.leaveMenu=function(e){return!this.items||!a.inMenu(e.target,this.items)},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(17),a=n(18),s=n(19),p=function(){function e(){this.vertical=!1,this.openOnClick=!1,this.hoverDelay=100,this.animate=!0}return Object.defineProperty(e.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)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"hoverDelay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.ContentChildren(a.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(s.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(r.MenuItemComponent),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e}();t.MenuBase=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(18),a=n(19),s=n(20),p=function(){function e(){}return t=e,Object.defineProperty(e.prototype,"template",{get:function(){if(this.itemTemplate&&this.itemTemplate.length)return this.itemTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{get:function(){if(this.itemLinkTemplate&&this.itemLinkTemplate.length)return this.itemLinkTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentTemplate",{get:function(){if(this.itemContentTemplate&&this.itemContentTemplate.length)return this.itemContentTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){if(this.children.length)return this.children.toArray().slice(1)},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"url",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"separator",void 0),i.__decorate([o.ContentChildren(r.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(a.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(s.ItemContentTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemContentTemplate",void 0),i.__decorate([o.ContentChildren(t),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e=t=i.__decorate([o.Component({selector:"kendo-menu-item",template:""})],e);var t}();t.MenuItemComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemLinkTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemLinkTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemContentTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemContentTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(6),s=n(10),p=n(11),c=n(14),u=n(13),l=function(){function e(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}return e.prototype.hierarchyIndex=function(e){return this.itemsService.itemIndex(this.index,e)},e.prototype.ngOnInit=function(){this.itemsService.addList(this),this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.itemsService.removeList(this),this.domSubscriptions&&this.domSubscriptions()},e.prototype.initDomEvents=function(){var e=this;this.element&&this.ngZone.runOutsideAngular(function(){var t=e.element.nativeElement,n=e.level>0?u.closest(t,function(e){return u.hasClass(e,"k-menu-popup")}):t,i=e.renderer.listen(t,"mouseover",function(n){if(n.target===t&&0===e.level)e.onLeave();else{var i=e.nodeItem(n.target)||e.itemsService.get(e.index);!i||e.openOnClick&&"click"===e.openOnClick.toggle&&0===i.level&&!i.hasContent||e.hover.over(i)}}),o=e.renderer.listen(n,"mouseleave",function(t){e.leavesMenu(t)&&e.onLeave()}),r=e.renderer.listen(t,"keydown",function(t){u.hasClass(t.target,"k-menu-item")&&e.navigation.keydown(t)}),a=e.renderer.listen(t,"focusout",function(t){e.leavesMenu(t)&&e.navigation.focusLeave()}),s=e.renderer.listen(t,"click",e.clickHandler.bind(e));e.domSubscriptions=function(){i(),o(),r(),a(),s()}})},e.prototype.leavesMenu=function(e){return!e.relatedTarget||!u.inMenu(e.relatedTarget,this.itemsService)},e.prototype.onLeave=function(){var e=this.openOnClick;e&&"click"===e.toggle||this.hover.leave(e&&"leave"===e.toggle)},e.prototype.nodeItem=function(e){var t=u.closestItem(e,this.element.nativeElement);if(t){var n=u.nodeIndex(t);return this.itemsService.get(n)}},e.prototype.clickHandler=function(e){if(!u.isFocusable(e.target)||u.hasClass(e.target,"k-menu-item")){var t=this.nodeItem(e.target);if(t&&!t.isContent&&!t.navigating){if(t.disabled)return void e.preventDefault();if(this.actions.select(t,e,function(){e.preventDefault()}),this.navigation.focus(t),t.level>0&&!t.hasContent&&this.actions.closeToRoot(t),this.openOnClick){var 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)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),e=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])],e)}();t.ListComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(10),s=n(23),p=n(24),c=n(9),u=function(){function e(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}return Object.defineProperty(e.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(e.prototype,"disabled",{get:function(){return this.item.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPopup",{get:function(){return!!this.hasContent||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this.hasContent?this.opened:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this.item.text?this.item.text:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeId",{get:function(){return this.index===this.navigation.activeIndex?"0":"-1"},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"horizontal",{get:function(){return this.vertical||this.level>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLink",{get:function(){return Boolean(this.item.url); | ||
},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{get:function(){return this.item.linkTemplate||this.itemLinkTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasContent",{get:function(){var e=this.item.items;return e&&e.length||this.item.contentTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isContent",{get:function(){return Boolean(this.item.content)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClass",{get:function(){return"k-i-"+this.item.icon},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"template",{get:function(){return this.item.template||this.itemTemplate},enumerable:!0,configurable:!0}),e.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})},e.prototype.ngOnInit=function(){this.itemsService.add(this)},e.prototype.ngOnDestroy=function(){this.itemsService.remove(this),this.destroyed=!0,this.popupRef&&(this.popupRef.close(),this.popupRef=null)},e.prototype.focus=function(){this.element.nativeElement.focus()},e.prototype.toggleActive=function(e){e?this.setAttribute("tabindex","0"):this.setAttribute("tabindex","-1")},e.prototype.open=function(){if(!this.destroyed&&this.hasContent&&!this.opened){var 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()}},e.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"))},e.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)},e.prototype.setAttribute=function(e,t){this.renderer.setAttribute(this.element.nativeElement,e,t)},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"item",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"index",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"siblingIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ViewChild("link"),i.__metadata("design:type",o.ElementRef)],e.prototype,"link",void 0),i.__decorate([o.ViewChild("popupTemplate"),i.__metadata("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabled",null),i.__decorate([o.HostBinding("attr.aria-haspopup"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hasPopup",null),i.__decorate([o.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"expanded",null),i.__decorate([o.HostBinding("attr.aria-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"label",null),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"activeId",null),e=i.__decorate([o.Component({providers:[p.PopupService,{provide:p.POPUP_CONTAINER,useFactory:c.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])],e)}();t.ItemComponent=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={vertical:"top",horizontal:"left"},i={vertical:"top",horizontal:"right"},o={vertical:"flip",horizontal:"fit"},r={vertical:"fit",horizontal:"flip"};t.POPUP_SETTINGS_RTL={vertical:{anchor:{vertical:"bottom",horizontal:"right"},popup:i,collision:o,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"left"},popup:i,collision:r,animate:"left"}},t.POPUP_SETTINGS={vertical:{anchor:{vertical:"bottom",horizontal:"left"},popup:n,collision:o,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"right"},popup:n,collision:r,animate:"right"}}},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation",this.tabindex="-1"}return Object.defineProperty(e.prototype,"activeClass",{get:function(){return this.item.opened},enumerable:!0,configurable:!0}),e.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)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-link"),o.HostBinding("class.k-menu-link"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String)],e.prototype,"tabindex",void 0),i.__decorate([o.HostBinding("class.k-state-active"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"activeClass",null),e=i.__decorate([o.Directive({selector:"[kendoMenuItemLink]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.LinkDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation"}return Object.defineProperty(e.prototype,"arrowDown",{get:function(){return!this.item.horizontal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowRight",{get:function(){return this.item.horizontal&&!this.item.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowLeft",{get:function(){return this.item.horizontal&&this.item.rtl},enumerable:!0,configurable:!0}),e.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)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-icon"),o.HostBinding("class.k-menu-expand-arrow"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("class.k-i-arrow-60-down"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowDown",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-right"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowRight",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-left"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowLeft",null),e=i.__decorate([o.Directive({selector:"[kendoMenuExpandArrow]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.ExpandArrowDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(7),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o.MenuEvent);t.MenuSelectEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(16),a=n(29),s=n(30),p=function(e,t){return Array.isArray(e)?e[t]||s.last(e):e},c=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.mapItems=function(e,t){var n=this;return void 0===t&&(t=0),e.map(function(e){var i=n.createItem(e,t),o=n.getChildren(e,t);return o&&(i.items=n.mapItems(o,t+1)),i})},t.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,c=r.source;n[a]=s.getter(p(c,t))(e)}return n},t.prototype.getChildren=function(e,t){if(this.childrenField){var n=p(this.childrenField,t);return e[n]}},i.__decorate([o.Input("kendoMenuHierarchyBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"childrenField",void 0),t=i.__decorate([o.Directive({exportAs:"kendoMenuHierarchyBinding",selector:"[kendoMenuHierarchyBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],t)}(a.BindingDirectiveBase);t.HierarchyBindingDirective=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["textField","urlField","iconField","disabledField","cssClassField","cssStyleField","separatorField"],i=function(){function e(e){this.menu=e}return e.prototype.ngOnChanges=function(){this.rebind()},e.prototype.rebind=function(){for(var e=this.fields=[],t=0;t<n.length;t++){var i=n[t],o=this[i];o&&e.push({target:i.replace("Field",""),source:o})}this.menu.items=this.data?this.mapItems(this.data):[]},e}();t.BindingDirectiveBase=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,i={};i.undefined=function(e){return e},t.getter=function(e){if(i[e])return i[e];var t=[];return e.replace(n,function(e,n,i,o){t.push(void 0!==n?n:i||o)}),i[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},i[e]},t.last=function(e){return e[e.length-1]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(16),a=n(29),s=n(30),p=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.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),p=s.getter(this.idField)(r),c=s.getter(this.parentIdField)(r);if(null===c||void 0===c)n.push(a);else{var u=i[c]=i[c]||{};u.items=u.items||[],u.items.push(a)}i[p]&&(a.items=i[p].items),i[p]=a}return n},t.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,a=o.target;t[a]=s.getter(r)(e)}return t},i.__decorate([o.Input("kendoMenuFlatBinding"),i.__metadata("design:type",Array)],t.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"idField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"parentIdField",void 0),t=i.__decorate([o.Directive({exportAs:"kendoMenuFlatBinding",selector:"[kendoMenuFlatBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],t)}(a.BindingDirectiveBase);t.FlatBindingDirective=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(33),a=n(24),s=n(1),p=n(17),c=n(21),u=n(22),l=n(25),d=n(26),m=n(18),h=n(19),v=n(20),f=n(28),_=n(31),g=[s.MenuComponent,p.MenuItemComponent,m.ItemTemplateDirective,h.ItemLinkTemplateDirective,v.ItemContentTemplateDirective,f.HierarchyBindingDirective,_.FlatBindingDirective,l.LinkDirective,d.ExpandArrowDirective],y=g.concat([c.ListComponent,u.ItemComponent]),b=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[y],exports:[g],imports:[a.PopupModule,r.CommonModule]})],e)}();t.MenuModule=b},function(e,t){e.exports=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e}();t.ContextMenuEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(34),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o.ContextMenuEvent);t.ContextMenuSelectEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(8),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(o.PreventableEvent);t.ContextMenuPopupEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ContextMenuTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),a=n(24),s=n(16),p=n(36),c=n(15),u=n(39),l=n(37),d=n(13),m=n(9),h=n(5),v=n(40),f=n(42),_=n(9),g=n(14),y="contextmenu",b={horizontal:"left",vertical:"bottom"},C={horizontal:"left",vertical:"top"},I={horizontal:"fit",vertical:"flip"},x=function(e){function t(t,n,i,r){var a=e.call(this)||this;return a.popupService=t,a.service=n,a.ngZone=i,a.renderer=r,a.showOn=y,a.alignToAnchor=!1,a.vertical=!0,a.popupOpen=new o.EventEmitter,a.popupClose=new o.EventEmitter,a.select=new o.EventEmitter,a.open=new o.EventEmitter,a.close=new o.EventEmitter,a.service.owner=a,a.popupKeyDownHandler=a.popupKeyDownHandler.bind(a),a}return i.__extends(t,e),n=t,t.prototype.hide=function(){this.removePopup()},t.prototype.show=function(e){if(e){var t=e;this.removePopup(),m.defined(t.left)&&m.defined(t.top)?this.createPopup({offset:t}):(this.currentTarget=t.nativeElement||t,this.createPopup({anchor:this.currentTarget}))}},t.prototype.ngOnChanges=function(e){(e.target||e.showOn)&&this.bindShowHandler()},t.prototype.ngOnInit=function(){var e=this;this.ngZone.runOutsideAngular(function(){var t=e.renderer.listen("document","mousedown",function(t){e.popupRef&&!d.closest(t.target,function(t){return t===e.popupRef.popupElement})&&e.service.leaveMenu(t)&&e.closePopup(t)}),n=e.renderer.listen("window","blur",function(t){e.popupRef&&e.closePopup(t)});e.closeSubscription=function(){t(),n()}})},t.prototype.ngOnDestroy=function(){this.closeSubscription&&(this.closeSubscription(),this.closeSubscription=null),this.unbindShowHandler(),this.removePopup()},t.prototype.emitMenuEvent=function(e,t){t.target=this.currentTarget,t.sender=this,this[e].emit(t),"select"!==e||t.hasContent||this.closeAndFocus(t.originalEvent)},t.prototype.bindShowHandler=function(){var e=this;this.unbindShowHandler(),this.ngZone.runOutsideAngular(function(){var t=e.targetElement();if(t){var n=e.showOn||y;e.showSubscription=e.renderer.listen(t,e.showOn||y,function(n){e.showContextMenu(n,t)}),n===y&&(e.keydownSubscription=e.renderer.listen(t,"keydown",function(n){n.shiftKey&&n.keyCode===g.KeyCodes.F10&&e.showContextMenu(n,t)}))}})},t.prototype.showContextMenu=function(e,t){var n=this,i=this.targetFilter();if(this.currentTarget=t,i){var o=this.currentTarget=d.findInContainer(e.target,i,t);if(o&&o!==e.target&&d.isFocusable(e.target))return void(this.currentTarget=null);o&&this.directiveTarget&&(this.currentTarget=this.target.targetService.find(o))}return this.currentTarget?void this.ngZone.run(function(){n.closePopup(e)||n.openPopup(e)}):void this.closePopup(e)},t.prototype.unbindShowHandler=function(){this.showSubscription&&(this.showSubscription(),this.showSubscription=null),this.keydownSubscription&&(this.keydownSubscription(),this.keydownSubscription=null)},t.prototype.targetElement=function(){if("undefined"!=typeof document){this.directiveTarget=!1;var e=this.target;return"string"==typeof e?e=document.querySelector(e):e&&e.nativeElement?e=e.nativeElement:e instanceof v.ContextMenuTargetContainerDirective&&(e=e.element,this.directiveTarget=!0),e}},t.prototype.targetFilter=function(){return this.directiveTarget?"."+f.TARGET_CLASS:this.filter},t.prototype.closePopup=function(e){var t=this;if(this.popupRef)return this.popupAction("popupClose",e,function(){t.removePopup()})},t.prototype.removePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.currentTarget=null),this.popupKeydownSubscription&&(this.popupKeydownSubscription(),this.popupKeydownSubscription=null)},t.prototype.openPopup=function(e){var t=this;this.popupAction("popupOpen",e,function(){e.preventDefault();var n,i;t.alignToAnchor||"keydown"===e.type?n=t.currentTargetElement:i={left:e.pageX,top:e.pageY},t.createPopup({anchor:n,offset:i})})},t.prototype.createPopup=function(e){var t=this;this.popupRef=this.popupService.open(Object.assign({animate:!m.defined(this.popupAnimate)||this.popupAnimate,appendTo:this.appendTo,collision:this.collision||I,popupAlign:this.popupAlign||C,anchorAlign:this.anchorAlign||b,content:this.contentTemplate?this.contentTemplate.templateRef:this.defaultContentTemplate},e));var n=this.popupRef.popupElement;this.renderer.setAttribute(n,"tabindex","-1"),this.renderer.setStyle(n,"outline","0"),this.ariaLabel&&this.renderer.setAttribute(n,"aria-label",this.ariaLabel),this.activeTarget=this.currentTargetElement===document.activeElement,this.ngZone.runOutsideAngular(function(){t.popupKeydownSubscription=t.renderer.listen(n,"keydown",t.popupKeyDownHandler)}),n.focus()},t.prototype.closeAndFocus=function(e){var t=this.currentTargetElement;!this.closePopup(e)&&this.activeTarget&&t.focus()},t.prototype.popupKeyDownHandler=function(e){var t=this.popupRef.popupElement;e.keyCode!==g.KeyCodes.ESC||!d.hasClass(e.target,"k-menu-item")&&e.target!==t?e.target===t&&this.service.keydown.emit(e):this.closeAndFocus(e)},t.prototype.popupAction=function(e,t,n){var i=this,o=this[e],r=!1;return m.hasObservers(o)?this.ngZone.run(function(){var e=new p.ContextMenuPopupEvent({originalEvent:t,sender:i,target:i.currentTarget});o.emit(e),e.isDefaultPrevented()||n(),r=e.isDefaultPrevented()}):n(),r},Object.defineProperty(t.prototype,"currentTargetElement",{get:function(){return this.directiveTarget&&this.currentTarget?this.currentTarget.element:this.currentTarget},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"showOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"target",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"alignToAnchor",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"popupAnimate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"popupAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"anchorAlign",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],t.prototype,"collision",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.ViewContainerRef)],t.prototype,"appendTo",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"ariaLabel",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"popupOpen",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"popupClose",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"select",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],t.prototype,"close",void 0),i.__decorate([o.ContentChild(l.ContextMenuTemplateDirective),i.__metadata("design:type",l.ContextMenuTemplateDirective)],t.prototype,"contentTemplate",void 0),i.__decorate([o.ViewChild("default"),i.__metadata("design:type",o.TemplateRef)],t.prototype,"defaultContentTemplate",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoContextMenu",providers:[c.ContextMenuService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.contextmenu"},{provide:h.ItemsService,useClass:u.ContextMenuItemsService},{provide:s.MenuBase,useExisting:o.forwardRef(function(){return n})},a.PopupService,{provide:a.POPUP_CONTAINER,useFactory:_.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 '}),i.__metadata("design:paramtypes",[a.PopupService,c.ContextMenuService,o.NgZone,o.Renderer2])],t);var n}(s.MenuBase);t.ContextMenuComponent=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(15),a=function(){function e(e){this.contextService=e}return e.prototype.get=function(e){if(this.contextService.items)return this.contextService.items.get(e)},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.ContextMenuService])],e)}();t.ContextMenuItemsService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(41),a=function(){function e(e,t){this.targetService=t,e&&(this.element=e.nativeElement)}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTargetContainer]",exportAs:"kendoContextMenuTargetContainer",providers:[r.ContextMenuTargetService]}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetContainerDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){this.targets=[]}return e.prototype.add=function(e){this.targets.push(e)},e.prototype.remove=function(e){var t=this.targets.indexOf(e);this.targets.splice(t,1)},e.prototype.find=function(e){return this.targets.find(function(t){return t.element===e})},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuTargetService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(41);t.TARGET_CLASS="k-contextmenu-target";var a=function(){function e(e,t){this.targetService=t,this.hostClass=!0,e&&(this.element=e.nativeElement),t.add(this)}return e.prototype.ngOnDestroy=function(){this.targetService.remove(this)},i.__decorate([o.Input("kendoContextMenuTarget"),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.HostBinding("class."+t.TARGET_CLASS),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([o.Directive({selector:"[kendoContextMenuTarget]",exportAs:"kendoContextMenuTarget"}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(33),a=n(24),s=n(32),p=n(38),c=n(37),u=n(42),l=n(40),d=[p.ContextMenuComponent,c.ContextMenuTemplateDirective,u.ContextMenuTargetDirective,l.ContextMenuTargetContainerDirective],m=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[d],exports:[d,s.MenuModule],imports:[a.PopupModule,r.CommonModule,s.MenuModule]})],e)}();t.ContextMenuModule=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(32),a=n(43),s=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[r.MenuModule,a.ContextMenuModule]})],e)}();t.MenusModule=s}])}); |
@@ -141,3 +141,3 @@ import * as tslib_1 from "tslib"; | ||
if (name === 'select' && !args.hasContent) { | ||
this.closePopup(args.originalEvent); | ||
this.closeAndFocus(args.originalEvent); | ||
} | ||
@@ -280,9 +280,12 @@ }; | ||
}; | ||
ContextMenuComponent.prototype.closeAndFocus = function (e) { | ||
var currentTarget = this.currentTargetElement; | ||
if (!this.closePopup(e) && this.activeTarget) { | ||
currentTarget.focus(); | ||
} | ||
}; | ||
ContextMenuComponent.prototype.popupKeyDownHandler = function (e) { | ||
var element = this.popupRef.popupElement; | ||
if (e.keyCode === KeyCodes.ESC && (hasClass(e.target, 'k-menu-item') || e.target === element)) { | ||
var currentTarget = this.currentTargetElement; | ||
if (!this.closePopup(e) && this.activeTarget) { | ||
currentTarget.focus(); | ||
} | ||
this.closeAndFocus(e); | ||
} | ||
@@ -289,0 +292,0 @@ else if (e.target === element) { |
@@ -5,11 +5,10 @@ /** | ||
export * from './main'; | ||
export { NODE_INDEX as ɵg } from './constants'; | ||
export { ContextMenuItemsService as ɵk } from './context-menu/context-menu-items.service'; | ||
export { ContextMenuTargetContainerDirective as ɵn } from './context-menu/context-menu-target-container.directive'; | ||
export { ContextMenuTargetDirective as ɵl } from './context-menu/context-menu-target.directive'; | ||
export { ContextMenuTargetService as ɵm } from './context-menu/context-menu-target.service'; | ||
export { ContextMenuService as ɵf } from './context-menu/context-menu.service'; | ||
export { BindingDirectiveBase as ɵj } from './data-binding/binding-directive-base'; | ||
export { NODE_INDEX as ɵf } from './constants'; | ||
export { ContextMenuItemsService as ɵj } from './context-menu/context-menu-items.service'; | ||
export { ContextMenuTargetContainerDirective as ɵm } from './context-menu/context-menu-target-container.directive'; | ||
export { ContextMenuTargetDirective as ɵk } from './context-menu/context-menu-target.directive'; | ||
export { ContextMenuTargetService as ɵl } from './context-menu/context-menu-target.service'; | ||
export { BindingDirectiveBase as ɵi } from './data-binding/binding-directive-base'; | ||
export { MenuBase as ɵa } from './menu-base'; | ||
export { PreventableEvent as ɵi } from './preventable-event'; | ||
export { PreventableEvent as ɵh } from './preventable-event'; | ||
export { ActionsService as ɵc } from './services/actions.service'; | ||
@@ -19,2 +18,2 @@ export { HoverService as ɵe } from './services/hover.service'; | ||
export { NavigationService as ɵd } from './services/navigation.service'; | ||
export { bodyFactory as ɵh } from './utils'; | ||
export { bodyFactory as ɵg } from './utils'; |
@@ -21,2 +21,3 @@ export { MenuComponent } from './menu.component'; | ||
export { ContextMenuModule } from './context-menu/context-menu.module'; | ||
export { ContextMenuService } from './context-menu/context-menu.service'; | ||
export { MenusModule } from './menus.module'; |
@@ -134,2 +134,3 @@ import { OnInit, OnChanges, OnDestroy, EventEmitter, NgZone, Renderer2, TemplateRef, ElementRef, ViewContainerRef } from '@angular/core'; | ||
private createPopup(options); | ||
private closeAndFocus(e); | ||
private popupKeyDownHandler(e); | ||
@@ -136,0 +137,0 @@ private popupAction(name, originalEvent, callback); |
@@ -137,3 +137,3 @@ import { Component, Input, ContentChild, ViewChild, EventEmitter, Output, NgZone, Renderer2, forwardRef } from '@angular/core'; | ||
if (name === 'select' && !args.hasContent) { | ||
this.closePopup(args.originalEvent); | ||
this.closeAndFocus(args.originalEvent); | ||
} | ||
@@ -271,9 +271,12 @@ } | ||
} | ||
closeAndFocus(e) { | ||
const currentTarget = this.currentTargetElement; | ||
if (!this.closePopup(e) && this.activeTarget) { | ||
currentTarget.focus(); | ||
} | ||
} | ||
popupKeyDownHandler(e) { | ||
const element = this.popupRef.popupElement; | ||
if (e.keyCode === KeyCodes.ESC && (hasClass(e.target, 'k-menu-item') || e.target === element)) { | ||
const currentTarget = this.currentTargetElement; | ||
if (!this.closePopup(e) && this.activeTarget) { | ||
currentTarget.focus(); | ||
} | ||
this.closeAndFocus(e); | ||
} | ||
@@ -280,0 +283,0 @@ else if (e.target === element) { |
@@ -5,11 +5,10 @@ /** | ||
export * from './main'; | ||
export { NODE_INDEX as ɵg } from './constants'; | ||
export { ContextMenuItemsService as ɵk } from './context-menu/context-menu-items.service'; | ||
export { ContextMenuTargetContainerDirective as ɵn } from './context-menu/context-menu-target-container.directive'; | ||
export { ContextMenuTargetDirective as ɵl } from './context-menu/context-menu-target.directive'; | ||
export { ContextMenuTargetService as ɵm } from './context-menu/context-menu-target.service'; | ||
export { ContextMenuService as ɵf } from './context-menu/context-menu.service'; | ||
export { BindingDirectiveBase as ɵj } from './data-binding/binding-directive-base'; | ||
export { NODE_INDEX as ɵf } from './constants'; | ||
export { ContextMenuItemsService as ɵj } from './context-menu/context-menu-items.service'; | ||
export { ContextMenuTargetContainerDirective as ɵm } from './context-menu/context-menu-target-container.directive'; | ||
export { ContextMenuTargetDirective as ɵk } from './context-menu/context-menu-target.directive'; | ||
export { ContextMenuTargetService as ɵl } from './context-menu/context-menu-target.service'; | ||
export { BindingDirectiveBase as ɵi } from './data-binding/binding-directive-base'; | ||
export { MenuBase as ɵa } from './menu-base'; | ||
export { PreventableEvent as ɵi } from './preventable-event'; | ||
export { PreventableEvent as ɵh } from './preventable-event'; | ||
export { ActionsService as ɵc } from './services/actions.service'; | ||
@@ -19,2 +18,2 @@ export { HoverService as ɵe } from './services/hover.service'; | ||
export { NavigationService as ɵd } from './services/navigation.service'; | ||
export { bodyFactory as ɵh } from './utils'; | ||
export { bodyFactory as ɵg } from './utils'; |
@@ -5,11 +5,10 @@ /** | ||
export * from './main'; | ||
export { NODE_INDEX as ɵg } from './constants'; | ||
export { ContextMenuItemsService as ɵk } from './context-menu/context-menu-items.service'; | ||
export { ContextMenuTargetContainerDirective as ɵn } from './context-menu/context-menu-target-container.directive'; | ||
export { ContextMenuTargetDirective as ɵl } from './context-menu/context-menu-target.directive'; | ||
export { ContextMenuTargetService as ɵm } from './context-menu/context-menu-target.service'; | ||
export { ContextMenuService as ɵf } from './context-menu/context-menu.service'; | ||
export { BindingDirectiveBase as ɵj } from './data-binding/binding-directive-base'; | ||
export { NODE_INDEX as ɵf } from './constants'; | ||
export { ContextMenuItemsService as ɵj } from './context-menu/context-menu-items.service'; | ||
export { ContextMenuTargetContainerDirective as ɵm } from './context-menu/context-menu-target-container.directive'; | ||
export { ContextMenuTargetDirective as ɵk } from './context-menu/context-menu-target.directive'; | ||
export { ContextMenuTargetService as ɵl } from './context-menu/context-menu-target.service'; | ||
export { BindingDirectiveBase as ɵi } from './data-binding/binding-directive-base'; | ||
export { MenuBase as ɵa } from './menu-base'; | ||
export { PreventableEvent as ɵi } from './preventable-event'; | ||
export { PreventableEvent as ɵh } from './preventable-event'; | ||
export { ActionsService as ɵc } from './services/actions.service'; | ||
@@ -19,2 +18,2 @@ export { HoverService as ɵe } from './services/hover.service'; | ||
export { NavigationService as ɵd } from './services/navigation.service'; | ||
export { bodyFactory as ɵh } from './utils'; | ||
export { bodyFactory as ɵg } from './utils'; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":3,"metadata":{"MenuComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"exportAs":"kendoMenu","providers":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService"},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX"},"useValue":"kendo.menu"},{"provide":{"__symbolic":"reference","name":"ɵa"},"useExisting":{"__symbolic":"reference","name":"MenuComponent"}}],"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 "}]}],"members":{"menuItemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"menuItemLinkTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"select":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"open":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-rtl"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ɵf"}]}],"toggle":[{"__symbolic":"method"}],"focus":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewChecked":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"attachCloseClick":[{"__symbolic":"method"}],"unsubscribeClick":[{"__symbolic":"method"}],"contextKeyDown":[{"__symbolic":"method"}]}},"ListComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"[kendoMenuList]","template":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":"\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.","right":{"__symbolic":"reference","name":"ɵg"}},"right":"]=\"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 "}}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"level":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"animate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"vertical":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rtl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"openOnClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemLinkTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"hierarchyIndex":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"initDomEvents":[{"__symbolic":"method"}],"leavesMenu":[{"__symbolic":"method"}],"onLeave":[{"__symbolic":"method"}],"nodeItem":[{"__symbolic":"method"}],"clickHandler":[{"__symbolic":"method"}]}},"ItemComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"providers":[{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupService"},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"POPUP_CONTAINER"},"useFactory":{"__symbolic":"reference","name":"ɵh"}}],"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 "}]}],"members":{"item":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"level":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"siblingIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"animate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"vertical":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rtl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"openOnClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemLinkTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"link":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["link"]}]}],"popupTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["popupTemplate"]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.aria-disabled"]}]}],"hasPopup":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.aria-haspopup"]}]}],"expanded":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.aria-expanded"]}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.aria-label"]}]}],"activeId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.tabindex"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupService"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"hasContentTemplates":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"focus":[{"__symbolic":"method"}],"toggleActive":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"navigate":[{"__symbolic":"method"}],"setAttribute":[{"__symbolic":"method"}]}},"LinkDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoMenuItemLink]"}]}],"members":{"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["kendoMenuItemLink"]}]}],"hostClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-link"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-menu-link"]}]}],"role":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.role"]}]}],"tabindex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.tabindex"]}]}],"activeClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-state-active"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"ExpandArrowDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoMenuExpandArrow]"}]}],"members":{"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["kendoMenuExpandArrow"]}]}],"hostClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-icon"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-menu-expand-arrow"]}]}],"role":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.role"]}]}],"arrowDown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-i-arrow-60-down"]}]}],"arrowRight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-i-arrow-60-right"]}]}],"arrowLeft":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-i-arrow-60-left"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"MenuItemComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"kendo-menu-item","template":""}]}],"members":{"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"icon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"separator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ItemTemplateDirective"}]}]}],"itemLinkTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ItemLinkTemplateDirective"}]}]}],"itemContentTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ItemContentTemplateDirective"}]}]}],"children":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"MenuItemComponent"}]}]}]}},"MenuAnimation":{"__symbolic":"interface"},"MenuItem":{"__symbolic":"interface"},"MenuEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵi"},"members":{}},"MenuSelectEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"MenuEvent"},"members":{}},"OpenOnClickSettings":{"__symbolic":"interface"},"ItemContentTemplateDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoMenuItemContentTemplate]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ItemTemplateDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoMenuItemTemplate]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ItemLinkTemplateDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoMenuItemLinkTemplate]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"HierarchyBindingDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵj"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoMenuHierarchyBinding","selector":"[kendoMenuHierarchyBinding]"}]}],"members":{"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["kendoMenuHierarchyBinding"]}]}],"textField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urlField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"iconField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"disabledField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssClassField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssStyleField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"separatorField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"childrenField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"mapItems":[{"__symbolic":"method"}],"createItem":[{"__symbolic":"method"}],"getChildren":[{"__symbolic":"method"}]}},"FlatBindingDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵj"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoMenuFlatBinding","selector":"[kendoMenuFlatBinding]"}]}],"members":{"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["kendoMenuFlatBinding"]}]}],"textField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urlField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"iconField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"disabledField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssClassField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssStyleField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"separatorField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"idField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"parentIdField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"mapItems":[{"__symbolic":"method"}],"createItem":[{"__symbolic":"method"}]}},"MenuModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"MenuComponent"},{"__symbolic":"reference","name":"MenuItemComponent"},{"__symbolic":"reference","name":"ItemTemplateDirective"},{"__symbolic":"reference","name":"ItemLinkTemplateDirective"},{"__symbolic":"reference","name":"ItemContentTemplateDirective"},{"__symbolic":"reference","name":"HierarchyBindingDirective"},{"__symbolic":"reference","name":"FlatBindingDirective"},{"__symbolic":"reference","name":"LinkDirective"},{"__symbolic":"reference","name":"ExpandArrowDirective"},{"__symbolic":"reference","name":"ListComponent"},{"__symbolic":"reference","name":"ItemComponent"}]],"exports":[[{"__symbolic":"reference","name":"MenuComponent"},{"__symbolic":"reference","name":"MenuItemComponent"},{"__symbolic":"reference","name":"ItemTemplateDirective"},{"__symbolic":"reference","name":"ItemLinkTemplateDirective"},{"__symbolic":"reference","name":"ItemContentTemplateDirective"},{"__symbolic":"reference","name":"HierarchyBindingDirective"},{"__symbolic":"reference","name":"FlatBindingDirective"},{"__symbolic":"reference","name":"LinkDirective"},{"__symbolic":"reference","name":"ExpandArrowDirective"}]],"imports":[{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupModule"},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}]}]}],"members":{}},"ContextMenuEvent":{"__symbolic":"class","members":{}},"ContextMenuSelectEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ContextMenuEvent"},"members":{}},"ContextMenuPopupEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵi"},"members":{}},"ContextMenuTemplateDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoContextMenuTemplate]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ContextMenuComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"exportAs":"kendoContextMenu","providers":[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService"},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX"},"useValue":"kendo.contextmenu"},{"provide":{"__symbolic":"reference","name":"ɵb"},"useClass":{"__symbolic":"reference","name":"ɵk"}},{"provide":{"__symbolic":"reference","name":"ɵa"},"useExisting":{"__symbolic":"reference","name":"ContextMenuComponent"}},{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupService"},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"POPUP_CONTAINER"},"useFactory":{"__symbolic":"reference","name":"ɵh"}}],"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 "}]}],"members":{"showOn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"target":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"filter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"alignToAnchor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"vertical":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"popupAnimate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"popupAlign":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorAlign":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"collision":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ariaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"popupOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"popupClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"select":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"open":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"contentTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ContextMenuTemplateDirective"}]}]}],"defaultContentTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["default"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupService"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"}]}],"hide":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"emitMenuEvent":[{"__symbolic":"method"}],"bindShowHandler":[{"__symbolic":"method"}],"showContextMenu":[{"__symbolic":"method"}],"unbindShowHandler":[{"__symbolic":"method"}],"targetElement":[{"__symbolic":"method"}],"targetFilter":[{"__symbolic":"method"}],"closePopup":[{"__symbolic":"method"}],"removePopup":[{"__symbolic":"method"}],"openPopup":[{"__symbolic":"method"}],"createPopup":[{"__symbolic":"method"}],"popupKeyDownHandler":[{"__symbolic":"method"}],"popupAction":[{"__symbolic":"method"}]}},"ContextMenuModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"ContextMenuComponent"},{"__symbolic":"reference","name":"ContextMenuTemplateDirective"},{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","name":"ɵn"}]],"exports":[[{"__symbolic":"reference","name":"ContextMenuComponent"},{"__symbolic":"reference","name":"ContextMenuTemplateDirective"},{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","name":"ɵn"}],{"__symbolic":"reference","name":"MenuModule"}],"imports":[{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupModule"},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","name":"MenuModule"}]}]}],"members":{}},"MenusModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"exports":[{"__symbolic":"reference","name":"MenuModule"},{"__symbolic":"reference","name":"ContextMenuModule"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"vertical":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"openOnClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"hoverDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"animate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ItemTemplateDirective"}]}]}],"itemLinkTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ItemLinkTemplateDirective"}]}]}],"children":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"MenuItemComponent"}]}]}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"childId":[{"__symbolic":"method"}],"itemIndex":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"add":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"addList":[{"__symbolic":"method"}],"removeList":[{"__symbolic":"method"}],"containsList":[{"__symbolic":"method"}],"siblings":[{"__symbolic":"method"}],"otherSiblings":[{"__symbolic":"method"}],"children":[{"__symbolic":"method"}],"parent":[{"__symbolic":"method"}],"root":[{"__symbolic":"method"}],"indices":[{"__symbolic":"method"}],"filter":[{"__symbolic":"method"}],"previous":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"hasParent":[{"__symbolic":"method"}],"areSiblings":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}],"parentIndex":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","name":"ɵb"}]}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"closeItem":[{"__symbolic":"method"}],"closeToRoot":[{"__symbolic":"method"}],"closeOthers":[{"__symbolic":"method"}],"closeAll":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"emit":[{"__symbolic":"method"}],"execute":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"executeActions":[{"__symbolic":"method"}],"requiresZone":[{"__symbolic":"method"}],"closeChildren":[{"__symbolic":"method"}],"closeItems":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"focus":[{"__symbolic":"method"}],"setFocus":[{"__symbolic":"method"}],"focusLeave":[{"__symbolic":"method"}],"updateActive":[{"__symbolic":"method"}],"keydown":[{"__symbolic":"method"}],"focusIndex":[{"__symbolic":"method"}],"focusFirst":[{"__symbolic":"method"}],"focusLast":[{"__symbolic":"method"}],"search":[{"__symbolic":"method"}],"down":[{"__symbolic":"method"}],"up":[{"__symbolic":"method"}],"left":[{"__symbolic":"method"}],"right":[{"__symbolic":"method"}],"home":[{"__symbolic":"method"}],"end":[{"__symbolic":"method"}],"enter":[{"__symbolic":"method"}],"esc":[{"__symbolic":"method"}],"tab":[{"__symbolic":"method"}],"focusChild":[{"__symbolic":"method"}],"setActive":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵb"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"over":[{"__symbolic":"method"}],"leave":[{"__symbolic":"method"}],"closeCurrent":[{"__symbolic":"method"}],"scheduleActions":[{"__symbolic":"method"}],"scheduleDisableOpenOnOver":[{"__symbolic":"method"}],"removeScheduled":[{"__symbolic":"method"}],"cancelActions":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"emit":[{"__symbolic":"method"}],"hasObservers":[{"__symbolic":"method"}],"leaveMenu":[{"__symbolic":"method"}]}},"ɵg":"data-kendo-menu-index","ɵh":{"__symbolic":"error","message":"Function call not supported","line":15,"character":27,"module":"./utils"},"ɵi":{"__symbolic":"class","members":{"preventDefault":[{"__symbolic":"method"}],"isDefaultPrevented":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}]}},"ɵj":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnChanges":[{"__symbolic":"method"}],"rebind":[{"__symbolic":"method"}],"mapItems":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵf"}]}],"get":[{"__symbolic":"method"}]}},"ɵl":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoContextMenuTarget]","exportAs":"kendoContextMenuTarget"}]}],"members":{"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["kendoContextMenuTarget"]}]}],"hostClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-contextmenu-target"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","name":"ɵm"}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵm":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"add":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"find":[{"__symbolic":"method"}]}},"ɵn":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoContextMenuTargetContainer]","exportAs":"kendoContextMenuTargetContainer","providers":[{"__symbolic":"reference","name":"ɵm"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","name":"ɵm"}]}]}}},"origins":{"MenuComponent":"./menu.component","ListComponent":"./rendering/list.component","ItemComponent":"./rendering/item.component","LinkDirective":"./rendering/link.directive","ExpandArrowDirective":"./rendering/arrow.directive","MenuItemComponent":"./menu-item.component","MenuAnimation":"./menu-animation.interface","MenuItem":"./menu-item.interface","MenuEvent":"./menu-event","MenuSelectEvent":"./menu-select-event","OpenOnClickSettings":"./open-on-click-settings","ItemContentTemplateDirective":"./templates/item-content-template.directive","ItemTemplateDirective":"./templates/item-template.directive","ItemLinkTemplateDirective":"./templates/item-link-template.directive","HierarchyBindingDirective":"./data-binding/hierachy-binding.directive","FlatBindingDirective":"./data-binding/flat-binding.directive","MenuModule":"./menu.module","ContextMenuEvent":"./context-menu/context-menu-event","ContextMenuSelectEvent":"./context-menu/context-menu-select-event","ContextMenuPopupEvent":"./context-menu/context-menu-popup-event","ContextMenuTemplateDirective":"./context-menu/context-menu-template.directive","ContextMenuComponent":"./context-menu/context-menu.component","ContextMenuModule":"./context-menu/context-menu.module","MenusModule":"./menus.module","ɵa":"./menu-base","ɵb":"./services/items.service","ɵc":"./services/actions.service","ɵd":"./services/navigation.service","ɵe":"./services/hover.service","ɵf":"./context-menu/context-menu.service","ɵg":"./constants","ɵh":"./utils","ɵi":"./preventable-event","ɵj":"./data-binding/binding-directive-base","ɵk":"./context-menu/context-menu-items.service","ɵl":"./context-menu/context-menu-target.directive","ɵm":"./context-menu/context-menu-target.service","ɵn":"./context-menu/context-menu-target-container.directive"},"importAs":"@progress/kendo-angular-menu"} | ||
{"__symbolic":"module","version":3,"metadata":{"MenuComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"exportAs":"kendoMenu","providers":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService"},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX"},"useValue":"kendo.menu"},{"provide":{"__symbolic":"reference","name":"ɵa"},"useExisting":{"__symbolic":"reference","name":"MenuComponent"}}],"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 "}]}],"members":{"menuItemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"menuItemLinkTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"select":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"open":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-rtl"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","name":"ContextMenuService"}]}],"toggle":[{"__symbolic":"method"}],"focus":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewChecked":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"attachCloseClick":[{"__symbolic":"method"}],"unsubscribeClick":[{"__symbolic":"method"}],"contextKeyDown":[{"__symbolic":"method"}]}},"ListComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"[kendoMenuList]","template":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":"\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.","right":{"__symbolic":"reference","name":"ɵf"}},"right":"]=\"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 "}}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"level":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"animate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"vertical":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rtl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"openOnClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemLinkTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"hierarchyIndex":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"initDomEvents":[{"__symbolic":"method"}],"leavesMenu":[{"__symbolic":"method"}],"onLeave":[{"__symbolic":"method"}],"nodeItem":[{"__symbolic":"method"}],"clickHandler":[{"__symbolic":"method"}]}},"ItemComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"providers":[{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupService"},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"POPUP_CONTAINER"},"useFactory":{"__symbolic":"reference","name":"ɵg"}}],"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 "}]}],"members":{"item":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"level":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"siblingIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"animate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"vertical":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rtl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"openOnClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemLinkTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"link":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["link"]}]}],"popupTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["popupTemplate"]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.aria-disabled"]}]}],"hasPopup":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.aria-haspopup"]}]}],"expanded":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.aria-expanded"]}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.aria-label"]}]}],"activeId":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.tabindex"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupService"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"hasContentTemplates":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"focus":[{"__symbolic":"method"}],"toggleActive":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"navigate":[{"__symbolic":"method"}],"setAttribute":[{"__symbolic":"method"}]}},"LinkDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoMenuItemLink]"}]}],"members":{"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["kendoMenuItemLink"]}]}],"hostClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-link"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-menu-link"]}]}],"role":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.role"]}]}],"tabindex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.tabindex"]}]}],"activeClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-state-active"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"ExpandArrowDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoMenuExpandArrow]"}]}],"members":{"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["kendoMenuExpandArrow"]}]}],"hostClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-icon"]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-menu-expand-arrow"]}]}],"role":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["attr.role"]}]}],"arrowDown":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-i-arrow-60-down"]}]}],"arrowRight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-i-arrow-60-right"]}]}],"arrowLeft":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-i-arrow-60-left"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"MenuItemComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"kendo-menu-item","template":""}]}],"members":{"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"icon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"separator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ItemTemplateDirective"}]}]}],"itemLinkTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ItemLinkTemplateDirective"}]}]}],"itemContentTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ItemContentTemplateDirective"}]}]}],"children":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"MenuItemComponent"}]}]}]}},"MenuAnimation":{"__symbolic":"interface"},"MenuItem":{"__symbolic":"interface"},"MenuEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵh"},"members":{}},"MenuSelectEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"MenuEvent"},"members":{}},"OpenOnClickSettings":{"__symbolic":"interface"},"ItemContentTemplateDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoMenuItemContentTemplate]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ItemTemplateDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoMenuItemTemplate]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ItemLinkTemplateDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoMenuItemLinkTemplate]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"HierarchyBindingDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵi"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoMenuHierarchyBinding","selector":"[kendoMenuHierarchyBinding]"}]}],"members":{"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["kendoMenuHierarchyBinding"]}]}],"textField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urlField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"iconField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"disabledField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssClassField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssStyleField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"separatorField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"childrenField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"mapItems":[{"__symbolic":"method"}],"createItem":[{"__symbolic":"method"}],"getChildren":[{"__symbolic":"method"}]}},"FlatBindingDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵi"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"exportAs":"kendoMenuFlatBinding","selector":"[kendoMenuFlatBinding]"}]}],"members":{"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["kendoMenuFlatBinding"]}]}],"textField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"urlField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"iconField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"disabledField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssClassField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cssStyleField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"separatorField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"idField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"parentIdField":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"mapItems":[{"__symbolic":"method"}],"createItem":[{"__symbolic":"method"}]}},"MenuModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"MenuComponent"},{"__symbolic":"reference","name":"MenuItemComponent"},{"__symbolic":"reference","name":"ItemTemplateDirective"},{"__symbolic":"reference","name":"ItemLinkTemplateDirective"},{"__symbolic":"reference","name":"ItemContentTemplateDirective"},{"__symbolic":"reference","name":"HierarchyBindingDirective"},{"__symbolic":"reference","name":"FlatBindingDirective"},{"__symbolic":"reference","name":"LinkDirective"},{"__symbolic":"reference","name":"ExpandArrowDirective"},{"__symbolic":"reference","name":"ListComponent"},{"__symbolic":"reference","name":"ItemComponent"}]],"exports":[[{"__symbolic":"reference","name":"MenuComponent"},{"__symbolic":"reference","name":"MenuItemComponent"},{"__symbolic":"reference","name":"ItemTemplateDirective"},{"__symbolic":"reference","name":"ItemLinkTemplateDirective"},{"__symbolic":"reference","name":"ItemContentTemplateDirective"},{"__symbolic":"reference","name":"HierarchyBindingDirective"},{"__symbolic":"reference","name":"FlatBindingDirective"},{"__symbolic":"reference","name":"LinkDirective"},{"__symbolic":"reference","name":"ExpandArrowDirective"}]],"imports":[{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupModule"},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}]}]}],"members":{}},"ContextMenuEvent":{"__symbolic":"class","members":{}},"ContextMenuSelectEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ContextMenuEvent"},"members":{}},"ContextMenuPopupEvent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵh"},"members":{}},"ContextMenuTemplateDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoContextMenuTemplate]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ContextMenuComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ɵa"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"exportAs":"kendoContextMenu","providers":[{"__symbolic":"reference","name":"ContextMenuService"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService"},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX"},"useValue":"kendo.contextmenu"},{"provide":{"__symbolic":"reference","name":"ɵb"},"useClass":{"__symbolic":"reference","name":"ɵj"}},{"provide":{"__symbolic":"reference","name":"ɵa"},"useExisting":{"__symbolic":"reference","name":"ContextMenuComponent"}},{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupService"},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"POPUP_CONTAINER"},"useFactory":{"__symbolic":"reference","name":"ɵg"}}],"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 "}]}],"members":{"showOn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"target":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"filter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"alignToAnchor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"vertical":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"popupAnimate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"popupAlign":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"anchorAlign":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"collision":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ariaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"popupOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"popupClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"select":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"open":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"contentTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ContextMenuTemplateDirective"}]}]}],"defaultContentTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["default"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupService"},{"__symbolic":"reference","name":"ContextMenuService"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"}]}],"hide":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"emitMenuEvent":[{"__symbolic":"method"}],"bindShowHandler":[{"__symbolic":"method"}],"showContextMenu":[{"__symbolic":"method"}],"unbindShowHandler":[{"__symbolic":"method"}],"targetElement":[{"__symbolic":"method"}],"targetFilter":[{"__symbolic":"method"}],"closePopup":[{"__symbolic":"method"}],"removePopup":[{"__symbolic":"method"}],"openPopup":[{"__symbolic":"method"}],"createPopup":[{"__symbolic":"method"}],"closeAndFocus":[{"__symbolic":"method"}],"popupKeyDownHandler":[{"__symbolic":"method"}],"popupAction":[{"__symbolic":"method"}]}},"ContextMenuModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"ContextMenuComponent"},{"__symbolic":"reference","name":"ContextMenuTemplateDirective"},{"__symbolic":"reference","name":"ɵk"},{"__symbolic":"reference","name":"ɵm"}]],"exports":[[{"__symbolic":"reference","name":"ContextMenuComponent"},{"__symbolic":"reference","name":"ContextMenuTemplateDirective"},{"__symbolic":"reference","name":"ɵk"},{"__symbolic":"reference","name":"ɵm"}],{"__symbolic":"reference","name":"MenuModule"}],"imports":[{"__symbolic":"reference","module":"@progress/kendo-angular-popup","name":"PopupModule"},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","name":"MenuModule"}]}]}],"members":{}},"ContextMenuService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"emit":[{"__symbolic":"method"}],"hasObservers":[{"__symbolic":"method"}],"leaveMenu":[{"__symbolic":"method"}]}},"MenusModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"exports":[{"__symbolic":"reference","name":"MenuModule"},{"__symbolic":"reference","name":"ContextMenuModule"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"vertical":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"openOnClick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"hoverDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"animate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"itemTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ItemTemplateDirective"}]}]}],"itemLinkTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ItemLinkTemplateDirective"}]}]}],"children":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"MenuItemComponent"}]}]}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"childId":[{"__symbolic":"method"}],"itemIndex":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"add":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"addList":[{"__symbolic":"method"}],"removeList":[{"__symbolic":"method"}],"containsList":[{"__symbolic":"method"}],"siblings":[{"__symbolic":"method"}],"otherSiblings":[{"__symbolic":"method"}],"children":[{"__symbolic":"method"}],"parent":[{"__symbolic":"method"}],"root":[{"__symbolic":"method"}],"indices":[{"__symbolic":"method"}],"filter":[{"__symbolic":"method"}],"previous":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"hasParent":[{"__symbolic":"method"}],"areSiblings":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}],"parentIndex":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","name":"ɵb"}]}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"closeItem":[{"__symbolic":"method"}],"closeToRoot":[{"__symbolic":"method"}],"closeOthers":[{"__symbolic":"method"}],"closeAll":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"emit":[{"__symbolic":"method"}],"execute":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"executeActions":[{"__symbolic":"method"}],"requiresZone":[{"__symbolic":"method"}],"closeChildren":[{"__symbolic":"method"}],"closeItems":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"focus":[{"__symbolic":"method"}],"setFocus":[{"__symbolic":"method"}],"focusLeave":[{"__symbolic":"method"}],"updateActive":[{"__symbolic":"method"}],"keydown":[{"__symbolic":"method"}],"focusIndex":[{"__symbolic":"method"}],"focusFirst":[{"__symbolic":"method"}],"focusLast":[{"__symbolic":"method"}],"search":[{"__symbolic":"method"}],"down":[{"__symbolic":"method"}],"up":[{"__symbolic":"method"}],"left":[{"__symbolic":"method"}],"right":[{"__symbolic":"method"}],"home":[{"__symbolic":"method"}],"end":[{"__symbolic":"method"}],"enter":[{"__symbolic":"method"}],"esc":[{"__symbolic":"method"}],"tab":[{"__symbolic":"method"}],"focusChild":[{"__symbolic":"method"}],"setActive":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵb"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"over":[{"__symbolic":"method"}],"leave":[{"__symbolic":"method"}],"closeCurrent":[{"__symbolic":"method"}],"scheduleActions":[{"__symbolic":"method"}],"scheduleDisableOpenOnOver":[{"__symbolic":"method"}],"removeScheduled":[{"__symbolic":"method"}],"cancelActions":[{"__symbolic":"method"}]}},"ɵf":"data-kendo-menu-index","ɵg":{"__symbolic":"error","message":"Function call not supported","line":15,"character":27,"module":"./utils"},"ɵh":{"__symbolic":"class","members":{"preventDefault":[{"__symbolic":"method"}],"isDefaultPrevented":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}]}},"ɵi":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnChanges":[{"__symbolic":"method"}],"rebind":[{"__symbolic":"method"}],"mapItems":[{"__symbolic":"method"}]}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ContextMenuService"}]}],"get":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoContextMenuTarget]","exportAs":"kendoContextMenuTarget"}]}],"members":{"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["kendoContextMenuTarget"]}]}],"hostClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.k-contextmenu-target"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","name":"ɵl"}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵl":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"add":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"find":[{"__symbolic":"method"}]}},"ɵm":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[kendoContextMenuTargetContainer]","exportAs":"kendoContextMenuTargetContainer","providers":[{"__symbolic":"reference","name":"ɵl"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","name":"ɵl"}]}]}}},"origins":{"MenuComponent":"./menu.component","ListComponent":"./rendering/list.component","ItemComponent":"./rendering/item.component","LinkDirective":"./rendering/link.directive","ExpandArrowDirective":"./rendering/arrow.directive","MenuItemComponent":"./menu-item.component","MenuAnimation":"./menu-animation.interface","MenuItem":"./menu-item.interface","MenuEvent":"./menu-event","MenuSelectEvent":"./menu-select-event","OpenOnClickSettings":"./open-on-click-settings","ItemContentTemplateDirective":"./templates/item-content-template.directive","ItemTemplateDirective":"./templates/item-template.directive","ItemLinkTemplateDirective":"./templates/item-link-template.directive","HierarchyBindingDirective":"./data-binding/hierachy-binding.directive","FlatBindingDirective":"./data-binding/flat-binding.directive","MenuModule":"./menu.module","ContextMenuEvent":"./context-menu/context-menu-event","ContextMenuSelectEvent":"./context-menu/context-menu-select-event","ContextMenuPopupEvent":"./context-menu/context-menu-popup-event","ContextMenuTemplateDirective":"./context-menu/context-menu-template.directive","ContextMenuComponent":"./context-menu/context-menu.component","ContextMenuModule":"./context-menu/context-menu.module","ContextMenuService":"./context-menu/context-menu.service","MenusModule":"./menus.module","ɵa":"./menu-base","ɵb":"./services/items.service","ɵc":"./services/actions.service","ɵd":"./services/navigation.service","ɵe":"./services/hover.service","ɵf":"./constants","ɵg":"./utils","ɵh":"./preventable-event","ɵi":"./data-binding/binding-directive-base","ɵj":"./context-menu/context-menu-items.service","ɵk":"./context-menu/context-menu-target.directive","ɵl":"./context-menu/context-menu-target.service","ɵm":"./context-menu/context-menu-target-container.directive"},"importAs":"@progress/kendo-angular-menu"} |
@@ -24,2 +24,3 @@ export { MenuComponent } from './menu.component'; | ||
export { ContextMenuModule } from './context-menu/context-menu.module'; | ||
export { ContextMenuService } from './context-menu/context-menu.service'; | ||
export { MenusModule } from './menus.module'; |
@@ -21,2 +21,3 @@ export { MenuComponent } from './menu.component'; | ||
export { ContextMenuModule } from './context-menu/context-menu.module'; | ||
export { ContextMenuService } from './context-menu/context-menu.service'; | ||
export { MenusModule } from './menus.module'; |
@@ -143,3 +143,3 @@ "use strict"; | ||
if (name === 'select' && !args.hasContent) { | ||
this.closePopup(args.originalEvent); | ||
this.closeAndFocus(args.originalEvent); | ||
} | ||
@@ -282,9 +282,12 @@ }; | ||
}; | ||
ContextMenuComponent.prototype.closeAndFocus = function (e) { | ||
var currentTarget = this.currentTargetElement; | ||
if (!this.closePopup(e) && this.activeTarget) { | ||
currentTarget.focus(); | ||
} | ||
}; | ||
ContextMenuComponent.prototype.popupKeyDownHandler = function (e) { | ||
var element = this.popupRef.popupElement; | ||
if (e.keyCode === constants_1.KeyCodes.ESC && (dom_queries_1.hasClass(e.target, 'k-menu-item') || e.target === element)) { | ||
var currentTarget = this.currentTargetElement; | ||
if (!this.closePopup(e) && this.activeTarget) { | ||
currentTarget.focus(); | ||
} | ||
this.closeAndFocus(e); | ||
} | ||
@@ -291,0 +294,0 @@ else if (e.target === element) { |
@@ -9,19 +9,17 @@ "use strict"; | ||
var constants_1 = require("./constants"); | ||
exports.ɵg = constants_1.NODE_INDEX; | ||
exports.ɵf = constants_1.NODE_INDEX; | ||
var context_menu_items_service_1 = require("./context-menu/context-menu-items.service"); | ||
exports.ɵk = context_menu_items_service_1.ContextMenuItemsService; | ||
exports.ɵj = context_menu_items_service_1.ContextMenuItemsService; | ||
var context_menu_target_container_directive_1 = require("./context-menu/context-menu-target-container.directive"); | ||
exports.ɵn = context_menu_target_container_directive_1.ContextMenuTargetContainerDirective; | ||
exports.ɵm = context_menu_target_container_directive_1.ContextMenuTargetContainerDirective; | ||
var context_menu_target_directive_1 = require("./context-menu/context-menu-target.directive"); | ||
exports.ɵl = context_menu_target_directive_1.ContextMenuTargetDirective; | ||
exports.ɵk = context_menu_target_directive_1.ContextMenuTargetDirective; | ||
var context_menu_target_service_1 = require("./context-menu/context-menu-target.service"); | ||
exports.ɵm = context_menu_target_service_1.ContextMenuTargetService; | ||
var context_menu_service_1 = require("./context-menu/context-menu.service"); | ||
exports.ɵf = context_menu_service_1.ContextMenuService; | ||
exports.ɵl = context_menu_target_service_1.ContextMenuTargetService; | ||
var binding_directive_base_1 = require("./data-binding/binding-directive-base"); | ||
exports.ɵj = binding_directive_base_1.BindingDirectiveBase; | ||
exports.ɵi = binding_directive_base_1.BindingDirectiveBase; | ||
var menu_base_1 = require("./menu-base"); | ||
exports.ɵa = menu_base_1.MenuBase; | ||
var preventable_event_1 = require("./preventable-event"); | ||
exports.ɵi = preventable_event_1.PreventableEvent; | ||
exports.ɵh = preventable_event_1.PreventableEvent; | ||
var actions_service_1 = require("./services/actions.service"); | ||
@@ -36,2 +34,2 @@ exports.ɵc = actions_service_1.ActionsService; | ||
var utils_1 = require("./utils"); | ||
exports.ɵh = utils_1.bodyFactory; | ||
exports.ɵg = utils_1.bodyFactory; |
@@ -9,19 +9,17 @@ "use strict"; | ||
var constants_1 = require("./constants"); | ||
exports.ɵg = constants_1.NODE_INDEX; | ||
exports.ɵf = constants_1.NODE_INDEX; | ||
var context_menu_items_service_1 = require("./context-menu/context-menu-items.service"); | ||
exports.ɵk = context_menu_items_service_1.ContextMenuItemsService; | ||
exports.ɵj = context_menu_items_service_1.ContextMenuItemsService; | ||
var context_menu_target_container_directive_1 = require("./context-menu/context-menu-target-container.directive"); | ||
exports.ɵn = context_menu_target_container_directive_1.ContextMenuTargetContainerDirective; | ||
exports.ɵm = context_menu_target_container_directive_1.ContextMenuTargetContainerDirective; | ||
var context_menu_target_directive_1 = require("./context-menu/context-menu-target.directive"); | ||
exports.ɵl = context_menu_target_directive_1.ContextMenuTargetDirective; | ||
exports.ɵk = context_menu_target_directive_1.ContextMenuTargetDirective; | ||
var context_menu_target_service_1 = require("./context-menu/context-menu-target.service"); | ||
exports.ɵm = context_menu_target_service_1.ContextMenuTargetService; | ||
var context_menu_service_1 = require("./context-menu/context-menu.service"); | ||
exports.ɵf = context_menu_service_1.ContextMenuService; | ||
exports.ɵl = context_menu_target_service_1.ContextMenuTargetService; | ||
var binding_directive_base_1 = require("./data-binding/binding-directive-base"); | ||
exports.ɵj = binding_directive_base_1.BindingDirectiveBase; | ||
exports.ɵi = binding_directive_base_1.BindingDirectiveBase; | ||
var menu_base_1 = require("./menu-base"); | ||
exports.ɵa = menu_base_1.MenuBase; | ||
var preventable_event_1 = require("./preventable-event"); | ||
exports.ɵi = preventable_event_1.PreventableEvent; | ||
exports.ɵh = preventable_event_1.PreventableEvent; | ||
var actions_service_1 = require("./services/actions.service"); | ||
@@ -36,2 +34,2 @@ exports.ɵc = actions_service_1.ActionsService; | ||
var utils_1 = require("./utils"); | ||
exports.ɵh = utils_1.bodyFactory; | ||
exports.ɵg = utils_1.bodyFactory; |
@@ -43,3 +43,5 @@ "use strict"; | ||
exports.ContextMenuModule = context_menu_module_1.ContextMenuModule; | ||
var context_menu_service_1 = require("./context-menu/context-menu.service"); | ||
exports.ContextMenuService = context_menu_service_1.ContextMenuService; | ||
var menus_module_1 = require("./menus.module"); | ||
exports.MenusModule = menus_module_1.MenusModule; |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-angular-menu",["tslib","@angular/core","@progress/kendo-angular-l10n","@progress/kendo-angular-popup","@angular/common"],function(O){var n,i,o,r,a;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){i=t(e)},function(e){o=t(e)},function(e){r=t(e)},function(e){a=t(e)}],execute:function(){!function(n){var i={};function o(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}o.m=n,o.c=i,o.p="",o(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.MenuComponent=i.MenuComponent;var o=n(21);t.ListComponent=o.ListComponent;var r=n(22);t.ItemComponent=r.ItemComponent;var a=n(25);t.LinkDirective=a.LinkDirective;var s=n(26);t.ExpandArrowDirective=s.ExpandArrowDirective;var p=n(17);t.MenuItemComponent=p.MenuItemComponent;var c=n(7);t.MenuEvent=c.MenuEvent;var u=n(27);t.MenuSelectEvent=u.MenuSelectEvent;var l=n(20);t.ItemContentTemplateDirective=l.ItemContentTemplateDirective;var d=n(18);t.ItemTemplateDirective=d.ItemTemplateDirective;var m=n(19);t.ItemLinkTemplateDirective=m.ItemLinkTemplateDirective;var h=n(28);t.HierarchyBindingDirective=h.HierarchyBindingDirective;var v=n(31);t.FlatBindingDirective=v.FlatBindingDirective;var f=n(32);t.MenuModule=f.MenuModule;var _=n(34);t.ContextMenuEvent=_.ContextMenuEvent;var g=n(35);t.ContextMenuSelectEvent=g.ContextMenuSelectEvent;var y=n(36);t.ContextMenuPopupEvent=y.ContextMenuPopupEvent;var b=n(37);t.ContextMenuTemplateDirective=b.ContextMenuTemplateDirective;var I=n(38);t.ContextMenuComponent=I.ContextMenuComponent;var C=n(43);t.ContextMenuModule=C.ContextMenuModule;var x=n(44);t.MenusModule=x.MenusModule,function(e){for(var t in e)O(t,e[t])}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),u=n(3),o=n(4),r=n(5),a=n(6),s=n(10),p=n(11),l=n(12),d=n(13),m=n(15),h=n(16),v=n(14),c=function(c){function e(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,p.actions.owner=p,s&&(s.items=p.itemsService,p.contextKeyDownSubscription=s.keydown.subscribe(p.contextKeyDown.bind(p))),p}return i.__extends(e,c),t=e,Object.defineProperty(e.prototype,"ariaOrientation",{get:function(){if(this.vertical)return"vertical"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contextMenuClass",{get:function(){return Boolean(this.contextService)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"direction",{get:function(){return this.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rtl",{get:function(){return this.localization.rtl},enumerable:!0,configurable:!0}),e.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())}},e.prototype.focus=function(e){this.navigation.focusIndex(e)},e.prototype.ngOnChanges=function(e){if(this.navigation.vertical=this.vertical,this.hover.delay=this.hoverDelay,e.openOnClick){var t=this.openOnClick=l.normalize(this.openOnClick);this.hover.openOnOver=!t,t&&"click"===t.toggle?this.attachCloseClick():this.unsubscribeClick()}},e.prototype.ngAfterViewChecked=function(){this.navigation.updateActive()},e.prototype.ngOnDestroy=function(){this.unsubscribeClick(),this.contextService&&(this.contextService.items=null,this.contextKeyDownSubscription.unsubscribe())},e.prototype.attachCloseClick=function(){var t=this;this.closeClickSubscription||"undefined"==typeof document||this.ngZone.runOutsideAngular(function(){t.closeClickSubscription=t.renderer.listen("document","click",function(e){d.inMenu(e.target,t.itemsService)||(t.hover.openOnOver=!1,t.actions.closeAll(),t.actions.execute())})})},e.prototype.unsubscribeClick=function(){this.closeClickSubscription&&this.closeClickSubscription()},e.prototype.contextKeyDown=function(e){if(this.itemsService.hasItems){var t,n=e.keyCode,i=this.localization.rtl,o=n===v.KeyCodes.DOWN||n===v.KeyCodes.RIGHT,r=n===v.KeyCodes.UP||n===v.KeyCodes.LEFT;o&&!i||r&&i?t="first":(o&&i||r&&!i)&&(t="last"),t&&(e.preventDefault(),this.focus(t))}},i.__decorate([u.Input(),i.__metadata("design:type",u.TemplateRef)],e.prototype,"menuItemTemplate",void 0),i.__decorate([u.Input(),i.__metadata("design:type",u.TemplateRef)],e.prototype,"menuItemLinkTemplate",void 0),i.__decorate([u.Output(),i.__metadata("design:type",u.EventEmitter)],e.prototype,"select",void 0),i.__decorate([u.Output(),i.__metadata("design:type",u.EventEmitter)],e.prototype,"open",void 0),i.__decorate([u.Output(),i.__metadata("design:type",u.EventEmitter)],e.prototype,"close",void 0),i.__decorate([u.HostBinding("class.k-rtl"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"direction",null),e=t=i.__decorate([u.Component({exportAs:"kendoMenu",providers:[r.ItemsService,a.ActionsService,s.NavigationService,p.HoverService,o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.menu"},{provide:h.MenuBase,useExisting:u.forwardRef(function(){return t})}],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 '}),i.__param(7,u.Optional()),i.__metadata("design:paramtypes",[r.ItemsService,p.HoverService,a.ActionsService,s.NavigationService,o.LocalizationService,u.NgZone,u.Renderer2,m.ContextMenuService])],e);var t}(h.MenuBase);t.MenuComponent=c},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=/_?\d+$/,a=0,s=function(e,t){return e.siblingIndex-t.siblingIndex},p=function(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},c=function(){function e(){this.items={},this.lists=[],this.idPrefix="k-menu"+a++}return Object.defineProperty(e.prototype,"hasItems",{get:function(){return 0<Object.keys(this.items).length},enumerable:!0,configurable:!0}),e.prototype.childId=function(e){return this.idPrefix+"-child"+e},e.prototype.itemIndex=function(e,t){return(e?e+"_":"")+t},e.prototype.get=function(e){return this.items[e]},e.prototype.add=function(e){this.items[e.index]=e},e.prototype.remove=function(e){delete this.items[e.index]},e.prototype.addList=function(e){this.lists.push(e)},e.prototype.removeList=function(e){var t=this.lists.indexOf(e);0<=t&&this.lists.splice(t,1)},e.prototype.containsList=function(t){return Boolean(this.lists.find(function(e){return e.element.nativeElement===t}))},e.prototype.siblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter(function(e){return t.parentIndex(e)===n})},e.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})},e.prototype.children=function(t){var n=this;return this.filter(function(e){return n.parentIndex(e)===t.index})},e.prototype.parent=function(e){return this.items[this.parentIndex(e.index)]},e.prototype.root=function(e){return this.items[this.indices(e.index)[0]]},e.prototype.indices=function(e){return e.split("_")},e.prototype.filter=function(e){var t=[],n=this.items;for(var i in n)e(i,n[i])&&t.push(n[i]);return t.sort(s)},e.prototype.previous=function(e){var t=this.siblings(e),n=t.indexOf(e);return p(n,t,-1)},e.prototype.next=function(e){var t=this.siblings(e),n=t.indexOf(e);return p(n,t,1)},e.prototype.hasParent=function(e,t){return e.index.startsWith(t.index)},e.prototype.areSiblings=function(e,t){return e!==t&&this.parent(e)===this.parent(t)},e.prototype.forEach=function(e){var t=this.items;for(var n in t)t.hasOwnProperty(n)&&e(t[n])},e.prototype.parentIndex=function(e){return e.replace(r,"")},e=i.__decorate([o.Injectable()],e)}();t.ItemsService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(7),s=n(9),p=function(){function e(e,t){this.ngZone=e,this.items=t,this.actions=[]}return e.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())},e.prototype.close=function(e){this.closeChildren(e),this.closeItem(e)},e.prototype.closeItem=function(e){e.opened&&this.actions.push({name:"close",item:e})},e.prototype.closeToRoot=function(e){this.closeChildren(e);for(var t=e;this.closeItem(t),t=this.items.parent(t););},e.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)}},e.prototype.closeAll=function(){var t=this;this.items.forEach(function(e){e.opened&&0===e.level&&t.close(e)})},e.prototype.select=function(e,t,n,i){this.actions.push({name:"select",item:e,prevented:n,finished:i,domEvent:t})},e.prototype.emit=function(e,t,n){var i=this.owner,o=new a.MenuEvent({sender:i,item:t.item,index:t.index,originalEvent:n,hasContent:t.hasContent});return i[e].emit(o),i.contextService&&i.contextService.emit(e,o),o.isDefaultPrevented()},Object.defineProperty(e.prototype,"hasPending",{get:function(){return 0<this.actions.length},enumerable:!0,configurable:!0}),e.prototype.execute=function(e){var t=this;if(this.hasPending||e){var n=e||this.clear();!o.NgZone.isInAngularZone()&&this.requiresZone(n)?this.ngZone.run(function(){t.executeActions(n)}):this.executeActions(n)}},e.prototype.clear=function(){var e=this.actions;return this.actions=[],e},e.prototype.executeActions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.item,o=n.name,r=n.prevented,a=n.finished,s=n.domEvent;(p=i,"open"===(c=o)&&p.opened||"close"===c&&!p.opened)||(this.emit(o,i,s)?r&&r():(i[o]&&i[o](),a&&a()))}var p,c},e.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},e.prototype.closeChildren=function(e){if(e.opened){var t=this.items.children(e);this.closeItems(t)}},e.prototype.closeItems=function(e){for(var t=0;t<e.length;t++)this.close(e[t])},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone,r.ItemsService])],e)}();t.ActionsService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(8).PreventableEvent);t.MenuEvent=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.prevented=!1,Object.assign(this,e)}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.hasObservers=function(e){return e&&0<e.observers.length},t.defined=function(e){return void 0!==e},t.bodyFactory=function(){if("undefined"!=typeof document)return new i.ElementRef(document.body)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),a=n(5),s=n(6),p=/\S/,c={37:"left",39:"right",38:"up",40:"down",36:"home",35:"end",32:"enter",13:"enter",27:"esc",9:"tab"},u=Object.assign({},c,{37:"right",39:"left"});var l=Promise.resolve(null),d=function(){function e(e,t,n,i){this.items=e,this.actions=t,this.localization=n,this.ngZone=i,this.vertical=!1,this.activeIndex="0"}return Object.defineProperty(e.prototype,"focusedItem",{get:function(){return this.items.get(this.focusedIdx)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this.items.get(this.activeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handlers",{get:function(){return this.localization.rtl?u:c},enumerable:!0,configurable:!0}),e.prototype.focus=function(e){e.index!==this.focusedIdx&&(this.activeItem&&this.items.hasParent(e,this.activeItem)||this.setActive(e),this.setFocus(e))},e.prototype.setFocus=function(e){this.focusedIdx=e.index,e.focus()},e.prototype.focusLeave=function(){var e=this.focusedItem;e&&(this.actions.closeToRoot(e),this.actions.execute()),this.focusedIdx=null},e.prototype.updateActive=function(){var e=this;!this.activeItem&&this.items.hasItems&&(this.items.get("0").toggleActive(!0),this.ngZone.runOutsideAngular(function(){l.then(function(){e.activeIndex="0"})}))},e.prototype.keydown=function(e){var t,n=this.focusedItem||this.activeItem,i=this.handlers[e.keyCode];n&&(i?("tab"!==i&&e.preventDefault(),this[i](n,e)):1===(t=e.key).length&&p.test(t)&&this.search(n,e.key),this.actions.execute())},e.prototype.focusIndex=function(e){if(!e&&this.activeItem)this.setFocus(this.activeItem);else if("first"===e)this.focusFirst();else if("last"===e)this.focusLast();else{var t=this.items.get(e);t&&this.focus(t)}},e.prototype.focusFirst=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[0])},e.prototype.focusLast=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[e.length-1])},e.prototype.search=function(e,t){for(var n=this.items.siblings(e),i=n.indexOf(e),o=n.slice(i+1).concat(n.slice(0,i)),r=0;r<o.length;r++){var a=o[r];if((a.item.text||"").toLowerCase().startsWith(t.toLowerCase())){this.focus(a);break}}},e.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))},e.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))},e.prototype.left=function(e){if(!this.vertical||0!==e.level||!e.disabled)if(1<e.level||this.vertical&&0<e.level){var t=this.items.parent(e);this.focus(t),this.actions.close(t)}else 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))},e.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)))},e.prototype.home=function(e){var t=this.items.siblings(e);this.focus(t[0])},e.prototype.end=function(e){var t=this.items.siblings(e);this.focus(t[t.length-1])},e.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)))},e.prototype.esc=function(e){if(0<e.level){var t=this.items.parent(e);this.actions.close(t),this.focus(t)}},e.prototype.tab=function(e){0<e.level&&this.activeItem.focus()},e.prototype.focusChild=function(t,n){var i=this;return function(){var e=i.items.children(t)[n];i.setFocus(e)}},e.prototype.setActive=function(e){var t=this.focusedItem,n=this.items.root(e);this.activeItem&&this.activeItem.toggleActive(!1),this.activeIndex=n.index,n.toggleActive(!0),t&&(this.actions.closeToRoot(t),0<t.level&&this.actions.open(n))},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.ItemsService,s.ActionsService,r.LocalizationService,o.NgZone])],e)}();t.NavigationService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(6),s=function(){function e(e,t){this.actions=e,this.items=t,this.delay=100,this._openOnOver=!0,this.scheduled=[]}return Object.defineProperty(e.prototype,"openOnOver",{get:function(){return this._openOnOver},set:function(e){this.cancelActions(),this._openOnOver=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hovered",{get:function(){return this.items.get(this.hoveredIdx)},set:function(e){this.hoveredIdx=e?e.index:null},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.cancelActions()},e.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())},e.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},e.prototype.closeCurrent=function(){var e=this.hovered;e&&(this.actions.closeToRoot(e),this.hovered=null)},e.prototype.scheduleActions=function(){var e=this;if(this.actions.hasPending){var t={};t.actions=this.actions.clear(),t.id=setTimeout(function(){e.actions.execute(t.actions),e.removeScheduled(t)},this.delay),this.scheduled.push(t)}},e.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)},e.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)},e.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))}},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.ActionsService,r.ItemsService])],e)}();t.HoverService=s},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){return e&&Object.assign({toggle:"select"},e)}},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t(14),s="kendo-matches-container",r=/^(?:a|input|select|option|textarea|button|object)$/i;a.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},a.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},a.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,o=null!==n&&!i;return r.test(t)&&(o=!e.disabled&&!i),o}return!1};var i=function(e){return String(e).trim().split(" ")};a.hasClass=function(e,t){return 0<=i(e.className).indexOf(t)},a.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)}))}},a.nodeIndex=function(e){return e.getAttribute(n.NODE_INDEX)},a.closestItem=function(e,t){return a.closestInScope(e,a.nodeIndex,t)},a.closestList=function(e){var t=a.closest(e,a.matchesClasses("k-menu-popup k-menu k-menu-group"));return t&&a.hasClass(t,"k-menu-popup")&&(t=t.querySelector(".k-menu-group")),t},a.inMenu=function(e,t){if(e===t.lists[0].element.nativeElement)return!1;var n=a.closestList(e);return n&&t.containsList(n)},a.findInContainer=function(e,t,n){var i=n.getAttribute("id");i||n.setAttribute("id",s);var o="#"+(i||s)+" "+t,r=a.closestInScope(e,function(e){return n=o,((t=e).matches||t.msMatchesSelector).call(t,n);var t,n},n);return i||n.removeAttribute("id"),r}},function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.NODE_INDEX="data-kendo-menu-index",(n=t.KeyCodes||(t.KeyCodes={}))[n.ESC=27]="ESC",n[n.LEFT=37]="LEFT",n[n.UP=38]="UP",n[n.RIGHT=39]="RIGHT",n[n.DOWN=40]="DOWN",n[n.F10=121]="F10"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(9),a=n(13),s=function(){function e(){this.keydown=new o.EventEmitter}return e.prototype.emit=function(e,t){this.owner.emitMenuEvent(e,t)},e.prototype.hasObservers=function(e){return this.owner&&r.hasObservers(this.owner[e])},e.prototype.leaveMenu=function(e){return!this.items||!a.inMenu(e.target,this.items)},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(17),a=n(18),s=n(19),p=function(){function e(){this.vertical=!1,this.openOnClick=!1,this.hoverDelay=100,this.animate=!0}return Object.defineProperty(e.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)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"hoverDelay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.ContentChildren(a.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(s.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(r.MenuItemComponent),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e}();t.MenuBase=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(18),a=n(19),s=n(20),p=function(){function e(){}return t=e,Object.defineProperty(e.prototype,"template",{get:function(){if(this.itemTemplate&&this.itemTemplate.length)return this.itemTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{get:function(){if(this.itemLinkTemplate&&this.itemLinkTemplate.length)return this.itemLinkTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentTemplate",{get:function(){if(this.itemContentTemplate&&this.itemContentTemplate.length)return this.itemContentTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){if(this.children.length)return this.children.toArray().slice(1)},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"url",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"separator",void 0),i.__decorate([o.ContentChildren(r.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(a.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(s.ItemContentTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemContentTemplate",void 0),i.__decorate([o.ContentChildren(t),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e=t=i.__decorate([o.Component({selector:"kendo-menu-item",template:""})],e);var t}();t.MenuItemComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemLinkTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemLinkTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemContentTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemContentTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(6),s=n(10),p=n(11),c=n(14),u=n(13),l=function(){function e(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}return e.prototype.hierarchyIndex=function(e){return this.itemsService.itemIndex(this.index,e)},e.prototype.ngOnInit=function(){this.itemsService.addList(this),this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.itemsService.removeList(this),this.domSubscriptions&&this.domSubscriptions()},e.prototype.initDomEvents=function(){var s=this;this.element&&this.ngZone.runOutsideAngular(function(){var n=s.element.nativeElement,e=0<s.level?u.closest(n,function(e){return u.hasClass(e,"k-menu-popup")}):n,t=s.renderer.listen(n,"mouseover",function(e){if(e.target===n&&0===s.level)s.onLeave();else{var t=s.nodeItem(e.target)||s.itemsService.get(s.index);!t||s.openOnClick&&"click"===s.openOnClick.toggle&&0===t.level&&!t.hasContent||s.hover.over(t)}}),i=s.renderer.listen(e,"mouseleave",function(e){s.leavesMenu(e)&&s.onLeave()}),o=s.renderer.listen(n,"keydown",function(e){u.hasClass(e.target,"k-menu-item")&&s.navigation.keydown(e)}),r=s.renderer.listen(n,"focusout",function(e){s.leavesMenu(e)&&s.navigation.focusLeave()}),a=s.renderer.listen(n,"click",s.clickHandler.bind(s));s.domSubscriptions=function(){t(),i(),o(),r(),a()}})},e.prototype.leavesMenu=function(e){return!e.relatedTarget||!u.inMenu(e.relatedTarget,this.itemsService)},e.prototype.onLeave=function(){var e=this.openOnClick;e&&"click"===e.toggle||this.hover.leave(e&&"leave"===e.toggle)},e.prototype.nodeItem=function(e){var t=u.closestItem(e,this.element.nativeElement);if(t){var n=u.nodeIndex(t);return this.itemsService.get(n)}},e.prototype.clickHandler=function(e){if(!u.isFocusable(e.target)||u.hasClass(e.target,"k-menu-item")){var t=this.nodeItem(e.target);if(t&&!t.isContent&&!t.navigating)if(t.disabled)e.preventDefault();else{if(this.actions.select(t,e,function(){e.preventDefault()}),this.navigation.focus(t),0<t.level&&!t.hasContent&&this.actions.closeToRoot(t),this.openOnClick){var 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)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),e=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])],e)}();t.ListComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(10),s=n(23),p=n(24),c=n(9),u=function(){function e(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}return Object.defineProperty(e.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(e.prototype,"disabled",{get:function(){return this.item.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPopup",{get:function(){return!!this.hasContent||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this.hasContent?this.opened:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this.item.text?this.item.text:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeId",{get:function(){return this.index===this.navigation.activeIndex?"0":"-1"},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"horizontal",{get:function(){return this.vertical||0<this.level},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLink",{get:function(){return Boolean(this.item.url)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{get:function(){return this.item.linkTemplate||this.itemLinkTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasContent",{get:function(){var e=this.item.items;return e&&e.length||this.item.contentTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isContent",{get:function(){return Boolean(this.item.content)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClass",{get:function(){return"k-i-"+this.item.icon},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"template",{get:function(){return this.item.template||this.itemTemplate},enumerable:!0,configurable:!0}),e.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})},e.prototype.ngOnInit=function(){this.itemsService.add(this)},e.prototype.ngOnDestroy=function(){this.itemsService.remove(this),this.destroyed=!0,this.popupRef&&(this.popupRef.close(),this.popupRef=null)},e.prototype.focus=function(){this.element.nativeElement.focus()},e.prototype.toggleActive=function(e){e?this.setAttribute("tabindex","0"):this.setAttribute("tabindex","-1")},e.prototype.open=function(){if(!this.destroyed&&this.hasContent&&!this.opened){var 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()}},e.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"))},e.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)},e.prototype.setAttribute=function(e,t){this.renderer.setAttribute(this.element.nativeElement,e,t)},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"item",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"index",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"siblingIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ViewChild("link"),i.__metadata("design:type",o.ElementRef)],e.prototype,"link",void 0),i.__decorate([o.ViewChild("popupTemplate"),i.__metadata("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabled",null),i.__decorate([o.HostBinding("attr.aria-haspopup"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hasPopup",null),i.__decorate([o.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"expanded",null),i.__decorate([o.HostBinding("attr.aria-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"label",null),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"activeId",null),e=i.__decorate([o.Component({providers:[p.PopupService,{provide:p.POPUP_CONTAINER,useFactory:c.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])],e)}();t.ItemComponent=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={vertical:"top",horizontal:"left"},i={vertical:"top",horizontal:"right"},o={vertical:"flip",horizontal:"fit"},r={vertical:"fit",horizontal:"flip"};t.POPUP_SETTINGS_RTL={vertical:{anchor:{vertical:"bottom",horizontal:"right"},popup:i,collision:o,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"left"},popup:i,collision:r,animate:"left"}},t.POPUP_SETTINGS={vertical:{anchor:{vertical:"bottom",horizontal:"left"},popup:n,collision:o,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"right"},popup:n,collision:r,animate:"right"}}},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation",this.tabindex="-1"}return Object.defineProperty(e.prototype,"activeClass",{get:function(){return this.item.opened},enumerable:!0,configurable:!0}),e.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)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-link"),o.HostBinding("class.k-menu-link"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String)],e.prototype,"tabindex",void 0),i.__decorate([o.HostBinding("class.k-state-active"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"activeClass",null),e=i.__decorate([o.Directive({selector:"[kendoMenuItemLink]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.LinkDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation"}return Object.defineProperty(e.prototype,"arrowDown",{get:function(){return!this.item.horizontal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowRight",{get:function(){return this.item.horizontal&&!this.item.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowLeft",{get:function(){return this.item.horizontal&&this.item.rtl},enumerable:!0,configurable:!0}),e.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)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-icon"),o.HostBinding("class.k-menu-expand-arrow"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("class.k-i-arrow-60-down"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowDown",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-right"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowRight",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-left"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowLeft",null),e=i.__decorate([o.Directive({selector:"[kendoMenuExpandArrow]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.ExpandArrowDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(7).MenuEvent);t.MenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(16),a=n(29),p=n(30),c=function(e,t){return Array.isArray(e)?e[t]||p.last(e):e},s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype.mapItems=function(e,i){var o=this;return void 0===i&&(i=0),e.map(function(e){var t=o.createItem(e,i),n=o.getChildren(e,i);return n&&(t.items=o.mapItems(n,i+1)),t})},e.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,s=r.source;n[a]=p.getter(c(s,t))(e)}return n},e.prototype.getChildren=function(e,t){if(this.childrenField)return e[c(this.childrenField,t)]},i.__decorate([o.Input("kendoMenuHierarchyBinding"),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"childrenField",void 0),e=i.__decorate([o.Directive({exportAs:"kendoMenuHierarchyBinding",selector:"[kendoMenuHierarchyBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],e)}(a.BindingDirectiveBase);t.HierarchyBindingDirective=s},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=["textField","urlField","iconField","disabledField","cssClassField","cssStyleField","separatorField"],n=function(){function e(e){this.menu=e}return e.prototype.ngOnChanges=function(){this.rebind()},e.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):[]},e}();t.BindingDirectiveBase=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,i={undefined:function(e){return e}};t.getter=function(e){if(i[e])return i[e];var o=[];return e.replace(n,function(e,t,n,i){o.push(void 0!==t?t:n||i)}),i[e]=function(e){for(var t=e,n=0;n<o.length&&t;n++)t=t[o[n]];return t},i[e]},t.last=function(e){return e[e.length-1]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(16),a=n(29),u=n(30),s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.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=u.getter(this.idField)(r),p=u.getter(this.parentIdField)(r);if(null==p)n.push(a);else{var c=i[p]=i[p]||{};c.items=c.items||[],c.items.push(a)}i[s]&&(a.items=i[s].items),i[s]=a}return n},e.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]=u.getter(r)(e)}return t},i.__decorate([o.Input("kendoMenuFlatBinding"),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"idField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"parentIdField",void 0),e=i.__decorate([o.Directive({exportAs:"kendoMenuFlatBinding",selector:"[kendoMenuFlatBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],e)}(a.BindingDirectiveBase);t.FlatBindingDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(33),a=n(24),s=n(1),p=n(17),c=n(21),u=n(22),l=n(25),d=n(26),m=n(18),h=n(19),v=n(20),f=n(28),_=n(31),g=[s.MenuComponent,p.MenuItemComponent,m.ItemTemplateDirective,h.ItemLinkTemplateDirective,v.ItemContentTemplateDirective,f.HierarchyBindingDirective,_.FlatBindingDirective,l.LinkDirective,d.ExpandArrowDirective],y=g.concat([c.ListComponent,u.ItemComponent]),b=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[y],exports:[g],imports:[a.PopupModule,r.CommonModule]})],e)}();t.MenuModule=b},function(e,t){e.exports=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.ContextMenuEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(34).ContextMenuEvent);t.ContextMenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(8).PreventableEvent);t.ContextMenuPopupEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ContextMenuTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(3),o=n(4),s=n(24),p=n(16),c=n(36),u=n(15),l=n(39),d=n(37),m=n(13),h=n(9),v=n(5),f=n(40),_=n(42),g=n(9),y=n(14),b="contextmenu",I={horizontal:"left",vertical:"bottom"},C={horizontal:"left",vertical:"top"},x={horizontal:"fit",vertical:"flip"},r=function(r){function e(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=b,o.alignToAnchor=!1,o.vertical=!0,o.popupOpen=new a.EventEmitter,o.popupClose=new a.EventEmitter,o.select=new a.EventEmitter,o.open=new a.EventEmitter,o.close=new a.EventEmitter,(o.service.owner=o).popupKeyDownHandler=o.popupKeyDownHandler.bind(o),o}return i.__extends(e,r),(t=e).prototype.hide=function(){this.removePopup()},e.prototype.show=function(e){if(e){var t=e;this.removePopup(),h.defined(t.left)&&h.defined(t.top)?this.createPopup({offset:t}):(this.currentTarget=t.nativeElement||t,this.createPopup({anchor:this.currentTarget}))}},e.prototype.ngOnChanges=function(e){(e.target||e.showOn)&&this.bindShowHandler()},e.prototype.ngOnInit=function(){var n=this;this.ngZone.runOutsideAngular(function(){var e=n.renderer.listen("document","mousedown",function(e){n.popupRef&&!m.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()}})},e.prototype.ngOnDestroy=function(){this.closeSubscription&&(this.closeSubscription(),this.closeSubscription=null),this.unbindShowHandler(),this.removePopup()},e.prototype.emitMenuEvent=function(e,t){t.target=this.currentTarget,(t.sender=this)[e].emit(t),"select"!==e||t.hasContent||this.closePopup(t.originalEvent)},e.prototype.bindShowHandler=function(){var n=this;this.unbindShowHandler(),this.ngZone.runOutsideAngular(function(){var t=n.targetElement();if(t){var e=n.showOn||b;n.showSubscription=n.renderer.listen(t,n.showOn||b,function(e){n.showContextMenu(e,t)}),e===b&&(n.keydownSubscription=n.renderer.listen(t,"keydown",function(e){e.shiftKey&&e.keyCode===y.KeyCodes.F10&&n.showContextMenu(e,t)}))}})},e.prototype.showContextMenu=function(e,t){var n=this,i=this.targetFilter();if(this.currentTarget=t,i){var o=this.currentTarget=m.findInContainer(e.target,i,t);if(o&&o!==e.target&&m.isFocusable(e.target))return void(this.currentTarget=null);o&&this.directiveTarget&&(this.currentTarget=this.target.targetService.find(o))}this.currentTarget?this.ngZone.run(function(){n.closePopup(e)||n.openPopup(e)}):this.closePopup(e)},e.prototype.unbindShowHandler=function(){this.showSubscription&&(this.showSubscription(),this.showSubscription=null),this.keydownSubscription&&(this.keydownSubscription(),this.keydownSubscription=null)},e.prototype.targetElement=function(){if("undefined"!=typeof document){this.directiveTarget=!1;var e=this.target;return"string"==typeof e?e=document.querySelector(e):e&&e.nativeElement?e=e.nativeElement:e instanceof f.ContextMenuTargetContainerDirective&&(e=e.element,this.directiveTarget=!0),e}},e.prototype.targetFilter=function(){return this.directiveTarget?"."+_.TARGET_CLASS:this.filter},e.prototype.closePopup=function(e){var t=this;if(this.popupRef)return this.popupAction("popupClose",e,function(){t.removePopup()})},e.prototype.removePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.currentTarget=null),this.popupKeydownSubscription&&(this.popupKeydownSubscription(),this.popupKeydownSubscription=null)},e.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})})},e.prototype.createPopup=function(e){var t=this;this.popupRef=this.popupService.open(Object.assign({animate:!h.defined(this.popupAnimate)||this.popupAnimate,appendTo:this.appendTo,collision:this.collision||x,popupAlign:this.popupAlign||C,anchorAlign:this.anchorAlign||I,content:this.contentTemplate?this.contentTemplate.templateRef:this.defaultContentTemplate},e));var n=this.popupRef.popupElement;this.renderer.setAttribute(n,"tabindex","-1"),this.renderer.setStyle(n,"outline","0"),this.ariaLabel&&this.renderer.setAttribute(n,"aria-label",this.ariaLabel),this.activeTarget=this.currentTargetElement===document.activeElement,this.ngZone.runOutsideAngular(function(){t.popupKeydownSubscription=t.renderer.listen(n,"keydown",t.popupKeyDownHandler)}),n.focus()},e.prototype.popupKeyDownHandler=function(e){var t=this.popupRef.popupElement;if(e.keyCode!==y.KeyCodes.ESC||!m.hasClass(e.target,"k-menu-item")&&e.target!==t)e.target===t&&this.service.keydown.emit(e);else{var n=this.currentTargetElement;!this.closePopup(e)&&this.activeTarget&&n.focus()}},e.prototype.popupAction=function(e,t,n){var i=this,o=this[e],r=!1;return h.hasObservers(o)?this.ngZone.run(function(){var e=new c.ContextMenuPopupEvent({originalEvent:t,sender:i,target:i.currentTarget});o.emit(e),e.isDefaultPrevented()||n(),r=e.isDefaultPrevented()}):n(),r},Object.defineProperty(e.prototype,"currentTargetElement",{get:function(){return this.directiveTarget&&this.currentTarget?this.currentTarget.element:this.currentTarget},enumerable:!0,configurable:!0}),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"showOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"target",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"filter",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"alignToAnchor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"popupAnimate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"popupAlign",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"anchorAlign",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"collision",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"appendTo",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"ariaLabel",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"popupOpen",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"popupClose",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"select",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),i.__decorate([a.ContentChild(d.ContextMenuTemplateDirective),i.__metadata("design:type",d.ContextMenuTemplateDirective)],e.prototype,"contentTemplate",void 0),i.__decorate([a.ViewChild("default"),i.__metadata("design:type",a.TemplateRef)],e.prototype,"defaultContentTemplate",void 0),e=t=i.__decorate([a.Component({exportAs:"kendoContextMenu",providers:[u.ContextMenuService,o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.contextmenu"},{provide:v.ItemsService,useClass:l.ContextMenuItemsService},{provide:p.MenuBase,useExisting:a.forwardRef(function(){return t})},s.PopupService,{provide:s.POPUP_CONTAINER,useFactory:g.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 '}),i.__metadata("design:paramtypes",[s.PopupService,u.ContextMenuService,a.NgZone,a.Renderer2])],e);var t}(p.MenuBase);t.ContextMenuComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(15),a=function(){function e(e){this.contextService=e}return e.prototype.get=function(e){if(this.contextService.items)return this.contextService.items.get(e)},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.ContextMenuService])],e)}();t.ContextMenuItemsService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(41),a=function(){function e(e,t){this.targetService=t,e&&(this.element=e.nativeElement)}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTargetContainer]",exportAs:"kendoContextMenuTargetContainer",providers:[r.ContextMenuTargetService]}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetContainerDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){this.targets=[]}return e.prototype.add=function(e){this.targets.push(e)},e.prototype.remove=function(e){var t=this.targets.indexOf(e);this.targets.splice(t,1)},e.prototype.find=function(t){return this.targets.find(function(e){return e.element===t})},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuTargetService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(41);t.TARGET_CLASS="k-contextmenu-target";var a=function(){function e(e,t){this.targetService=t,this.hostClass=!0,e&&(this.element=e.nativeElement),t.add(this)}return e.prototype.ngOnDestroy=function(){this.targetService.remove(this)},i.__decorate([o.Input("kendoContextMenuTarget"),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.HostBinding("class."+t.TARGET_CLASS),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([o.Directive({selector:"[kendoContextMenuTarget]",exportAs:"kendoContextMenuTarget"}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(33),a=n(24),s=n(32),p=n(38),c=n(37),u=n(42),l=n(40),d=[p.ContextMenuComponent,c.ContextMenuTemplateDirective,u.ContextMenuTargetDirective,l.ContextMenuTargetContainerDirective],m=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[d],exports:[d,s.MenuModule],imports:[a.PopupModule,r.CommonModule,s.MenuModule]})],e)}();t.ContextMenuModule=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(32),a=n(43),s=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[r.MenuModule,a.ContextMenuModule]})],e)}();t.MenusModule=s}])}}}); | ||
System.register("@progress/kendo-angular-menu",["tslib","@progress/kendo-angular-l10n","@angular/core","@progress/kendo-angular-popup","@angular/common"],function(k){var n,i,o,r,a;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){i=t(e)},function(e){o=t(e)},function(e){r=t(e)},function(e){a=t(e)}],execute:function(){!function(n){var i={};function o(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}o.m=n,o.c=i,o.p="",o(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.MenuComponent=i.MenuComponent;var o=n(21);t.ListComponent=o.ListComponent;var r=n(22);t.ItemComponent=r.ItemComponent;var a=n(25);t.LinkDirective=a.LinkDirective;var s=n(26);t.ExpandArrowDirective=s.ExpandArrowDirective;var p=n(17);t.MenuItemComponent=p.MenuItemComponent;var c=n(7);t.MenuEvent=c.MenuEvent;var u=n(27);t.MenuSelectEvent=u.MenuSelectEvent;var l=n(20);t.ItemContentTemplateDirective=l.ItemContentTemplateDirective;var d=n(18);t.ItemTemplateDirective=d.ItemTemplateDirective;var m=n(19);t.ItemLinkTemplateDirective=m.ItemLinkTemplateDirective;var h=n(28);t.HierarchyBindingDirective=h.HierarchyBindingDirective;var v=n(31);t.FlatBindingDirective=v.FlatBindingDirective;var f=n(32);t.MenuModule=f.MenuModule;var _=n(34);t.ContextMenuEvent=_.ContextMenuEvent;var g=n(35);t.ContextMenuSelectEvent=g.ContextMenuSelectEvent;var y=n(36);t.ContextMenuPopupEvent=y.ContextMenuPopupEvent;var b=n(37);t.ContextMenuTemplateDirective=b.ContextMenuTemplateDirective;var C=n(38);t.ContextMenuComponent=C.ContextMenuComponent;var I=n(43);t.ContextMenuModule=I.ContextMenuModule;var x=n(15);t.ContextMenuService=x.ContextMenuService;var O=n(44);t.MenusModule=O.MenusModule,function(e){for(var t in e)k(t,e[t])}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),u=n(3),o=n(4),r=n(5),a=n(6),s=n(10),p=n(11),l=n(12),d=n(13),m=n(15),h=n(16),v=n(14),c=function(c){function e(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,p.actions.owner=p,s&&(s.items=p.itemsService,p.contextKeyDownSubscription=s.keydown.subscribe(p.contextKeyDown.bind(p))),p}return i.__extends(e,c),t=e,Object.defineProperty(e.prototype,"ariaOrientation",{get:function(){if(this.vertical)return"vertical"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contextMenuClass",{get:function(){return Boolean(this.contextService)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"direction",{get:function(){return this.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rtl",{get:function(){return this.localization.rtl},enumerable:!0,configurable:!0}),e.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())}},e.prototype.focus=function(e){this.navigation.focusIndex(e)},e.prototype.ngOnChanges=function(e){if(this.navigation.vertical=this.vertical,this.hover.delay=this.hoverDelay,e.openOnClick){var t=this.openOnClick=l.normalize(this.openOnClick);this.hover.openOnOver=!t,t&&"click"===t.toggle?this.attachCloseClick():this.unsubscribeClick()}},e.prototype.ngAfterViewChecked=function(){this.navigation.updateActive()},e.prototype.ngOnDestroy=function(){this.unsubscribeClick(),this.contextService&&(this.contextService.items=null,this.contextKeyDownSubscription.unsubscribe())},e.prototype.attachCloseClick=function(){var t=this;this.closeClickSubscription||"undefined"==typeof document||this.ngZone.runOutsideAngular(function(){t.closeClickSubscription=t.renderer.listen("document","click",function(e){d.inMenu(e.target,t.itemsService)||(t.hover.openOnOver=!1,t.actions.closeAll(),t.actions.execute())})})},e.prototype.unsubscribeClick=function(){this.closeClickSubscription&&this.closeClickSubscription()},e.prototype.contextKeyDown=function(e){if(this.itemsService.hasItems){var t,n=e.keyCode,i=this.localization.rtl,o=n===v.KeyCodes.DOWN||n===v.KeyCodes.RIGHT,r=n===v.KeyCodes.UP||n===v.KeyCodes.LEFT;o&&!i||r&&i?t="first":(o&&i||r&&!i)&&(t="last"),t&&(e.preventDefault(),this.focus(t))}},i.__decorate([u.Input(),i.__metadata("design:type",u.TemplateRef)],e.prototype,"menuItemTemplate",void 0),i.__decorate([u.Input(),i.__metadata("design:type",u.TemplateRef)],e.prototype,"menuItemLinkTemplate",void 0),i.__decorate([u.Output(),i.__metadata("design:type",u.EventEmitter)],e.prototype,"select",void 0),i.__decorate([u.Output(),i.__metadata("design:type",u.EventEmitter)],e.prototype,"open",void 0),i.__decorate([u.Output(),i.__metadata("design:type",u.EventEmitter)],e.prototype,"close",void 0),i.__decorate([u.HostBinding("class.k-rtl"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"direction",null),e=t=i.__decorate([u.Component({exportAs:"kendoMenu",providers:[r.ItemsService,a.ActionsService,s.NavigationService,p.HoverService,o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.menu"},{provide:h.MenuBase,useExisting:u.forwardRef(function(){return t})}],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 '}),i.__param(7,u.Optional()),i.__metadata("design:paramtypes",[r.ItemsService,p.HoverService,a.ActionsService,s.NavigationService,o.LocalizationService,u.NgZone,u.Renderer2,m.ContextMenuService])],e);var t}(h.MenuBase);t.MenuComponent=c},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=/_?\d+$/,a=0,s=function(e,t){return e.siblingIndex-t.siblingIndex},p=function(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},c=function(){function e(){this.items={},this.lists=[],this.idPrefix="k-menu"+a++}return Object.defineProperty(e.prototype,"hasItems",{get:function(){return 0<Object.keys(this.items).length},enumerable:!0,configurable:!0}),e.prototype.childId=function(e){return this.idPrefix+"-child"+e},e.prototype.itemIndex=function(e,t){return(e?e+"_":"")+t},e.prototype.get=function(e){return this.items[e]},e.prototype.add=function(e){this.items[e.index]=e},e.prototype.remove=function(e){delete this.items[e.index]},e.prototype.addList=function(e){this.lists.push(e)},e.prototype.removeList=function(e){var t=this.lists.indexOf(e);0<=t&&this.lists.splice(t,1)},e.prototype.containsList=function(t){return Boolean(this.lists.find(function(e){return e.element.nativeElement===t}))},e.prototype.siblings=function(e){var t=this,n=this.parentIndex(e.index);return this.filter(function(e){return t.parentIndex(e)===n})},e.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})},e.prototype.children=function(t){var n=this;return this.filter(function(e){return n.parentIndex(e)===t.index})},e.prototype.parent=function(e){return this.items[this.parentIndex(e.index)]},e.prototype.root=function(e){return this.items[this.indices(e.index)[0]]},e.prototype.indices=function(e){return e.split("_")},e.prototype.filter=function(e){var t=[],n=this.items;for(var i in n)e(i,n[i])&&t.push(n[i]);return t.sort(s)},e.prototype.previous=function(e){var t=this.siblings(e),n=t.indexOf(e);return p(n,t,-1)},e.prototype.next=function(e){var t=this.siblings(e),n=t.indexOf(e);return p(n,t,1)},e.prototype.hasParent=function(e,t){return e.index.startsWith(t.index)},e.prototype.areSiblings=function(e,t){return e!==t&&this.parent(e)===this.parent(t)},e.prototype.forEach=function(e){var t=this.items;for(var n in t)t.hasOwnProperty(n)&&e(t[n])},e.prototype.parentIndex=function(e){return e.replace(r,"")},e=i.__decorate([o.Injectable()],e)}();t.ItemsService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(7),s=n(9),p=function(){function e(e,t){this.ngZone=e,this.items=t,this.actions=[]}return e.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())},e.prototype.close=function(e){this.closeChildren(e),this.closeItem(e)},e.prototype.closeItem=function(e){e.opened&&this.actions.push({name:"close",item:e})},e.prototype.closeToRoot=function(e){this.closeChildren(e);for(var t=e;this.closeItem(t),t=this.items.parent(t););},e.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)}},e.prototype.closeAll=function(){var t=this;this.items.forEach(function(e){e.opened&&0===e.level&&t.close(e)})},e.prototype.select=function(e,t,n,i){this.actions.push({name:"select",item:e,prevented:n,finished:i,domEvent:t})},e.prototype.emit=function(e,t,n){var i=this.owner,o=new a.MenuEvent({sender:i,item:t.item,index:t.index,originalEvent:n,hasContent:t.hasContent});return i[e].emit(o),i.contextService&&i.contextService.emit(e,o),o.isDefaultPrevented()},Object.defineProperty(e.prototype,"hasPending",{get:function(){return 0<this.actions.length},enumerable:!0,configurable:!0}),e.prototype.execute=function(e){var t=this;if(this.hasPending||e){var n=e||this.clear();!o.NgZone.isInAngularZone()&&this.requiresZone(n)?this.ngZone.run(function(){t.executeActions(n)}):this.executeActions(n)}},e.prototype.clear=function(){var e=this.actions;return this.actions=[],e},e.prototype.executeActions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.item,o=n.name,r=n.prevented,a=n.finished,s=n.domEvent;(p=i,"open"===(c=o)&&p.opened||"close"===c&&!p.opened)||(this.emit(o,i,s)?r&&r():(i[o]&&i[o](),a&&a()))}var p,c},e.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},e.prototype.closeChildren=function(e){if(e.opened){var t=this.items.children(e);this.closeItems(t)}},e.prototype.closeItems=function(e){for(var t=0;t<e.length;t++)this.close(e[t])},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.NgZone,r.ItemsService])],e)}();t.ActionsService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(8).PreventableEvent);t.MenuEvent=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.prevented=!1,Object.assign(this,e)}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.hasObservers=function(e){return e&&0<e.observers.length},t.defined=function(e){return void 0!==e},t.bodyFactory=function(){if("undefined"!=typeof document)return new i.ElementRef(document.body)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(4),a=n(5),s=n(6),p=/\S/,c={37:"left",39:"right",38:"up",40:"down",36:"home",35:"end",32:"enter",13:"enter",27:"esc",9:"tab"},u=Object.assign({},c,{37:"right",39:"left"});var l=Promise.resolve(null),d=function(){function e(e,t,n,i){this.items=e,this.actions=t,this.localization=n,this.ngZone=i,this.vertical=!1,this.activeIndex="0"}return Object.defineProperty(e.prototype,"focusedItem",{get:function(){return this.items.get(this.focusedIdx)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this.items.get(this.activeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handlers",{get:function(){return this.localization.rtl?u:c},enumerable:!0,configurable:!0}),e.prototype.focus=function(e){e.index!==this.focusedIdx&&(this.activeItem&&this.items.hasParent(e,this.activeItem)||this.setActive(e),this.setFocus(e))},e.prototype.setFocus=function(e){this.focusedIdx=e.index,e.focus()},e.prototype.focusLeave=function(){var e=this.focusedItem;e&&(this.actions.closeToRoot(e),this.actions.execute()),this.focusedIdx=null},e.prototype.updateActive=function(){var e=this;!this.activeItem&&this.items.hasItems&&(this.items.get("0").toggleActive(!0),this.ngZone.runOutsideAngular(function(){l.then(function(){e.activeIndex="0"})}))},e.prototype.keydown=function(e){var t,n=this.focusedItem||this.activeItem,i=this.handlers[e.keyCode];n&&(i?("tab"!==i&&e.preventDefault(),this[i](n,e)):1===(t=e.key).length&&p.test(t)&&this.search(n,e.key),this.actions.execute())},e.prototype.focusIndex=function(e){if(!e&&this.activeItem)this.setFocus(this.activeItem);else if("first"===e)this.focusFirst();else if("last"===e)this.focusLast();else{var t=this.items.get(e);t&&this.focus(t)}},e.prototype.focusFirst=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[0])},e.prototype.focusLast=function(){var e=this.items.siblings(this.items.get("0"));this.focus(e[e.length-1])},e.prototype.search=function(e,t){for(var n=this.items.siblings(e),i=n.indexOf(e),o=n.slice(i+1).concat(n.slice(0,i)),r=0;r<o.length;r++){var a=o[r];if((a.item.text||"").toLowerCase().startsWith(t.toLowerCase())){this.focus(a);break}}},e.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))},e.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))},e.prototype.left=function(e){if(!this.vertical||0!==e.level||!e.disabled)if(1<e.level||this.vertical&&0<e.level){var t=this.items.parent(e);this.focus(t),this.actions.close(t)}else 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))},e.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)))},e.prototype.home=function(e){var t=this.items.siblings(e);this.focus(t[0])},e.prototype.end=function(e){var t=this.items.siblings(e);this.focus(t[t.length-1])},e.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)))},e.prototype.esc=function(e){if(0<e.level){var t=this.items.parent(e);this.actions.close(t),this.focus(t)}},e.prototype.tab=function(e){0<e.level&&this.activeItem.focus()},e.prototype.focusChild=function(t,n){var i=this;return function(){var e=i.items.children(t)[n];i.setFocus(e)}},e.prototype.setActive=function(e){var t=this.focusedItem,n=this.items.root(e);this.activeItem&&this.activeItem.toggleActive(!1),this.activeIndex=n.index,n.toggleActive(!0),t&&(this.actions.closeToRoot(t),0<t.level&&this.actions.open(n))},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.ItemsService,s.ActionsService,r.LocalizationService,o.NgZone])],e)}();t.NavigationService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(6),s=function(){function e(e,t){this.actions=e,this.items=t,this.delay=100,this._openOnOver=!0,this.scheduled=[]}return Object.defineProperty(e.prototype,"openOnOver",{get:function(){return this._openOnOver},set:function(e){this.cancelActions(),this._openOnOver=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hovered",{get:function(){return this.items.get(this.hoveredIdx)},set:function(e){this.hoveredIdx=e?e.index:null},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.cancelActions()},e.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())},e.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},e.prototype.closeCurrent=function(){var e=this.hovered;e&&(this.actions.closeToRoot(e),this.hovered=null)},e.prototype.scheduleActions=function(){var e=this;if(this.actions.hasPending){var t={};t.actions=this.actions.clear(),t.id=setTimeout(function(){e.actions.execute(t.actions),e.removeScheduled(t)},this.delay),this.scheduled.push(t)}},e.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)},e.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)},e.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))}},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.ActionsService,r.ItemsService])],e)}();t.HoverService=s},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){return e&&Object.assign({toggle:"select"},e)}},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t(14),s="kendo-matches-container",r=/^(?:a|input|select|option|textarea|button|object)$/i;a.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},a.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},a.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,o=null!==n&&!i;return r.test(t)&&(o=!e.disabled&&!i),o}return!1};var i=function(e){return String(e).trim().split(" ")};a.hasClass=function(e,t){return 0<=i(e.className).indexOf(t)},a.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)}))}},a.nodeIndex=function(e){return e.getAttribute(n.NODE_INDEX)},a.closestItem=function(e,t){return a.closestInScope(e,a.nodeIndex,t)},a.closestList=function(e){var t=a.closest(e,a.matchesClasses("k-menu-popup k-menu k-menu-group"));return t&&a.hasClass(t,"k-menu-popup")&&(t=t.querySelector(".k-menu-group")),t},a.inMenu=function(e,t){if(e===t.lists[0].element.nativeElement)return!1;var n=a.closestList(e);return n&&t.containsList(n)},a.findInContainer=function(e,t,n){var i=n.getAttribute("id");i||n.setAttribute("id",s);var o="#"+(i||s)+" "+t,r=a.closestInScope(e,function(e){return n=o,((t=e).matches||t.msMatchesSelector).call(t,n);var t,n},n);return i||n.removeAttribute("id"),r}},function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.NODE_INDEX="data-kendo-menu-index",(n=t.KeyCodes||(t.KeyCodes={}))[n.ESC=27]="ESC",n[n.LEFT=37]="LEFT",n[n.UP=38]="UP",n[n.RIGHT=39]="RIGHT",n[n.DOWN=40]="DOWN",n[n.F10=121]="F10"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(9),a=n(13),s=function(){function e(){this.keydown=new o.EventEmitter}return e.prototype.emit=function(e,t){this.owner.emitMenuEvent(e,t)},e.prototype.hasObservers=function(e){return this.owner&&r.hasObservers(this.owner[e])},e.prototype.leaveMenu=function(e){return!this.items||!a.inMenu(e.target,this.items)},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(17),a=n(18),s=n(19),p=function(){function e(){this.vertical=!1,this.openOnClick=!1,this.hoverDelay=100,this.animate=!0}return Object.defineProperty(e.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)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"hoverDelay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.ContentChildren(a.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(s.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(r.MenuItemComponent),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e}();t.MenuBase=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(18),a=n(19),s=n(20),p=function(){function e(){}return t=e,Object.defineProperty(e.prototype,"template",{get:function(){if(this.itemTemplate&&this.itemTemplate.length)return this.itemTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{get:function(){if(this.itemLinkTemplate&&this.itemLinkTemplate.length)return this.itemLinkTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentTemplate",{get:function(){if(this.itemContentTemplate&&this.itemContentTemplate.length)return this.itemContentTemplate.first.templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){if(this.children.length)return this.children.toArray().slice(1)},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"text",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"url",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssStyle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"separator",void 0),i.__decorate([o.ContentChildren(r.ItemTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemTemplate",void 0),i.__decorate([o.ContentChildren(a.ItemLinkTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ContentChildren(s.ItemContentTemplateDirective),i.__metadata("design:type",o.QueryList)],e.prototype,"itemContentTemplate",void 0),i.__decorate([o.ContentChildren(t),i.__metadata("design:type",o.QueryList)],e.prototype,"children",void 0),e=t=i.__decorate([o.Component({selector:"kendo-menu-item",template:""})],e);var t}();t.MenuItemComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemLinkTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemLinkTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoMenuItemContentTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ItemContentTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(6),s=n(10),p=n(11),c=n(14),u=n(13),l=function(){function e(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}return e.prototype.hierarchyIndex=function(e){return this.itemsService.itemIndex(this.index,e)},e.prototype.ngOnInit=function(){this.itemsService.addList(this),this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.itemsService.removeList(this),this.domSubscriptions&&this.domSubscriptions()},e.prototype.initDomEvents=function(){var s=this;this.element&&this.ngZone.runOutsideAngular(function(){var n=s.element.nativeElement,e=0<s.level?u.closest(n,function(e){return u.hasClass(e,"k-menu-popup")}):n,t=s.renderer.listen(n,"mouseover",function(e){if(e.target===n&&0===s.level)s.onLeave();else{var t=s.nodeItem(e.target)||s.itemsService.get(s.index);!t||s.openOnClick&&"click"===s.openOnClick.toggle&&0===t.level&&!t.hasContent||s.hover.over(t)}}),i=s.renderer.listen(e,"mouseleave",function(e){s.leavesMenu(e)&&s.onLeave()}),o=s.renderer.listen(n,"keydown",function(e){u.hasClass(e.target,"k-menu-item")&&s.navigation.keydown(e)}),r=s.renderer.listen(n,"focusout",function(e){s.leavesMenu(e)&&s.navigation.focusLeave()}),a=s.renderer.listen(n,"click",s.clickHandler.bind(s));s.domSubscriptions=function(){t(),i(),o(),r(),a()}})},e.prototype.leavesMenu=function(e){return!e.relatedTarget||!u.inMenu(e.relatedTarget,this.itemsService)},e.prototype.onLeave=function(){var e=this.openOnClick;e&&"click"===e.toggle||this.hover.leave(e&&"leave"===e.toggle)},e.prototype.nodeItem=function(e){var t=u.closestItem(e,this.element.nativeElement);if(t){var n=u.nodeIndex(t);return this.itemsService.get(n)}},e.prototype.clickHandler=function(e){if(!u.isFocusable(e.target)||u.hasClass(e.target,"k-menu-item")){var t=this.nodeItem(e.target);if(t&&!t.isContent&&!t.navigating)if(t.disabled)e.preventDefault();else{if(this.actions.select(t,e,function(){e.preventDefault()}),this.navigation.focus(t),0<t.level&&!t.hasContent&&this.actions.closeToRoot(t),this.openOnClick){var 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)],e.prototype,"items",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),e=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])],e)}();t.ListComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=n(10),s=n(23),p=n(24),c=n(9),u=function(){function e(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}return Object.defineProperty(e.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(e.prototype,"disabled",{get:function(){return this.item.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPopup",{get:function(){return!!this.hasContent||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this.hasContent?this.opened:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this.item.text?this.item.text:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeId",{get:function(){return this.index===this.navigation.activeIndex?"0":"-1"},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"horizontal",{get:function(){return this.vertical||0<this.level},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLink",{get:function(){return Boolean(this.item.url)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linkTemplate",{get:function(){return this.item.linkTemplate||this.itemLinkTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasContent",{get:function(){var e=this.item.items;return e&&e.length||this.item.contentTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isContent",{get:function(){return Boolean(this.item.content)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClass",{get:function(){return"k-i-"+this.item.icon},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"template",{get:function(){return this.item.template||this.itemTemplate},enumerable:!0,configurable:!0}),e.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})},e.prototype.ngOnInit=function(){this.itemsService.add(this)},e.prototype.ngOnDestroy=function(){this.itemsService.remove(this),this.destroyed=!0,this.popupRef&&(this.popupRef.close(),this.popupRef=null)},e.prototype.focus=function(){this.element.nativeElement.focus()},e.prototype.toggleActive=function(e){e?this.setAttribute("tabindex","0"):this.setAttribute("tabindex","-1")},e.prototype.open=function(){if(!this.destroyed&&this.hasContent&&!this.opened){var 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()}},e.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"))},e.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)},e.prototype.setAttribute=function(e,t){this.renderer.setAttribute(this.element.nativeElement,e,t)},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"item",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"level",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"index",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"siblingIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"animate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"openOnClick",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemTemplate",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"itemLinkTemplate",void 0),i.__decorate([o.ViewChild("link"),i.__metadata("design:type",o.ElementRef)],e.prototype,"link",void 0),i.__decorate([o.ViewChild("popupTemplate"),i.__metadata("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([o.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabled",null),i.__decorate([o.HostBinding("attr.aria-haspopup"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hasPopup",null),i.__decorate([o.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"expanded",null),i.__decorate([o.HostBinding("attr.aria-label"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"label",null),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"activeId",null),e=i.__decorate([o.Component({providers:[p.PopupService,{provide:p.POPUP_CONTAINER,useFactory:c.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])],e)}();t.ItemComponent=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={vertical:"top",horizontal:"left"},i={vertical:"top",horizontal:"right"},o={vertical:"flip",horizontal:"fit"},r={vertical:"fit",horizontal:"flip"};t.POPUP_SETTINGS_RTL={vertical:{anchor:{vertical:"bottom",horizontal:"right"},popup:i,collision:o,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"left"},popup:i,collision:r,animate:"left"}},t.POPUP_SETTINGS={vertical:{anchor:{vertical:"bottom",horizontal:"left"},popup:n,collision:o,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"right"},popup:n,collision:r,animate:"right"}}},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation",this.tabindex="-1"}return Object.defineProperty(e.prototype,"activeClass",{get:function(){return this.item.opened},enumerable:!0,configurable:!0}),e.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)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-link"),o.HostBinding("class.k-menu-link"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",String)],e.prototype,"tabindex",void 0),i.__decorate([o.HostBinding("class.k-state-active"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"activeClass",null),e=i.__decorate([o.Directive({selector:"[kendoMenuItemLink]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.LinkDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(5),a=function(){function e(e){this.itemsService=e,this.hostClasses=!0,this.role="presentation"}return Object.defineProperty(e.prototype,"arrowDown",{get:function(){return!this.item.horizontal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowRight",{get:function(){return this.item.horizontal&&!this.item.rtl},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowLeft",{get:function(){return this.item.horizontal&&this.item.rtl},enumerable:!0,configurable:!0}),e.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)],e.prototype,"index",void 0),i.__decorate([o.HostBinding("class.k-icon"),o.HostBinding("class.k-menu-expand-arrow"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("class.k-i-arrow-60-down"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowDown",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-right"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowRight",null),i.__decorate([o.HostBinding("class.k-i-arrow-60-left"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"arrowLeft",null),e=i.__decorate([o.Directive({selector:"[kendoMenuExpandArrow]"}),i.__metadata("design:paramtypes",[r.ItemsService])],e)}();t.ExpandArrowDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(7).MenuEvent);t.MenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(16),a=n(29),p=n(30),c=function(e,t){return Array.isArray(e)?e[t]||p.last(e):e},s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype.mapItems=function(e,i){var o=this;return void 0===i&&(i=0),e.map(function(e){var t=o.createItem(e,i),n=o.getChildren(e,i);return n&&(t.items=o.mapItems(n,i+1)),t})},e.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,s=r.source;n[a]=p.getter(c(s,t))(e)}return n},e.prototype.getChildren=function(e,t){if(this.childrenField)return e[c(this.childrenField,t)]},i.__decorate([o.Input("kendoMenuHierarchyBinding"),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"childrenField",void 0),e=i.__decorate([o.Directive({exportAs:"kendoMenuHierarchyBinding",selector:"[kendoMenuHierarchyBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],e)}(a.BindingDirectiveBase);t.HierarchyBindingDirective=s},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=["textField","urlField","iconField","disabledField","cssClassField","cssStyleField","separatorField"],n=function(){function e(e){this.menu=e}return e.prototype.ngOnChanges=function(){this.rebind()},e.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):[]},e}();t.BindingDirectiveBase=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,i={undefined:function(e){return e}};t.getter=function(e){if(i[e])return i[e];var o=[];return e.replace(n,function(e,t,n,i){o.push(void 0!==t?t:n||i)}),i[e]=function(e){for(var t=e,n=0;n<o.length&&t;n++)t=t[o[n]];return t},i[e]},t.last=function(e){return e[e.length-1]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(16),a=n(29),u=n(30),s=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.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=u.getter(this.idField)(r),p=u.getter(this.parentIdField)(r);if(null==p)n.push(a);else{var c=i[p]=i[p]||{};c.items=c.items||[],c.items.push(a)}i[s]&&(a.items=i[s].items),i[s]=a}return n},e.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]=u.getter(r)(e)}return t},i.__decorate([o.Input("kendoMenuFlatBinding"),i.__metadata("design:type",Array)],e.prototype,"data",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"urlField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"iconField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"disabledField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"cssClassField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"cssStyleField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"separatorField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"idField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"parentIdField",void 0),e=i.__decorate([o.Directive({exportAs:"kendoMenuFlatBinding",selector:"[kendoMenuFlatBinding]"}),i.__metadata("design:paramtypes",[r.MenuBase])],e)}(a.BindingDirectiveBase);t.FlatBindingDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(33),a=n(24),s=n(1),p=n(17),c=n(21),u=n(22),l=n(25),d=n(26),m=n(18),h=n(19),v=n(20),f=n(28),_=n(31),g=[s.MenuComponent,p.MenuItemComponent,m.ItemTemplateDirective,h.ItemLinkTemplateDirective,v.ItemContentTemplateDirective,f.HierarchyBindingDirective,_.FlatBindingDirective,l.LinkDirective,d.ExpandArrowDirective],y=g.concat([c.ListComponent,u.ItemComponent]),b=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[y],exports:[g],imports:[a.PopupModule,r.CommonModule]})],e)}();t.MenuModule=b},function(e,t){e.exports=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.ContextMenuEvent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(34).ContextMenuEvent);t.ContextMenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(8).PreventableEvent);t.ContextMenuPopupEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.ContextMenuTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=n(3),o=n(4),s=n(24),p=n(16),c=n(36),u=n(15),l=n(39),d=n(37),m=n(13),h=n(9),v=n(5),f=n(40),_=n(42),g=n(9),y=n(14),b="contextmenu",C={horizontal:"left",vertical:"bottom"},I={horizontal:"left",vertical:"top"},x={horizontal:"fit",vertical:"flip"},r=function(r){function e(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=b,o.alignToAnchor=!1,o.vertical=!0,o.popupOpen=new a.EventEmitter,o.popupClose=new a.EventEmitter,o.select=new a.EventEmitter,o.open=new a.EventEmitter,o.close=new a.EventEmitter,(o.service.owner=o).popupKeyDownHandler=o.popupKeyDownHandler.bind(o),o}return i.__extends(e,r),(t=e).prototype.hide=function(){this.removePopup()},e.prototype.show=function(e){if(e){var t=e;this.removePopup(),h.defined(t.left)&&h.defined(t.top)?this.createPopup({offset:t}):(this.currentTarget=t.nativeElement||t,this.createPopup({anchor:this.currentTarget}))}},e.prototype.ngOnChanges=function(e){(e.target||e.showOn)&&this.bindShowHandler()},e.prototype.ngOnInit=function(){var n=this;this.ngZone.runOutsideAngular(function(){var e=n.renderer.listen("document","mousedown",function(e){n.popupRef&&!m.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()}})},e.prototype.ngOnDestroy=function(){this.closeSubscription&&(this.closeSubscription(),this.closeSubscription=null),this.unbindShowHandler(),this.removePopup()},e.prototype.emitMenuEvent=function(e,t){t.target=this.currentTarget,(t.sender=this)[e].emit(t),"select"!==e||t.hasContent||this.closeAndFocus(t.originalEvent)},e.prototype.bindShowHandler=function(){var n=this;this.unbindShowHandler(),this.ngZone.runOutsideAngular(function(){var t=n.targetElement();if(t){var e=n.showOn||b;n.showSubscription=n.renderer.listen(t,n.showOn||b,function(e){n.showContextMenu(e,t)}),e===b&&(n.keydownSubscription=n.renderer.listen(t,"keydown",function(e){e.shiftKey&&e.keyCode===y.KeyCodes.F10&&n.showContextMenu(e,t)}))}})},e.prototype.showContextMenu=function(e,t){var n=this,i=this.targetFilter();if(this.currentTarget=t,i){var o=this.currentTarget=m.findInContainer(e.target,i,t);if(o&&o!==e.target&&m.isFocusable(e.target))return void(this.currentTarget=null);o&&this.directiveTarget&&(this.currentTarget=this.target.targetService.find(o))}this.currentTarget?this.ngZone.run(function(){n.closePopup(e)||n.openPopup(e)}):this.closePopup(e)},e.prototype.unbindShowHandler=function(){this.showSubscription&&(this.showSubscription(),this.showSubscription=null),this.keydownSubscription&&(this.keydownSubscription(),this.keydownSubscription=null)},e.prototype.targetElement=function(){if("undefined"!=typeof document){this.directiveTarget=!1;var e=this.target;return"string"==typeof e?e=document.querySelector(e):e&&e.nativeElement?e=e.nativeElement:e instanceof f.ContextMenuTargetContainerDirective&&(e=e.element,this.directiveTarget=!0),e}},e.prototype.targetFilter=function(){return this.directiveTarget?"."+_.TARGET_CLASS:this.filter},e.prototype.closePopup=function(e){var t=this;if(this.popupRef)return this.popupAction("popupClose",e,function(){t.removePopup()})},e.prototype.removePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.currentTarget=null),this.popupKeydownSubscription&&(this.popupKeydownSubscription(),this.popupKeydownSubscription=null)},e.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})})},e.prototype.createPopup=function(e){var t=this;this.popupRef=this.popupService.open(Object.assign({animate:!h.defined(this.popupAnimate)||this.popupAnimate,appendTo:this.appendTo,collision:this.collision||x,popupAlign:this.popupAlign||I,anchorAlign:this.anchorAlign||C,content:this.contentTemplate?this.contentTemplate.templateRef:this.defaultContentTemplate},e));var n=this.popupRef.popupElement;this.renderer.setAttribute(n,"tabindex","-1"),this.renderer.setStyle(n,"outline","0"),this.ariaLabel&&this.renderer.setAttribute(n,"aria-label",this.ariaLabel),this.activeTarget=this.currentTargetElement===document.activeElement,this.ngZone.runOutsideAngular(function(){t.popupKeydownSubscription=t.renderer.listen(n,"keydown",t.popupKeyDownHandler)}),n.focus()},e.prototype.closeAndFocus=function(e){var t=this.currentTargetElement;!this.closePopup(e)&&this.activeTarget&&t.focus()},e.prototype.popupKeyDownHandler=function(e){var t=this.popupRef.popupElement;e.keyCode!==y.KeyCodes.ESC||!m.hasClass(e.target,"k-menu-item")&&e.target!==t?e.target===t&&this.service.keydown.emit(e):this.closeAndFocus(e)},e.prototype.popupAction=function(e,t,n){var i=this,o=this[e],r=!1;return h.hasObservers(o)?this.ngZone.run(function(){var e=new c.ContextMenuPopupEvent({originalEvent:t,sender:i,target:i.currentTarget});o.emit(e),e.isDefaultPrevented()||n(),r=e.isDefaultPrevented()}):n(),r},Object.defineProperty(e.prototype,"currentTargetElement",{get:function(){return this.directiveTarget&&this.currentTarget?this.currentTarget.element:this.currentTarget},enumerable:!0,configurable:!0}),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"showOn",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"target",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"filter",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"alignToAnchor",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"popupAnimate",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"popupAlign",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"anchorAlign",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Object)],e.prototype,"collision",void 0),i.__decorate([a.Input(),i.__metadata("design:type",a.ViewContainerRef)],e.prototype,"appendTo",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"ariaLabel",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"popupOpen",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"popupClose",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"select",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"open",void 0),i.__decorate([a.Output(),i.__metadata("design:type",a.EventEmitter)],e.prototype,"close",void 0),i.__decorate([a.ContentChild(d.ContextMenuTemplateDirective),i.__metadata("design:type",d.ContextMenuTemplateDirective)],e.prototype,"contentTemplate",void 0),i.__decorate([a.ViewChild("default"),i.__metadata("design:type",a.TemplateRef)],e.prototype,"defaultContentTemplate",void 0),e=t=i.__decorate([a.Component({exportAs:"kendoContextMenu",providers:[u.ContextMenuService,o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.contextmenu"},{provide:v.ItemsService,useClass:l.ContextMenuItemsService},{provide:p.MenuBase,useExisting:a.forwardRef(function(){return t})},s.PopupService,{provide:s.POPUP_CONTAINER,useFactory:g.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 '}),i.__metadata("design:paramtypes",[s.PopupService,u.ContextMenuService,a.NgZone,a.Renderer2])],e);var t}(p.MenuBase);t.ContextMenuComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(15),a=function(){function e(e){this.contextService=e}return e.prototype.get=function(e){if(this.contextService.items)return this.contextService.items.get(e)},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[r.ContextMenuService])],e)}();t.ContextMenuItemsService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(41),a=function(){function e(e,t){this.targetService=t,e&&(this.element=e.nativeElement)}return e=i.__decorate([o.Directive({selector:"[kendoContextMenuTargetContainer]",exportAs:"kendoContextMenuTargetContainer",providers:[r.ContextMenuTargetService]}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetContainerDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=function(){function e(){this.targets=[]}return e.prototype.add=function(e){this.targets.push(e)},e.prototype.remove=function(e){var t=this.targets.indexOf(e);this.targets.splice(t,1)},e.prototype.find=function(t){return this.targets.find(function(e){return e.element===t})},e=i.__decorate([o.Injectable()],e)}();t.ContextMenuTargetService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(41);t.TARGET_CLASS="k-contextmenu-target";var a=function(){function e(e,t){this.targetService=t,this.hostClass=!0,e&&(this.element=e.nativeElement),t.add(this)}return e.prototype.ngOnDestroy=function(){this.targetService.remove(this)},i.__decorate([o.Input("kendoContextMenuTarget"),i.__metadata("design:type",Object)],e.prototype,"data",void 0),i.__decorate([o.HostBinding("class."+t.TARGET_CLASS),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([o.Directive({selector:"[kendoContextMenuTarget]",exportAs:"kendoContextMenuTarget"}),i.__metadata("design:paramtypes",[o.ElementRef,r.ContextMenuTargetService])],e)}();t.ContextMenuTargetDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(33),a=n(24),s=n(32),p=n(38),c=n(37),u=n(42),l=n(40),d=[p.ContextMenuComponent,c.ContextMenuTemplateDirective,u.ContextMenuTargetDirective,l.ContextMenuTargetContainerDirective],m=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[d],exports:[d,s.MenuModule],imports:[a.PopupModule,r.CommonModule,s.MenuModule]})],e)}();t.ContextMenuModule=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(32),a=n(43),s=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[r.MenuModule,a.ContextMenuModule]})],e)}();t.MenusModule=s}])}}}); |
@@ -6,3 +6,3 @@ { | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
"version": "1.1.0-dev.201808141445", | ||
"version": "1.1.0-dev.201808160830", | ||
"main": "dist/npm/index.js", | ||
@@ -9,0 +9,0 @@ "module": "dist/es/index.js", |
Sorry, the diff of this file is too big to display
638120
11045