@progress/kendo-angular-menu 16.5.0 → 16.6.0-develop.10
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/NOTICE.txt +12 -19
- package/context-menu/context-menu-target-container.directive.d.ts +1 -1
- package/context-menu/context-menu-target.directive.d.ts +1 -1
- package/context-menu/context-menu-template.directive.d.ts +1 -1
- package/context-menu/context-menu.component.d.ts +1 -1
- package/context-menu/context-menu.module.d.ts +10 -4
- package/data-binding/flat-binding.directive.d.ts +1 -1
- package/data-binding/hierachy-binding.directive.d.ts +1 -1
- package/directives.d.ts +29 -0
- package/esm2020/context-menu/context-menu-target-container.directive.mjs +3 -2
- package/esm2020/context-menu/context-menu-target.directive.mjs +3 -2
- package/esm2020/context-menu/context-menu-template.directive.mjs +3 -2
- package/esm2020/context-menu/context-menu.component.mjs +8 -6
- package/esm2020/context-menu/context-menu.module.mjs +22 -24
- package/esm2020/data-binding/flat-binding.directive.mjs +3 -2
- package/esm2020/data-binding/hierachy-binding.directive.mjs +3 -2
- package/esm2020/directives.mjs +48 -0
- package/esm2020/index.mjs +1 -0
- package/esm2020/menu-item.component.mjs +3 -2
- package/esm2020/menu.component.mjs +7 -5
- package/esm2020/menu.module.mjs +18 -51
- package/esm2020/menus.module.mjs +22 -5
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/rendering/arrow.component.mjs +5 -3
- package/esm2020/rendering/link.directive.mjs +3 -2
- package/esm2020/rendering/list.component.mjs +16 -12
- package/esm2020/templates/item-content-template.directive.mjs +3 -2
- package/esm2020/templates/item-link-template.directive.mjs +3 -2
- package/esm2020/templates/item-template.directive.mjs +3 -2
- package/fesm2015/progress-kendo-angular-menu.mjs +205 -195
- package/fesm2020/progress-kendo-angular-menu.mjs +182 -172
- package/index.d.ts +1 -0
- package/menu-item.component.d.ts +1 -1
- package/menu.component.d.ts +1 -1
- package/menu.module.d.ts +1 -5
- package/menus.module.d.ts +14 -3
- package/package.json +6 -6
- package/rendering/arrow.component.d.ts +1 -1
- package/rendering/link.directive.d.ts +1 -1
- package/rendering/list.component.d.ts +3 -3
- package/templates/item-content-template.directive.d.ts +1 -1
- package/templates/item-link-template.directive.d.ts +1 -1
- package/templates/item-template.directive.d.ts +1 -1
|
@@ -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 { Component, Input, HostBinding, EventEmitter, Output, NgZone, Renderer2, Optional, TemplateRef, forwardRef, ViewContainerRef } from '@angular/core';
|
|
6
|
+
import { NgClass } from '@angular/common';
|
|
6
7
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
7
8
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
9
|
import { packageMetadata } from './package-metadata';
|
|
@@ -16,6 +17,7 @@ import { ContextMenuService } from './context-menu/context-menu.service';
|
|
|
16
17
|
import { MenuBase } from './menu-base';
|
|
17
18
|
import { Keys, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
18
19
|
import { getSizeClass } from './utils';
|
|
20
|
+
import { ListComponent } from './rendering/list.component';
|
|
19
21
|
import * as i0 from "@angular/core";
|
|
20
22
|
import * as i1 from "./services/items.service";
|
|
21
23
|
import * as i2 from "./services/hover.service";
|
|
@@ -23,8 +25,6 @@ import * as i3 from "./services/actions.service";
|
|
|
23
25
|
import * as i4 from "./services/navigation.service";
|
|
24
26
|
import * as i5 from "@progress/kendo-angular-l10n";
|
|
25
27
|
import * as i6 from "./context-menu/context-menu.service";
|
|
26
|
-
import * as i7 from "@angular/common";
|
|
27
|
-
import * as i8 from "./rendering/list.component";
|
|
28
28
|
/**
|
|
29
29
|
* Represents the [Kendo UI Menu component for Angular]({% slug overview_menu %}).
|
|
30
30
|
*
|
|
@@ -196,7 +196,7 @@ export class MenuComponent extends MenuBase {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
MenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuComponent, deps: [{ token: i1.ItemsService }, { token: i2.HoverService }, { token: i3.ActionsService }, { token: i4.NavigationService }, { token: i5.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i6.ContextMenuService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
199
|
-
MenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MenuComponent, selector: "kendo-menu", inputs: { appendTo: "appendTo", menuItemTemplate: "menuItemTemplate", ariaRole: "ariaRole", menuItemLinkTemplate: "menuItemLinkTemplate" }, outputs: { select: "select", open: "open", close: "close" }, host: { properties: { "class.k-rtl": "this.direction" } }, providers: [
|
|
199
|
+
MenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MenuComponent, isStandalone: true, selector: "kendo-menu", inputs: { appendTo: "appendTo", menuItemTemplate: "menuItemTemplate", ariaRole: "ariaRole", menuItemLinkTemplate: "menuItemLinkTemplate" }, outputs: { select: "select", open: "open", close: "close" }, host: { properties: { "class.k-rtl": "this.direction" } }, providers: [
|
|
200
200
|
ItemsService,
|
|
201
201
|
ActionsService,
|
|
202
202
|
NavigationService,
|
|
@@ -220,7 +220,7 @@ MenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version:
|
|
|
220
220
|
[itemLinkTemplate]="itemLinkTemplate.first?.templateRef || menuItemLinkTemplate"
|
|
221
221
|
[ngClass]="menuClasses">
|
|
222
222
|
</ul>
|
|
223
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
223
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ListComponent, selector: "[kendoMenuList]", inputs: ["appendTo", "items", "level", "index", "animate", "size", "vertical", "rtl", "openOnClick", "itemTemplate", "itemLinkTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
224
224
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuComponent, decorators: [{
|
|
225
225
|
type: Component,
|
|
226
226
|
args: [{
|
|
@@ -251,7 +251,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
251
251
|
[itemLinkTemplate]="itemLinkTemplate.first?.templateRef || menuItemLinkTemplate"
|
|
252
252
|
[ngClass]="menuClasses">
|
|
253
253
|
</ul>
|
|
254
|
-
|
|
254
|
+
`,
|
|
255
|
+
standalone: true,
|
|
256
|
+
imports: [ListComponent, NgClass]
|
|
255
257
|
}]
|
|
256
258
|
}], ctorParameters: function () { return [{ type: i1.ItemsService }, { type: i2.HoverService }, { type: i3.ActionsService }, { type: i4.NavigationService }, { type: i5.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i6.ContextMenuService, decorators: [{
|
|
257
259
|
type: Optional
|
package/esm2020/menu.module.mjs
CHANGED
|
@@ -3,36 +3,20 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { MenuItemComponent } from './menu-item.component';
|
|
10
|
-
import { ListComponent, ItemComponent } from './rendering/list.component';
|
|
11
|
-
import { LinkDirective } from './rendering/link.directive';
|
|
12
|
-
import { ExpandArrowComponent } from './rendering/arrow.component';
|
|
13
|
-
import { ItemTemplateDirective } from './templates/item-template.directive';
|
|
14
|
-
import { ItemLinkTemplateDirective } from './templates/item-link-template.directive';
|
|
15
|
-
import { ItemContentTemplateDirective } from './templates/item-content-template.directive';
|
|
16
|
-
import { HierarchyBindingDirective } from './data-binding/hierachy-binding.directive';
|
|
17
|
-
import { FlatBindingDirective } from './data-binding/flat-binding.directive';
|
|
18
|
-
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
6
|
+
import { KENDO_MENU } from './directives';
|
|
7
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
8
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
|
19
9
|
import * as i0 from "@angular/core";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
];
|
|
31
|
-
const COMPONENT_DIRECTIVES = [
|
|
32
|
-
...COMPONENT_EXPORTS,
|
|
33
|
-
ListComponent,
|
|
34
|
-
ItemComponent
|
|
35
|
-
];
|
|
10
|
+
import * as i1 from "./menu.component";
|
|
11
|
+
import * as i2 from "./menu-item.component";
|
|
12
|
+
import * as i3 from "./templates/item-template.directive";
|
|
13
|
+
import * as i4 from "./templates/item-link-template.directive";
|
|
14
|
+
import * as i5 from "./templates/item-content-template.directive";
|
|
15
|
+
import * as i6 from "./data-binding/hierachy-binding.directive";
|
|
16
|
+
import * as i7 from "./data-binding/flat-binding.directive";
|
|
17
|
+
import * as i8 from "./rendering/link.directive";
|
|
18
|
+
import * as i9 from "./rendering/arrow.component";
|
|
19
|
+
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
36
20
|
/**
|
|
37
21
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
38
22
|
* definition for the Menu component.
|
|
@@ -68,30 +52,13 @@ const COMPONENT_DIRECTIVES = [
|
|
|
68
52
|
export class MenuModule {
|
|
69
53
|
}
|
|
70
54
|
MenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
71
|
-
MenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MenuModule,
|
|
72
|
-
|
|
73
|
-
ItemTemplateDirective,
|
|
74
|
-
ItemLinkTemplateDirective,
|
|
75
|
-
ItemContentTemplateDirective,
|
|
76
|
-
HierarchyBindingDirective,
|
|
77
|
-
FlatBindingDirective,
|
|
78
|
-
LinkDirective,
|
|
79
|
-
ExpandArrowComponent, ListComponent,
|
|
80
|
-
ItemComponent], imports: [PopupModule, CommonModule, IconsModule], exports: [MenuComponent,
|
|
81
|
-
MenuItemComponent,
|
|
82
|
-
ItemTemplateDirective,
|
|
83
|
-
ItemLinkTemplateDirective,
|
|
84
|
-
ItemContentTemplateDirective,
|
|
85
|
-
HierarchyBindingDirective,
|
|
86
|
-
FlatBindingDirective,
|
|
87
|
-
LinkDirective,
|
|
88
|
-
ExpandArrowComponent] });
|
|
89
|
-
MenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuModule, imports: [PopupModule, CommonModule, IconsModule] });
|
|
55
|
+
MenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MenuModule, imports: [i1.MenuComponent, i2.MenuItemComponent, i3.ItemTemplateDirective, i4.ItemLinkTemplateDirective, i5.ItemContentTemplateDirective, i6.HierarchyBindingDirective, i7.FlatBindingDirective, i8.LinkDirective, i9.ExpandArrowComponent], exports: [i1.MenuComponent, i2.MenuItemComponent, i3.ItemTemplateDirective, i4.ItemLinkTemplateDirective, i5.ItemContentTemplateDirective, i6.HierarchyBindingDirective, i7.FlatBindingDirective, i8.LinkDirective, i9.ExpandArrowComponent] });
|
|
56
|
+
MenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuModule, providers: [PopupService, IconsService], imports: [i1.MenuComponent, i2.MenuItemComponent, i9.ExpandArrowComponent] });
|
|
90
57
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuModule, decorators: [{
|
|
91
58
|
type: NgModule,
|
|
92
59
|
args: [{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
60
|
+
exports: [...KENDO_MENU],
|
|
61
|
+
imports: [...KENDO_MENU],
|
|
62
|
+
providers: [PopupService, IconsService]
|
|
96
63
|
}]
|
|
97
64
|
}] });
|
package/esm2020/menus.module.mjs
CHANGED
|
@@ -3,9 +3,24 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { KENDO_MENUS } from './directives';
|
|
7
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
8
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "./menu.component";
|
|
11
|
+
import * as i2 from "./menu-item.component";
|
|
12
|
+
import * as i3 from "./templates/item-template.directive";
|
|
13
|
+
import * as i4 from "./templates/item-link-template.directive";
|
|
14
|
+
import * as i5 from "./templates/item-content-template.directive";
|
|
15
|
+
import * as i6 from "./data-binding/hierachy-binding.directive";
|
|
16
|
+
import * as i7 from "./data-binding/flat-binding.directive";
|
|
17
|
+
import * as i8 from "./rendering/link.directive";
|
|
18
|
+
import * as i9 from "./rendering/arrow.component";
|
|
19
|
+
import * as i10 from "./context-menu/context-menu.component";
|
|
20
|
+
import * as i11 from "./context-menu/context-menu-template.directive";
|
|
21
|
+
import * as i12 from "./context-menu/context-menu-target.directive";
|
|
22
|
+
import * as i13 from "./context-menu/context-menu-target-container.directive";
|
|
23
|
+
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
9
24
|
/**
|
|
10
25
|
* A [module](link:site.data.urls.angular['ngmoduleapi']) that includes the Menu and ContextMenu components and directives.
|
|
11
26
|
* Imports the MenusModule into your application [root module](link:site.data.urls.angular['ngmodules']#angular-modularity)
|
|
@@ -31,11 +46,13 @@ import * as i0 from "@angular/core";
|
|
|
31
46
|
export class MenusModule {
|
|
32
47
|
}
|
|
33
48
|
MenusModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
-
MenusModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MenusModule, exports: [
|
|
35
|
-
MenusModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenusModule, imports: [
|
|
49
|
+
MenusModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MenusModule, imports: [i1.MenuComponent, i2.MenuItemComponent, i3.ItemTemplateDirective, i4.ItemLinkTemplateDirective, i5.ItemContentTemplateDirective, i6.HierarchyBindingDirective, i7.FlatBindingDirective, i8.LinkDirective, i9.ExpandArrowComponent, i10.ContextMenuComponent, i11.ContextMenuTemplateDirective, i12.ContextMenuTargetDirective, i13.ContextMenuTargetContainerDirective, i1.MenuComponent, i2.MenuItemComponent, i3.ItemTemplateDirective, i4.ItemLinkTemplateDirective, i5.ItemContentTemplateDirective, i6.HierarchyBindingDirective, i7.FlatBindingDirective, i8.LinkDirective, i9.ExpandArrowComponent], exports: [i1.MenuComponent, i2.MenuItemComponent, i3.ItemTemplateDirective, i4.ItemLinkTemplateDirective, i5.ItemContentTemplateDirective, i6.HierarchyBindingDirective, i7.FlatBindingDirective, i8.LinkDirective, i9.ExpandArrowComponent, i10.ContextMenuComponent, i11.ContextMenuTemplateDirective, i12.ContextMenuTargetDirective, i13.ContextMenuTargetContainerDirective, i1.MenuComponent, i2.MenuItemComponent, i3.ItemTemplateDirective, i4.ItemLinkTemplateDirective, i5.ItemContentTemplateDirective, i6.HierarchyBindingDirective, i7.FlatBindingDirective, i8.LinkDirective, i9.ExpandArrowComponent] });
|
|
50
|
+
MenusModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenusModule, providers: [PopupService, IconsService], imports: [i1.MenuComponent, i2.MenuItemComponent, i9.ExpandArrowComponent, i10.ContextMenuComponent, i1.MenuComponent, i2.MenuItemComponent, i9.ExpandArrowComponent] });
|
|
36
51
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenusModule, decorators: [{
|
|
37
52
|
type: NgModule,
|
|
38
53
|
args: [{
|
|
39
|
-
exports: [
|
|
54
|
+
exports: [...KENDO_MENUS],
|
|
55
|
+
imports: [...KENDO_MENUS],
|
|
56
|
+
providers: [PopupService, IconsService]
|
|
40
57
|
}]
|
|
41
58
|
}] });
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-menu',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '16.
|
|
12
|
+
publishDate: 1722606830,
|
|
13
|
+
version: '16.6.0-develop.10',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import { Input, HostBinding, isDevMode, Component } from '@angular/core';
|
|
6
6
|
import { ItemsService } from '../services/items.service';
|
|
7
7
|
import { getFontIcon, getSVGIcon } from '../utils';
|
|
8
|
+
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
import * as i1 from "../services/items.service";
|
|
10
|
-
import * as i2 from "@progress/kendo-angular-icons";
|
|
11
11
|
/**
|
|
12
12
|
* Represents a component that can be used in the [`linkTemplate`]({% slug api_menu_itemlinktemplatedirective %})
|
|
13
13
|
* of the items to render the default expand arrow.
|
|
@@ -28,12 +28,14 @@ export class ExpandArrowComponent {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
ExpandArrowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExpandArrowComponent, deps: [{ token: i1.ItemsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
-
ExpandArrowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ExpandArrowComponent, selector: "[kendoMenuExpandArrow]", inputs: { index: ["kendoMenuExpandArrow", "index"] }, host: { properties: { "class.k-menu-expand-arrow": "this.hostClasses", "attr.aria-hidden": "this.ariaHidden" } }, ngImport: i0, template: `<kendo-icon-wrapper [name]="fontIcon" [svgIcon]="SVGIcon"></kendo-icon-wrapper>`, isInline: true, dependencies: [{ kind: "component", type:
|
|
31
|
+
ExpandArrowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ExpandArrowComponent, isStandalone: true, selector: "[kendoMenuExpandArrow]", inputs: { index: ["kendoMenuExpandArrow", "index"] }, host: { properties: { "class.k-menu-expand-arrow": "this.hostClasses", "attr.aria-hidden": "this.ariaHidden" } }, ngImport: i0, template: `<kendo-icon-wrapper [name]="fontIcon" [svgIcon]="SVGIcon"></kendo-icon-wrapper>`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
32
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExpandArrowComponent, decorators: [{
|
|
33
33
|
type: Component,
|
|
34
34
|
args: [{
|
|
35
35
|
selector: '[kendoMenuExpandArrow]',
|
|
36
|
-
template: `<kendo-icon-wrapper [name]="fontIcon" [svgIcon]="SVGIcon"></kendo-icon-wrapper
|
|
36
|
+
template: `<kendo-icon-wrapper [name]="fontIcon" [svgIcon]="SVGIcon"></kendo-icon-wrapper>`,
|
|
37
|
+
standalone: true,
|
|
38
|
+
imports: [IconWrapperComponent]
|
|
37
39
|
}]
|
|
38
40
|
}], ctorParameters: function () { return [{ type: i1.ItemsService }]; }, propDecorators: { index: [{
|
|
39
41
|
type: Input,
|
|
@@ -28,11 +28,12 @@ export class LinkDirective {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
LinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LinkDirective, deps: [{ token: i1.ItemsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
31
|
-
LinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LinkDirective, selector: "[kendoMenuItemLink]", inputs: { index: ["kendoMenuItemLink", "index"] }, host: { properties: { "class.k-link": "this.hostClasses", "class.k-menu-link": "this.hostClasses", "attr.role": "this.role", "attr.tabindex": "this.tabindex", "class.k-active": "this.activeClass" } }, ngImport: i0 });
|
|
31
|
+
LinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LinkDirective, isStandalone: true, selector: "[kendoMenuItemLink]", inputs: { index: ["kendoMenuItemLink", "index"] }, host: { properties: { "class.k-link": "this.hostClasses", "class.k-menu-link": "this.hostClasses", "attr.role": "this.role", "attr.tabindex": "this.tabindex", "class.k-active": "this.activeClass" } }, ngImport: i0 });
|
|
32
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LinkDirective, decorators: [{
|
|
33
33
|
type: Directive,
|
|
34
34
|
args: [{
|
|
35
|
-
selector: '[kendoMenuItemLink]'
|
|
35
|
+
selector: '[kendoMenuItemLink]',
|
|
36
|
+
standalone: true
|
|
36
37
|
}]
|
|
37
38
|
}], ctorParameters: function () { return [{ type: i1.ItemsService }]; }, propDecorators: { index: [{
|
|
38
39
|
type: Input,
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, ElementRef, Input, NgZone, Optional, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
5
|
+
import { Component, ElementRef, Input, NgZone, Optional, Renderer2, TemplateRef, ViewContainerRef, forwardRef } from '@angular/core';
|
|
6
|
+
import { NgFor, NgIf, NgClass, NgStyle, NgTemplateOutlet } from '@angular/common';
|
|
6
7
|
import { ChangeDetectorRef, HostBinding, ViewChild } from '@angular/core';
|
|
7
8
|
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
8
9
|
import { POPUP_CONTAINER, PopupService } from '@progress/kendo-angular-popup';
|
|
10
|
+
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
9
11
|
import { ContextMenuService } from '../context-menu/context-menu.service';
|
|
10
12
|
import { NODE_INDEX } from '../constants';
|
|
11
13
|
import { closest, closestItem, hasClass, inMenu, isFocusable, nodeIndex } from '../dom-queries';
|
|
@@ -20,10 +22,8 @@ import * as i1 from "../services/items.service";
|
|
|
20
22
|
import * as i2 from "../services/hover.service";
|
|
21
23
|
import * as i3 from "../services/actions.service";
|
|
22
24
|
import * as i4 from "../services/navigation.service";
|
|
23
|
-
import * as i5 from "@angular
|
|
24
|
-
import * as i6 from "
|
|
25
|
-
import * as i7 from "../context-menu/context-menu.service";
|
|
26
|
-
import * as i8 from "@progress/kendo-angular-icons";
|
|
25
|
+
import * as i5 from "@progress/kendo-angular-popup";
|
|
26
|
+
import * as i6 from "../context-menu/context-menu.service";
|
|
27
27
|
/* eslint-disable @angular-eslint/component-selector */
|
|
28
28
|
/**
|
|
29
29
|
* @hidden
|
|
@@ -180,7 +180,7 @@ export class ListComponent {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListComponent, deps: [{ token: i1.ItemsService }, { token: i2.HoverService }, { token: i3.ActionsService }, { token: i4.NavigationService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
183
|
-
ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ListComponent, selector: "[kendoMenuList]", inputs: { appendTo: "appendTo", items: "items", level: "level", index: "index", animate: "animate", size: "size", vertical: "vertical", rtl: "rtl", openOnClick: "openOnClick", itemTemplate: "itemTemplate", itemLinkTemplate: "itemLinkTemplate" }, ngImport: i0, template: "\n <ng-container *ngFor=\"let item of items; let idx = index\">\n <li *ngIf=\"!item.separator\" \n kendoMenuItem\n [appendTo]=\"appendTo\"\n [item]=\"item\"\n [level]=\"level\"\n [size]=\"size\"\n [vertical]=\"vertical\"\n [animate]=\"animate\"\n [rtl]=\"rtl\"\n [itemTemplate]=\"itemTemplate\"\n [itemLinkTemplate]=\"itemLinkTemplate\"\n [openOnClick]=\"openOnClick\"\n [index]=\"hierarchyIndex(idx)\"\n [siblingIndex]=\"idx\"\n [attr.data-kendo-menu-index]=\"hierarchyIndex(idx)\"\n [ngClass]=\"item.cssClass\"\n [ngStyle]=\"item.cssStyle\"\n role=\"menuitem\"\n class=\"k-item k-menu-item\"\n [class.k-first]=\"idx === 0\"\n [class.k-last]=\"idx === items.length - 1\"\n [class.k-disabled]=\"item.disabled\"></li>\n <li \n *ngIf=\"item.separator\"\n class=\"k-separator k-item\"\n [ngClass]=\"item.cssClass\"\n aria-hidden=\"true\"\n [ngStyle]=\"item.cssStyle\">\n \n </li>\n </ng-container>\n ", isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return
|
|
183
|
+
ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ListComponent, isStandalone: true, selector: "[kendoMenuList]", inputs: { appendTo: "appendTo", items: "items", level: "level", index: "index", animate: "animate", size: "size", vertical: "vertical", rtl: "rtl", openOnClick: "openOnClick", itemTemplate: "itemTemplate", itemLinkTemplate: "itemLinkTemplate" }, ngImport: i0, template: "\n <ng-container *ngFor=\"let item of items; let idx = index\">\n <li *ngIf=\"!item.separator\" \n kendoMenuItem\n [appendTo]=\"appendTo\"\n [item]=\"item\"\n [level]=\"level\"\n [size]=\"size\"\n [vertical]=\"vertical\"\n [animate]=\"animate\"\n [rtl]=\"rtl\"\n [itemTemplate]=\"itemTemplate\"\n [itemLinkTemplate]=\"itemLinkTemplate\"\n [openOnClick]=\"openOnClick\"\n [index]=\"hierarchyIndex(idx)\"\n [siblingIndex]=\"idx\"\n [attr.data-kendo-menu-index]=\"hierarchyIndex(idx)\"\n [ngClass]=\"item.cssClass\"\n [ngStyle]=\"item.cssStyle\"\n role=\"menuitem\"\n class=\"k-item k-menu-item\"\n [class.k-first]=\"idx === 0\"\n [class.k-last]=\"idx === items.length - 1\"\n [class.k-disabled]=\"item.disabled\"></li>\n <li \n *ngIf=\"item.separator\"\n class=\"k-separator k-item\"\n [ngClass]=\"item.cssClass\"\n aria-hidden=\"true\"\n [ngStyle]=\"item.cssStyle\">\n \n </li>\n </ng-container>\n ", isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return NgFor; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i0.forwardRef(function () { return ItemComponent; }), selector: "[kendoMenuItem]", inputs: ["appendTo", "item", "level", "index", "siblingIndex", "animate", "size", "vertical", "rtl", "openOnClick", "itemTemplate", "itemLinkTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(function () { return NgStyle; }), selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
184
184
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListComponent, decorators: [{
|
|
185
185
|
type: Component,
|
|
186
186
|
args: [{
|
|
@@ -218,7 +218,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
218
218
|
|
|
219
219
|
</li>
|
|
220
220
|
</ng-container>
|
|
221
|
-
|
|
221
|
+
`,
|
|
222
|
+
standalone: true,
|
|
223
|
+
imports: [NgFor, NgIf, forwardRef(() => ItemComponent), NgClass, NgStyle]
|
|
222
224
|
}]
|
|
223
225
|
}], ctorParameters: function () { return [{ type: i1.ItemsService }, { type: i2.HoverService }, { type: i3.ActionsService }, { type: i4.NavigationService }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ElementRef }]; }, propDecorators: { appendTo: [{
|
|
224
226
|
type: Input
|
|
@@ -434,8 +436,8 @@ export class ItemComponent {
|
|
|
434
436
|
this.renderer.setAttribute(this.element.nativeElement, name, value);
|
|
435
437
|
}
|
|
436
438
|
}
|
|
437
|
-
ItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemComponent, deps: [{ token: i1.ItemsService }, { token: i4.NavigationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token:
|
|
438
|
-
ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ItemComponent, selector: "[kendoMenuItem]", inputs: { appendTo: "appendTo", item: "item", level: "level", index: "index", siblingIndex: "siblingIndex", animate: "animate", size: "size", vertical: "vertical", rtl: "rtl", openOnClick: "openOnClick", itemTemplate: "itemTemplate", itemLinkTemplate: "itemLinkTemplate" }, host: { properties: { "attr.aria-disabled": "this.disabled", "attr.aria-haspopup": "this.hasPopup", "attr.aria-label": "this.label", "attr.tabindex": "this.activeId" } }, providers: [PopupService, {
|
|
439
|
+
ItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemComponent, deps: [{ token: i1.ItemsService }, { token: i4.NavigationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i5.PopupService }, { token: i0.ElementRef }, { token: i6.ContextMenuService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
440
|
+
ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ItemComponent, isStandalone: true, selector: "[kendoMenuItem]", inputs: { appendTo: "appendTo", item: "item", level: "level", index: "index", siblingIndex: "siblingIndex", animate: "animate", size: "size", vertical: "vertical", rtl: "rtl", openOnClick: "openOnClick", itemTemplate: "itemTemplate", itemLinkTemplate: "itemLinkTemplate" }, host: { properties: { "attr.aria-disabled": "this.disabled", "attr.aria-haspopup": "this.hasPopup", "attr.aria-label": "this.label", "attr.tabindex": "this.activeId" } }, providers: [PopupService, {
|
|
439
441
|
provide: POPUP_CONTAINER,
|
|
440
442
|
useFactory: bodyFactory
|
|
441
443
|
}], viewQueries: [{ propertyName: "link", first: true, predicate: ["link"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], ngImport: i0, template: `
|
|
@@ -486,7 +488,7 @@ ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version:
|
|
|
486
488
|
</ng-template>
|
|
487
489
|
<kendo-icon-wrapper *ngIf="hasContent" [name]="fontIcon(horizontal, rtl)" [svgIcon]="SVGIcon(horizontal, rtl)" class="k-menu-expand-arrow" aria-hidden="true"></kendo-icon-wrapper>
|
|
488
490
|
</ng-template>
|
|
489
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
491
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ListComponent, selector: "[kendoMenuList]", inputs: ["appendTo", "items", "level", "index", "animate", "size", "vertical", "rtl", "openOnClick", "itemTemplate", "itemLinkTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
490
492
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemComponent, decorators: [{
|
|
491
493
|
type: Component,
|
|
492
494
|
args: [{
|
|
@@ -543,9 +545,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
543
545
|
</ng-template>
|
|
544
546
|
<kendo-icon-wrapper *ngIf="hasContent" [name]="fontIcon(horizontal, rtl)" [svgIcon]="SVGIcon(horizontal, rtl)" class="k-menu-expand-arrow" aria-hidden="true"></kendo-icon-wrapper>
|
|
545
547
|
</ng-template>
|
|
546
|
-
|
|
548
|
+
`,
|
|
549
|
+
standalone: true,
|
|
550
|
+
imports: [NgIf, NgTemplateOutlet, ListComponent, NgClass, IconWrapperComponent]
|
|
547
551
|
}]
|
|
548
|
-
}], ctorParameters: function () { return [{ type: i1.ItemsService }, { type: i4.NavigationService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type:
|
|
552
|
+
}], ctorParameters: function () { return [{ type: i1.ItemsService }, { type: i4.NavigationService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i5.PopupService }, { type: i0.ElementRef }, { type: i6.ContextMenuService, decorators: [{
|
|
549
553
|
type: Optional
|
|
550
554
|
}] }]; }, propDecorators: { appendTo: [{
|
|
551
555
|
type: Input
|
|
@@ -40,11 +40,12 @@ export class ItemContentTemplateDirective {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
ItemContentTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemContentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
43
|
-
ItemContentTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemContentTemplateDirective, selector: "[kendoMenuItemContentTemplate]", ngImport: i0 });
|
|
43
|
+
ItemContentTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemContentTemplateDirective, isStandalone: true, selector: "[kendoMenuItemContentTemplate]", ngImport: i0 });
|
|
44
44
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemContentTemplateDirective, decorators: [{
|
|
45
45
|
type: Directive,
|
|
46
46
|
args: [{
|
|
47
|
-
selector: '[kendoMenuItemContentTemplate]'
|
|
47
|
+
selector: '[kendoMenuItemContentTemplate]',
|
|
48
|
+
standalone: true
|
|
48
49
|
}]
|
|
49
50
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
50
51
|
type: Optional
|
|
@@ -42,11 +42,12 @@ export class ItemLinkTemplateDirective {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
ItemLinkTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemLinkTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
45
|
-
ItemLinkTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemLinkTemplateDirective, selector: "[kendoMenuItemLinkTemplate]", ngImport: i0 });
|
|
45
|
+
ItemLinkTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemLinkTemplateDirective, isStandalone: true, selector: "[kendoMenuItemLinkTemplate]", ngImport: i0 });
|
|
46
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemLinkTemplateDirective, decorators: [{
|
|
47
47
|
type: Directive,
|
|
48
48
|
args: [{
|
|
49
|
-
selector: '[kendoMenuItemLinkTemplate]'
|
|
49
|
+
selector: '[kendoMenuItemLinkTemplate]',
|
|
50
|
+
standalone: true
|
|
50
51
|
}]
|
|
51
52
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
52
53
|
type: Optional
|
|
@@ -41,11 +41,12 @@ export class ItemTemplateDirective {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
ItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
44
|
-
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemTemplateDirective, selector: "[kendoMenuItemTemplate]", ngImport: i0 });
|
|
44
|
+
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemTemplateDirective, isStandalone: true, selector: "[kendoMenuItemTemplate]", ngImport: i0 });
|
|
45
45
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemTemplateDirective, decorators: [{
|
|
46
46
|
type: Directive,
|
|
47
47
|
args: [{
|
|
48
|
-
selector: '[kendoMenuItemTemplate]'
|
|
48
|
+
selector: '[kendoMenuItemTemplate]',
|
|
49
|
+
standalone: true
|
|
49
50
|
}]
|
|
50
51
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
51
52
|
type: Optional
|