@progress/kendo-angular-menu 22.1.0-develop.9 → 23.0.0-develop.2
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 +2 -2
- package/context-menu/context-menu-template.directive.d.ts +1 -1
- package/context-menu/context-menu.component.d.ts +10 -10
- package/data-binding/flat-binding.directive.d.ts +1 -1
- package/data-binding/hierachy-binding.directive.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-menu.mjs +33 -34
- package/menu-base.d.ts +4 -5
- package/menu-item.component.d.ts +1 -1
- package/menu-item.interface.d.ts +10 -10
- package/menu.component.d.ts +4 -4
- package/package-metadata.mjs +2 -2
- package/package.json +7 -7
- package/rendering/arrow.component.d.ts +1 -1
- package/rendering/link.directive.d.ts +1 -1
- package/size.d.ts +1 -1
- 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
|
@@ -6,7 +6,7 @@ import { ElementRef } from '@angular/core';
|
|
|
6
6
|
import { ContextMenuTargetService } from './context-menu-target.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* Represents a container for the [targets](
|
|
9
|
+
* Represents a container for the [targets](https://www.telerik.com/kendo-angular-ui/components/menus/api/contextmenutargetdirective) of the ContextMenu.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```html
|
|
@@ -10,8 +10,8 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const TARGET_CLASS = "k-contextmenu-target";
|
|
12
12
|
/**
|
|
13
|
-
* Represents a [target](
|
|
14
|
-
* ([see example](
|
|
13
|
+
* Represents a [target](https://www.telerik.com/kendo-angular-ui/components/menus/api/contextmenutargetdirective) for the ContextMenu
|
|
14
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/target#directives)).
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```html
|
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Represents a template for the content of the ContextMenu. To define a template, nest an `<ng-template>`
|
|
9
9
|
* tag with the `kendoContextMenuTemplate` directive inside a `<kendo-contextmenu>` component
|
|
10
|
-
* ([more information and examples](
|
|
10
|
+
* ([more information and examples](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/templates)).
|
|
11
11
|
*
|
|
12
12
|
* <demo metaUrl="menus/context-menu/template/" height="200"></demo>
|
|
13
13
|
*
|
|
@@ -13,7 +13,7 @@ import { ContextMenuTemplateDirective } from './context-menu-template.directive'
|
|
|
13
13
|
import { ContextMenuTargetContainerDirective } from './context-menu-target-container.directive';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
/**
|
|
16
|
-
* Represents the [Kendo UI ContextMenu component for Angular](
|
|
16
|
+
* Represents the [Kendo UI ContextMenu component for Angular](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu).
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
@@ -37,19 +37,19 @@ export declare class ContextMenuComponent extends MenuBase implements OnInit, On
|
|
|
37
37
|
private ngZone;
|
|
38
38
|
private renderer;
|
|
39
39
|
/**
|
|
40
|
-
* Specifies the event on which the ContextMenu will open ([see example](
|
|
40
|
+
* Specifies the event on which the ContextMenu will open ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/opening)).
|
|
41
41
|
* Accepts the name of a native DOM event. For example, `click`, `dblclick`, `mouseover`, etc.
|
|
42
42
|
*
|
|
43
43
|
* @default 'contextmenu'
|
|
44
44
|
*/
|
|
45
45
|
showOn: string;
|
|
46
46
|
/**
|
|
47
|
-
* Specifies the element for which the ContextMenu will open ([see example](
|
|
47
|
+
* Specifies the element for which the ContextMenu will open ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/target#configuration)).
|
|
48
48
|
*/
|
|
49
49
|
target: HTMLElement | ElementRef | ContextMenuTargetContainerDirective | string;
|
|
50
50
|
/**
|
|
51
51
|
* Specifies a CSS selector which filters the elements in the target for which the ContextMenu will open
|
|
52
|
-
* ([see example](
|
|
52
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/target#changing-items-for-specific-targets)).
|
|
53
53
|
*/
|
|
54
54
|
filter: string;
|
|
55
55
|
/**
|
|
@@ -59,7 +59,7 @@ export declare class ContextMenuComponent extends MenuBase implements OnInit, On
|
|
|
59
59
|
*/
|
|
60
60
|
alignToAnchor: boolean;
|
|
61
61
|
/**
|
|
62
|
-
* Specifies if the Menu will be vertically rendered ([see example](
|
|
62
|
+
* Specifies if the Menu will be vertically rendered ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/orientation)).
|
|
63
63
|
*
|
|
64
64
|
* @default true
|
|
65
65
|
*/
|
|
@@ -97,23 +97,23 @@ export declare class ContextMenuComponent extends MenuBase implements OnInit, On
|
|
|
97
97
|
*/
|
|
98
98
|
ariaLabel: string;
|
|
99
99
|
/**
|
|
100
|
-
* Fires when the Menu is opened ([see example](
|
|
100
|
+
* Fires when the Menu is opened ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
101
101
|
*/
|
|
102
102
|
popupOpen: EventEmitter<ContextMenuPopupEvent>;
|
|
103
103
|
/**
|
|
104
|
-
* Fires when the Menu is closed ([see example](
|
|
104
|
+
* Fires when the Menu is closed ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
105
105
|
*/
|
|
106
106
|
popupClose: EventEmitter<ContextMenuPopupEvent>;
|
|
107
107
|
/**
|
|
108
|
-
* Fires when a Menu item is selected ([see example](
|
|
108
|
+
* Fires when a Menu item is selected ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
109
109
|
*/
|
|
110
110
|
select: EventEmitter<ContextMenuSelectEvent>;
|
|
111
111
|
/**
|
|
112
|
-
* Fires when a Menu item is opened ([see example](
|
|
112
|
+
* Fires when a Menu item is opened ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
113
113
|
*/
|
|
114
114
|
open: EventEmitter<ContextMenuEvent>;
|
|
115
115
|
/**
|
|
116
|
-
* Fires when a Menu item is closed ([see example](
|
|
116
|
+
* Fires when a Menu item is closed ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
117
117
|
*/
|
|
118
118
|
close: EventEmitter<ContextMenuEvent>;
|
|
119
119
|
/**
|
|
@@ -6,7 +6,7 @@ import { MenuBase } from '../menu-base';
|
|
|
6
6
|
import { BindingDirectiveBase } from './binding-directive-base';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* Represents a directive that converts the provided flat data to [MenuItems](
|
|
9
|
+
* Represents a directive that converts the provided flat data to [MenuItems](https://www.telerik.com/kendo-angular-ui/components/menus/api/menuitem) and binds them to the Menu.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```html
|
|
@@ -6,7 +6,7 @@ import { MenuBase } from '../menu-base';
|
|
|
6
6
|
import { BindingDirectiveBase } from './binding-directive-base';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* Represents a directive that converts the provided hierarchical data to [MenuItems](
|
|
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
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```html
|
|
@@ -23,7 +23,7 @@ const packageMetadata = {
|
|
|
23
23
|
productCode: 'KENDOUIANGULAR',
|
|
24
24
|
productCodes: ['KENDOUIANGULAR'],
|
|
25
25
|
publishDate: 0,
|
|
26
|
-
version: '
|
|
26
|
+
version: '23.0.0-develop.2',
|
|
27
27
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -844,7 +844,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
844
844
|
}] });
|
|
845
845
|
|
|
846
846
|
/**
|
|
847
|
-
* Represents a template for the Menu items ([see example](
|
|
847
|
+
* Represents a template for the Menu items ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/templates)). To define a template
|
|
848
848
|
* for an item, nest an `<ng-template>` tag with the `kendoMenuItemTemplate` directive inside a `<kendo-menu-item>`
|
|
849
849
|
* component. To define a template for all Menu items, nest the template inside the `<kendo-menu>` component.
|
|
850
850
|
*
|
|
@@ -893,7 +893,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
893
893
|
}] }] });
|
|
894
894
|
|
|
895
895
|
/**
|
|
896
|
-
* Represents a template for the links of the Menu items ([see example](
|
|
896
|
+
* Represents a template for the links of the Menu items ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/templates)). To define a template
|
|
897
897
|
* for an item, nest an `<ng-template>` tag with the `kendoMenuItemLinkTemplate` directive inside a `<kendo-menu-item>`
|
|
898
898
|
* component. To define a template for all Menu items, nest the template inside the `<kendo-menu>` component.
|
|
899
899
|
*
|
|
@@ -945,7 +945,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
945
945
|
}] }] });
|
|
946
946
|
|
|
947
947
|
/**
|
|
948
|
-
* Represents a template for the content of the Menu items ([see example](
|
|
948
|
+
* Represents a template for the content of the Menu items ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/templates)). To define the template,
|
|
949
949
|
* nest an `<ng-template>` tag with the `kendoMenuItemContentTemplate` directive inside a `<kendo-menu-item>` component.
|
|
950
950
|
*
|
|
951
951
|
* The available fields in the template context are:
|
|
@@ -994,7 +994,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
994
994
|
|
|
995
995
|
/**
|
|
996
996
|
* Represents a component that can be used to specify the Menu items
|
|
997
|
-
* ([more information and examples](
|
|
997
|
+
* ([more information and examples](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items)).
|
|
998
998
|
*
|
|
999
999
|
* @example
|
|
1000
1000
|
* ```html
|
|
@@ -1142,17 +1142,17 @@ class MenuBase {
|
|
|
1142
1142
|
*/
|
|
1143
1143
|
items;
|
|
1144
1144
|
/**
|
|
1145
|
-
* Specifies if the Menu will be vertical ([see example](
|
|
1145
|
+
* Specifies if the Menu will be vertical ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/vertical)).
|
|
1146
1146
|
*/
|
|
1147
1147
|
vertical = false;
|
|
1148
1148
|
/**
|
|
1149
1149
|
* Specifies that the root items can be opened only on click
|
|
1150
|
-
* ([see example](
|
|
1150
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/open-close#opening-on-click)).
|
|
1151
1151
|
*/
|
|
1152
1152
|
openOnClick = false;
|
|
1153
1153
|
/**
|
|
1154
1154
|
* Specifies the delay in milliseconds before the Menu items are opened or closed on item hover
|
|
1155
|
-
* or leave ([see example](
|
|
1155
|
+
* or leave ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/open-close#delay-on-hover)). Used to avoid the accidental
|
|
1156
1156
|
* opening or closing of the items.
|
|
1157
1157
|
*/
|
|
1158
1158
|
hoverDelay = 100;
|
|
@@ -1165,12 +1165,11 @@ class MenuBase {
|
|
|
1165
1165
|
*
|
|
1166
1166
|
* The possible values are:
|
|
1167
1167
|
* * `small`
|
|
1168
|
-
* * `medium`
|
|
1168
|
+
* * `medium`
|
|
1169
1169
|
* * `large`
|
|
1170
|
-
* * `none`
|
|
1171
1170
|
*
|
|
1172
1171
|
*/
|
|
1173
|
-
size =
|
|
1172
|
+
size = undefined;
|
|
1174
1173
|
/**
|
|
1175
1174
|
* Configures the popup settings for the Menu items.
|
|
1176
1175
|
* Allows customization of the popup class and margin.
|
|
@@ -2000,7 +1999,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2000
1999
|
}] } });
|
|
2001
2000
|
|
|
2002
2001
|
/**
|
|
2003
|
-
* Represents the [Kendo UI Menu component for Angular](
|
|
2002
|
+
* Represents the [Kendo UI Menu component for Angular](https://www.telerik.com/kendo-angular-ui/components/menus/menu).
|
|
2004
2003
|
*
|
|
2005
2004
|
* @example
|
|
2006
2005
|
* ```ts
|
|
@@ -2045,15 +2044,15 @@ class MenuComponent extends MenuBase {
|
|
|
2045
2044
|
*/
|
|
2046
2045
|
menuItemLinkTemplate;
|
|
2047
2046
|
/**
|
|
2048
|
-
* Fires when a Menu item is selected ([see example](
|
|
2047
|
+
* Fires when a Menu item is selected ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/events)).
|
|
2049
2048
|
*/
|
|
2050
2049
|
select = new EventEmitter();
|
|
2051
2050
|
/**
|
|
2052
|
-
* Fires when a Menu item is opened ([see example](
|
|
2051
|
+
* Fires when a Menu item is opened ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/events)).
|
|
2053
2052
|
*/
|
|
2054
2053
|
open = new EventEmitter();
|
|
2055
2054
|
/**
|
|
2056
|
-
* Fires when a Menu item is closed ([see example](
|
|
2055
|
+
* Fires when a Menu item is closed ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/events)).
|
|
2057
2056
|
*/
|
|
2058
2057
|
close = new EventEmitter();
|
|
2059
2058
|
/**
|
|
@@ -2083,7 +2082,7 @@ class MenuComponent extends MenuBase {
|
|
|
2083
2082
|
const sizeClass = getSizeClass(this.size);
|
|
2084
2083
|
const staticClasses = 'k-reset k-header k-menu';
|
|
2085
2084
|
if (this.isContextMenu) {
|
|
2086
|
-
return `k-context-menu k-menu-group ${sizeClass}`;
|
|
2085
|
+
return `k-context-menu k-menu-group ${sizeClass || ''}`;
|
|
2087
2086
|
}
|
|
2088
2087
|
return `${staticClasses} k-menu-${this.vertical ? 'vertical' : 'horizontal'}`;
|
|
2089
2088
|
}
|
|
@@ -2278,7 +2277,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2278
2277
|
}] } });
|
|
2279
2278
|
|
|
2280
2279
|
/**
|
|
2281
|
-
* Represents a directive that can be used in the [`linkTemplate`](
|
|
2280
|
+
* Represents a directive that can be used in the [`linkTemplate`](https://www.telerik.com/kendo-angular-ui/components/menus/api/itemlinktemplatedirective)
|
|
2282
2281
|
* of the items to apply the default styling and behavior.
|
|
2283
2282
|
*
|
|
2284
2283
|
* @example
|
|
@@ -2340,7 +2339,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2340
2339
|
}] } });
|
|
2341
2340
|
|
|
2342
2341
|
/**
|
|
2343
|
-
* Represents a component that can be used in the [`linkTemplate`](
|
|
2342
|
+
* Represents a component that can be used in the [`linkTemplate`](https://www.telerik.com/kendo-angular-ui/components/menus/api/itemlinktemplatedirective)
|
|
2344
2343
|
* of the items to render the default expand arrow.
|
|
2345
2344
|
*
|
|
2346
2345
|
* @example
|
|
@@ -2528,7 +2527,7 @@ const last = (arr) => arr[arr.length - 1];
|
|
|
2528
2527
|
|
|
2529
2528
|
const getField = (field, level) => Array.isArray(field) ? field[level] || last(field) : field;
|
|
2530
2529
|
/**
|
|
2531
|
-
* Represents a directive that converts the provided hierarchical data to [MenuItems](
|
|
2530
|
+
* 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.
|
|
2532
2531
|
*
|
|
2533
2532
|
* @example
|
|
2534
2533
|
* ```html
|
|
@@ -2642,7 +2641,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2642
2641
|
}] } });
|
|
2643
2642
|
|
|
2644
2643
|
/**
|
|
2645
|
-
* Represents a directive that converts the provided flat data to [MenuItems](
|
|
2644
|
+
* Represents a directive that converts the provided flat data to [MenuItems](https://www.telerik.com/kendo-angular-ui/components/menus/api/menuitem) and binds them to the Menu.
|
|
2646
2645
|
*
|
|
2647
2646
|
* @example
|
|
2648
2647
|
* ```html
|
|
@@ -2819,7 +2818,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2819
2818
|
/**
|
|
2820
2819
|
* Represents a template for the content of the ContextMenu. To define a template, nest an `<ng-template>`
|
|
2821
2820
|
* tag with the `kendoContextMenuTemplate` directive inside a `<kendo-contextmenu>` component
|
|
2822
|
-
* ([more information and examples](
|
|
2821
|
+
* ([more information and examples](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/templates)).
|
|
2823
2822
|
*
|
|
2824
2823
|
* <demo metaUrl="menus/context-menu/template/" height="200"></demo>
|
|
2825
2824
|
*
|
|
@@ -2873,7 +2872,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2873
2872
|
}] });
|
|
2874
2873
|
|
|
2875
2874
|
/**
|
|
2876
|
-
* Represents a container for the [targets](
|
|
2875
|
+
* Represents a container for the [targets](https://www.telerik.com/kendo-angular-ui/components/menus/api/contextmenutargetdirective) of the ContextMenu.
|
|
2877
2876
|
*
|
|
2878
2877
|
* @example
|
|
2879
2878
|
* ```html
|
|
@@ -2919,8 +2918,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2919
2918
|
*/
|
|
2920
2919
|
const TARGET_CLASS = 'k-contextmenu-target';
|
|
2921
2920
|
/**
|
|
2922
|
-
* Represents a [target](
|
|
2923
|
-
* ([see example](
|
|
2921
|
+
* Represents a [target](https://www.telerik.com/kendo-angular-ui/components/menus/api/contextmenutargetdirective) for the ContextMenu
|
|
2922
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/target#directives)).
|
|
2924
2923
|
*
|
|
2925
2924
|
* @example
|
|
2926
2925
|
* ```html
|
|
@@ -2975,7 +2974,7 @@ const DEFAULT_POPUP_ALIGN = { horizontal: 'left', vertical: 'top' };
|
|
|
2975
2974
|
const DEFAULT_COLLISION = { horizontal: 'fit', vertical: 'flip' };
|
|
2976
2975
|
const preventDefault = e => e.preventDefault();
|
|
2977
2976
|
/**
|
|
2978
|
-
* Represents the [Kendo UI ContextMenu component for Angular](
|
|
2977
|
+
* Represents the [Kendo UI ContextMenu component for Angular](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu).
|
|
2979
2978
|
*
|
|
2980
2979
|
* @example
|
|
2981
2980
|
* ```ts
|
|
@@ -2999,19 +2998,19 @@ class ContextMenuComponent extends MenuBase {
|
|
|
2999
2998
|
ngZone;
|
|
3000
2999
|
renderer;
|
|
3001
3000
|
/**
|
|
3002
|
-
* Specifies the event on which the ContextMenu will open ([see example](
|
|
3001
|
+
* Specifies the event on which the ContextMenu will open ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/opening)).
|
|
3003
3002
|
* Accepts the name of a native DOM event. For example, `click`, `dblclick`, `mouseover`, etc.
|
|
3004
3003
|
*
|
|
3005
3004
|
* @default 'contextmenu'
|
|
3006
3005
|
*/
|
|
3007
3006
|
showOn = CONTEXT_MENU;
|
|
3008
3007
|
/**
|
|
3009
|
-
* Specifies the element for which the ContextMenu will open ([see example](
|
|
3008
|
+
* Specifies the element for which the ContextMenu will open ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/target#configuration)).
|
|
3010
3009
|
*/
|
|
3011
3010
|
target;
|
|
3012
3011
|
/**
|
|
3013
3012
|
* Specifies a CSS selector which filters the elements in the target for which the ContextMenu will open
|
|
3014
|
-
* ([see example](
|
|
3013
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/target#changing-items-for-specific-targets)).
|
|
3015
3014
|
*/
|
|
3016
3015
|
filter;
|
|
3017
3016
|
/**
|
|
@@ -3021,7 +3020,7 @@ class ContextMenuComponent extends MenuBase {
|
|
|
3021
3020
|
*/
|
|
3022
3021
|
alignToAnchor = false;
|
|
3023
3022
|
/**
|
|
3024
|
-
* Specifies if the Menu will be vertically rendered ([see example](
|
|
3023
|
+
* Specifies if the Menu will be vertically rendered ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/orientation)).
|
|
3025
3024
|
*
|
|
3026
3025
|
* @default true
|
|
3027
3026
|
*/
|
|
@@ -3059,23 +3058,23 @@ class ContextMenuComponent extends MenuBase {
|
|
|
3059
3058
|
*/
|
|
3060
3059
|
ariaLabel;
|
|
3061
3060
|
/**
|
|
3062
|
-
* Fires when the Menu is opened ([see example](
|
|
3061
|
+
* Fires when the Menu is opened ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
3063
3062
|
*/
|
|
3064
3063
|
popupOpen = new EventEmitter();
|
|
3065
3064
|
/**
|
|
3066
|
-
* Fires when the Menu is closed ([see example](
|
|
3065
|
+
* Fires when the Menu is closed ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
3067
3066
|
*/
|
|
3068
3067
|
popupClose = new EventEmitter();
|
|
3069
3068
|
/**
|
|
3070
|
-
* Fires when a Menu item is selected ([see example](
|
|
3069
|
+
* Fires when a Menu item is selected ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
3071
3070
|
*/
|
|
3072
3071
|
select = new EventEmitter();
|
|
3073
3072
|
/**
|
|
3074
|
-
* Fires when a Menu item is opened ([see example](
|
|
3073
|
+
* Fires when a Menu item is opened ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
3075
3074
|
*/
|
|
3076
3075
|
open = new EventEmitter();
|
|
3077
3076
|
/**
|
|
3078
|
-
* Fires when a Menu item is closed ([see example](
|
|
3077
|
+
* Fires when a Menu item is closed ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/contextmenu/events)).
|
|
3079
3078
|
*/
|
|
3080
3079
|
close = new EventEmitter();
|
|
3081
3080
|
/**
|
package/menu-base.d.ts
CHANGED
|
@@ -20,17 +20,17 @@ export declare class MenuBase {
|
|
|
20
20
|
*/
|
|
21
21
|
items: any[];
|
|
22
22
|
/**
|
|
23
|
-
* Specifies if the Menu will be vertical ([see example](
|
|
23
|
+
* Specifies if the Menu will be vertical ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/vertical)).
|
|
24
24
|
*/
|
|
25
25
|
vertical: boolean;
|
|
26
26
|
/**
|
|
27
27
|
* Specifies that the root items can be opened only on click
|
|
28
|
-
* ([see example](
|
|
28
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/open-close#opening-on-click)).
|
|
29
29
|
*/
|
|
30
30
|
openOnClick: boolean | OpenOnClickSettings;
|
|
31
31
|
/**
|
|
32
32
|
* Specifies the delay in milliseconds before the Menu items are opened or closed on item hover
|
|
33
|
-
* or leave ([see example](
|
|
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
34
|
* opening or closing of the items.
|
|
35
35
|
*/
|
|
36
36
|
hoverDelay: number;
|
|
@@ -43,9 +43,8 @@ export declare class MenuBase {
|
|
|
43
43
|
*
|
|
44
44
|
* The possible values are:
|
|
45
45
|
* * `small`
|
|
46
|
-
* * `medium`
|
|
46
|
+
* * `medium`
|
|
47
47
|
* * `large`
|
|
48
|
-
* * `none`
|
|
49
48
|
*
|
|
50
49
|
*/
|
|
51
50
|
size: MenuSize;
|
package/menu-item.component.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
13
|
* Represents a component that can be used to specify the Menu items
|
|
14
|
-
* ([more information and examples](
|
|
14
|
+
* ([more information and examples](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items)).
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```html
|
package/menu-item.interface.d.ts
CHANGED
|
@@ -9,35 +9,35 @@ import { SVGIcon } from '@progress/kendo-angular-icons';
|
|
|
9
9
|
*/
|
|
10
10
|
export interface MenuItem {
|
|
11
11
|
/**
|
|
12
|
-
* Specifies the item text ([see example](
|
|
12
|
+
* Specifies the item text ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items#showing-text)).
|
|
13
13
|
*/
|
|
14
14
|
text?: string;
|
|
15
15
|
/**
|
|
16
16
|
* Specifies a URL which is rendered as a `href` attribute on the item link
|
|
17
|
-
* ([see example](
|
|
17
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items#rendering-urls)).
|
|
18
18
|
*/
|
|
19
19
|
url?: string;
|
|
20
20
|
/**
|
|
21
|
-
* Specifies the name of the [font icon](
|
|
22
|
-
* be rendered for the item ([see example](
|
|
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
23
|
*/
|
|
24
24
|
icon?: string;
|
|
25
25
|
/**
|
|
26
|
-
* Defines an [`SVGIcon`](
|
|
27
|
-
* rendered for the item using a [`KendoSVGIcon`](
|
|
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
28
|
*/
|
|
29
29
|
svgIcon?: SVGIcon;
|
|
30
30
|
/**
|
|
31
|
-
* Specifies if the item is disabled ([see example](
|
|
31
|
+
* Specifies if the item is disabled ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/items#disabling-items)).
|
|
32
32
|
*/
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
/**
|
|
35
|
-
* Specifies the CSS classes that will be rendered on the item element ([see example](
|
|
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
36
|
* Supports the type of values that are supported by [`ngClass`](link:site.data.urls.angular['ngclassapi']).
|
|
37
37
|
*/
|
|
38
38
|
cssClass?: any;
|
|
39
39
|
/**
|
|
40
|
-
* Specifies the CSS styles that will be rendered on the item element ([see example](
|
|
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
41
|
* Supports the type of values that are supported by [`ngStyle`](link:site.data.urls.angular['ngstyleapi']).
|
|
42
42
|
*/
|
|
43
43
|
cssStyle?: any;
|
|
@@ -50,7 +50,7 @@ export interface MenuItem {
|
|
|
50
50
|
*/
|
|
51
51
|
contentTemplate?: TemplateRef<any>;
|
|
52
52
|
/**
|
|
53
|
-
* Specifies the children of the item ([see example](
|
|
53
|
+
* Specifies the children of the item ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/data-binding)).
|
|
54
54
|
*/
|
|
55
55
|
items?: any[];
|
|
56
56
|
/**
|
package/menu.component.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { ContextMenuService } from './context-menu/context-menu.service';
|
|
|
14
14
|
import { MenuBase } from './menu-base';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
/**
|
|
17
|
-
* Represents the [Kendo UI Menu component for Angular](
|
|
17
|
+
* Represents the [Kendo UI Menu component for Angular](https://www.telerik.com/kendo-angular-ui/components/menus/menu).
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* ```ts
|
|
@@ -59,15 +59,15 @@ export declare class MenuComponent extends MenuBase implements OnChanges, AfterV
|
|
|
59
59
|
*/
|
|
60
60
|
menuItemLinkTemplate: TemplateRef<any>;
|
|
61
61
|
/**
|
|
62
|
-
* Fires when a Menu item is selected ([see example](
|
|
62
|
+
* Fires when a Menu item is selected ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/events)).
|
|
63
63
|
*/
|
|
64
64
|
select: EventEmitter<MenuSelectEvent>;
|
|
65
65
|
/**
|
|
66
|
-
* Fires when a Menu item is opened ([see example](
|
|
66
|
+
* Fires when a Menu item is opened ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/events)).
|
|
67
67
|
*/
|
|
68
68
|
open: EventEmitter<MenuEvent>;
|
|
69
69
|
/**
|
|
70
|
-
* Fires when a Menu item is closed ([see example](
|
|
70
|
+
* Fires when a Menu item is closed ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/events)).
|
|
71
71
|
*/
|
|
72
72
|
close: EventEmitter<MenuEvent>;
|
|
73
73
|
/**
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "
|
|
10
|
+
"publishDate": 1770290162,
|
|
11
|
+
"version": "23.0.0-develop.2",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-menu",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0-develop.2",
|
|
4
4
|
"description": "Kendo UI Angular Menu component",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1770290162,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"@angular/core": "19 - 21",
|
|
30
30
|
"@angular/platform-browser": "19 - 21",
|
|
31
31
|
"@progress/kendo-licensing": "^1.10.0",
|
|
32
|
-
"@progress/kendo-angular-common": "
|
|
33
|
-
"@progress/kendo-angular-l10n": "
|
|
34
|
-
"@progress/kendo-angular-icons": "
|
|
35
|
-
"@progress/kendo-angular-popup": "
|
|
32
|
+
"@progress/kendo-angular-common": "23.0.0-develop.2",
|
|
33
|
+
"@progress/kendo-angular-l10n": "23.0.0-develop.2",
|
|
34
|
+
"@progress/kendo-angular-icons": "23.0.0-develop.2",
|
|
35
|
+
"@progress/kendo-angular-popup": "23.0.0-develop.2",
|
|
36
36
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"tslib": "^2.3.1",
|
|
40
|
-
"@progress/kendo-angular-schematics": "
|
|
40
|
+
"@progress/kendo-angular-schematics": "23.0.0-develop.2"
|
|
41
41
|
},
|
|
42
42
|
"schematics": "./schematics/collection.json",
|
|
43
43
|
"module": "fesm2022/progress-kendo-angular-menu.mjs",
|
|
@@ -7,7 +7,7 @@ import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
|
7
7
|
import { ItemsService } from '../services/items.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
|
-
* Represents a component that can be used in the [`linkTemplate`](
|
|
10
|
+
* Represents a component that can be used in the [`linkTemplate`](https://www.telerik.com/kendo-angular-ui/components/menus/api/itemlinktemplatedirective)
|
|
11
11
|
* of the items to render the default expand arrow.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
@@ -6,7 +6,7 @@ import { OnInit } from '@angular/core';
|
|
|
6
6
|
import { ItemsService } from '../services/items.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* Represents a directive that can be used in the [`linkTemplate`](
|
|
9
|
+
* Represents a directive that can be used in the [`linkTemplate`](https://www.telerik.com/kendo-angular-ui/components/menus/api/itemlinktemplatedirective)
|
|
10
10
|
* of the items to apply the default styling and behavior.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
package/size.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Represents a template for the content of the Menu items ([see example](
|
|
8
|
+
* Represents a template for the content of the Menu items ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/templates)). To define the template,
|
|
9
9
|
* nest an `<ng-template>` tag with the `kendoMenuItemContentTemplate` directive inside a `<kendo-menu-item>` component.
|
|
10
10
|
*
|
|
11
11
|
* The available fields in the template context are:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Represents a template for the links of the Menu items ([see example](
|
|
8
|
+
* Represents a template for the links of the Menu items ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/templates)). To define a template
|
|
9
9
|
* for an item, nest an `<ng-template>` tag with the `kendoMenuItemLinkTemplate` directive inside a `<kendo-menu-item>`
|
|
10
10
|
* component. To define a template for all Menu items, nest the template inside the `<kendo-menu>` component.
|
|
11
11
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Represents a template for the Menu items ([see example](
|
|
8
|
+
* Represents a template for the Menu items ([see example](https://www.telerik.com/kendo-angular-ui/components/menus/menu/templates)). To define a template
|
|
9
9
|
* for an item, nest an `<ng-template>` tag with the `kendoMenuItemTemplate` directive inside a `<kendo-menu-item>`
|
|
10
10
|
* component. To define a template for all Menu items, nest the template inside the `<kendo-menu>` component.
|
|
11
11
|
*
|