@progress/kendo-angular-menu 3.0.6 → 4.0.0-next.202203230842
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/bundles/kendo-angular-menu.umd.js +5 -0
- package/{dist/es2015/constants.d.ts → constants.d.ts} +0 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-event.d.ts +0 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-items.service.d.ts +3 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-popup-event.d.ts +0 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-select-event.d.ts +0 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-target-container.directive.d.ts +3 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-target.directive.d.ts +3 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-target.service.d.ts +3 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu-template.directive.d.ts +3 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu.component.d.ts +4 -1
- package/{dist/es2015/context-menu → context-menu}/context-menu.module.d.ts +11 -0
- package/{dist/es2015/context-menu → context-menu}/context-menu.service.d.ts +3 -0
- package/{dist/es2015/data-binding → data-binding}/binding-directive-base.d.ts +3 -0
- package/{dist/es2015/data-binding → data-binding}/flat-binding.directive.d.ts +3 -0
- package/{dist/es2015/data-binding → data-binding}/hierachy-binding.directive.d.ts +3 -0
- package/{dist/es2015/data-binding → data-binding}/utils.d.ts +0 -0
- package/{dist/es2015/dom-queries.d.ts → dom-queries.d.ts} +0 -0
- package/{dist/es2015 → esm2015}/constants.js +0 -0
- package/{dist/es2015 → esm2015}/context-menu/context-menu-event.js +0 -0
- package/esm2015/context-menu/context-menu-items.service.js +25 -0
- package/{dist/es2015 → esm2015}/context-menu/context-menu-popup-event.js +0 -0
- package/{dist/es2015 → esm2015}/context-menu/context-menu-select-event.js +0 -0
- package/esm2015/context-menu/context-menu-target-container.directive.js +32 -0
- package/esm2015/context-menu/context-menu-target.directive.js +46 -0
- package/{dist/es2015 → esm2015}/context-menu/context-menu-target.service.js +8 -10
- package/esm2015/context-menu/context-menu-template.directive.js +32 -0
- package/{dist/es2015 → esm2015}/context-menu/context-menu.component.js +107 -113
- package/{dist/es2015 → esm2015}/context-menu/context-menu.module.js +20 -11
- package/{dist/es2015 → esm2015}/context-menu/context-menu.service.js +8 -10
- package/{dist/es2015 → esm2015}/data-binding/binding-directive-base.js +11 -0
- package/esm2015/data-binding/flat-binding.directive.js +82 -0
- package/esm2015/data-binding/hierachy-binding.directive.js +71 -0
- package/{dist/es2015 → esm2015}/data-binding/utils.js +0 -1
- package/{dist/es2015 → esm2015}/dom-queries.js +0 -3
- package/{dist/es/constants.js → esm2015/kendo-angular-menu.js} +2 -2
- package/{dist/es → esm2015}/main.js +3 -2
- package/{dist/es → esm2015}/menu-animation.interface.js +1 -0
- package/esm2015/menu-base.js +69 -0
- package/{dist/es2015 → esm2015}/menu-event.js +0 -0
- package/{dist/es2015 → esm2015}/menu-item.component.js +41 -60
- package/{dist/es → esm2015}/menu-item.interface.js +1 -0
- package/{dist/es2015 → esm2015}/menu-select-event.js +0 -0
- package/{dist/es2015 → esm2015}/menu.component.js +76 -63
- package/{dist/es2015 → esm2015}/menu.module.js +32 -13
- package/{dist/es2015 → esm2015}/menus.module.js +12 -9
- package/{dist/es2015 → esm2015}/open-on-click-settings.js +0 -1
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
- package/esm2015/rendering/arrow.directive.js +62 -0
- package/esm2015/rendering/link.directive.js +54 -0
- package/esm2015/rendering/list.component.js +546 -0
- package/{dist/es2015 → esm2015}/rendering/popup-settings.js +0 -0
- package/{dist/es2015 → esm2015}/services/actions.service.js +21 -14
- package/{dist/es2015 → esm2015}/services/hover.service.js +10 -10
- package/{dist/es2015 → esm2015}/services/items.service.js +8 -13
- package/{dist/es2015 → esm2015}/services/navigation.service.js +12 -15
- package/{dist/es2015 → esm2015}/templates/item-content-template.directive.js +14 -12
- package/{dist/es2015 → esm2015}/templates/item-link-template.directive.js +14 -12
- package/{dist/es2015 → esm2015}/templates/item-template.directive.js +14 -12
- package/{dist/es2015 → esm2015}/utils.js +0 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-menu.js} +1112 -1113
- package/kendo-angular-menu.d.ts +9 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +3 -2
- package/{dist/es2015/menu-animation.interface.d.ts → menu-animation.interface.d.ts} +0 -0
- package/{dist/es2015/menu-base.d.ts → menu-base.d.ts} +4 -1
- package/{dist/es2015/menu-event.d.ts → menu-event.d.ts} +0 -0
- package/{dist/es2015/menu-item.component.d.ts → menu-item.component.d.ts} +7 -4
- package/{dist/es2015/menu-item.interface.d.ts → menu-item.interface.d.ts} +0 -0
- package/{dist/es2015/menu-select-event.d.ts → menu-select-event.d.ts} +0 -0
- package/{dist/es2015/menu.component.d.ts → menu.component.d.ts} +7 -4
- package/menu.module.d.ts +54 -0
- package/{dist/es2015/menus.module.d.ts → menus.module.d.ts} +6 -0
- package/{dist/es2015/open-on-click-settings.d.ts → open-on-click-settings.d.ts} +0 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +31 -106
- package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
- package/{dist/es2015/rendering → rendering}/arrow.directive.d.ts +6 -3
- package/{dist/es2015/rendering → rendering}/link.directive.d.ts +4 -1
- package/rendering/list.component.d.ts +104 -0
- package/{dist/es2015/rendering → rendering}/popup-settings.d.ts +0 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/services → services}/actions.service.d.ts +24 -1
- package/{dist/es2015/services → services}/hover.service.d.ts +7 -2
- package/{dist/es2015/services → services}/items.service.d.ts +4 -1
- package/{dist/es2015/services → services}/navigation.service.d.ts +6 -3
- package/{dist/es2015/templates → templates}/item-content-template.directive.d.ts +3 -0
- package/{dist/es2015/templates → templates}/item-link-template.directive.d.ts +3 -0
- package/{dist/es2015/templates → templates}/item-template.directive.d.ts +3 -0
- package/{dist/es2015/utils.d.ts → utils.d.ts} +1 -1
- package/dist/cdn/js/kendo-angular-menu.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/context-menu/context-menu-event.js +0 -13
- package/dist/es/context-menu/context-menu-items.service.js +0 -26
- package/dist/es/context-menu/context-menu-popup-event.js +0 -17
- package/dist/es/context-menu/context-menu-select-event.js +0 -17
- package/dist/es/context-menu/context-menu-target-container.directive.js +0 -31
- package/dist/es/context-menu/context-menu-target.directive.js +0 -48
- package/dist/es/context-menu/context-menu-target.service.js +0 -29
- package/dist/es/context-menu/context-menu-template.directive.js +0 -31
- package/dist/es/context-menu/context-menu.component.js +0 -456
- package/dist/es/context-menu/context-menu.module.js +0 -64
- package/dist/es/context-menu/context-menu.service.js +0 -30
- package/dist/es/data-binding/binding-directive-base.js +0 -32
- package/dist/es/data-binding/flat-binding.directive.js +0 -104
- package/dist/es/data-binding/hierachy-binding.directive.js +0 -94
- package/dist/es/data-binding/utils.js +0 -32
- package/dist/es/dom-queries.js +0 -107
- package/dist/es/index.js +0 -21
- package/dist/es/menu-base.js +0 -79
- package/dist/es/menu-event.js +0 -17
- package/dist/es/menu-item.component.js +0 -165
- package/dist/es/menu-select-event.js +0 -17
- package/dist/es/menu.component.js +0 -256
- package/dist/es/menu.module.js +0 -79
- package/dist/es/menus.module.js +0 -41
- package/dist/es/open-on-click-settings.js +0 -13
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/preventable-event.js +0 -36
- package/dist/es/rendering/arrow.directive.js +0 -81
- package/dist/es/rendering/item.component.js +0 -337
- package/dist/es/rendering/link.directive.js +0 -62
- package/dist/es/rendering/list.component.js +0 -219
- package/dist/es/rendering/popup-settings.js +0 -66
- package/dist/es/services/actions.service.js +0 -178
- package/dist/es/services/hover.service.js +0 -136
- package/dist/es/services/items.service.js +0 -140
- package/dist/es/services/navigation.service.js +0 -274
- package/dist/es/templates/item-content-template.directive.js +0 -50
- package/dist/es/templates/item-link-template.directive.js +0 -52
- package/dist/es/templates/item-template.directive.js +0 -51
- package/dist/es/utils.js +0 -18
- package/dist/es2015/context-menu/context-menu-items.service.js +0 -25
- package/dist/es2015/context-menu/context-menu-target-container.directive.js +0 -30
- package/dist/es2015/context-menu/context-menu-target.directive.js +0 -47
- package/dist/es2015/context-menu/context-menu-template.directive.js +0 -30
- package/dist/es2015/data-binding/flat-binding.directive.js +0 -101
- package/dist/es2015/data-binding/hierachy-binding.directive.js +0 -90
- package/dist/es2015/index.d.ts +0 -21
- package/dist/es2015/index.js +0 -21
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -26
- package/dist/es2015/menu-animation.interface.js +0 -4
- package/dist/es2015/menu-base.js +0 -73
- package/dist/es2015/menu-item.interface.js +0 -4
- package/dist/es2015/menu.module.d.ts +0 -38
- package/dist/es2015/rendering/arrow.directive.js +0 -68
- package/dist/es2015/rendering/item.component.d.ts +0 -64
- package/dist/es2015/rendering/item.component.js +0 -327
- package/dist/es2015/rendering/link.directive.js +0 -57
- package/dist/es2015/rendering/list.component.d.ts +0 -41
- package/dist/es2015/rendering/list.component.js +0 -233
- package/dist/fesm5/index.js +0 -3222
- package/dist/npm/constants.js +0 -10
- package/dist/npm/context-menu/context-menu-event.js +0 -15
- package/dist/npm/context-menu/context-menu-items.service.js +0 -28
- package/dist/npm/context-menu/context-menu-popup-event.js +0 -19
- package/dist/npm/context-menu/context-menu-select-event.js +0 -19
- package/dist/npm/context-menu/context-menu-target-container.directive.js +0 -33
- package/dist/npm/context-menu/context-menu-target.directive.js +0 -50
- package/dist/npm/context-menu/context-menu-target.service.js +0 -31
- package/dist/npm/context-menu/context-menu-template.directive.js +0 -33
- package/dist/npm/context-menu/context-menu.component.js +0 -459
- package/dist/npm/context-menu/context-menu.module.js +0 -66
- package/dist/npm/context-menu/context-menu.service.js +0 -32
- package/dist/npm/data-binding/binding-directive-base.js +0 -34
- package/dist/npm/data-binding/flat-binding.directive.js +0 -106
- package/dist/npm/data-binding/hierachy-binding.directive.js +0 -96
- package/dist/npm/data-binding/utils.js +0 -34
- package/dist/npm/dom-queries.js +0 -110
- package/dist/npm/index.js +0 -37
- package/dist/npm/main.js +0 -50
- package/dist/npm/menu-animation.interface.js +0 -6
- package/dist/npm/menu-base.js +0 -81
- package/dist/npm/menu-event.js +0 -19
- package/dist/npm/menu-item.component.js +0 -167
- package/dist/npm/menu-item.interface.js +0 -6
- package/dist/npm/menu-select-event.js +0 -19
- package/dist/npm/menu.component.js +0 -258
- package/dist/npm/menu.module.js +0 -81
- package/dist/npm/menus.module.js +0 -43
- package/dist/npm/open-on-click-settings.js +0 -15
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/preventable-event.js +0 -38
- package/dist/npm/rendering/arrow.directive.js +0 -83
- package/dist/npm/rendering/item.component.js +0 -339
- package/dist/npm/rendering/link.directive.js +0 -64
- package/dist/npm/rendering/list.component.js +0 -221
- package/dist/npm/rendering/popup-settings.js +0 -68
- package/dist/npm/services/actions.service.js +0 -180
- package/dist/npm/services/hover.service.js +0 -138
- package/dist/npm/services/items.service.js +0 -143
- package/dist/npm/services/navigation.service.js +0 -276
- package/dist/npm/templates/item-content-template.directive.js +0 -52
- package/dist/npm/templates/item-link-template.directive.js +0 -54
- package/dist/npm/templates/item-template.directive.js +0 -53
- package/dist/npm/utils.js +0 -20
- package/dist/systemjs/kendo-angular-menu.js +0 -5
|
File without changes
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
var MenuItemComponent_1;
|
|
7
|
-
import { Component, Input, ContentChildren, QueryList } from '@angular/core';
|
|
5
|
+
import { Component, Input, ContentChildren } from '@angular/core';
|
|
8
6
|
import { ItemTemplateDirective } from './templates/item-template.directive';
|
|
9
7
|
import { ItemLinkTemplateDirective } from './templates/item-link-template.directive';
|
|
10
8
|
import { ItemContentTemplateDirective } from './templates/item-content-template.directive';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
11
10
|
/**
|
|
12
11
|
* A component that can be used to specify the Menu items
|
|
13
12
|
* ([more information and examples]({% slug items_menu %})).
|
|
@@ -53,7 +52,7 @@ import { ItemContentTemplateDirective } from './templates/item-content-template.
|
|
|
53
52
|
* }
|
|
54
53
|
* ```
|
|
55
54
|
*/
|
|
56
|
-
|
|
55
|
+
export class MenuItemComponent {
|
|
57
56
|
/**
|
|
58
57
|
* @hidden
|
|
59
58
|
*/
|
|
@@ -86,59 +85,41 @@ let MenuItemComponent = MenuItemComponent_1 = class MenuItemComponent {
|
|
|
86
85
|
return this.children.toArray().filter(c => c !== this);
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
]
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
],
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
ContentChildren(ItemLinkTemplateDirective),
|
|
128
|
-
tslib_1.__metadata("design:type", QueryList)
|
|
129
|
-
], MenuItemComponent.prototype, "itemLinkTemplate", void 0);
|
|
130
|
-
tslib_1.__decorate([
|
|
131
|
-
ContentChildren(ItemContentTemplateDirective),
|
|
132
|
-
tslib_1.__metadata("design:type", QueryList)
|
|
133
|
-
], MenuItemComponent.prototype, "itemContentTemplate", void 0);
|
|
134
|
-
tslib_1.__decorate([
|
|
135
|
-
ContentChildren(MenuItemComponent_1),
|
|
136
|
-
tslib_1.__metadata("design:type", QueryList)
|
|
137
|
-
], MenuItemComponent.prototype, "children", void 0);
|
|
138
|
-
MenuItemComponent = MenuItemComponent_1 = tslib_1.__decorate([
|
|
139
|
-
Component({
|
|
140
|
-
selector: 'kendo-menu-item',
|
|
141
|
-
template: ``
|
|
142
|
-
})
|
|
143
|
-
], MenuItemComponent);
|
|
144
|
-
export { MenuItemComponent };
|
|
88
|
+
}
|
|
89
|
+
MenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
+
MenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MenuItemComponent, selector: "kendo-menu-item", inputs: { text: "text", url: "url", disabled: "disabled", cssClass: "cssClass", cssStyle: "cssStyle", icon: "icon", 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: "12.2.16", ngImport: i0, type: MenuItemComponent, decorators: [{
|
|
92
|
+
type: Component,
|
|
93
|
+
args: [{
|
|
94
|
+
selector: 'kendo-menu-item',
|
|
95
|
+
template: ``
|
|
96
|
+
}]
|
|
97
|
+
}], propDecorators: { text: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], url: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}], disabled: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}], cssClass: [{
|
|
104
|
+
type: Input
|
|
105
|
+
}], cssStyle: [{
|
|
106
|
+
type: Input
|
|
107
|
+
}], icon: [{
|
|
108
|
+
type: Input
|
|
109
|
+
}], data: [{
|
|
110
|
+
type: Input
|
|
111
|
+
}], separator: [{
|
|
112
|
+
type: Input
|
|
113
|
+
}], itemTemplate: [{
|
|
114
|
+
type: ContentChildren,
|
|
115
|
+
args: [ItemTemplateDirective]
|
|
116
|
+
}], itemLinkTemplate: [{
|
|
117
|
+
type: ContentChildren,
|
|
118
|
+
args: [ItemLinkTemplateDirective]
|
|
119
|
+
}], itemContentTemplate: [{
|
|
120
|
+
type: ContentChildren,
|
|
121
|
+
args: [ItemContentTemplateDirective]
|
|
122
|
+
}], children: [{
|
|
123
|
+
type: ContentChildren,
|
|
124
|
+
args: [MenuItemComponent]
|
|
125
|
+
}] } });
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
File without changes
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
var MenuComponent_1;
|
|
7
|
-
import { Component, Input, HostBinding, EventEmitter, Output, NgZone, Renderer2, Optional, TemplateRef, forwardRef } from '@angular/core';
|
|
5
|
+
import { Component, Input, HostBinding, EventEmitter, Output, Optional, forwardRef } from '@angular/core';
|
|
8
6
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
7
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
10
8
|
import { packageMetadata } from './package-metadata';
|
|
@@ -14,9 +12,16 @@ import { NavigationService } from './services/navigation.service';
|
|
|
14
12
|
import { HoverService } from './services/hover.service';
|
|
15
13
|
import { normalize } from './open-on-click-settings';
|
|
16
14
|
import { inMenu } from './dom-queries';
|
|
17
|
-
import { ContextMenuService } from './context-menu/context-menu.service';
|
|
18
15
|
import { MenuBase } from './menu-base';
|
|
19
16
|
import { Keys, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
import * as i1 from "./services/items.service";
|
|
19
|
+
import * as i2 from "./services/hover.service";
|
|
20
|
+
import * as i3 from "./services/actions.service";
|
|
21
|
+
import * as i4 from "./services/navigation.service";
|
|
22
|
+
import * as i5 from "@progress/kendo-angular-l10n";
|
|
23
|
+
import * as i6 from "./context-menu/context-menu.service";
|
|
24
|
+
import * as i7 from "./rendering/list.component";
|
|
20
25
|
/**
|
|
21
26
|
* Represents the [Kendo UI Menu component for Angular]({% slug overview_menu %}).
|
|
22
27
|
*
|
|
@@ -34,7 +39,7 @@ import { Keys, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
|
34
39
|
* }
|
|
35
40
|
* ```
|
|
36
41
|
*/
|
|
37
|
-
|
|
42
|
+
export class MenuComponent extends MenuBase {
|
|
38
43
|
constructor(itemsService, hover, actions, navigation, localization, ngZone, renderer, contextService) {
|
|
39
44
|
super();
|
|
40
45
|
this.itemsService = itemsService;
|
|
@@ -171,52 +176,55 @@ let MenuComponent = MenuComponent_1 = class MenuComponent extends MenuBase {
|
|
|
171
176
|
this.focus(index);
|
|
172
177
|
}
|
|
173
178
|
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
],
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
]
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
]
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
179
|
+
}
|
|
180
|
+
MenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", 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 });
|
|
181
|
+
MenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MenuComponent, selector: "kendo-menu", inputs: { menuItemTemplate: "menuItemTemplate", menuItemLinkTemplate: "menuItemLinkTemplate" }, outputs: { select: "select", open: "open", close: "close" }, host: { properties: { "class.k-rtl": "this.direction" } }, providers: [
|
|
182
|
+
ItemsService,
|
|
183
|
+
ActionsService,
|
|
184
|
+
NavigationService,
|
|
185
|
+
HoverService,
|
|
186
|
+
LocalizationService,
|
|
187
|
+
{
|
|
188
|
+
provide: L10N_PREFIX,
|
|
189
|
+
useValue: 'kendo.menu'
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
provide: MenuBase,
|
|
193
|
+
useExisting: forwardRef(() => MenuComponent)
|
|
194
|
+
}
|
|
195
|
+
], exportAs: ["kendoMenu"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
196
|
+
<ul role="menubar"
|
|
197
|
+
[attr.aria-orientation]="ariaOrientation"
|
|
198
|
+
kendoMenuList [items]="rootItems" [level]="0" class="k-widget k-reset k-header k-menu"
|
|
199
|
+
[vertical]="vertical" [rtl]="rtl" [animate]="animate" [openOnClick]="openOnClick"
|
|
200
|
+
[itemTemplate]="itemTemplate.first?.templateRef || menuItemTemplate"
|
|
201
|
+
[itemLinkTemplate]="itemLinkTemplate.first?.templateRef || menuItemLinkTemplate"
|
|
202
|
+
[class.k-menu-horizontal]="!vertical"
|
|
203
|
+
[class.k-menu-vertical]="vertical"
|
|
204
|
+
[class.k-context-menu]="contextMenuClass">
|
|
205
|
+
</ul>
|
|
206
|
+
`, isInline: true, components: [{ type: i7.ListComponent, selector: "[kendoMenuList]", inputs: ["items", "level", "index", "animate", "vertical", "rtl", "openOnClick", "itemTemplate", "itemLinkTemplate"] }] });
|
|
207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MenuComponent, decorators: [{
|
|
208
|
+
type: Component,
|
|
209
|
+
args: [{
|
|
210
|
+
exportAs: 'kendoMenu',
|
|
211
|
+
providers: [
|
|
212
|
+
ItemsService,
|
|
213
|
+
ActionsService,
|
|
214
|
+
NavigationService,
|
|
215
|
+
HoverService,
|
|
216
|
+
LocalizationService,
|
|
217
|
+
{
|
|
218
|
+
provide: L10N_PREFIX,
|
|
219
|
+
useValue: 'kendo.menu'
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
provide: MenuBase,
|
|
223
|
+
useExisting: forwardRef(() => MenuComponent)
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
selector: 'kendo-menu',
|
|
227
|
+
template: `
|
|
220
228
|
<ul role="menubar"
|
|
221
229
|
[attr.aria-orientation]="ariaOrientation"
|
|
222
230
|
kendoMenuList [items]="rootItems" [level]="0" class="k-widget k-reset k-header k-menu"
|
|
@@ -228,15 +236,20 @@ MenuComponent = MenuComponent_1 = tslib_1.__decorate([
|
|
|
228
236
|
[class.k-context-menu]="contextMenuClass">
|
|
229
237
|
</ul>
|
|
230
238
|
`
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
239
|
+
}]
|
|
240
|
+
}], ctorParameters: function () { return [{ type: i1.ItemsService }, { type: i2.HoverService }, { type: i3.ActionsService }, { type: i4.NavigationService }, { type: i5.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i6.ContextMenuService, decorators: [{
|
|
241
|
+
type: Optional
|
|
242
|
+
}] }]; }, propDecorators: { menuItemTemplate: [{
|
|
243
|
+
type: Input
|
|
244
|
+
}], menuItemLinkTemplate: [{
|
|
245
|
+
type: Input
|
|
246
|
+
}], select: [{
|
|
247
|
+
type: Output
|
|
248
|
+
}], open: [{
|
|
249
|
+
type: Output
|
|
250
|
+
}], close: [{
|
|
251
|
+
type: Output
|
|
252
|
+
}], direction: [{
|
|
253
|
+
type: HostBinding,
|
|
254
|
+
args: ['class.k-rtl']
|
|
255
|
+
}] } });
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
5
|
import { NgModule } from '@angular/core';
|
|
7
6
|
import { CommonModule } from '@angular/common';
|
|
8
7
|
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
9
8
|
import { MenuComponent } from './menu.component';
|
|
10
9
|
import { MenuItemComponent } from './menu-item.component';
|
|
11
|
-
import { ListComponent } from './rendering/list.component';
|
|
12
|
-
import { ItemComponent } from './rendering/item.component';
|
|
10
|
+
import { ListComponent, ItemComponent } from './rendering/list.component';
|
|
13
11
|
import { LinkDirective } from './rendering/link.directive';
|
|
14
12
|
import { ExpandArrowDirective } from './rendering/arrow.directive';
|
|
15
13
|
import { ItemTemplateDirective } from './templates/item-template.directive';
|
|
@@ -17,6 +15,7 @@ import { ItemLinkTemplateDirective } from './templates/item-link-template.direct
|
|
|
17
15
|
import { ItemContentTemplateDirective } from './templates/item-content-template.directive';
|
|
18
16
|
import { HierarchyBindingDirective } from './data-binding/hierachy-binding.directive';
|
|
19
17
|
import { FlatBindingDirective } from './data-binding/flat-binding.directive';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
20
19
|
const COMPONENT_EXPORTS = [
|
|
21
20
|
MenuComponent,
|
|
22
21
|
MenuItemComponent,
|
|
@@ -65,13 +64,33 @@ const COMPONENT_DIRECTIVES = [
|
|
|
65
64
|
*
|
|
66
65
|
* ```
|
|
67
66
|
*/
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
MenuModule =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
export class MenuModule {
|
|
68
|
+
}
|
|
69
|
+
MenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
70
|
+
MenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MenuModule, declarations: [MenuComponent,
|
|
71
|
+
MenuItemComponent,
|
|
72
|
+
ItemTemplateDirective,
|
|
73
|
+
ItemLinkTemplateDirective,
|
|
74
|
+
ItemContentTemplateDirective,
|
|
75
|
+
HierarchyBindingDirective,
|
|
76
|
+
FlatBindingDirective,
|
|
77
|
+
LinkDirective,
|
|
78
|
+
ExpandArrowDirective, ListComponent,
|
|
79
|
+
ItemComponent], imports: [PopupModule, CommonModule], exports: [MenuComponent,
|
|
80
|
+
MenuItemComponent,
|
|
81
|
+
ItemTemplateDirective,
|
|
82
|
+
ItemLinkTemplateDirective,
|
|
83
|
+
ItemContentTemplateDirective,
|
|
84
|
+
HierarchyBindingDirective,
|
|
85
|
+
FlatBindingDirective,
|
|
86
|
+
LinkDirective,
|
|
87
|
+
ExpandArrowDirective] });
|
|
88
|
+
MenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MenuModule, imports: [[PopupModule, CommonModule]] });
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MenuModule, decorators: [{
|
|
90
|
+
type: NgModule,
|
|
91
|
+
args: [{
|
|
92
|
+
declarations: [COMPONENT_DIRECTIVES],
|
|
93
|
+
exports: [COMPONENT_EXPORTS],
|
|
94
|
+
imports: [PopupModule, CommonModule]
|
|
95
|
+
}]
|
|
96
|
+
}] });
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
5
|
import { NgModule } from '@angular/core';
|
|
7
6
|
import { MenuModule } from './menu.module';
|
|
8
7
|
import { ContextMenuModule } from './context-menu/context-menu.module';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* A [module]({{ site.data.urls.angular['ngmoduleapi'] }}) that includes the Menu and ContextMenu components and directives.
|
|
11
11
|
* Imports the MenusModule into your application [root module]({{ site.data.urls.angular['ngmodules'] }}#angular-modularity)
|
|
@@ -28,11 +28,14 @@ import { ContextMenuModule } from './context-menu/context-menu.module';
|
|
|
28
28
|
* }
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
MenusModule =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
export class MenusModule {
|
|
32
|
+
}
|
|
33
|
+
MenusModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MenusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
+
MenusModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MenusModule, exports: [MenuModule, ContextMenuModule] });
|
|
35
|
+
MenusModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MenusModule, imports: [MenuModule, ContextMenuModule] });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MenusModule, decorators: [{
|
|
37
|
+
type: NgModule,
|
|
38
|
+
args: [{
|
|
39
|
+
exports: [MenuModule, ContextMenuModule]
|
|
40
|
+
}]
|
|
41
|
+
}] });
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/* tslint:disable:max-line-length */
|
|
6
5
|
/**
|
|
7
6
|
* @hidden
|
|
8
7
|
*/
|
|
@@ -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:
|
|
12
|
+
publishDate: 1648024704,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
File without changes
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, Input, HostBinding, isDevMode } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../services/items.service";
|
|
8
|
+
/**
|
|
9
|
+
* Represents a directive that can be used in the [`linkTemplate`]({% slug api_menu_itemlinktemplatedirective %})
|
|
10
|
+
* of the items to render the default expand arrow.
|
|
11
|
+
*/
|
|
12
|
+
export class ExpandArrowDirective {
|
|
13
|
+
constructor(itemsService) {
|
|
14
|
+
this.itemsService = itemsService;
|
|
15
|
+
this.hostClasses = true;
|
|
16
|
+
this.role = 'presentation';
|
|
17
|
+
}
|
|
18
|
+
get arrowDown() {
|
|
19
|
+
return !this.item.horizontal;
|
|
20
|
+
}
|
|
21
|
+
get arrowRight() {
|
|
22
|
+
return this.item.horizontal && !this.item.rtl;
|
|
23
|
+
}
|
|
24
|
+
get arrowLeft() {
|
|
25
|
+
return this.item.horizontal && this.item.rtl;
|
|
26
|
+
}
|
|
27
|
+
ngOnInit() {
|
|
28
|
+
if (isDevMode() && !this.index) {
|
|
29
|
+
throw new Error('The kendoMenuExpandArrow directive requires the item index to be set.');
|
|
30
|
+
}
|
|
31
|
+
this.item = this.itemsService.get(this.index) || {};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
ExpandArrowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExpandArrowDirective, deps: [{ token: i1.ItemsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
35
|
+
ExpandArrowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ExpandArrowDirective, selector: "[kendoMenuExpandArrow]", inputs: { index: ["kendoMenuExpandArrow", "index"] }, host: { properties: { "class.k-icon": "this.hostClasses", "class.k-menu-expand-arrow": "this.hostClasses", "attr.role": "this.role", "class.k-i-arrow-60-down": "this.arrowDown", "class.k-i-arrow-60-right": "this.arrowRight", "class.k-i-arrow-60-left": "this.arrowLeft" } }, ngImport: i0 });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ExpandArrowDirective, decorators: [{
|
|
37
|
+
type: Directive,
|
|
38
|
+
args: [{
|
|
39
|
+
selector: '[kendoMenuExpandArrow]'
|
|
40
|
+
}]
|
|
41
|
+
}], ctorParameters: function () { return [{ type: i1.ItemsService }]; }, propDecorators: { index: [{
|
|
42
|
+
type: Input,
|
|
43
|
+
args: ['kendoMenuExpandArrow']
|
|
44
|
+
}], hostClasses: [{
|
|
45
|
+
type: HostBinding,
|
|
46
|
+
args: ['class.k-icon']
|
|
47
|
+
}, {
|
|
48
|
+
type: HostBinding,
|
|
49
|
+
args: ['class.k-menu-expand-arrow']
|
|
50
|
+
}], role: [{
|
|
51
|
+
type: HostBinding,
|
|
52
|
+
args: ['attr.role']
|
|
53
|
+
}], arrowDown: [{
|
|
54
|
+
type: HostBinding,
|
|
55
|
+
args: ['class.k-i-arrow-60-down']
|
|
56
|
+
}], arrowRight: [{
|
|
57
|
+
type: HostBinding,
|
|
58
|
+
args: ['class.k-i-arrow-60-right']
|
|
59
|
+
}], arrowLeft: [{
|
|
60
|
+
type: HostBinding,
|
|
61
|
+
args: ['class.k-i-arrow-60-left']
|
|
62
|
+
}] } });
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, Input, HostBinding, isDevMode } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../services/items.service";
|
|
8
|
+
/**
|
|
9
|
+
* Represents a directive that can be used in the [`linkTemplate`]({% slug api_menu_itemlinktemplatedirective %})
|
|
10
|
+
* of the items to apply the default styling and behavior.
|
|
11
|
+
*/
|
|
12
|
+
export class LinkDirective {
|
|
13
|
+
constructor(itemsService) {
|
|
14
|
+
this.itemsService = itemsService;
|
|
15
|
+
this.hostClasses = true;
|
|
16
|
+
this.role = 'presentation';
|
|
17
|
+
this.tabindex = '-1';
|
|
18
|
+
}
|
|
19
|
+
get activeClass() {
|
|
20
|
+
return this.item.opened;
|
|
21
|
+
}
|
|
22
|
+
ngOnInit() {
|
|
23
|
+
if (isDevMode() && !this.index) {
|
|
24
|
+
throw new Error('The kendoMenuItemLink directive requires the item index to be set.');
|
|
25
|
+
}
|
|
26
|
+
this.item = this.itemsService.get(this.index) || {};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
LinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LinkDirective, deps: [{ token: i1.ItemsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
30
|
+
LinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LinkDirective, selector: "[kendoMenuItemLink]", inputs: { index: ["kendoMenuItemLink", "index"] }, host: { properties: { "class.k-link": "this.hostClasses", "class.k-menu-link": "this.hostClasses", "attr.role": "this.role", "attr.tabindex": "this.tabindex", "class.k-state-active": "this.activeClass" } }, ngImport: i0 });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LinkDirective, decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: '[kendoMenuItemLink]'
|
|
35
|
+
}]
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i1.ItemsService }]; }, propDecorators: { index: [{
|
|
37
|
+
type: Input,
|
|
38
|
+
args: ['kendoMenuItemLink']
|
|
39
|
+
}], hostClasses: [{
|
|
40
|
+
type: HostBinding,
|
|
41
|
+
args: ['class.k-link']
|
|
42
|
+
}, {
|
|
43
|
+
type: HostBinding,
|
|
44
|
+
args: ['class.k-menu-link']
|
|
45
|
+
}], role: [{
|
|
46
|
+
type: HostBinding,
|
|
47
|
+
args: ['attr.role']
|
|
48
|
+
}], tabindex: [{
|
|
49
|
+
type: HostBinding,
|
|
50
|
+
args: ['attr.tabindex']
|
|
51
|
+
}], activeClass: [{
|
|
52
|
+
type: HostBinding,
|
|
53
|
+
args: ['class.k-state-active']
|
|
54
|
+
}] } });
|