@progress/kendo-angular-menu 17.0.0-develop.8 → 17.0.0
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.directive.d.ts +1 -1
- package/context-menu/context-menu.component.d.ts +1 -1
- package/data-binding/flat-binding.directive.d.ts +1 -1
- package/data-binding/hierachy-binding.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/context-menu/context-menu-event.mjs +16 -0
- package/{esm2020 → esm2022}/context-menu/context-menu-items.service.mjs +4 -3
- package/{esm2020 → esm2022}/context-menu/context-menu-popup-event.mjs +12 -0
- package/{esm2020 → esm2022}/context-menu/context-menu-select-event.mjs +4 -0
- package/{esm2020 → esm2022}/context-menu/context-menu-target-container.directive.mjs +8 -3
- package/{esm2020 → esm2022}/context-menu/context-menu-target.directive.mjs +16 -7
- package/{esm2020 → esm2022}/context-menu/context-menu-target.service.mjs +4 -6
- package/{esm2020 → esm2022}/context-menu/context-menu-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/context-menu/context-menu.component.mjs +123 -60
- package/{esm2020 → esm2022}/context-menu/context-menu.module.mjs +4 -4
- package/{esm2020 → esm2022}/context-menu/context-menu.service.mjs +6 -6
- package/{esm2020 → esm2022}/data-binding/binding-directive-base.mjs +6 -3
- package/{esm2020 → esm2022}/data-binding/flat-binding.directive.mjs +47 -3
- package/{esm2020 → esm2022}/data-binding/hierachy-binding.directive.mjs +43 -3
- package/{esm2020 → esm2022}/menu-base.mjs +49 -35
- package/{esm2020 → esm2022}/menu-event.mjs +12 -0
- package/{esm2020 → esm2022}/menu-item.component.mjs +28 -3
- package/{esm2020 → esm2022}/menu-select-event.mjs +4 -0
- package/{esm2020 → esm2022}/menu.component.mjs +73 -51
- package/{esm2020 → esm2022}/menu.module.mjs +4 -4
- package/{esm2020 → esm2022}/menus.module.mjs +4 -4
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/preventable-event.mjs +7 -7
- package/{esm2020 → esm2022}/rendering/arrow.component.mjs +19 -5
- package/{esm2020 → esm2022}/rendering/link.directive.mjs +15 -9
- package/{esm2020 → esm2022}/rendering/list.component.mjs +73 -35
- package/{esm2020 → esm2022}/services/actions.service.mjs +19 -4
- package/{esm2020 → esm2022}/services/hover.service.mjs +13 -10
- package/{esm2020 → esm2022}/services/items.service.mjs +6 -8
- package/{esm2020 → esm2022}/services/navigation.service.mjs +16 -11
- package/{esm2020 → esm2022}/templates/item-content-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/templates/item-link-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/templates/item-template.directive.mjs +4 -3
- package/{fesm2020 → fesm2022}/progress-kendo-angular-menu.mjs +653 -298
- package/menu-base.d.ts +1 -1
- package/menu-item.component.d.ts +1 -1
- package/menu.component.d.ts +1 -1
- package/package.json +14 -20
- package/rendering/arrow.component.d.ts +1 -1
- package/rendering/link.directive.d.ts +1 -1
- package/rendering/list.component.d.ts +2 -2
- package/schematics/ngAdd/index.js +1 -1
- package/size.d.ts +1 -1
- package/fesm2015/progress-kendo-angular-menu.mjs +0 -3195
- /package/{esm2020 → esm2022}/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/data-binding/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/dom-queries.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/menu-animation.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/menu-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/open-on-click-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-menu.mjs +0 -0
- /package/{esm2020 → esm2022}/rendering/popup-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/size.mjs +0 -0
- /package/{esm2020 → esm2022}/utils.mjs +0 -0
|
@@ -13,6 +13,46 @@ const getField = (field, level) => Array.isArray(field) ? field[level] || last(f
|
|
|
13
13
|
* A directive that converts the provided hierarchical data to [MenuItems]({% slug api_menu_menuitem %}) and binds them to the Menu.
|
|
14
14
|
*/
|
|
15
15
|
export class HierarchyBindingDirective extends BindingDirectiveBase {
|
|
16
|
+
/**
|
|
17
|
+
* The array of data which will be used to populate the Menu.
|
|
18
|
+
*/
|
|
19
|
+
data;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the `text` field (or fields) of an item.
|
|
22
|
+
*/
|
|
23
|
+
textField;
|
|
24
|
+
/**
|
|
25
|
+
* Defines the `url` field (or fields) of an item.
|
|
26
|
+
*/
|
|
27
|
+
urlField;
|
|
28
|
+
/**
|
|
29
|
+
* Defines the `icon` field (or fields) of an item.
|
|
30
|
+
*/
|
|
31
|
+
iconField;
|
|
32
|
+
/**
|
|
33
|
+
* Defines the `svgIcon` field of the items.
|
|
34
|
+
*/
|
|
35
|
+
svgIconField;
|
|
36
|
+
/**
|
|
37
|
+
* Defines the `disabled` field (or fields) of an item.
|
|
38
|
+
*/
|
|
39
|
+
disabledField;
|
|
40
|
+
/**
|
|
41
|
+
* Defines the `cssClass` field (or fields) of an item.
|
|
42
|
+
*/
|
|
43
|
+
cssClassField;
|
|
44
|
+
/**
|
|
45
|
+
* Defines the `cssStyle` field (or fields) of an item.
|
|
46
|
+
*/
|
|
47
|
+
cssStyleField;
|
|
48
|
+
/**
|
|
49
|
+
* Defines the `separator` field (or fields) of the items.
|
|
50
|
+
*/
|
|
51
|
+
separatorField;
|
|
52
|
+
/**
|
|
53
|
+
* Defines the `children` field (or fields) of the items.
|
|
54
|
+
*/
|
|
55
|
+
childrenField;
|
|
16
56
|
constructor(menu) {
|
|
17
57
|
super(menu);
|
|
18
58
|
}
|
|
@@ -41,10 +81,10 @@ export class HierarchyBindingDirective extends BindingDirectiveBase {
|
|
|
41
81
|
return item[field];
|
|
42
82
|
}
|
|
43
83
|
}
|
|
84
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HierarchyBindingDirective, deps: [{ token: i1.MenuBase }], target: i0.ɵɵFactoryTarget.Directive });
|
|
85
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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 });
|
|
44
86
|
}
|
|
45
|
-
|
|
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
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HierarchyBindingDirective, decorators: [{
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HierarchyBindingDirective, decorators: [{
|
|
48
88
|
type: Directive,
|
|
49
89
|
args: [{
|
|
50
90
|
exportAs: 'kendoMenuHierarchyBinding',
|
|
@@ -11,48 +11,62 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
export class MenuBase {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the Menu items.
|
|
16
|
+
*/
|
|
17
|
+
items;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies if the Menu will be vertical ([see example]({% slug vertical_menu %})).
|
|
20
|
+
*/
|
|
21
|
+
vertical = false;
|
|
22
|
+
/**
|
|
23
|
+
* Specifies that the root items can be opened only on click
|
|
24
|
+
* ([see example]({% slug openclose_menu %}#toc-opening-on-click)).
|
|
25
|
+
*/
|
|
26
|
+
openOnClick = false;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the delay in milliseconds before the Menu items are opened or closed on item hover
|
|
29
|
+
* or leave ([see example]({% slug openclose_menu %}#toc-delay-on-hover)). Used to avoid the accidental
|
|
30
|
+
* opening or closing of the items.
|
|
31
|
+
*/
|
|
32
|
+
hoverDelay = 100;
|
|
33
|
+
/**
|
|
34
|
+
* Sets the Menu animation.
|
|
35
|
+
*/
|
|
36
|
+
animate = true;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the Menu size.
|
|
39
|
+
*
|
|
40
|
+
* The possible values are:
|
|
41
|
+
* * `small`
|
|
42
|
+
* * `medium` (default)
|
|
43
|
+
* * `large`
|
|
44
|
+
* * `none`
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
size = 'medium';
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
itemTemplate;
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
itemLinkTemplate;
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
children;
|
|
46
60
|
/**
|
|
47
61
|
* @hidden
|
|
48
62
|
*/
|
|
49
63
|
get rootItems() {
|
|
50
64
|
return this.items || (this.children ? this.children.toArray() : []);
|
|
51
65
|
}
|
|
66
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenuBase, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
67
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MenuBase, selector: "kendo-menu-base", inputs: { items: "items", vertical: "vertical", openOnClick: "openOnClick", hoverDelay: "hoverDelay", animate: "animate", size: "size" }, queries: [{ propertyName: "itemTemplate", predicate: ItemTemplateDirective }, { propertyName: "itemLinkTemplate", predicate: ItemLinkTemplateDirective }, { propertyName: "children", predicate: MenuItemComponent }], ngImport: i0, template: ``, isInline: true });
|
|
52
68
|
}
|
|
53
|
-
|
|
54
|
-
MenuBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MenuBase, selector: "kendo-menu-base", inputs: { items: "items", vertical: "vertical", openOnClick: "openOnClick", hoverDelay: "hoverDelay", animate: "animate", size: "size" }, queries: [{ propertyName: "itemTemplate", predicate: ItemTemplateDirective }, { propertyName: "itemLinkTemplate", predicate: ItemLinkTemplateDirective }, { propertyName: "children", predicate: MenuItemComponent }], ngImport: i0, template: ``, isInline: true });
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuBase, decorators: [{
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenuBase, decorators: [{
|
|
56
70
|
type: Component,
|
|
57
71
|
args: [{
|
|
58
72
|
selector: 'kendo-menu-base',
|
|
@@ -7,4 +7,16 @@ import { PreventableEvent } from './preventable-event';
|
|
|
7
7
|
* Arguments for the `open` and `close` events of the Menu.
|
|
8
8
|
*/
|
|
9
9
|
export class MenuEvent extends PreventableEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The MenuComponent that triggered the event.
|
|
12
|
+
*/
|
|
13
|
+
sender;
|
|
14
|
+
/**
|
|
15
|
+
* The item data of the event.
|
|
16
|
+
*/
|
|
17
|
+
item;
|
|
18
|
+
/**
|
|
19
|
+
* The item index of the event.
|
|
20
|
+
*/
|
|
21
|
+
index;
|
|
10
22
|
}
|
|
@@ -53,6 +53,31 @@ import * as i0 from "@angular/core";
|
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
55
|
export class MenuItemComponent {
|
|
56
|
+
text;
|
|
57
|
+
url;
|
|
58
|
+
disabled;
|
|
59
|
+
cssClass;
|
|
60
|
+
cssStyle;
|
|
61
|
+
icon;
|
|
62
|
+
svgIcon;
|
|
63
|
+
data;
|
|
64
|
+
separator;
|
|
65
|
+
/**
|
|
66
|
+
* @hidden
|
|
67
|
+
*/
|
|
68
|
+
itemTemplate;
|
|
69
|
+
/**
|
|
70
|
+
* @hidden
|
|
71
|
+
*/
|
|
72
|
+
itemLinkTemplate;
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
*/
|
|
76
|
+
itemContentTemplate;
|
|
77
|
+
/**
|
|
78
|
+
* @hidden
|
|
79
|
+
*/
|
|
80
|
+
children;
|
|
56
81
|
/**
|
|
57
82
|
* @hidden
|
|
58
83
|
*/
|
|
@@ -85,10 +110,10 @@ export class MenuItemComponent {
|
|
|
85
110
|
return this.children.toArray().filter(c => c !== this);
|
|
86
111
|
}
|
|
87
112
|
}
|
|
113
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
114
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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 });
|
|
88
115
|
}
|
|
89
|
-
|
|
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
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuItemComponent, decorators: [{
|
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenuItemComponent, decorators: [{
|
|
92
117
|
type: Component,
|
|
93
118
|
args: [{
|
|
94
119
|
selector: 'kendo-menu-item',
|
|
@@ -43,39 +43,42 @@ import * as i6 from "./context-menu/context-menu.service";
|
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
45
|
export class MenuComponent extends MenuBase {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
46
|
+
itemsService;
|
|
47
|
+
hover;
|
|
48
|
+
actions;
|
|
49
|
+
navigation;
|
|
50
|
+
localization;
|
|
51
|
+
ngZone;
|
|
52
|
+
renderer;
|
|
53
|
+
contextService;
|
|
54
|
+
/**
|
|
55
|
+
* Defines the container to which the popups will be appended.
|
|
56
|
+
*/
|
|
57
|
+
appendTo;
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
menuItemTemplate;
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
ariaRole = 'menubar';
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
menuItemLinkTemplate;
|
|
70
|
+
/**
|
|
71
|
+
* Fires when a Menu item is selected ([see example](slug:events_menu)).
|
|
72
|
+
*/
|
|
73
|
+
select = new EventEmitter();
|
|
74
|
+
/**
|
|
75
|
+
* Fires when a Menu item is opened ([see example](slug:events_menu)).
|
|
76
|
+
*/
|
|
77
|
+
open = new EventEmitter();
|
|
78
|
+
/**
|
|
79
|
+
* Fires when a Menu item is closed ([see example](slug:events_menu)).
|
|
80
|
+
*/
|
|
81
|
+
close = new EventEmitter();
|
|
79
82
|
/**
|
|
80
83
|
* @hidden
|
|
81
84
|
*/
|
|
@@ -107,6 +110,25 @@ export class MenuComponent extends MenuBase {
|
|
|
107
110
|
}
|
|
108
111
|
return `${staticClasses} k-menu-${this.vertical ? 'vertical' : 'horizontal'}`;
|
|
109
112
|
}
|
|
113
|
+
closeClickSubscription;
|
|
114
|
+
contextKeyDownSubscription;
|
|
115
|
+
constructor(itemsService, hover, actions, navigation, localization, ngZone, renderer, contextService) {
|
|
116
|
+
super();
|
|
117
|
+
this.itemsService = itemsService;
|
|
118
|
+
this.hover = hover;
|
|
119
|
+
this.actions = actions;
|
|
120
|
+
this.navigation = navigation;
|
|
121
|
+
this.localization = localization;
|
|
122
|
+
this.ngZone = ngZone;
|
|
123
|
+
this.renderer = renderer;
|
|
124
|
+
this.contextService = contextService;
|
|
125
|
+
validatePackage(packageMetadata);
|
|
126
|
+
this.actions.owner = this;
|
|
127
|
+
if (contextService) {
|
|
128
|
+
contextService.items = this.itemsService;
|
|
129
|
+
this.contextKeyDownSubscription = contextService.keydown.subscribe(this.contextKeyDown.bind(this));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
110
132
|
/**
|
|
111
133
|
* Opens or closes the specified Menu items.
|
|
112
134
|
*
|
|
@@ -194,23 +216,22 @@ export class MenuComponent extends MenuBase {
|
|
|
194
216
|
this.focus(index);
|
|
195
217
|
}
|
|
196
218
|
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
], exportAs: ["kendoMenu"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
219
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", 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 });
|
|
220
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: [
|
|
221
|
+
ItemsService,
|
|
222
|
+
ActionsService,
|
|
223
|
+
NavigationService,
|
|
224
|
+
HoverService,
|
|
225
|
+
LocalizationService,
|
|
226
|
+
{
|
|
227
|
+
provide: L10N_PREFIX,
|
|
228
|
+
useValue: 'kendo.menu'
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
provide: MenuBase,
|
|
232
|
+
useExisting: forwardRef(() => MenuComponent)
|
|
233
|
+
}
|
|
234
|
+
], exportAs: ["kendoMenu"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
214
235
|
<ul
|
|
215
236
|
[attr.role]="ariaRole"
|
|
216
237
|
[attr.aria-orientation]="ariaOrientation"
|
|
@@ -221,7 +242,8 @@ MenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version:
|
|
|
221
242
|
[ngClass]="menuClasses">
|
|
222
243
|
</ul>
|
|
223
244
|
`, 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
|
-
|
|
245
|
+
}
|
|
246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenuComponent, decorators: [{
|
|
225
247
|
type: Component,
|
|
226
248
|
args: [{
|
|
227
249
|
exportAs: 'kendoMenu',
|
|
@@ -51,11 +51,11 @@ import * as i9 from "./rendering/arrow.component";
|
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
53
|
export class MenuModule {
|
|
54
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
55
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", 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
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenuModule, providers: [PopupService, IconsService, ResizeBatchService], imports: [i1.MenuComponent, i9.ExpandArrowComponent] });
|
|
54
57
|
}
|
|
55
|
-
|
|
56
|
-
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] });
|
|
57
|
-
MenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuModule, providers: [PopupService, IconsService, ResizeBatchService], imports: [i1.MenuComponent, i2.MenuItemComponent, i9.ExpandArrowComponent] });
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenuModule, decorators: [{
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenuModule, decorators: [{
|
|
59
59
|
type: NgModule,
|
|
60
60
|
args: [{
|
|
61
61
|
exports: [...KENDO_MENU],
|
|
@@ -45,11 +45,11 @@ import * as i13 from "./context-menu/context-menu-target-container.directive";
|
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
47
|
export class MenusModule {
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
49
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", 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
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenusModule, providers: [PopupService, IconsService, ResizeBatchService], imports: [i1.MenuComponent, i9.ExpandArrowComponent, i10.ContextMenuComponent, i1.MenuComponent, i9.ExpandArrowComponent] });
|
|
48
51
|
}
|
|
49
|
-
|
|
50
|
-
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] });
|
|
51
|
-
MenusModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenusModule, providers: [PopupService, IconsService, ResizeBatchService], imports: [i1.MenuComponent, i2.MenuItemComponent, i9.ExpandArrowComponent, i10.ContextMenuComponent, i1.MenuComponent, i2.MenuItemComponent, i9.ExpandArrowComponent] });
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MenusModule, decorators: [{
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MenusModule, decorators: [{
|
|
53
53
|
type: NgModule,
|
|
54
54
|
args: [{
|
|
55
55
|
exports: [...KENDO_MENUS],
|
|
@@ -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: '17.0.0
|
|
12
|
+
publishDate: 1731414009,
|
|
13
|
+
version: '17.0.0',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -6,13 +6,7 @@
|
|
|
6
6
|
* @hidden
|
|
7
7
|
*/
|
|
8
8
|
export class PreventableEvent {
|
|
9
|
-
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
constructor(args) {
|
|
13
|
-
this.prevented = false;
|
|
14
|
-
Object.assign(this, args);
|
|
15
|
-
}
|
|
9
|
+
prevented = false;
|
|
16
10
|
/**
|
|
17
11
|
* Prevents the default action for a specified event.
|
|
18
12
|
* In this way, the source component suppresses
|
|
@@ -31,4 +25,10 @@ export class PreventableEvent {
|
|
|
31
25
|
isDefaultPrevented() {
|
|
32
26
|
return this.prevented;
|
|
33
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
constructor(args) {
|
|
32
|
+
Object.assign(this, args);
|
|
33
|
+
}
|
|
34
34
|
}
|
|
@@ -13,10 +13,24 @@ import * as i1 from "../services/items.service";
|
|
|
13
13
|
* of the items to render the default expand arrow.
|
|
14
14
|
*/
|
|
15
15
|
export class ExpandArrowComponent {
|
|
16
|
+
itemsService;
|
|
17
|
+
/**
|
|
18
|
+
* The index of the Menu item. The input is mandatory.
|
|
19
|
+
*/
|
|
20
|
+
index;
|
|
21
|
+
hostClasses = true;
|
|
22
|
+
ariaHidden = 'true';
|
|
23
|
+
item;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
fontIcon;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
SVGIcon;
|
|
16
32
|
constructor(itemsService) {
|
|
17
33
|
this.itemsService = itemsService;
|
|
18
|
-
this.hostClasses = true;
|
|
19
|
-
this.ariaHidden = 'true';
|
|
20
34
|
}
|
|
21
35
|
ngOnInit() {
|
|
22
36
|
if (isDevMode() && !this.index) {
|
|
@@ -26,10 +40,10 @@ export class ExpandArrowComponent {
|
|
|
26
40
|
this.fontIcon = getFontIcon(this.item.horizontal, this.item.rtl);
|
|
27
41
|
this.SVGIcon = getSVGIcon(this.item.horizontal, this.item.rtl);
|
|
28
42
|
}
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpandArrowComponent, deps: [{ token: i1.ItemsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ExpandArrowComponent, isStandalone: true, selector: "[kendoMenuExpandArrow]", inputs: { index: ["kendoMenuExpandArrow", "index"] }, host: { properties: { "class.k-menu-expand-arrow": "this.hostClasses", "attr.aria-hidden": "this.ariaHidden" } }, ngImport: i0, template: `<kendo-icon-wrapper [name]="fontIcon" [svgIcon]="SVGIcon"></kendo-icon-wrapper>`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
29
45
|
}
|
|
30
|
-
|
|
31
|
-
ExpandArrowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ExpandArrowComponent, isStandalone: true, selector: "[kendoMenuExpandArrow]", inputs: { index: ["kendoMenuExpandArrow", "index"] }, host: { properties: { "class.k-menu-expand-arrow": "this.hostClasses", "attr.aria-hidden": "this.ariaHidden" } }, ngImport: i0, template: `<kendo-icon-wrapper [name]="fontIcon" [svgIcon]="SVGIcon"></kendo-icon-wrapper>`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExpandArrowComponent, decorators: [{
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpandArrowComponent, decorators: [{
|
|
33
47
|
type: Component,
|
|
34
48
|
args: [{
|
|
35
49
|
selector: '[kendoMenuExpandArrow]',
|
|
@@ -11,25 +11,31 @@ import * as i1 from "../services/items.service";
|
|
|
11
11
|
* of the items to apply the default styling and behavior.
|
|
12
12
|
*/
|
|
13
13
|
export class LinkDirective {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
itemsService;
|
|
15
|
+
/**
|
|
16
|
+
* The index of the Menu item. The input is mandatory.
|
|
17
|
+
*/
|
|
18
|
+
index;
|
|
19
|
+
hostClasses = true;
|
|
20
|
+
role = 'presentation';
|
|
21
|
+
tabindex = '-1';
|
|
20
22
|
get activeClass() {
|
|
21
23
|
return this.item.opened;
|
|
22
24
|
}
|
|
25
|
+
item;
|
|
26
|
+
constructor(itemsService) {
|
|
27
|
+
this.itemsService = itemsService;
|
|
28
|
+
}
|
|
23
29
|
ngOnInit() {
|
|
24
30
|
if (isDevMode() && !this.index) {
|
|
25
31
|
throw new Error('The kendoMenuItemLink directive requires the item index to be set.');
|
|
26
32
|
}
|
|
27
33
|
this.item = this.itemsService.get(this.index) || {};
|
|
28
34
|
}
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinkDirective, deps: [{ token: i1.ItemsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LinkDirective, isStandalone: true, selector: "[kendoMenuItemLink]", inputs: { index: ["kendoMenuItemLink", "index"] }, host: { properties: { "class.k-link": "this.hostClasses", "class.k-menu-link": "this.hostClasses", "attr.role": "this.role", "attr.tabindex": "this.tabindex", "class.k-active": "this.activeClass" } }, ngImport: i0 });
|
|
29
37
|
}
|
|
30
|
-
|
|
31
|
-
LinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LinkDirective, isStandalone: true, selector: "[kendoMenuItemLink]", inputs: { index: ["kendoMenuItemLink", "index"] }, host: { properties: { "class.k-link": "this.hostClasses", "class.k-menu-link": "this.hostClasses", "attr.role": "this.role", "attr.tabindex": "this.tabindex", "class.k-active": "this.activeClass" } }, ngImport: i0 });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LinkDirective, decorators: [{
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinkDirective, decorators: [{
|
|
33
39
|
type: Directive,
|
|
34
40
|
args: [{
|
|
35
41
|
selector: '[kendoMenuItemLink]',
|