@progress/kendo-angular-menu 24.2.2 → 25.0.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/fesm2022/progress-kendo-angular-menu.mjs +86 -86
- package/index.d.ts +1421 -30
- package/package-metadata.mjs +2 -2
- package/package.json +11 -11
- package/constants.d.ts +0 -8
- package/context-menu/context-menu-event.d.ts +0 -26
- package/context-menu/context-menu-items.service.d.ts +0 -16
- package/context-menu/context-menu-popup-event.d.ts +0 -27
- package/context-menu/context-menu-select-event.d.ts +0 -14
- package/context-menu/context-menu-target-container.directive.d.ts +0 -34
- package/context-menu/context-menu-target.directive.d.ts +0 -39
- package/context-menu/context-menu-target.service.d.ts +0 -16
- package/context-menu/context-menu-template.directive.d.ts +0 -28
- package/context-menu/context-menu.component.d.ts +0 -171
- package/context-menu/context-menu.module.d.ts +0 -55
- package/context-menu/context-menu.service.d.ts +0 -19
- package/data-binding/binding-directive-base.d.ts +0 -24
- package/data-binding/flat-binding.directive.d.ts +0 -70
- package/data-binding/hierachy-binding.directive.d.ts +0 -67
- package/data-binding/utils.d.ts +0 -12
- package/directives.d.ts +0 -29
- package/dom-queries.d.ts +0 -44
- package/menu-animation.interface.d.ts +0 -21
- package/menu-base.d.ts +0 -79
- package/menu-event.d.ts +0 -23
- package/menu-item.component.d.ts +0 -97
- package/menu-item.interface.d.ts +0 -65
- package/menu-select-event.d.ts +0 -14
- package/menu.component.d.ts +0 -109
- package/menu.module.d.ts +0 -51
- package/menus.module.d.ts +0 -45
- package/open-on-click-settings.d.ts +0 -24
- package/package-metadata.d.ts +0 -9
- package/preventable-event.d.ts +0 -28
- package/rendering/arrow.component.d.ts +0 -41
- package/rendering/link.directive.d.ts +0 -34
- package/rendering/list.component.d.ts +0 -127
- package/rendering/popup-settings.d.ts +0 -84
- package/services/actions.service.d.ts +0 -54
- package/services/hover.service.d.ts +0 -33
- package/services/items.service.d.ts +0 -37
- package/services/navigation.service.d.ts +0 -47
- package/size.d.ts +0 -8
- package/templates/item-content-template.directive.d.ts +0 -42
- package/templates/item-link-template.directive.d.ts +0 -46
- package/templates/item-template.directive.d.ts +0 -43
- package/utils.d.ts +0 -31
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { MenuBase } from '../menu-base';
|
|
6
|
-
import { BindingDirectiveBase } from './binding-directive-base';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Represents a directive that converts the provided hierarchical data to [MenuItems](https://www.telerik.com/kendo-angular-ui/components/menus/api/menuitem) and binds them to the Menu.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```html
|
|
13
|
-
* <kendo-menu [kendoMenuHierarchyBinding]="hierarchicalData" [textField]="'text'" [childrenField]="'items'">
|
|
14
|
-
* </kendo-menu>
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* Applied to: {@link MenuComponent}.
|
|
19
|
-
*/
|
|
20
|
-
export declare class HierarchyBindingDirective extends BindingDirectiveBase {
|
|
21
|
-
/**
|
|
22
|
-
* Specifies the array of data which will be used to populate the Menu.
|
|
23
|
-
*/
|
|
24
|
-
data: any[];
|
|
25
|
-
/**
|
|
26
|
-
* Defines the `text` field (or fields) of an item.
|
|
27
|
-
*/
|
|
28
|
-
textField: string | string[];
|
|
29
|
-
/**
|
|
30
|
-
* Defines the `url` field (or fields) of an item.
|
|
31
|
-
*/
|
|
32
|
-
urlField: string | string[];
|
|
33
|
-
/**
|
|
34
|
-
* Defines the `icon` field (or fields) of an item.
|
|
35
|
-
*/
|
|
36
|
-
iconField: string | string[];
|
|
37
|
-
/**
|
|
38
|
-
* Defines the `svgIcon` field of the items.
|
|
39
|
-
*/
|
|
40
|
-
svgIconField: string | string[];
|
|
41
|
-
/**
|
|
42
|
-
* Defines the `disabled` field (or fields) of an item.
|
|
43
|
-
*/
|
|
44
|
-
disabledField: string | string[];
|
|
45
|
-
/**
|
|
46
|
-
* Defines the `cssClass` field (or fields) of an item.
|
|
47
|
-
*/
|
|
48
|
-
cssClassField: string | string[];
|
|
49
|
-
/**
|
|
50
|
-
* Defines the `cssStyle` field (or fields) of an item.
|
|
51
|
-
*/
|
|
52
|
-
cssStyleField: string | string[];
|
|
53
|
-
/**
|
|
54
|
-
* Defines the `separator` field (or fields) of the items.
|
|
55
|
-
*/
|
|
56
|
-
separatorField: string | string[];
|
|
57
|
-
/**
|
|
58
|
-
* Defines the `children` field (or fields) of the items.
|
|
59
|
-
*/
|
|
60
|
-
childrenField: string | string[];
|
|
61
|
-
constructor(menu: MenuBase);
|
|
62
|
-
protected mapItems(items: any[], level?: number): any[];
|
|
63
|
-
protected createItem(item: any, level: number): any;
|
|
64
|
-
protected getChildren(item: any, level: number): any;
|
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HierarchyBindingDirective, never>;
|
|
66
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HierarchyBindingDirective, "[kendoMenuHierarchyBinding]", ["kendoMenuHierarchyBinding"], { "data": { "alias": "kendoMenuHierarchyBinding"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "urlField": { "alias": "urlField"; "required": false; }; "iconField": { "alias": "iconField"; "required": false; }; "svgIconField": { "alias": "svgIconField"; "required": false; }; "disabledField": { "alias": "disabledField"; "required": false; }; "cssClassField": { "alias": "cssClassField"; "required": false; }; "cssStyleField": { "alias": "cssStyleField"; "required": false; }; "separatorField": { "alias": "separatorField"; "required": false; }; "childrenField": { "alias": "childrenField"; "required": false; }; }, {}, never, never, true, never>;
|
|
67
|
-
}
|
package/data-binding/utils.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const getter: (field: string) => any;
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare const last: (arr: any[]) => any;
|
package/directives.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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
|
-
* Represents a 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
|
-
* Represents a 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
|
-
* Represents a 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];
|
package/dom-queries.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const closest: (node: any, predicate: any) => any;
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare const closestInScope: (node: any, predicate: any, scope: any) => any;
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export declare const isFocusable: (element: any) => boolean;
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export declare const hasClass: (element: any, name: string) => boolean;
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export declare const matchesClasses: (classes: string) => any;
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export declare const nodeIndex: (node: any) => any;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export declare const closestItem: (node: any, scope: any) => any;
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
export declare const closestList: (node: any) => any;
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
export declare const inMenu: (node: any, itemsService: any) => any;
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
export declare const findInContainer: (element: any, selector: string, container: any) => any;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents the animation settings for the Popup component.
|
|
7
|
-
*/
|
|
8
|
-
export interface MenuAnimation {
|
|
9
|
-
/**
|
|
10
|
-
* Specifies the type of the animation.
|
|
11
|
-
*
|
|
12
|
-
* @default 'slide'
|
|
13
|
-
*/
|
|
14
|
-
type?: 'slide' | 'expand' | 'zoom' | 'fade';
|
|
15
|
-
/**
|
|
16
|
-
* Specifies the animation duration in milliseconds.
|
|
17
|
-
*
|
|
18
|
-
* @default 100
|
|
19
|
-
*/
|
|
20
|
-
duration: number;
|
|
21
|
-
}
|
package/menu-base.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { QueryList, TrackByFunction } from '@angular/core';
|
|
6
|
-
import { MenuItemComponent } from './menu-item.component';
|
|
7
|
-
import { MenuAnimation } from './menu-animation.interface';
|
|
8
|
-
import { OpenOnClickSettings } from './open-on-click-settings';
|
|
9
|
-
import { ItemTemplateDirective } from './templates/item-template.directive';
|
|
10
|
-
import { ItemLinkTemplateDirective } from './templates/item-link-template.directive';
|
|
11
|
-
import { MenuSize } from './size';
|
|
12
|
-
import { PopupSettings } from './rendering/popup-settings';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare class MenuBase {
|
|
18
|
-
/**
|
|
19
|
-
* Specifies the Menu items.
|
|
20
|
-
*/
|
|
21
|
-
items: any[];
|
|
22
|
-
/**
|
|
23
|
-
* Specifies if the Menu will be vertical ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/vertical)).
|
|
24
|
-
*/
|
|
25
|
-
vertical: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Specifies that the root items can be opened only on click
|
|
28
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/open-close#opening-on-click)).
|
|
29
|
-
*/
|
|
30
|
-
openOnClick: boolean | OpenOnClickSettings;
|
|
31
|
-
/**
|
|
32
|
-
* Specifies the delay in milliseconds before the Menu items are opened or closed on item hover
|
|
33
|
-
* or leave ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/open-close#delay-on-hover)). Used to avoid the accidental
|
|
34
|
-
* opening or closing of the items.
|
|
35
|
-
*/
|
|
36
|
-
hoverDelay: number;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the Menu animation.
|
|
39
|
-
*/
|
|
40
|
-
animate: boolean | MenuAnimation;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the Menu size.
|
|
43
|
-
*
|
|
44
|
-
* The possible values are:
|
|
45
|
-
* * `small`
|
|
46
|
-
* * `medium`
|
|
47
|
-
* * `large`
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
size: MenuSize;
|
|
51
|
-
/**
|
|
52
|
-
* Configures the popup settings for the Menu items.
|
|
53
|
-
* Allows customization of the popup class and margin.
|
|
54
|
-
*/
|
|
55
|
-
popupSettings: PopupSettings;
|
|
56
|
-
/**
|
|
57
|
-
* Defines a function that determines how to track changes for the menu items.
|
|
58
|
-
* By default, the component tracks changes by index.
|
|
59
|
-
*/
|
|
60
|
-
trackBy: TrackByFunction<any>;
|
|
61
|
-
/**
|
|
62
|
-
* @hidden
|
|
63
|
-
*/
|
|
64
|
-
itemTemplate: QueryList<ItemTemplateDirective>;
|
|
65
|
-
/**
|
|
66
|
-
* @hidden
|
|
67
|
-
*/
|
|
68
|
-
itemLinkTemplate: QueryList<ItemLinkTemplateDirective>;
|
|
69
|
-
/**
|
|
70
|
-
* @hidden
|
|
71
|
-
*/
|
|
72
|
-
children: QueryList<MenuItemComponent>;
|
|
73
|
-
/**
|
|
74
|
-
* @hidden
|
|
75
|
-
*/
|
|
76
|
-
get rootItems(): any[];
|
|
77
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuBase, never>;
|
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuBase, "kendo-menu-base", never, { "items": { "alias": "items"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "openOnClick": { "alias": "openOnClick"; "required": false; }; "hoverDelay": { "alias": "hoverDelay"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "size": { "alias": "size"; "required": false; }; "popupSettings": { "alias": "popupSettings"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; }, {}, ["itemTemplate", "itemLinkTemplate", "children"], never, true, never>;
|
|
79
|
-
}
|
package/menu-event.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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 { PreventableEvent } from './preventable-event';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the arguments for the `open` and `close` events of the Menu.
|
|
9
|
-
*/
|
|
10
|
-
export declare class MenuEvent extends PreventableEvent {
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the MenuComponent that triggered the event.
|
|
13
|
-
*/
|
|
14
|
-
sender: MenuComponent;
|
|
15
|
-
/**
|
|
16
|
-
* Specifies the item data of the event.
|
|
17
|
-
*/
|
|
18
|
-
item: any;
|
|
19
|
-
/**
|
|
20
|
-
* Specifies the item index of the event.
|
|
21
|
-
*/
|
|
22
|
-
index: string;
|
|
23
|
-
}
|
package/menu-item.component.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { QueryList, TemplateRef } from '@angular/core';
|
|
6
|
-
import { ItemTemplateDirective } from './templates/item-template.directive';
|
|
7
|
-
import { ItemLinkTemplateDirective } from './templates/item-link-template.directive';
|
|
8
|
-
import { ItemContentTemplateDirective } from './templates/item-content-template.directive';
|
|
9
|
-
import { MenuItem } from './menu-item.interface';
|
|
10
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* Represents a component that can be used to specify the Menu items
|
|
14
|
-
* ([more information and examples](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items)).
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```html
|
|
18
|
-
* <kendo-menu>
|
|
19
|
-
* <kendo-menu-item text="item1">
|
|
20
|
-
* <kendo-menu-item text="item1.1" url="https://example.com">
|
|
21
|
-
* </kendo-menu-item>
|
|
22
|
-
* <kendo-menu-item text="item1.2" [disabled]="true">
|
|
23
|
-
* </kendo-menu-item>
|
|
24
|
-
* </kendo-menu-item>
|
|
25
|
-
* <kendo-menu-item text="item2">
|
|
26
|
-
* <ng-template kendoMenuItemContentTemplate let-item="item">
|
|
27
|
-
* <div style="padding: 10px;">
|
|
28
|
-
* My Content Template: {{ item.text }}
|
|
29
|
-
* </div>
|
|
30
|
-
* </ng-template>
|
|
31
|
-
* <ng-template kendoMenuItemTemplate let-item="item">
|
|
32
|
-
* <div style="padding: 10px;">
|
|
33
|
-
* My Template: {{ item.text }}
|
|
34
|
-
* </div>
|
|
35
|
-
* </ng-template>
|
|
36
|
-
* </kendo-menu-item>
|
|
37
|
-
* <kendo-menu-item text="item3">
|
|
38
|
-
* <ng-template kendoMenuItemLinkTemplate let-item="item" let-index="index">
|
|
39
|
-
* <span [kendoMenuItemLink]="index">
|
|
40
|
-
* {{ item.text }}
|
|
41
|
-
* @if (item.items && item.items.length) {
|
|
42
|
-
* <span [kendoMenuExpandArrow]="index"></span>
|
|
43
|
-
* }
|
|
44
|
-
* </span>
|
|
45
|
-
* </ng-template>
|
|
46
|
-
* </kendo-menu-item>
|
|
47
|
-
* </kendo-menu>
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* Supported children components are: {@link MenuItemComponent}.
|
|
52
|
-
*/
|
|
53
|
-
export declare class MenuItemComponent implements MenuItem {
|
|
54
|
-
text: string;
|
|
55
|
-
url: string;
|
|
56
|
-
disabled: boolean;
|
|
57
|
-
cssClass: any;
|
|
58
|
-
cssStyle: any;
|
|
59
|
-
icon: string;
|
|
60
|
-
svgIcon: SVGIcon;
|
|
61
|
-
data: any;
|
|
62
|
-
separator: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
itemTemplate: QueryList<ItemTemplateDirective>;
|
|
67
|
-
/**
|
|
68
|
-
* @hidden
|
|
69
|
-
*/
|
|
70
|
-
itemLinkTemplate: QueryList<ItemLinkTemplateDirective>;
|
|
71
|
-
/**
|
|
72
|
-
* @hidden
|
|
73
|
-
*/
|
|
74
|
-
itemContentTemplate: QueryList<ItemContentTemplateDirective>;
|
|
75
|
-
/**
|
|
76
|
-
* @hidden
|
|
77
|
-
*/
|
|
78
|
-
children: QueryList<MenuItemComponent>;
|
|
79
|
-
/**
|
|
80
|
-
* @hidden
|
|
81
|
-
*/
|
|
82
|
-
get template(): TemplateRef<any>;
|
|
83
|
-
/**
|
|
84
|
-
* @hidden
|
|
85
|
-
*/
|
|
86
|
-
get linkTemplate(): TemplateRef<any>;
|
|
87
|
-
/**
|
|
88
|
-
* @hidden
|
|
89
|
-
*/
|
|
90
|
-
get contentTemplate(): TemplateRef<any>;
|
|
91
|
-
/**
|
|
92
|
-
* @hidden
|
|
93
|
-
*/
|
|
94
|
-
get items(): any[];
|
|
95
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
|
|
96
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "kendo-menu-item", never, { "text": { "alias": "text"; "required": false; }; "url": { "alias": "url"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "cssStyle": { "alias": "cssStyle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "data": { "alias": "data"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; }, {}, ["itemTemplate", "itemLinkTemplate", "itemContentTemplate", "children"], never, true, never>;
|
|
97
|
-
}
|
package/menu-item.interface.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef } from '@angular/core';
|
|
6
|
-
import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
7
|
-
/**
|
|
8
|
-
* Represents an interface for the Menu items.
|
|
9
|
-
*/
|
|
10
|
-
export interface MenuItem {
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the item text ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items#showing-text)).
|
|
13
|
-
*/
|
|
14
|
-
text?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Specifies a URL which is rendered as a `href` attribute on the item link
|
|
17
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items#rendering-urls)).
|
|
18
|
-
*/
|
|
19
|
-
url?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the name of the [font icon](https://www.telerik.com/kendo-angular-ui/components/styling/icons#icons-list) that will
|
|
22
|
-
* be rendered for the item ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items#displaying-font-icons)).
|
|
23
|
-
*/
|
|
24
|
-
icon?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Defines an [`SVGIcon`](https://www.telerik.com/kendo-angular-ui/components/icons/api/svgicon) that will be
|
|
27
|
-
* rendered for the item using a [`KendoSVGIcon`](https://www.telerik.com/kendo-angular-ui/components/icons/api/svgiconcomponent) component ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items#displaying-svg-icons)).
|
|
28
|
-
*/
|
|
29
|
-
svgIcon?: SVGIcon;
|
|
30
|
-
/**
|
|
31
|
-
* Specifies if the item is disabled ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items#disabling-items)).
|
|
32
|
-
*/
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Specifies the CSS classes that will be rendered on the item element ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items#adding-styles-and-classes)).
|
|
36
|
-
* Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
|
|
37
|
-
*/
|
|
38
|
-
cssClass?: any;
|
|
39
|
-
/**
|
|
40
|
-
* Specifies the CSS styles that will be rendered on the item element ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items#adding-styles-and-classes)).
|
|
41
|
-
* Supports the type of values that are supported by [`ngStyle`](link:site.data.urls.angular['ngstyleapi']).
|
|
42
|
-
*/
|
|
43
|
-
cssStyle?: any;
|
|
44
|
-
/**
|
|
45
|
-
* Specifies a template for the item.
|
|
46
|
-
*/
|
|
47
|
-
template?: TemplateRef<any>;
|
|
48
|
-
/**
|
|
49
|
-
* Specifies a template for the item content.
|
|
50
|
-
*/
|
|
51
|
-
contentTemplate?: TemplateRef<any>;
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the children of the item ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/data-binding)).
|
|
54
|
-
*/
|
|
55
|
-
items?: any[];
|
|
56
|
-
/**
|
|
57
|
-
* Represents the additional data that is associated with the Menu item.
|
|
58
|
-
*/
|
|
59
|
-
data?: any;
|
|
60
|
-
/**
|
|
61
|
-
* Specifies if this is a separator item.
|
|
62
|
-
* If set to true only the `cssClass` and `cssStyle` fields are rendered.
|
|
63
|
-
*/
|
|
64
|
-
separator?: boolean;
|
|
65
|
-
}
|
package/menu-select-event.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { MenuEvent } from './menu-event';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the `select` event of the Menu.
|
|
8
|
-
*/
|
|
9
|
-
export declare class MenuSelectEvent extends MenuEvent {
|
|
10
|
-
/**
|
|
11
|
-
* The DOM event that triggered the selection.
|
|
12
|
-
*/
|
|
13
|
-
originalEvent: any;
|
|
14
|
-
}
|
package/menu.component.d.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { EventEmitter, OnChanges, AfterViewChecked, NgZone, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { ItemsService } from './services/items.service';
|
|
8
|
-
import { ActionsService } from './services/actions.service';
|
|
9
|
-
import { NavigationService } from './services/navigation.service';
|
|
10
|
-
import { HoverService } from './services/hover.service';
|
|
11
|
-
import { MenuEvent } from './menu-event';
|
|
12
|
-
import { MenuSelectEvent } from './menu-select-event';
|
|
13
|
-
import { ContextMenuService } from './context-menu/context-menu.service';
|
|
14
|
-
import { MenuBase } from './menu-base';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
/**
|
|
17
|
-
* Represents the [Kendo UI Menu component for Angular](https://www.telerik.com/kendo-angular-ui/components/menus/menu).
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* _@Component({
|
|
22
|
-
* selector: 'my-app',
|
|
23
|
-
* template: `
|
|
24
|
-
* <kendo-menu [items]="items">
|
|
25
|
-
* </kendo-menu>
|
|
26
|
-
* `
|
|
27
|
-
* })
|
|
28
|
-
* class AppComponent {
|
|
29
|
-
* public items: any[] = [{ text: 'item1', items: [{ text: 'item1.1' }] }, { text: 'item2', disabled: true }];
|
|
30
|
-
* }
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
* Supported children components are: {@link MenuItemComponent}.
|
|
35
|
-
*/
|
|
36
|
-
export declare class MenuComponent extends MenuBase implements OnChanges, AfterViewChecked {
|
|
37
|
-
private itemsService;
|
|
38
|
-
private hover;
|
|
39
|
-
private actions;
|
|
40
|
-
private navigation;
|
|
41
|
-
private localization;
|
|
42
|
-
private ngZone;
|
|
43
|
-
private renderer;
|
|
44
|
-
private contextService?;
|
|
45
|
-
/**
|
|
46
|
-
* Defines the container to which the popups will be appended.
|
|
47
|
-
*/
|
|
48
|
-
appendTo: ViewContainerRef;
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
menuItemTemplate: TemplateRef<any>;
|
|
53
|
-
/**
|
|
54
|
-
* @hidden
|
|
55
|
-
*/
|
|
56
|
-
ariaRole: string;
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
*/
|
|
60
|
-
menuItemLinkTemplate: TemplateRef<any>;
|
|
61
|
-
/**
|
|
62
|
-
* Fires when a Menu item is selected ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/events)).
|
|
63
|
-
*/
|
|
64
|
-
select: EventEmitter<MenuSelectEvent>;
|
|
65
|
-
/**
|
|
66
|
-
* Fires when a Menu item is opened ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/events)).
|
|
67
|
-
*/
|
|
68
|
-
open: EventEmitter<MenuEvent>;
|
|
69
|
-
/**
|
|
70
|
-
* Fires when a Menu item is closed ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/events)).
|
|
71
|
-
*/
|
|
72
|
-
close: EventEmitter<MenuEvent>;
|
|
73
|
-
/**
|
|
74
|
-
* @hidden
|
|
75
|
-
*/
|
|
76
|
-
get ariaOrientation(): string | null;
|
|
77
|
-
/**
|
|
78
|
-
* @hidden
|
|
79
|
-
*/
|
|
80
|
-
get isContextMenu(): boolean;
|
|
81
|
-
get direction(): boolean;
|
|
82
|
-
get rtl(): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* @hidden
|
|
85
|
-
*/
|
|
86
|
-
get menuClasses(): string;
|
|
87
|
-
private closeClickSubscription;
|
|
88
|
-
private contextKeyDownSubscription;
|
|
89
|
-
constructor(itemsService: ItemsService, hover: HoverService, actions: ActionsService, navigation: NavigationService, localization: LocalizationService, ngZone: NgZone, renderer: Renderer2, contextService?: ContextMenuService);
|
|
90
|
-
/**
|
|
91
|
-
* Opens or closes the specified Menu items.
|
|
92
|
-
*
|
|
93
|
-
* @param open - A Boolean value which indicates if the items will be opened or closed.
|
|
94
|
-
* @param indices - One or more values which represent the hierarchical indices of the items that will be opened or closed.
|
|
95
|
-
*/
|
|
96
|
-
toggle(open: boolean, ...indices: string[]): void;
|
|
97
|
-
/**
|
|
98
|
-
* @hidden
|
|
99
|
-
*/
|
|
100
|
-
focus(index?: string): void;
|
|
101
|
-
ngOnChanges(changes: any): void;
|
|
102
|
-
ngAfterViewChecked(): void;
|
|
103
|
-
ngOnDestroy(): void;
|
|
104
|
-
private attachCloseClick;
|
|
105
|
-
private unsubscribeClick;
|
|
106
|
-
private contextKeyDown;
|
|
107
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
|
|
108
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "kendo-menu", ["kendoMenu"], { "appendTo": { "alias": "appendTo"; "required": false; }; "menuItemTemplate": { "alias": "menuItemTemplate"; "required": false; }; "ariaRole": { "alias": "ariaRole"; "required": false; }; "menuItemLinkTemplate": { "alias": "menuItemLinkTemplate"; "required": false; }; }, { "select": "select"; "open": "open"; "close": "close"; }, never, never, true, never>;
|
|
109
|
-
}
|
package/menu.module.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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 i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./menu.component";
|
|
7
|
-
import * as i2 from "./menu-item.component";
|
|
8
|
-
import * as i3 from "./templates/item-template.directive";
|
|
9
|
-
import * as i4 from "./templates/item-link-template.directive";
|
|
10
|
-
import * as i5 from "./templates/item-content-template.directive";
|
|
11
|
-
import * as i6 from "./data-binding/hierachy-binding.directive";
|
|
12
|
-
import * as i7 from "./data-binding/flat-binding.directive";
|
|
13
|
-
import * as i8 from "./rendering/link.directive";
|
|
14
|
-
import * as i9 from "./rendering/arrow.component";
|
|
15
|
-
/**
|
|
16
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
17
|
-
* definition for the Menu component.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
*
|
|
21
|
-
* ```ts-no-run
|
|
22
|
-
* // Import the Menu module
|
|
23
|
-
* import { MenuModule } from '@progress/kendo-angular-menu';
|
|
24
|
-
*
|
|
25
|
-
* // The browser platform with a compiler
|
|
26
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
27
|
-
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
28
|
-
*
|
|
29
|
-
* import { NgModule } from '@angular/core';
|
|
30
|
-
*
|
|
31
|
-
* // Import the app component
|
|
32
|
-
* import { AppComponent } from './app.component';
|
|
33
|
-
*
|
|
34
|
-
* // Define the app module
|
|
35
|
-
* _@NgModule({
|
|
36
|
-
* declarations: [AppComponent], // declare app component
|
|
37
|
-
* imports: [BrowserModule, BrowserAnimationsModule, MenuModule], // import Menu module
|
|
38
|
-
* bootstrap: [AppComponent]
|
|
39
|
-
* })
|
|
40
|
-
* export class AppModule {}
|
|
41
|
-
*
|
|
42
|
-
* // Compile and launch the module
|
|
43
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
44
|
-
*
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export declare class MenuModule {
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuModule, never>;
|
|
49
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MenuModule, never, [typeof i1.MenuComponent, typeof i2.MenuItemComponent, typeof i3.ItemTemplateDirective, typeof i4.ItemLinkTemplateDirective, typeof i5.ItemContentTemplateDirective, typeof i6.HierarchyBindingDirective, typeof i7.FlatBindingDirective, typeof i8.LinkDirective, typeof i9.ExpandArrowComponent], [typeof i1.MenuComponent, typeof i2.MenuItemComponent, typeof i3.ItemTemplateDirective, typeof i4.ItemLinkTemplateDirective, typeof i5.ItemContentTemplateDirective, typeof i6.HierarchyBindingDirective, typeof i7.FlatBindingDirective, typeof i8.LinkDirective, typeof i9.ExpandArrowComponent]>;
|
|
50
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MenuModule>;
|
|
51
|
-
}
|