@progress/kendo-angular-menu 3.0.6 → 4.0.0-next.202203230842
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-menu.umd.js +5 -0
- package/{dist/es2015/constants.d.ts → constants.d.ts} +0 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-event.d.ts +0 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-items.service.d.ts +3 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-popup-event.d.ts +0 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-select-event.d.ts +0 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-target-container.directive.d.ts +3 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-target.directive.d.ts +3 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-target.service.d.ts +3 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-template.directive.d.ts +3 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu.component.d.ts +4 -1
- package/{dist/es2015/context-menu → context-menu}/context-menu.module.d.ts +11 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu.service.d.ts +3 -0
- package/{dist/es2015/data-binding → data-binding}/binding-directive-base.d.ts +3 -0
- package/{dist/es2015/data-binding → data-binding}/flat-binding.directive.d.ts +3 -0
- package/{dist/es2015/data-binding → data-binding}/hierachy-binding.directive.d.ts +3 -0
- package/{dist/es2015/data-binding → data-binding}/utils.d.ts +0 -0
- package/{dist/es2015/dom-queries.d.ts → dom-queries.d.ts} +0 -0
- package/{dist/es2015 → esm2015}/constants.js +0 -0
- package/{dist/es2015 → esm2015}/context-menu/context-menu-event.js +0 -0
- package/esm2015/context-menu/context-menu-items.service.js +25 -0
- package/{dist/es2015 → esm2015}/context-menu/context-menu-popup-event.js +0 -0
- package/{dist/es2015 → esm2015}/context-menu/context-menu-select-event.js +0 -0
- package/esm2015/context-menu/context-menu-target-container.directive.js +32 -0
- package/esm2015/context-menu/context-menu-target.directive.js +46 -0
- package/{dist/es2015 → esm2015}/context-menu/context-menu-target.service.js +8 -10
- package/esm2015/context-menu/context-menu-template.directive.js +32 -0
- package/{dist/es2015 → esm2015}/context-menu/context-menu.component.js +107 -113
- package/{dist/es2015 → esm2015}/context-menu/context-menu.module.js +20 -11
- package/{dist/es2015 → esm2015}/context-menu/context-menu.service.js +8 -10
- package/{dist/es2015 → esm2015}/data-binding/binding-directive-base.js +11 -0
- package/esm2015/data-binding/flat-binding.directive.js +82 -0
- package/esm2015/data-binding/hierachy-binding.directive.js +71 -0
- package/{dist/es2015 → esm2015}/data-binding/utils.js +0 -1
- package/{dist/es2015 → esm2015}/dom-queries.js +0 -3
- package/{dist/es/constants.js → esm2015/kendo-angular-menu.js} +2 -2
- package/{dist/es → esm2015}/main.js +3 -2
- package/{dist/es → esm2015}/menu-animation.interface.js +1 -0
- package/esm2015/menu-base.js +69 -0
- package/{dist/es2015 → esm2015}/menu-event.js +0 -0
- package/{dist/es2015 → esm2015}/menu-item.component.js +41 -60
- package/{dist/es → esm2015}/menu-item.interface.js +1 -0
- package/{dist/es2015 → esm2015}/menu-select-event.js +0 -0
- package/{dist/es2015 → esm2015}/menu.component.js +76 -63
- package/{dist/es2015 → esm2015}/menu.module.js +32 -13
- package/{dist/es2015 → esm2015}/menus.module.js +12 -9
- package/{dist/es2015 → esm2015}/open-on-click-settings.js +0 -1
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
- package/esm2015/rendering/arrow.directive.js +62 -0
- package/esm2015/rendering/link.directive.js +54 -0
- package/esm2015/rendering/list.component.js +546 -0
- package/{dist/es2015 → esm2015}/rendering/popup-settings.js +0 -0
- package/{dist/es2015 → esm2015}/services/actions.service.js +21 -14
- package/{dist/es2015 → esm2015}/services/hover.service.js +10 -10
- package/{dist/es2015 → esm2015}/services/items.service.js +8 -13
- package/{dist/es2015 → esm2015}/services/navigation.service.js +12 -15
- package/{dist/es2015 → esm2015}/templates/item-content-template.directive.js +14 -12
- package/{dist/es2015 → esm2015}/templates/item-link-template.directive.js +14 -12
- package/{dist/es2015 → esm2015}/templates/item-template.directive.js +14 -12
- package/{dist/es2015 → esm2015}/utils.js +0 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-menu.js} +1112 -1113
- package/kendo-angular-menu.d.ts +9 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +3 -2
- package/{dist/es2015/menu-animation.interface.d.ts → menu-animation.interface.d.ts} +0 -0
- package/{dist/es2015/menu-base.d.ts → menu-base.d.ts} +4 -1
- package/{dist/es2015/menu-event.d.ts → menu-event.d.ts} +0 -0
- package/{dist/es2015/menu-item.component.d.ts → menu-item.component.d.ts} +7 -4
- package/{dist/es2015/menu-item.interface.d.ts → menu-item.interface.d.ts} +0 -0
- package/{dist/es2015/menu-select-event.d.ts → menu-select-event.d.ts} +0 -0
- package/{dist/es2015/menu.component.d.ts → menu.component.d.ts} +7 -4
- package/menu.module.d.ts +54 -0
- package/{dist/es2015/menus.module.d.ts → menus.module.d.ts} +6 -0
- package/{dist/es2015/open-on-click-settings.d.ts → open-on-click-settings.d.ts} +0 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +31 -106
- package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
- package/{dist/es2015/rendering → rendering}/arrow.directive.d.ts +6 -3
- package/{dist/es2015/rendering → rendering}/link.directive.d.ts +4 -1
- package/rendering/list.component.d.ts +104 -0
- package/{dist/es2015/rendering → rendering}/popup-settings.d.ts +0 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/services → services}/actions.service.d.ts +24 -1
- package/{dist/es2015/services → services}/hover.service.d.ts +7 -2
- package/{dist/es2015/services → services}/items.service.d.ts +4 -1
- package/{dist/es2015/services → services}/navigation.service.d.ts +6 -3
- package/{dist/es2015/templates → templates}/item-content-template.directive.d.ts +3 -0
- package/{dist/es2015/templates → templates}/item-link-template.directive.d.ts +3 -0
- package/{dist/es2015/templates → templates}/item-template.directive.d.ts +3 -0
- package/{dist/es2015/utils.d.ts → utils.d.ts} +1 -1
- package/dist/cdn/js/kendo-angular-menu.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/context-menu/context-menu-event.js +0 -13
- package/dist/es/context-menu/context-menu-items.service.js +0 -26
- package/dist/es/context-menu/context-menu-popup-event.js +0 -17
- package/dist/es/context-menu/context-menu-select-event.js +0 -17
- package/dist/es/context-menu/context-menu-target-container.directive.js +0 -31
- package/dist/es/context-menu/context-menu-target.directive.js +0 -48
- package/dist/es/context-menu/context-menu-target.service.js +0 -29
- package/dist/es/context-menu/context-menu-template.directive.js +0 -31
- package/dist/es/context-menu/context-menu.component.js +0 -456
- package/dist/es/context-menu/context-menu.module.js +0 -64
- package/dist/es/context-menu/context-menu.service.js +0 -30
- package/dist/es/data-binding/binding-directive-base.js +0 -32
- package/dist/es/data-binding/flat-binding.directive.js +0 -104
- package/dist/es/data-binding/hierachy-binding.directive.js +0 -94
- package/dist/es/data-binding/utils.js +0 -32
- package/dist/es/dom-queries.js +0 -107
- package/dist/es/index.js +0 -21
- package/dist/es/menu-base.js +0 -79
- package/dist/es/menu-event.js +0 -17
- package/dist/es/menu-item.component.js +0 -165
- package/dist/es/menu-select-event.js +0 -17
- package/dist/es/menu.component.js +0 -256
- package/dist/es/menu.module.js +0 -79
- package/dist/es/menus.module.js +0 -41
- package/dist/es/open-on-click-settings.js +0 -13
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/preventable-event.js +0 -36
- package/dist/es/rendering/arrow.directive.js +0 -81
- package/dist/es/rendering/item.component.js +0 -337
- package/dist/es/rendering/link.directive.js +0 -62
- package/dist/es/rendering/list.component.js +0 -219
- package/dist/es/rendering/popup-settings.js +0 -66
- package/dist/es/services/actions.service.js +0 -178
- package/dist/es/services/hover.service.js +0 -136
- package/dist/es/services/items.service.js +0 -140
- package/dist/es/services/navigation.service.js +0 -274
- package/dist/es/templates/item-content-template.directive.js +0 -50
- package/dist/es/templates/item-link-template.directive.js +0 -52
- package/dist/es/templates/item-template.directive.js +0 -51
- package/dist/es/utils.js +0 -18
- package/dist/es2015/context-menu/context-menu-items.service.js +0 -25
- package/dist/es2015/context-menu/context-menu-target-container.directive.js +0 -30
- package/dist/es2015/context-menu/context-menu-target.directive.js +0 -47
- package/dist/es2015/context-menu/context-menu-template.directive.js +0 -30
- package/dist/es2015/data-binding/flat-binding.directive.js +0 -101
- package/dist/es2015/data-binding/hierachy-binding.directive.js +0 -90
- package/dist/es2015/index.d.ts +0 -21
- package/dist/es2015/index.js +0 -21
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -26
- package/dist/es2015/menu-animation.interface.js +0 -4
- package/dist/es2015/menu-base.js +0 -73
- package/dist/es2015/menu-item.interface.js +0 -4
- package/dist/es2015/menu.module.d.ts +0 -38
- package/dist/es2015/rendering/arrow.directive.js +0 -68
- package/dist/es2015/rendering/item.component.d.ts +0 -64
- package/dist/es2015/rendering/item.component.js +0 -327
- package/dist/es2015/rendering/link.directive.js +0 -57
- package/dist/es2015/rendering/list.component.d.ts +0 -41
- package/dist/es2015/rendering/list.component.js +0 -233
- package/dist/fesm5/index.js +0 -3222
- package/dist/npm/constants.js +0 -10
- package/dist/npm/context-menu/context-menu-event.js +0 -15
- package/dist/npm/context-menu/context-menu-items.service.js +0 -28
- package/dist/npm/context-menu/context-menu-popup-event.js +0 -19
- package/dist/npm/context-menu/context-menu-select-event.js +0 -19
- package/dist/npm/context-menu/context-menu-target-container.directive.js +0 -33
- package/dist/npm/context-menu/context-menu-target.directive.js +0 -50
- package/dist/npm/context-menu/context-menu-target.service.js +0 -31
- package/dist/npm/context-menu/context-menu-template.directive.js +0 -33
- package/dist/npm/context-menu/context-menu.component.js +0 -459
- package/dist/npm/context-menu/context-menu.module.js +0 -66
- package/dist/npm/context-menu/context-menu.service.js +0 -32
- package/dist/npm/data-binding/binding-directive-base.js +0 -34
- package/dist/npm/data-binding/flat-binding.directive.js +0 -106
- package/dist/npm/data-binding/hierachy-binding.directive.js +0 -96
- package/dist/npm/data-binding/utils.js +0 -34
- package/dist/npm/dom-queries.js +0 -110
- package/dist/npm/index.js +0 -37
- package/dist/npm/main.js +0 -50
- package/dist/npm/menu-animation.interface.js +0 -6
- package/dist/npm/menu-base.js +0 -81
- package/dist/npm/menu-event.js +0 -19
- package/dist/npm/menu-item.component.js +0 -167
- package/dist/npm/menu-item.interface.js +0 -6
- package/dist/npm/menu-select-event.js +0 -19
- package/dist/npm/menu.component.js +0 -258
- package/dist/npm/menu.module.js +0 -81
- package/dist/npm/menus.module.js +0 -43
- package/dist/npm/open-on-click-settings.js +0 -15
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/preventable-event.js +0 -38
- package/dist/npm/rendering/arrow.directive.js +0 -83
- package/dist/npm/rendering/item.component.js +0 -339
- package/dist/npm/rendering/link.directive.js +0 -64
- package/dist/npm/rendering/list.component.js +0 -221
- package/dist/npm/rendering/popup-settings.js +0 -68
- package/dist/npm/services/actions.service.js +0 -180
- package/dist/npm/services/hover.service.js +0 -138
- package/dist/npm/services/items.service.js +0 -143
- package/dist/npm/services/navigation.service.js +0 -276
- package/dist/npm/templates/item-content-template.directive.js +0 -52
- package/dist/npm/templates/item-link-template.directive.js +0 -54
- package/dist/npm/templates/item-template.directive.js +0 -53
- package/dist/npm/utils.js +0 -20
- package/dist/systemjs/kendo-angular-menu.js +0 -5
|
@@ -6,6 +6,7 @@ import { NgZone } from '@angular/core';
|
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { ItemsService } from './items.service';
|
|
8
8
|
import { ActionsService } from './actions.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
9
10
|
/**
|
|
10
11
|
* @hidden
|
|
11
12
|
*/
|
|
@@ -17,9 +18,9 @@ export declare class NavigationService {
|
|
|
17
18
|
vertical: boolean;
|
|
18
19
|
activeIndex: string;
|
|
19
20
|
focusedIdx: string;
|
|
20
|
-
|
|
21
|
-
private
|
|
22
|
-
private
|
|
21
|
+
get focusedItem(): any;
|
|
22
|
+
private get activeItem();
|
|
23
|
+
private get handlers();
|
|
23
24
|
constructor(items: ItemsService, actions: ActionsService, localization: LocalizationService, ngZone: NgZone);
|
|
24
25
|
focus(item: any): void;
|
|
25
26
|
setFocus(item: any): void;
|
|
@@ -41,4 +42,6 @@ export declare class NavigationService {
|
|
|
41
42
|
tab(current: any): void;
|
|
42
43
|
private focusChild;
|
|
43
44
|
private setActive;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
|
|
46
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
|
|
44
47
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Represents a template for the content of the Menu items ([see example]({% slug templates_menu %})). To define the template,
|
|
8
9
|
* nest an `<ng-template>` tag with the `kendoMenuItemContentTemplate` directive inside a `<kendo-menu-item>` component.
|
|
@@ -36,4 +37,6 @@ import { TemplateRef } from '@angular/core';
|
|
|
36
37
|
export declare class ItemContentTemplateDirective {
|
|
37
38
|
templateRef: TemplateRef<any>;
|
|
38
39
|
constructor(templateRef: TemplateRef<any>);
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItemContentTemplateDirective, [{ optional: true; }]>;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ItemContentTemplateDirective, "[kendoMenuItemContentTemplate]", never, {}, {}, never>;
|
|
39
42
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Represents a template for the links of the Menu items ([see example]({% slug templates_menu %})). To define a template
|
|
8
9
|
* for an item, nest an `<ng-template>` tag with the `kendoMenuItemLinkTemplate` directive inside a `<kendo-menu-item>`
|
|
@@ -38,4 +39,6 @@ import { TemplateRef } from '@angular/core';
|
|
|
38
39
|
export declare class ItemLinkTemplateDirective {
|
|
39
40
|
templateRef: TemplateRef<any>;
|
|
40
41
|
constructor(templateRef: TemplateRef<any>);
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItemLinkTemplateDirective, [{ optional: true; }]>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ItemLinkTemplateDirective, "[kendoMenuItemLinkTemplate]", never, {}, {}, never>;
|
|
41
44
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Represents a template for the Menu items ([see example]({% slug templates_menu %})). To define a template
|
|
8
9
|
* for an item, nest an `<ng-template>` tag with the `kendoMenuItemTemplate` directive inside a `<kendo-menu-item>`
|
|
@@ -37,4 +38,6 @@ import { TemplateRef } from '@angular/core';
|
|
|
37
38
|
export declare class ItemTemplateDirective {
|
|
38
39
|
templateRef: TemplateRef<any>;
|
|
39
40
|
constructor(templateRef: TemplateRef<any>);
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItemTemplateDirective, [{ optional: true; }]>;
|
|
42
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ItemTemplateDirective, "[kendoMenuItemTemplate]", never, {}, {}, never>;
|
|
40
43
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-popup"),require("@progress/kendo-angular-l10n"),require("@angular/common"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define([,,,,,],t):"object"==typeof exports?exports.KendoAngularMenu=t(require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-popup"),require("@progress/kendo-angular-l10n"),require("@angular/common"),require("@progress/kendo-licensing")):e.KendoAngularMenu=t(e.ng.core,e.KendoAngularCommon,e.KendoAngularPopup,e.KendoAngularL10N,e.ng.common,e.KendoLicensing)}(window,(function(e,t,n,i,o,r){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}([function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return r})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return p})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return l})),n.d(t,"__createBinding",(function(){return d})),n.d(t,"__exportStar",(function(){return m})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return h})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return _})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return g})),n.d(t,"__asyncDelegator",(function(){return b})),n.d(t,"__asyncValues",(function(){return x})),n.d(t,"__makeTemplateObject",(function(){return O})),n.d(t,"__importStar",(function(){return I})),n.d(t,"__importDefault",(function(){return C})),n.d(t,"__classPrivateFieldGet",(function(){return k})),n.d(t,"__classPrivateFieldSet",(function(){return S}));
|
|
6
|
-
/*! *****************************************************************************
|
|
7
|
-
Copyright (c) Microsoft Corporation.
|
|
8
|
-
|
|
9
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
-
purpose with or without fee is hereby granted.
|
|
11
|
-
|
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
14
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
16
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
17
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
-
***************************************************************************** */
|
|
20
|
-
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function s(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,i){t(n,i,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function l(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function d(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}function m(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function _(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,p):u(r[0][2],n)}catch(e){u(r[0][3],e)}var n}function c(e){s("next",e)}function p(e){s("throw",e)}function u(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function b(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,o){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,o,(t=e[n](t)).done,t.value)}))}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=/_?\d+$/,a=0,s=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},p=function(){function e(){this.items={},this.lists=[],this.idPrefix="k-menu"+a++}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+"_":"")+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){this.items[e.index]===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("_")},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 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=p},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(12),s=n(3),c=function(e,t){return!("open"===t&&e.opened||"close"===t&&!e.opened)},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);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;c(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=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=/^(?:a|input|select|option|textarea|button|object)$/i;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,r=null!==n&&!i;return o.test(t)&&(r=!e.disabled&&!i),r}return!1};var r=function(e){return String(e).trim().split(" ")};t.hasClass=function(e,t){return r(e.className).indexOf(t)>=0},t.matchesClasses=function(e){var t=r(e);return function(e){var n=r(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 o=i.getAttribute("id");o||i.setAttribute("id","kendo-matches-container");var r="#"+(o||"kendo-matches-container")+" "+n,a=t.closestInScope(e,(function(e){return function(e,t){return(e.matches||e.msMatchesSelector).call(e,t)}(e,r)}),i);return o||i.removeAttribute("id"),a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(5),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(0),o=n(1),r=n(14),a=n(8),s=n(9),c=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=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),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(0),o=n(1),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){e.exports=n},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(20).PreventableEvent);t.MenuEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(11),a=n(2),s=n(4),c=/\S/,p={37:"left",39:"right",38:"up",40:"down",36:"home",35:"end",32:"enter",13:"enter",27:"esc",9:"tab"},u=Object.assign({},p,{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:p},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&&c.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(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=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(0),o=n(1),r=n(8),a=n(9),s=n(15),c=function(){function e(){}var t;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(){var e=this;if(this.children.length)return this.children.toArray().filter((function(t){return t!==e}))},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)}();t.MenuItemComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),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(1),o=n(3);t.defined=function(e){return void 0!==e},t.bodyFactory=function(){if(o.isDocumentAvailable())return new i.ElementRef(document.body)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(31),a=n(10),s=n(19),c=n(14),p=n(23),u=n(24),l=n(25),d=n(26),m=n(8),f=n(9),h=n(15),v=n(27),_=n(30),y=[s.MenuComponent,c.MenuItemComponent,m.ItemTemplateDirective,f.ItemLinkTemplateDirective,h.ItemContentTemplateDirective,v.HierarchyBindingDirective,_.FlatBindingDirective,l.LinkDirective,d.ExpandArrowDirective],g=y.concat([p.ListComponent,u.ItemComponent]),b=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[g],exports:[y],imports:[a.PopupModule,r.CommonModule]})],e)}();t.MenuModule=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),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(0),o=n(1),r=n(11),a=n(40),s=n(41),c=n(2),p=n(4),u=n(13),l=n(21),d=n(42),m=n(5),f=n(6),h=n(7),v=n(3),_=function(e){function t(t,n,i,r,c,p,u,l){var d=e.call(this)||this;return d.itemsService=t,d.hover=n,d.actions=i,d.navigation=r,d.localization=c,d.ngZone=p,d.renderer=u,d.contextService=l,d.select=new o.EventEmitter,d.open=new o.EventEmitter,d.close=new o.EventEmitter,a.validatePackage(s.packageMetadata),d.actions.owner=d,l&&(l.items=d.itemsService,d.contextKeyDownSubscription=l.keydown.subscribe(d.contextKeyDown.bind(d))),d}var n;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=d.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&&v.isDocumentAvailable()&&this.ngZone.runOutsideAngular((function(){e.closeClickSubscription=e.renderer.listen("document","click",(function(t){m.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===v.Keys.ArrowDown||n===v.Keys.ArrowRight,r=n===v.Keys.ArrowUp||n===v.Keys.ArrowLeft;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:[c.ItemsService,p.ActionsService,u.NavigationService,l.HoverService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.menu"},{provide:h.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",[c.ItemsService,l.HoverService,p.ActionsService,u.NavigationService,r.LocalizationService,o.NgZone,o.Renderer2,f.ContextMenuService])],t)}(h.MenuBase);t.MenuComponent=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(4),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(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,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;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=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NODE_INDEX="data-kendo-menu-index"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(4),s=n(13),c=n(21),p=n(22),u=n(5),l=n(3),d=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;l.isDocumentAvailable()&&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-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(document,"touchstart",(function(t){if(u.inMenu(t.target,e.itemsService)){var n=e.nodeItem(t.target);e.navigation.focus(n),n.opened||e.hover.over(n)}else if(e.navigation.focusedIdx){var i=e.itemsService.get(e.navigation.activeIndex);e.onLeave(),i.blur()}})),c=e.renderer.listen(t,"click",e.clickHandler.bind(e));e.domSubscriptions=function(){i(),o(),r(),a(),c(),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)e.preventDefault();else{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.'+p.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,c.HoverService,a.ActionsService,s.NavigationService,o.Renderer2,o.NgZone,o.ElementRef])],e)}();t.ListComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(13),s=n(43),c=n(10),p=n(16),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.blur=function(){this.element.nativeElement.blur()},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",{static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"link",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),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:[c.PopupService,{provide:c.POPUP_CONTAINER,useFactory:p.bodyFactory}],selector:"[kendoMenuItem]",template:'\n <span *ngIf="!hasLink && !item.content && !linkTemplate" class="k-link k-menu-link" #link\n [class.k-state-active]="opened" role="presentation">\n <ng-template [ngTemplateOutlet]="itemcontent">\n </ng-template>\n </span>\n <a *ngIf="item.url && !linkTemplate" class="k-link k-menu-link" #link [attr.href]="item.url"\n [class.k-state-active]="opened" tabindex="-1" role="presentation">\n <ng-template [ngTemplateOutlet]="itemcontent">\n </ng-template>\n </a>\n <ng-template *ngIf="linkTemplate && !item.content" [ngTemplateOutlet]="linkTemplate"\n [ngTemplateOutletContext]="{ item: item, index: index }">\n </ng-template>\n\n <div class="k-content" *ngIf="item.content" role="presentation">\n <ng-template [ngTemplateOutlet]="item.content" [ngTemplateOutletContext]="{ item: item.owner, index: item.ownerIndex }">\n </ng-template>\n </div>\n\n <ng-template #popupTemplate>\n <ul kendoMenuList\n [attr.id]="childId"\n [animate]="animate"\n [rtl]="rtl"\n [vertical]="vertical"\n [openOnClick]="openOnClick"\n [items]="children"\n [level]="level + 1"\n [index]="index"\n [itemTemplate]="itemTemplate"\n [itemLinkTemplate]="itemLinkTemplate"\n role="menu"\n class="k-group k-menu-group k-reset">\n </ul>\n </ng-template>\n\n <ng-template #itemcontent>\n <span *ngIf="item.icon" class="k-icon" [ngClass]="iconClass" role="presentation"></span>\n <ng-container *ngIf="!template">\n <span class="k-menu-link-text">{{ item.text }}</span>\n </ng-container>\n <ng-template *ngIf="template" [ngTemplateOutlet]="template" [ngTemplateOutletContext]="{ item: item, index: index }">\n </ng-template>\n <span class="k-icon k-menu-expand-arrow" *ngIf="hasContent"\n role="presentation"\n [class.k-i-arrow-60-down]="!horizontal"\n [class.k-i-arrow-60-right]="horizontal && !rtl"\n [class.k-i-arrow-60-left]="horizontal && rtl">\n </span>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.ItemsService,a.NavigationService,o.ChangeDetectorRef,o.Renderer2,c.PopupService,o.ElementRef])],e)}();t.ItemComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),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(0),o=n(1),r=n(2),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(0),o=n(1),r=n(7),a=n(28),s=n(29),c=function(e,t){return Array.isArray(e)?e[t]||s.last(e):e},p=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,p=r.source;n[a]=s.getter(c(p,t))(e)}return n},t.prototype.getChildren=function(e,t){if(this.childrenField)return e[c(this.childrenField,t)]},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=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["textField","urlField","iconField","disabledField","cssClassField","cssStyleField","separatorField"],o=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<i.length;t++){var n=i[t],o=this[n];o&&e.push({target:n.replace("Field",""),source:o})}this.menu.items=this.data?this.mapItems(this.data):[]},e}();t.BindingDirectiveBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,o={undefined:function(e){return e}};t.getter=function(e){if(o[e])return o[e];var t=[];return e.replace(i,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),o[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},o[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(0),o=n(1),r=n(7),a=n(28),s=n(29),c=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),c=s.getter(this.idField)(r),p=s.getter(this.parentIdField)(r);if(null==p)n.push(a);else{var u=i[p]=i[p]||{};u.items=u.items||[],u.items.push(a)}i[c]&&(a.items=i[c].items),i[c]=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;t[o.target]=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=c},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.ContextMenuEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(20).PreventableEvent);t.ContextMenuPopupEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(11),a=n(10),s=n(3),c=n(7),p=n(33),u=n(6),l=n(46),d=n(18),m=n(5),f=n(16),h=n(2),v=n(35),_=n(37),y=n(16),g={horizontal:"left",vertical:"bottom"},b={horizontal:"left",vertical:"top"},x={horizontal:"fit",vertical:"flip"},O=function(e){return e.preventDefault()},I=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="contextmenu",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}var n;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(),f.defined(t.left)&&f.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&&!m.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||"contextmenu";e.showSubscription=e.renderer.listen(t,e.showOn||"contextmenu",(function(n){e.showContextMenu(n,t)})),"contextmenu"===n&&(e.keydownSubscription=e.renderer.listen(t,"keydown",(function(n){n.shiftKey&&n.keyCode===s.Keys.F10&&e.showContextMenu(n,t)})))}}))},t.prototype.showContextMenu=function(e,t){var n=this,i=this.targetFilter(),o=t;if(i){if((o=m.findInContainer(e.target,i,t))&&o!==e.target&&m.isFocusable(e.target))return;o&&this.directiveTarget&&(o=this.target.targetService.find(o))}o?this.ngZone.run((function(){n.closePopup(e)||(n.currentTarget=o,n.openPopup(e))})):this.closePopup(e)},t.prototype.unbindShowHandler=function(){this.showSubscription&&(this.showSubscription(),this.showSubscription=null),this.keydownSubscription&&(this.keydownSubscription(),this.keydownSubscription=null)},t.prototype.targetElement=function(){if(s.isDocumentAvailable()){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?"."+_.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.popupSubscriptions&&(this.popupSubscriptions(),this.popupSubscriptions=null)},t.prototype.openPopup=function(e){var t=this;this.popupAction("popupOpen",e,(function(){var n,i;e.preventDefault(),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:!f.defined(this.popupAnimate)||this.popupAnimate,appendTo:this.appendTo,collision:this.collision||x,popupAlign:this.popupAlign||b,anchorAlign:this.anchorAlign||g,content:this.contentTemplate?this.contentTemplate.templateRef:this.defaultContentTemplate,popupClass:"k-menu-popup"},e));var n=this.popupRef.popupElement;this.renderer.addClass(n,"k-context-menu-popup"),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(){var e=t.renderer.listen(n,"keydown",t.popupKeyDownHandler),i=t.renderer.listen(n,"contextmenu",O);t.popupSubscriptions=function(){e(),i()}})),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!==s.Keys.Escape||!m.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 s.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(d.ContextMenuTemplateDirective,{static:!1}),i.__metadata("design:type",d.ContextMenuTemplateDirective)],t.prototype,"contentTemplate",void 0),i.__decorate([o.ViewChild("default",{static:!1}),i.__metadata("design:type",o.TemplateRef)],t.prototype,"defaultContentTemplate",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoContextMenu",providers:[u.ContextMenuService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.contextmenu"},{provide:h.ItemsService,useClass:l.ContextMenuItemsService},{provide:c.MenuBase,useExisting:o.forwardRef((function(){return n}))},a.PopupService,{provide:a.POPUP_CONTAINER,useFactory:y.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,u.ContextMenuService,o.NgZone,o.Renderer2])],t)}(c.MenuBase);t.ContextMenuComponent=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(36),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(0),o=n(1),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(0),o=n(1),r=n(36);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(0),o=n(1),r=n(31),a=n(10),s=n(17),c=n(34),p=n(18),u=n(37),l=n(35),d=[c.ContextMenuComponent,p.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(19);t.MenuComponent=i.MenuComponent;var o=n(23);t.ListComponent=o.ListComponent;var r=n(24);t.ItemComponent=r.ItemComponent;var a=n(25);t.LinkDirective=a.LinkDirective;var s=n(26);t.ExpandArrowDirective=s.ExpandArrowDirective;var c=n(14);t.MenuItemComponent=c.MenuItemComponent;var p=n(12);t.MenuEvent=p.MenuEvent;var u=n(44);t.MenuSelectEvent=u.MenuSelectEvent;var l=n(15);t.ItemContentTemplateDirective=l.ItemContentTemplateDirective;var d=n(8);t.ItemTemplateDirective=d.ItemTemplateDirective;var m=n(9);t.ItemLinkTemplateDirective=m.ItemLinkTemplateDirective;var f=n(27);t.HierarchyBindingDirective=f.HierarchyBindingDirective;var h=n(30);t.FlatBindingDirective=h.FlatBindingDirective;var v=n(17);t.MenuModule=v.MenuModule;var _=n(32);t.ContextMenuEvent=_.ContextMenuEvent;var y=n(45);t.ContextMenuSelectEvent=y.ContextMenuSelectEvent;var g=n(33);t.ContextMenuPopupEvent=g.ContextMenuPopupEvent;var b=n(18);t.ContextMenuTemplateDirective=b.ContextMenuTemplateDirective;var x=n(34);t.ContextMenuComponent=x.ContextMenuComponent;var O=n(38);t.ContextMenuModule=O.ContextMenuModule;var I=n(6);t.ContextMenuService=I.ContextMenuService;var C=n(47);t.MenusModule=C.MenusModule},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-menu",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1647359300,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){return e&&Object.assign({toggle:"select"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={vertical:"top",horizontal:"left"},o={vertical:"top",horizontal:"right"},r={vertical:"flip",horizontal:"fit"},a={vertical:"fit",horizontal:"flip"};t.POPUP_SETTINGS_RTL={vertical:{anchor:{vertical:"bottom",horizontal:"right"},popup:o,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"left"},popup:o,collision:a,animate:"left"}},t.POPUP_SETTINGS={vertical:{anchor:{vertical:"bottom",horizontal:"left"},popup:i,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"right"},popup:i,collision:a,animate:"right"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(12).MenuEvent);t.MenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(32).ContextMenuEvent);t.ContextMenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),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(0),o=n(1),r=n(17),a=n(38),s=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[r.MenuModule,a.ContextMenuModule]})],e)}();t.MenusModule=s}])}));
|
package/dist/cdn/main.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-popup"),require("@progress/kendo-angular-l10n"),require("@angular/common"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define([,,,,,,],t):"object"==typeof exports?exports.KendoAngularMenu=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-popup"),require("@progress/kendo-angular-l10n"),require("@angular/common"),require("@progress/kendo-licensing")):e.KendoAngularMenu=t(e.self,e.ng.core,e.KendoAngularCommon,e.KendoAngularPopup,e.KendoAngularL10N,e.ng.common,e.KendoLicensing)}(window,(function(e,t,n,i,o,r,a){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),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 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+"_":"")+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){this.items[e.index]===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("_")},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){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(12),s=n(3),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(22),o=/^(?:a|input|select|option|textarea|button|object)$/i;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,r=null!==n&&!i;return o.test(t)&&(r=!e.disabled&&!i),r}return!1};var r=function(e){return String(e).trim().split(" ")};t.hasClass=function(e,t){return r(e.className).indexOf(t)>=0},t.matchesClasses=function(e){var t=r(e);return function(e){var n=r(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 o=i.getAttribute("id");o||i.setAttribute("id","kendo-matches-container");var r="#"+(o||"kendo-matches-container")+" "+n,a=t.closestInScope(e,(function(e){return function(e,t){return(e.matches||e.msMatchesSelector).call(e,t)}(e,r)}),i);return o||i.removeAttribute("id"),a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(3),a=n(5),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(0),o=n(1),r=n(14),a=n(8),s=n(9),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(0),o=n(1),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(0),o=n(1),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){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(20).PreventableEvent);t.MenuEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(11),a=n(2),s=n(4),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(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=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(0),o=n(1),r=n(8),a=n(9),s=n(15),p=function(){function e(){}var t;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(){var e=this;if(this.children.length)return this.children.toArray().filter((function(t){return t!==e}))},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)}();t.MenuItemComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),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(1),o=n(3);t.defined=function(e){return void 0!==e},t.bodyFactory=function(){if(o.isDocumentAvailable())return new i.ElementRef(document.body)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(31),a=n(10),s=n(19),p=n(14),c=n(23),u=n(24),l=n(25),d=n(26),m=n(8),h=n(9),v=n(15),f=n(27),_=n(30),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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),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(0),o=n(1),r=n(11),a=n(40),s=n(41),p=n(2),c=n(4),u=n(13),l=n(21),d=n(42),m=n(5),h=n(6),v=n(7),f=n(3),_=function(e){function t(t,n,i,r,p,c,u,l){var d=e.call(this)||this;return d.itemsService=t,d.hover=n,d.actions=i,d.navigation=r,d.localization=p,d.ngZone=c,d.renderer=u,d.contextService=l,d.select=new o.EventEmitter,d.open=new o.EventEmitter,d.close=new o.EventEmitter,a.validatePackage(s.packageMetadata),d.actions.owner=d,l&&(l.items=d.itemsService,d.contextKeyDownSubscription=l.keydown.subscribe(d.contextKeyDown.bind(d))),d}var n;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=d.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&&f.isDocumentAvailable()&&this.ngZone.runOutsideAngular((function(){e.closeClickSubscription=e.renderer.listen("document","click",(function(t){m.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===f.Keys.ArrowDown||n===f.Keys.ArrowRight,r=n===f.Keys.ArrowUp||n===f.Keys.ArrowLeft;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:[p.ItemsService,c.ActionsService,u.NavigationService,l.HoverService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.menu"},{provide:v.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",[p.ItemsService,l.HoverService,c.ActionsService,u.NavigationService,r.LocalizationService,o.NgZone,o.Renderer2,h.ContextMenuService])],t)}(v.MenuBase);t.MenuComponent=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=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=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(4),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(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,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;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=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NODE_INDEX="data-kendo-menu-index"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(4),s=n(13),p=n(21),c=n(22),u=n(5),l=n(3),d=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;l.isDocumentAvailable()&&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-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(document,"touchstart",(function(t){if(u.inMenu(t.target,e.itemsService)){var n=e.nodeItem(t.target);e.navigation.focus(n),n.opened||e.hover.over(n)}else if(e.navigation.focusedIdx){var i=e.itemsService.get(e.navigation.activeIndex);e.onLeave(),i.blur()}})),p=e.renderer.listen(t,"click",e.clickHandler.bind(e));e.domSubscriptions=function(){i(),o(),r(),a(),p(),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)e.preventDefault();else{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=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(13),s=n(43),p=n(10),c=n(16),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.blur=function(){this.element.nativeElement.blur()},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",{static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"link",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),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 <span class="k-menu-link-text">{{ item.text }}</span>\n </ng-container>\n <ng-template *ngIf="template" [ngTemplateOutlet]="template" [ngTemplateOutletContext]="{ item: item, index: index }">\n </ng-template>\n <span class="k-icon k-menu-expand-arrow" *ngIf="hasContent"\n role="presentation"\n [class.k-i-arrow-60-down]="!horizontal"\n [class.k-i-arrow-60-right]="horizontal && !rtl"\n [class.k-i-arrow-60-left]="horizontal && rtl">\n </span>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.ItemsService,a.NavigationService,o.ChangeDetectorRef,o.Renderer2,p.PopupService,o.ElementRef])],e)}();t.ItemComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),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(0),o=n(1),r=n(2),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(0),o=n(1),r=n(7),a=n(28),s=n(29),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)return e[p(this.childrenField,t)]},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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["textField","urlField","iconField","disabledField","cssClassField","cssStyleField","separatorField"],o=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<i.length;t++){var n=i[t],o=this[n];o&&e.push({target:n.replace("Field",""),source:o})}this.menu.items=this.data?this.mapItems(this.data):[]},e}();t.BindingDirectiveBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,o={undefined:function(e){return e}};t.getter=function(e){if(o[e])return o[e];var t=[];return e.replace(i,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),o[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},o[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(0),o=n(1),r=n(7),a=n(28),s=n(29),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)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;t[o.target]=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){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.ContextMenuEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(20).PreventableEvent);t.ContextMenuPopupEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(11),a=n(10),s=n(3),p=n(7),c=n(33),u=n(6),l=n(46),d=n(18),m=n(5),h=n(16),v=n(2),f=n(35),_=n(37),g=n(16),y={horizontal:"left",vertical:"bottom"},b={horizontal:"left",vertical:"top"},x={horizontal:"fit",vertical:"flip"},I=function(e){return e.preventDefault()},O=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="contextmenu",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}var n;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(),h.defined(t.left)&&h.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&&!m.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||"contextmenu";e.showSubscription=e.renderer.listen(t,e.showOn||"contextmenu",(function(n){e.showContextMenu(n,t)})),"contextmenu"===n&&(e.keydownSubscription=e.renderer.listen(t,"keydown",(function(n){n.shiftKey&&n.keyCode===s.Keys.F10&&e.showContextMenu(n,t)})))}}))},t.prototype.showContextMenu=function(e,t){var n=this,i=this.targetFilter(),o=t;if(i){if((o=m.findInContainer(e.target,i,t))&&o!==e.target&&m.isFocusable(e.target))return;o&&this.directiveTarget&&(o=this.target.targetService.find(o))}o?this.ngZone.run((function(){n.closePopup(e)||(n.currentTarget=o,n.openPopup(e))})):this.closePopup(e)},t.prototype.unbindShowHandler=function(){this.showSubscription&&(this.showSubscription(),this.showSubscription=null),this.keydownSubscription&&(this.keydownSubscription(),this.keydownSubscription=null)},t.prototype.targetElement=function(){if(s.isDocumentAvailable()){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}},t.prototype.targetFilter=function(){return this.directiveTarget?"."+_.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.popupSubscriptions&&(this.popupSubscriptions(),this.popupSubscriptions=null)},t.prototype.openPopup=function(e){var t=this;this.popupAction("popupOpen",e,(function(){var n,i;e.preventDefault(),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:!h.defined(this.popupAnimate)||this.popupAnimate,appendTo:this.appendTo,collision:this.collision||x,popupAlign:this.popupAlign||b,anchorAlign:this.anchorAlign||y,content:this.contentTemplate?this.contentTemplate.templateRef:this.defaultContentTemplate,popupClass:"k-menu-popup"},e));var n=this.popupRef.popupElement;this.renderer.addClass(n,"k-context-menu-popup"),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(){var e=t.renderer.listen(n,"keydown",t.popupKeyDownHandler),i=t.renderer.listen(n,"contextmenu",I);t.popupSubscriptions=function(){e(),i()}})),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!==s.Keys.Escape||!m.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 s.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(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(d.ContextMenuTemplateDirective,{static:!1}),i.__metadata("design:type",d.ContextMenuTemplateDirective)],t.prototype,"contentTemplate",void 0),i.__decorate([o.ViewChild("default",{static:!1}),i.__metadata("design:type",o.TemplateRef)],t.prototype,"defaultContentTemplate",void 0),t=n=i.__decorate([o.Component({exportAs:"kendoContextMenu",providers:[u.ContextMenuService,r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.contextmenu"},{provide:v.ItemsService,useClass:l.ContextMenuItemsService},{provide:p.MenuBase,useExisting:o.forwardRef((function(){return n}))},a.PopupService,{provide:a.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",[a.PopupService,u.ContextMenuService,o.NgZone,o.Renderer2])],t)}(p.MenuBase);t.ContextMenuComponent=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(36),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(0),o=n(1),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(0),o=n(1),r=n(36);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(0),o=n(1),r=n(31),a=n(10),s=n(17),p=n(34),c=n(18),u=n(37),l=n(35),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(19);t.MenuComponent=i.MenuComponent;var o=n(23);t.ListComponent=o.ListComponent;var r=n(24);t.ItemComponent=r.ItemComponent;var a=n(25);t.LinkDirective=a.LinkDirective;var s=n(26);t.ExpandArrowDirective=s.ExpandArrowDirective;var p=n(14);t.MenuItemComponent=p.MenuItemComponent;var c=n(12);t.MenuEvent=c.MenuEvent;var u=n(44);t.MenuSelectEvent=u.MenuSelectEvent;var l=n(15);t.ItemContentTemplateDirective=l.ItemContentTemplateDirective;var d=n(8);t.ItemTemplateDirective=d.ItemTemplateDirective;var m=n(9);t.ItemLinkTemplateDirective=m.ItemLinkTemplateDirective;var h=n(27);t.HierarchyBindingDirective=h.HierarchyBindingDirective;var v=n(30);t.FlatBindingDirective=v.FlatBindingDirective;var f=n(17);t.MenuModule=f.MenuModule;var _=n(32);t.ContextMenuEvent=_.ContextMenuEvent;var g=n(45);t.ContextMenuSelectEvent=g.ContextMenuSelectEvent;var y=n(33);t.ContextMenuPopupEvent=y.ContextMenuPopupEvent;var b=n(18);t.ContextMenuTemplateDirective=b.ContextMenuTemplateDirective;var x=n(34);t.ContextMenuComponent=x.ContextMenuComponent;var I=n(38);t.ContextMenuModule=I.ContextMenuModule;var O=n(6);t.ContextMenuService=O.ContextMenuService;var C=n(47);t.MenusModule=C.MenusModule},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-menu",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1647359300,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){return e&&Object.assign({toggle:"select"},e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={vertical:"top",horizontal:"left"},o={vertical:"top",horizontal:"right"},r={vertical:"flip",horizontal:"fit"},a={vertical:"fit",horizontal:"flip"};t.POPUP_SETTINGS_RTL={vertical:{anchor:{vertical:"bottom",horizontal:"right"},popup:o,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"left"},popup:o,collision:a,animate:"left"}},t.POPUP_SETTINGS={vertical:{anchor:{vertical:"bottom",horizontal:"left"},popup:i,collision:r,animate:"down"},horizontal:{anchor:{vertical:"top",horizontal:"right"},popup:i,collision:a,animate:"right"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(12).MenuEvent);t.MenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(32).ContextMenuEvent);t.ContextMenuSelectEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(6),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(0),o=n(1),r=n(17),a=n(38),s=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[r.MenuModule,a.ContextMenuModule]})],e)}();t.MenusModule=s}])}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Arguments for the `open` and `close` events of the ContextMenu.
|
|
7
|
-
*/
|
|
8
|
-
var ContextMenuEvent = /** @class */ (function () {
|
|
9
|
-
function ContextMenuEvent() {
|
|
10
|
-
}
|
|
11
|
-
return ContextMenuEvent;
|
|
12
|
-
}());
|
|
13
|
-
export { ContextMenuEvent };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Injectable } from '@angular/core';
|
|
7
|
-
import { ContextMenuService } from './context-menu.service';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
var ContextMenuItemsService = /** @class */ (function () {
|
|
12
|
-
function ContextMenuItemsService(contextService) {
|
|
13
|
-
this.contextService = contextService;
|
|
14
|
-
}
|
|
15
|
-
ContextMenuItemsService.prototype.get = function (index) {
|
|
16
|
-
if (this.contextService.items) {
|
|
17
|
-
return this.contextService.items.get(index);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
ContextMenuItemsService = tslib_1.__decorate([
|
|
21
|
-
Injectable(),
|
|
22
|
-
tslib_1.__metadata("design:paramtypes", [ContextMenuService])
|
|
23
|
-
], ContextMenuItemsService);
|
|
24
|
-
return ContextMenuItemsService;
|
|
25
|
-
}());
|
|
26
|
-
export { ContextMenuItemsService };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { PreventableEvent } from '../preventable-event';
|
|
7
|
-
/**
|
|
8
|
-
* Arguments for the `popupOpen` and `popupClose` events of the ContextMenu.
|
|
9
|
-
*/
|
|
10
|
-
var ContextMenuPopupEvent = /** @class */ (function (_super) {
|
|
11
|
-
tslib_1.__extends(ContextMenuPopupEvent, _super);
|
|
12
|
-
function ContextMenuPopupEvent() {
|
|
13
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
-
}
|
|
15
|
-
return ContextMenuPopupEvent;
|
|
16
|
-
}(PreventableEvent));
|
|
17
|
-
export { ContextMenuPopupEvent };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { ContextMenuEvent } from './context-menu-event';
|
|
7
|
-
/**
|
|
8
|
-
* Arguments for the `select` event of the ContextMenu.
|
|
9
|
-
*/
|
|
10
|
-
var ContextMenuSelectEvent = /** @class */ (function (_super) {
|
|
11
|
-
tslib_1.__extends(ContextMenuSelectEvent, _super);
|
|
12
|
-
function ContextMenuSelectEvent() {
|
|
13
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
-
}
|
|
15
|
-
return ContextMenuSelectEvent;
|
|
16
|
-
}(ContextMenuEvent));
|
|
17
|
-
export { ContextMenuSelectEvent };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, ElementRef } from '@angular/core';
|
|
7
|
-
import { ContextMenuTargetService } from './context-menu-target.service';
|
|
8
|
-
/**
|
|
9
|
-
* Specifies a container for the [targets]({% slug api_menu_contextmenutargetdirective %}) of the ContextMenu.
|
|
10
|
-
*/
|
|
11
|
-
var ContextMenuTargetContainerDirective = /** @class */ (function () {
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
function ContextMenuTargetContainerDirective(elementRef, targetService) {
|
|
16
|
-
this.targetService = targetService;
|
|
17
|
-
if (elementRef) {
|
|
18
|
-
this.element = elementRef.nativeElement;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
ContextMenuTargetContainerDirective = tslib_1.__decorate([
|
|
22
|
-
Directive({
|
|
23
|
-
selector: '[kendoContextMenuTargetContainer]',
|
|
24
|
-
exportAs: 'kendoContextMenuTargetContainer',
|
|
25
|
-
providers: [ContextMenuTargetService]
|
|
26
|
-
}),
|
|
27
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef, ContextMenuTargetService])
|
|
28
|
-
], ContextMenuTargetContainerDirective);
|
|
29
|
-
return ContextMenuTargetContainerDirective;
|
|
30
|
-
}());
|
|
31
|
-
export { ContextMenuTargetContainerDirective };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, ElementRef, Input, HostBinding } from '@angular/core';
|
|
7
|
-
import { ContextMenuTargetService } from './context-menu-target.service';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export var TARGET_CLASS = 'k-contextmenu-target';
|
|
12
|
-
/**
|
|
13
|
-
* Specifies a [target]({% slug api_menu_contextmenutargetdirective %}) for the ContextMenu
|
|
14
|
-
* ([see example]({% slug target_contextmenu %}#toc-directives)).
|
|
15
|
-
*/
|
|
16
|
-
var ContextMenuTargetDirective = /** @class */ (function () {
|
|
17
|
-
function ContextMenuTargetDirective(elementRef, targetService) {
|
|
18
|
-
this.targetService = targetService;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
this.hostClass = true;
|
|
23
|
-
if (elementRef) {
|
|
24
|
-
this.element = elementRef.nativeElement;
|
|
25
|
-
}
|
|
26
|
-
targetService.add(this);
|
|
27
|
-
}
|
|
28
|
-
ContextMenuTargetDirective.prototype.ngOnDestroy = function () {
|
|
29
|
-
this.targetService.remove(this);
|
|
30
|
-
};
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
Input('kendoContextMenuTarget'),
|
|
33
|
-
tslib_1.__metadata("design:type", Object)
|
|
34
|
-
], ContextMenuTargetDirective.prototype, "data", void 0);
|
|
35
|
-
tslib_1.__decorate([
|
|
36
|
-
HostBinding("class." + TARGET_CLASS),
|
|
37
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
38
|
-
], ContextMenuTargetDirective.prototype, "hostClass", void 0);
|
|
39
|
-
ContextMenuTargetDirective = tslib_1.__decorate([
|
|
40
|
-
Directive({
|
|
41
|
-
selector: '[kendoContextMenuTarget]',
|
|
42
|
-
exportAs: 'kendoContextMenuTarget'
|
|
43
|
-
}),
|
|
44
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef, ContextMenuTargetService])
|
|
45
|
-
], ContextMenuTargetDirective);
|
|
46
|
-
return ContextMenuTargetDirective;
|
|
47
|
-
}());
|
|
48
|
-
export { ContextMenuTargetDirective };
|