@progress/kendo-angular-menu 16.5.0 → 16.6.0-develop.1
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/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
|
@@ -19,5 +19,5 @@ export declare class ContextMenuTargetContainerDirective {
|
|
|
19
19
|
*/
|
|
20
20
|
constructor(elementRef: ElementRef, targetService: ContextMenuTargetService);
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuTargetContainerDirective, never>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuTargetContainerDirective, "[kendoContextMenuTargetContainer]", ["kendoContextMenuTargetContainer"], {}, {}, never, never,
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuTargetContainerDirective, "[kendoContextMenuTargetContainer]", ["kendoContextMenuTargetContainer"], {}, {}, never, never, true, never>;
|
|
23
23
|
}
|
|
@@ -30,5 +30,5 @@ export declare class ContextMenuTargetDirective implements OnDestroy {
|
|
|
30
30
|
constructor(elementRef: ElementRef, targetService: ContextMenuTargetService);
|
|
31
31
|
ngOnDestroy(): void;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuTargetDirective, never>;
|
|
33
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuTargetDirective, "[kendoContextMenuTarget]", ["kendoContextMenuTarget"], { "data": "kendoContextMenuTarget"; }, {}, never, never,
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuTargetDirective, "[kendoContextMenuTarget]", ["kendoContextMenuTarget"], { "data": "kendoContextMenuTarget"; }, {}, never, never, true, never>;
|
|
34
34
|
}
|
|
@@ -19,5 +19,5 @@ export declare class ContextMenuTemplateDirective {
|
|
|
19
19
|
templateRef: TemplateRef<any>;
|
|
20
20
|
constructor(templateRef: TemplateRef<any>);
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuTemplateDirective, [{ optional: true; }]>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuTemplateDirective, "[kendoContextMenuTemplate]", never, {}, {}, never, never,
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuTemplateDirective, "[kendoContextMenuTemplate]", never, {}, {}, never, never, true, never>;
|
|
23
23
|
}
|
|
@@ -162,5 +162,5 @@ export declare class ContextMenuComponent extends MenuBase implements OnInit, On
|
|
|
162
162
|
private popupAction;
|
|
163
163
|
private get currentTargetElement();
|
|
164
164
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuComponent, never>;
|
|
165
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuComponent, "kendo-contextmenu", ["kendoContextMenu"], { "showOn": "showOn"; "target": "target"; "filter": "filter"; "alignToAnchor": "alignToAnchor"; "vertical": "vertical"; "popupAnimate": "popupAnimate"; "popupAlign": "popupAlign"; "anchorAlign": "anchorAlign"; "collision": "collision"; "appendTo": "appendTo"; "ariaLabel": "ariaLabel"; }, { "popupOpen": "popupOpen"; "popupClose": "popupClose"; "select": "select"; "open": "open"; "close": "close"; }, ["contentTemplate"], never,
|
|
165
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuComponent, "kendo-contextmenu", ["kendoContextMenu"], { "showOn": "showOn"; "target": "target"; "filter": "filter"; "alignToAnchor": "alignToAnchor"; "vertical": "vertical"; "popupAnimate": "popupAnimate"; "popupAlign": "popupAlign"; "anchorAlign": "anchorAlign"; "collision": "collision"; "appendTo": "appendTo"; "ariaLabel": "ariaLabel"; }, { "popupOpen": "popupOpen"; "popupClose": "popupClose"; "select": "select"; "open": "open"; "close": "close"; }, ["contentTemplate"], never, true, never>;
|
|
166
166
|
}
|
|
@@ -7,9 +7,15 @@ import * as i1 from "./context-menu.component";
|
|
|
7
7
|
import * as i2 from "./context-menu-template.directive";
|
|
8
8
|
import * as i3 from "./context-menu-target.directive";
|
|
9
9
|
import * as i4 from "./context-menu-target-container.directive";
|
|
10
|
-
import * as i5 from "
|
|
11
|
-
import * as i6 from "
|
|
12
|
-
import * as i7 from "../
|
|
10
|
+
import * as i5 from "../menu.component";
|
|
11
|
+
import * as i6 from "../menu-item.component";
|
|
12
|
+
import * as i7 from "../templates/item-template.directive";
|
|
13
|
+
import * as i8 from "../templates/item-link-template.directive";
|
|
14
|
+
import * as i9 from "../templates/item-content-template.directive";
|
|
15
|
+
import * as i10 from "../data-binding/hierachy-binding.directive";
|
|
16
|
+
import * as i11 from "../data-binding/flat-binding.directive";
|
|
17
|
+
import * as i12 from "../rendering/link.directive";
|
|
18
|
+
import * as i13 from "../rendering/arrow.component";
|
|
13
19
|
/**
|
|
14
20
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
15
21
|
* definition for the ContextMenu component.
|
|
@@ -44,6 +50,6 @@ import * as i7 from "../menu.module";
|
|
|
44
50
|
*/
|
|
45
51
|
export declare class ContextMenuModule {
|
|
46
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuModule, never>;
|
|
47
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ContextMenuModule, [typeof i1.ContextMenuComponent, typeof i2.ContextMenuTemplateDirective, typeof i3.ContextMenuTargetDirective, typeof i4.ContextMenuTargetContainerDirective
|
|
53
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ContextMenuModule, never, [typeof i1.ContextMenuComponent, typeof i2.ContextMenuTemplateDirective, typeof i3.ContextMenuTargetDirective, typeof i4.ContextMenuTargetContainerDirective, typeof i5.MenuComponent, typeof i6.MenuItemComponent, typeof i7.ItemTemplateDirective, typeof i8.ItemLinkTemplateDirective, typeof i9.ItemContentTemplateDirective, typeof i10.HierarchyBindingDirective, typeof i11.FlatBindingDirective, typeof i12.LinkDirective, typeof i13.ExpandArrowComponent], [typeof i1.ContextMenuComponent, typeof i2.ContextMenuTemplateDirective, typeof i3.ContextMenuTargetDirective, typeof i4.ContextMenuTargetContainerDirective, typeof i5.MenuComponent, typeof i6.MenuItemComponent, typeof i7.ItemTemplateDirective, typeof i8.ItemLinkTemplateDirective, typeof i9.ItemContentTemplateDirective, typeof i10.HierarchyBindingDirective, typeof i11.FlatBindingDirective, typeof i12.LinkDirective, typeof i13.ExpandArrowComponent]>;
|
|
48
54
|
static ɵinj: i0.ɵɵInjectorDeclaration<ContextMenuModule>;
|
|
49
55
|
}
|
|
@@ -57,5 +57,5 @@ export declare class FlatBindingDirective extends BindingDirectiveBase {
|
|
|
57
57
|
protected mapItems(items: any[]): any[];
|
|
58
58
|
protected createItem(dataItem: any): any;
|
|
59
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlatBindingDirective, never>;
|
|
60
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FlatBindingDirective, "[kendoMenuFlatBinding]", ["kendoMenuFlatBinding"], { "data": "kendoMenuFlatBinding"; "textField": "textField"; "urlField": "urlField"; "iconField": "iconField"; "svgIconField": "svgIconField"; "disabledField": "disabledField"; "cssClassField": "cssClassField"; "cssStyleField": "cssStyleField"; "separatorField": "separatorField"; "idField": "idField"; "parentIdField": "parentIdField"; }, {}, never, never,
|
|
60
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FlatBindingDirective, "[kendoMenuFlatBinding]", ["kendoMenuFlatBinding"], { "data": "kendoMenuFlatBinding"; "textField": "textField"; "urlField": "urlField"; "iconField": "iconField"; "svgIconField": "svgIconField"; "disabledField": "disabledField"; "cssClassField": "cssClassField"; "cssStyleField": "cssStyleField"; "separatorField": "separatorField"; "idField": "idField"; "parentIdField": "parentIdField"; }, {}, never, never, true, never>;
|
|
61
61
|
}
|
|
@@ -54,5 +54,5 @@ export declare class HierarchyBindingDirective extends BindingDirectiveBase {
|
|
|
54
54
|
protected createItem(item: any, level: number): any;
|
|
55
55
|
protected getChildren(item: any, level: number): any;
|
|
56
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<HierarchyBindingDirective, never>;
|
|
57
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HierarchyBindingDirective, "[kendoMenuHierarchyBinding]", ["kendoMenuHierarchyBinding"], { "data": "kendoMenuHierarchyBinding"; "textField": "textField"; "urlField": "urlField"; "iconField": "iconField"; "svgIconField": "svgIconField"; "disabledField": "disabledField"; "cssClassField": "cssClassField"; "cssStyleField": "cssStyleField"; "separatorField": "separatorField"; "childrenField": "childrenField"; }, {}, never, never,
|
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HierarchyBindingDirective, "[kendoMenuHierarchyBinding]", ["kendoMenuHierarchyBinding"], { "data": "kendoMenuHierarchyBinding"; "textField": "textField"; "urlField": "urlField"; "iconField": "iconField"; "svgIconField": "svgIconField"; "disabledField": "disabledField"; "cssClassField": "cssClassField"; "cssStyleField": "cssStyleField"; "separatorField": "separatorField"; "childrenField": "childrenField"; }, {}, never, never, true, never>;
|
|
58
58
|
}
|
package/directives.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { MenuComponent } from './menu.component';
|
|
6
|
+
import { MenuItemComponent } from './menu-item.component';
|
|
7
|
+
import { LinkDirective } from './rendering/link.directive';
|
|
8
|
+
import { ExpandArrowComponent } from './rendering/arrow.component';
|
|
9
|
+
import { ItemTemplateDirective } from './templates/item-template.directive';
|
|
10
|
+
import { ItemLinkTemplateDirective } from './templates/item-link-template.directive';
|
|
11
|
+
import { ItemContentTemplateDirective } from './templates/item-content-template.directive';
|
|
12
|
+
import { HierarchyBindingDirective } from './data-binding/hierachy-binding.directive';
|
|
13
|
+
import { FlatBindingDirective } from './data-binding/flat-binding.directive';
|
|
14
|
+
import { ContextMenuComponent } from './context-menu/context-menu.component';
|
|
15
|
+
import { ContextMenuTemplateDirective } from './context-menu/context-menu-template.directive';
|
|
16
|
+
import { ContextMenuTargetDirective } from './context-menu/context-menu-target.directive';
|
|
17
|
+
import { ContextMenuTargetContainerDirective } from './context-menu/context-menu-target-container.directive';
|
|
18
|
+
/**
|
|
19
|
+
* Utility array that contains all `Menu` related components and directives.
|
|
20
|
+
*/
|
|
21
|
+
export declare const KENDO_MENU: readonly [typeof MenuComponent, typeof MenuItemComponent, typeof ItemTemplateDirective, typeof ItemLinkTemplateDirective, typeof ItemContentTemplateDirective, typeof HierarchyBindingDirective, typeof FlatBindingDirective, typeof LinkDirective, typeof ExpandArrowComponent];
|
|
22
|
+
/**
|
|
23
|
+
* Utility array that contains all `ContextMenu` related components and directives.
|
|
24
|
+
*/
|
|
25
|
+
export declare const KENDO_CONTEXTMENU: readonly [typeof ContextMenuComponent, typeof ContextMenuTemplateDirective, typeof ContextMenuTargetDirective, typeof ContextMenuTargetContainerDirective, typeof MenuComponent, typeof MenuItemComponent, typeof ItemTemplateDirective, typeof ItemLinkTemplateDirective, typeof ItemContentTemplateDirective, typeof HierarchyBindingDirective, typeof FlatBindingDirective, typeof LinkDirective, typeof ExpandArrowComponent];
|
|
26
|
+
/**
|
|
27
|
+
* Utility array that contains all `@progress/kendo-angular-menu` related components and directives.
|
|
28
|
+
*/
|
|
29
|
+
export declare const KENDO_MENUS: readonly [typeof MenuComponent, typeof MenuItemComponent, typeof ItemTemplateDirective, typeof ItemLinkTemplateDirective, typeof ItemContentTemplateDirective, typeof HierarchyBindingDirective, typeof FlatBindingDirective, typeof LinkDirective, typeof ExpandArrowComponent, typeof ContextMenuComponent, typeof ContextMenuTemplateDirective, typeof ContextMenuTargetDirective, typeof ContextMenuTargetContainerDirective, typeof MenuComponent, typeof MenuItemComponent, typeof ItemTemplateDirective, typeof ItemLinkTemplateDirective, typeof ItemContentTemplateDirective, typeof HierarchyBindingDirective, typeof FlatBindingDirective, typeof LinkDirective, typeof ExpandArrowComponent];
|
|
@@ -21,12 +21,13 @@ export class ContextMenuTargetContainerDirective {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
ContextMenuTargetContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuTargetContainerDirective, deps: [{ token: i0.ElementRef }, { token: i1.ContextMenuTargetService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
-
ContextMenuTargetContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ContextMenuTargetContainerDirective, selector: "[kendoContextMenuTargetContainer]", providers: [ContextMenuTargetService], exportAs: ["kendoContextMenuTargetContainer"], ngImport: i0 });
|
|
24
|
+
ContextMenuTargetContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ContextMenuTargetContainerDirective, isStandalone: true, selector: "[kendoContextMenuTargetContainer]", providers: [ContextMenuTargetService], exportAs: ["kendoContextMenuTargetContainer"], ngImport: i0 });
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuTargetContainerDirective, decorators: [{
|
|
26
26
|
type: Directive,
|
|
27
27
|
args: [{
|
|
28
28
|
selector: '[kendoContextMenuTargetContainer]',
|
|
29
29
|
exportAs: 'kendoContextMenuTargetContainer',
|
|
30
|
-
providers: [ContextMenuTargetService]
|
|
30
|
+
providers: [ContextMenuTargetService],
|
|
31
|
+
standalone: true
|
|
31
32
|
}]
|
|
32
33
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.ContextMenuTargetService }]; } });
|
|
@@ -31,12 +31,13 @@ export class ContextMenuTargetDirective {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
ContextMenuTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuTargetDirective, deps: [{ token: i0.ElementRef }, { token: i1.ContextMenuTargetService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
34
|
-
ContextMenuTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ContextMenuTargetDirective, selector: "[kendoContextMenuTarget]", inputs: { data: ["kendoContextMenuTarget", "data"] }, host: { properties: { "class.k-contextmenu-target": "this.hostClass" } }, exportAs: ["kendoContextMenuTarget"], ngImport: i0 });
|
|
34
|
+
ContextMenuTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ContextMenuTargetDirective, isStandalone: true, selector: "[kendoContextMenuTarget]", inputs: { data: ["kendoContextMenuTarget", "data"] }, host: { properties: { "class.k-contextmenu-target": "this.hostClass" } }, exportAs: ["kendoContextMenuTarget"], ngImport: i0 });
|
|
35
35
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuTargetDirective, decorators: [{
|
|
36
36
|
type: Directive,
|
|
37
37
|
args: [{
|
|
38
38
|
selector: '[kendoContextMenuTarget]',
|
|
39
|
-
exportAs: 'kendoContextMenuTarget'
|
|
39
|
+
exportAs: 'kendoContextMenuTarget',
|
|
40
|
+
standalone: true
|
|
40
41
|
}]
|
|
41
42
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.ContextMenuTargetService }]; }, propDecorators: { data: [{
|
|
42
43
|
type: Input,
|
|
@@ -21,11 +21,12 @@ export class ContextMenuTemplateDirective {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
ContextMenuTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
-
ContextMenuTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ContextMenuTemplateDirective, selector: "[kendoContextMenuTemplate]", ngImport: i0 });
|
|
24
|
+
ContextMenuTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ContextMenuTemplateDirective, isStandalone: true, selector: "[kendoContextMenuTemplate]", ngImport: i0 });
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuTemplateDirective, decorators: [{
|
|
26
26
|
type: Directive,
|
|
27
27
|
args: [{
|
|
28
|
-
selector: '[kendoContextMenuTemplate]'
|
|
28
|
+
selector: '[kendoContextMenuTemplate]',
|
|
29
|
+
standalone: true
|
|
29
30
|
}]
|
|
30
31
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
31
32
|
type: Optional
|
|
@@ -17,10 +17,10 @@ import { ItemsService } from '../services/items.service';
|
|
|
17
17
|
import { ContextMenuTargetContainerDirective } from './context-menu-target-container.directive';
|
|
18
18
|
import { TARGET_CLASS } from './context-menu-target.directive';
|
|
19
19
|
import { bodyFactory } from '../utils';
|
|
20
|
+
import { MenuComponent } from '../menu.component';
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
import * as i1 from "@progress/kendo-angular-popup";
|
|
22
23
|
import * as i2 from "./context-menu.service";
|
|
23
|
-
import * as i3 from "../menu.component";
|
|
24
24
|
const CONTEXT_MENU = 'contextmenu';
|
|
25
25
|
const DEFAULT_ANCHOR_ALIGN = { horizontal: 'left', vertical: 'bottom' };
|
|
26
26
|
const DEFAULT_POPUP_ALIGN = { horizontal: 'left', vertical: 'top' };
|
|
@@ -337,7 +337,7 @@ export class ContextMenuComponent extends MenuBase {
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
ContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuComponent, deps: [{ token: i1.PopupService }, { token: i2.ContextMenuService }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
340
|
-
ContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ContextMenuComponent, selector: "kendo-contextmenu", inputs: { showOn: "showOn", target: "target", filter: "filter", alignToAnchor: "alignToAnchor", vertical: "vertical", popupAnimate: "popupAnimate", popupAlign: "popupAlign", anchorAlign: "anchorAlign", collision: "collision", appendTo: "appendTo", ariaLabel: "ariaLabel" }, outputs: { popupOpen: "popupOpen", popupClose: "popupClose", select: "select", open: "open", close: "close" }, providers: [
|
|
340
|
+
ContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ContextMenuComponent, isStandalone: true, selector: "kendo-contextmenu", inputs: { showOn: "showOn", target: "target", filter: "filter", alignToAnchor: "alignToAnchor", vertical: "vertical", popupAnimate: "popupAnimate", popupAlign: "popupAlign", anchorAlign: "anchorAlign", collision: "collision", appendTo: "appendTo", ariaLabel: "ariaLabel" }, outputs: { popupOpen: "popupOpen", popupClose: "popupClose", select: "select", open: "open", close: "close" }, providers: [
|
|
341
341
|
ContextMenuService,
|
|
342
342
|
LocalizationService,
|
|
343
343
|
{
|
|
@@ -369,9 +369,9 @@ ContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
369
369
|
[animate]="animate"
|
|
370
370
|
[menuItemTemplate]="itemTemplate.first?.templateRef"
|
|
371
371
|
[menuItemLinkTemplate]="itemLinkTemplate.first?.templateRef"
|
|
372
|
-
|
|
372
|
+
></kendo-menu>
|
|
373
373
|
</ng-template>
|
|
374
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
374
|
+
`, isInline: true, dependencies: [{ kind: "component", type: MenuComponent, selector: "kendo-menu", inputs: ["appendTo", "menuItemTemplate", "ariaRole", "menuItemLinkTemplate"], outputs: ["select", "open", "close"], exportAs: ["kendoMenu"] }] });
|
|
375
375
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuComponent, decorators: [{
|
|
376
376
|
type: Component,
|
|
377
377
|
args: [{
|
|
@@ -410,9 +410,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
410
410
|
[animate]="animate"
|
|
411
411
|
[menuItemTemplate]="itemTemplate.first?.templateRef"
|
|
412
412
|
[menuItemLinkTemplate]="itemLinkTemplate.first?.templateRef"
|
|
413
|
-
|
|
413
|
+
></kendo-menu>
|
|
414
414
|
</ng-template>
|
|
415
|
-
|
|
415
|
+
`,
|
|
416
|
+
standalone: true,
|
|
417
|
+
imports: [MenuComponent]
|
|
416
418
|
}]
|
|
417
419
|
}], ctorParameters: function () { return [{ type: i1.PopupService }, { type: i2.ContextMenuService }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { showOn: [{
|
|
418
420
|
type: Input
|
|
@@ -3,20 +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 {
|
|
8
|
-
import {
|
|
9
|
-
import { ContextMenuComponent } from './context-menu.component';
|
|
10
|
-
import { ContextMenuTemplateDirective } from './context-menu-template.directive';
|
|
11
|
-
import { ContextMenuTargetDirective } from './context-menu-target.directive';
|
|
12
|
-
import { ContextMenuTargetContainerDirective } from './context-menu-target-container.directive';
|
|
6
|
+
import { KENDO_CONTEXTMENU } from '../directives';
|
|
7
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
8
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
|
13
9
|
import * as i0 from "@angular/core";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
import * as i1 from "./context-menu.component";
|
|
11
|
+
import * as i2 from "./context-menu-template.directive";
|
|
12
|
+
import * as i3 from "./context-menu-target.directive";
|
|
13
|
+
import * as i4 from "./context-menu-target-container.directive";
|
|
14
|
+
import * as i5 from "../menu.component";
|
|
15
|
+
import * as i6 from "../menu-item.component";
|
|
16
|
+
import * as i7 from "../templates/item-template.directive";
|
|
17
|
+
import * as i8 from "../templates/item-link-template.directive";
|
|
18
|
+
import * as i9 from "../templates/item-content-template.directive";
|
|
19
|
+
import * as i10 from "../data-binding/hierachy-binding.directive";
|
|
20
|
+
import * as i11 from "../data-binding/flat-binding.directive";
|
|
21
|
+
import * as i12 from "../rendering/link.directive";
|
|
22
|
+
import * as i13 from "../rendering/arrow.component";
|
|
23
|
+
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
20
24
|
/**
|
|
21
25
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
22
26
|
* definition for the ContextMenu component.
|
|
@@ -52,19 +56,13 @@ const COMPONENT_DIRECTIVES = [
|
|
|
52
56
|
export class ContextMenuModule {
|
|
53
57
|
}
|
|
54
58
|
ContextMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
55
|
-
ContextMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuModule,
|
|
56
|
-
|
|
57
|
-
ContextMenuTargetDirective,
|
|
58
|
-
ContextMenuTargetContainerDirective], imports: [PopupModule, CommonModule, MenuModule], exports: [ContextMenuComponent,
|
|
59
|
-
ContextMenuTemplateDirective,
|
|
60
|
-
ContextMenuTargetDirective,
|
|
61
|
-
ContextMenuTargetContainerDirective, MenuModule] });
|
|
62
|
-
ContextMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuModule, imports: [PopupModule, CommonModule, MenuModule, MenuModule] });
|
|
59
|
+
ContextMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuModule, imports: [i1.ContextMenuComponent, i2.ContextMenuTemplateDirective, i3.ContextMenuTargetDirective, i4.ContextMenuTargetContainerDirective, i5.MenuComponent, i6.MenuItemComponent, i7.ItemTemplateDirective, i8.ItemLinkTemplateDirective, i9.ItemContentTemplateDirective, i10.HierarchyBindingDirective, i11.FlatBindingDirective, i12.LinkDirective, i13.ExpandArrowComponent], exports: [i1.ContextMenuComponent, i2.ContextMenuTemplateDirective, i3.ContextMenuTargetDirective, i4.ContextMenuTargetContainerDirective, i5.MenuComponent, i6.MenuItemComponent, i7.ItemTemplateDirective, i8.ItemLinkTemplateDirective, i9.ItemContentTemplateDirective, i10.HierarchyBindingDirective, i11.FlatBindingDirective, i12.LinkDirective, i13.ExpandArrowComponent] });
|
|
60
|
+
ContextMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuModule, providers: [PopupService, IconsService], imports: [i1.ContextMenuComponent, i5.MenuComponent, i6.MenuItemComponent, i13.ExpandArrowComponent] });
|
|
63
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextMenuModule, decorators: [{
|
|
64
62
|
type: NgModule,
|
|
65
63
|
args: [{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
exports: [...KENDO_CONTEXTMENU],
|
|
65
|
+
imports: [...KENDO_CONTEXTMENU],
|
|
66
|
+
providers: [PopupService, IconsService]
|
|
69
67
|
}]
|
|
70
68
|
}] });
|
|
@@ -52,12 +52,13 @@ export class FlatBindingDirective extends BindingDirectiveBase {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
FlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FlatBindingDirective, deps: [{ token: i1.MenuBase }], target: i0.ɵɵFactoryTarget.Directive });
|
|
55
|
-
FlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FlatBindingDirective, selector: "[kendoMenuFlatBinding]", inputs: { data: ["kendoMenuFlatBinding", "data"], textField: "textField", urlField: "urlField", iconField: "iconField", svgIconField: "svgIconField", disabledField: "disabledField", cssClassField: "cssClassField", cssStyleField: "cssStyleField", separatorField: "separatorField", idField: "idField", parentIdField: "parentIdField" }, exportAs: ["kendoMenuFlatBinding"], usesInheritance: true, ngImport: i0 });
|
|
55
|
+
FlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: FlatBindingDirective, isStandalone: true, selector: "[kendoMenuFlatBinding]", inputs: { data: ["kendoMenuFlatBinding", "data"], textField: "textField", urlField: "urlField", iconField: "iconField", svgIconField: "svgIconField", disabledField: "disabledField", cssClassField: "cssClassField", cssStyleField: "cssStyleField", separatorField: "separatorField", idField: "idField", parentIdField: "parentIdField" }, exportAs: ["kendoMenuFlatBinding"], usesInheritance: true, ngImport: i0 });
|
|
56
56
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FlatBindingDirective, decorators: [{
|
|
57
57
|
type: Directive,
|
|
58
58
|
args: [{
|
|
59
59
|
exportAs: 'kendoMenuFlatBinding',
|
|
60
|
-
selector: '[kendoMenuFlatBinding]'
|
|
60
|
+
selector: '[kendoMenuFlatBinding]',
|
|
61
|
+
standalone: true
|
|
61
62
|
}]
|
|
62
63
|
}], ctorParameters: function () { return [{ type: i1.MenuBase }]; }, propDecorators: { data: [{
|
|
63
64
|
type: Input,
|
|
@@ -43,12 +43,13 @@ export class HierarchyBindingDirective extends BindingDirectiveBase {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
HierarchyBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HierarchyBindingDirective, deps: [{ token: i1.MenuBase }], target: i0.ɵɵFactoryTarget.Directive });
|
|
46
|
-
HierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: HierarchyBindingDirective, selector: "[kendoMenuHierarchyBinding]", inputs: { data: ["kendoMenuHierarchyBinding", "data"], textField: "textField", urlField: "urlField", iconField: "iconField", svgIconField: "svgIconField", disabledField: "disabledField", cssClassField: "cssClassField", cssStyleField: "cssStyleField", separatorField: "separatorField", childrenField: "childrenField" }, exportAs: ["kendoMenuHierarchyBinding"], usesInheritance: true, ngImport: i0 });
|
|
46
|
+
HierarchyBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: HierarchyBindingDirective, isStandalone: true, selector: "[kendoMenuHierarchyBinding]", inputs: { data: ["kendoMenuHierarchyBinding", "data"], textField: "textField", urlField: "urlField", iconField: "iconField", svgIconField: "svgIconField", disabledField: "disabledField", cssClassField: "cssClassField", cssStyleField: "cssStyleField", separatorField: "separatorField", childrenField: "childrenField" }, exportAs: ["kendoMenuHierarchyBinding"], usesInheritance: true, ngImport: i0 });
|
|
47
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HierarchyBindingDirective, decorators: [{
|
|
48
48
|
type: Directive,
|
|
49
49
|
args: [{
|
|
50
50
|
exportAs: 'kendoMenuHierarchyBinding',
|
|
51
|
-
selector: '[kendoMenuHierarchyBinding]'
|
|
51
|
+
selector: '[kendoMenuHierarchyBinding]',
|
|
52
|
+
standalone: true
|
|
52
53
|
}]
|
|
53
54
|
}], ctorParameters: function () { return [{ type: i1.MenuBase }]; }, propDecorators: { data: [{
|
|
54
55
|
type: Input,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { MenuComponent } from './menu.component';
|
|
6
|
+
import { MenuItemComponent } from './menu-item.component';
|
|
7
|
+
import { LinkDirective } from './rendering/link.directive';
|
|
8
|
+
import { ExpandArrowComponent } from './rendering/arrow.component';
|
|
9
|
+
import { ItemTemplateDirective } from './templates/item-template.directive';
|
|
10
|
+
import { ItemLinkTemplateDirective } from './templates/item-link-template.directive';
|
|
11
|
+
import { ItemContentTemplateDirective } from './templates/item-content-template.directive';
|
|
12
|
+
import { HierarchyBindingDirective } from './data-binding/hierachy-binding.directive';
|
|
13
|
+
import { FlatBindingDirective } from './data-binding/flat-binding.directive';
|
|
14
|
+
import { ContextMenuComponent } from './context-menu/context-menu.component';
|
|
15
|
+
import { ContextMenuTemplateDirective } from './context-menu/context-menu-template.directive';
|
|
16
|
+
import { ContextMenuTargetDirective } from './context-menu/context-menu-target.directive';
|
|
17
|
+
import { ContextMenuTargetContainerDirective } from './context-menu/context-menu-target-container.directive';
|
|
18
|
+
/**
|
|
19
|
+
* Utility array that contains all `Menu` related components and directives.
|
|
20
|
+
*/
|
|
21
|
+
export const KENDO_MENU = [
|
|
22
|
+
MenuComponent,
|
|
23
|
+
MenuItemComponent,
|
|
24
|
+
ItemTemplateDirective,
|
|
25
|
+
ItemLinkTemplateDirective,
|
|
26
|
+
ItemContentTemplateDirective,
|
|
27
|
+
HierarchyBindingDirective,
|
|
28
|
+
FlatBindingDirective,
|
|
29
|
+
LinkDirective,
|
|
30
|
+
ExpandArrowComponent
|
|
31
|
+
];
|
|
32
|
+
/**
|
|
33
|
+
* Utility array that contains all `ContextMenu` related components and directives.
|
|
34
|
+
*/
|
|
35
|
+
export const KENDO_CONTEXTMENU = [
|
|
36
|
+
ContextMenuComponent,
|
|
37
|
+
ContextMenuTemplateDirective,
|
|
38
|
+
ContextMenuTargetDirective,
|
|
39
|
+
ContextMenuTargetContainerDirective,
|
|
40
|
+
...KENDO_MENU
|
|
41
|
+
];
|
|
42
|
+
/**
|
|
43
|
+
* Utility array that contains all `@progress/kendo-angular-menu` related components and directives.
|
|
44
|
+
*/
|
|
45
|
+
export const KENDO_MENUS = [
|
|
46
|
+
...KENDO_MENU,
|
|
47
|
+
...KENDO_CONTEXTMENU
|
|
48
|
+
];
|
package/esm2020/index.mjs
CHANGED
|
@@ -26,3 +26,4 @@ export { ItemsService } from './services/items.service';
|
|
|
26
26
|
export { ContextMenuTargetContainerDirective } from './context-menu/context-menu-target-container.directive';
|
|
27
27
|
export { ContextMenuTargetDirective } from './context-menu/context-menu-target.directive';
|
|
28
28
|
export { MenusModule } from './menus.module';
|
|
29
|
+
export * from './directives';
|
|
@@ -87,12 +87,13 @@ export class MenuItemComponent {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
MenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
-
MenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MenuItemComponent, selector: "kendo-menu-item", inputs: { text: "text", url: "url", disabled: "disabled", cssClass: "cssClass", cssStyle: "cssStyle", icon: "icon", svgIcon: "svgIcon", data: "data", separator: "separator" }, queries: [{ propertyName: "itemTemplate", predicate: ItemTemplateDirective }, { propertyName: "itemLinkTemplate", predicate: ItemLinkTemplateDirective }, { propertyName: "itemContentTemplate", predicate: ItemContentTemplateDirective }, { propertyName: "children", predicate: MenuItemComponent }], ngImport: i0, template: ``, isInline: true });
|
|
90
|
+
MenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MenuItemComponent, isStandalone: true, selector: "kendo-menu-item", inputs: { text: "text", url: "url", disabled: "disabled", cssClass: "cssClass", cssStyle: "cssStyle", icon: "icon", svgIcon: "svgIcon", data: "data", separator: "separator" }, queries: [{ propertyName: "itemTemplate", predicate: ItemTemplateDirective }, { propertyName: "itemLinkTemplate", predicate: ItemLinkTemplateDirective }, { propertyName: "itemContentTemplate", predicate: ItemContentTemplateDirective }, { propertyName: "children", predicate: MenuItemComponent }], ngImport: i0, template: ``, isInline: true });
|
|
91
91
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuItemComponent, decorators: [{
|
|
92
92
|
type: Component,
|
|
93
93
|
args: [{
|
|
94
94
|
selector: 'kendo-menu-item',
|
|
95
|
-
template:
|
|
95
|
+
template: ``,
|
|
96
|
+
standalone: true
|
|
96
97
|
}]
|
|
97
98
|
}], propDecorators: { text: [{
|
|
98
99
|
type: Input
|
|
@@ -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: 1721827651,
|
|
13
|
+
version: '16.6.0-develop.1',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|