@progress/kendo-angular-menu 4.1.1-dev.202212051556 → 11.0.0-develop.100
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/LICENSE.md +1 -1
- package/NOTICE.txt +4 -4
- package/constants.d.ts +1 -1
- package/context-menu/context-menu-event.d.ts +1 -1
- package/context-menu/context-menu-items.service.d.ts +1 -1
- package/context-menu/context-menu-popup-event.d.ts +1 -1
- package/context-menu/context-menu-select-event.d.ts +1 -1
- package/context-menu/context-menu-target-container.directive.d.ts +1 -1
- package/context-menu/context-menu-target.directive.d.ts +1 -1
- package/context-menu/context-menu-target.service.d.ts +1 -1
- package/context-menu/context-menu-template.directive.d.ts +1 -1
- package/context-menu/context-menu.component.d.ts +1 -1
- package/context-menu/context-menu.module.d.ts +1 -1
- package/context-menu/context-menu.service.d.ts +1 -1
- package/data-binding/binding-directive-base.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/data-binding/utils.d.ts +1 -1
- package/dom-queries.d.ts +1 -1
- package/{esm2015/constants.js → esm2020/constants.mjs} +1 -1
- package/{esm2015/context-menu/context-menu-event.js → esm2020/context-menu/context-menu-event.mjs} +1 -1
- package/{esm2015/context-menu/context-menu-items.service.js → esm2020/context-menu/context-menu-items.service.mjs} +5 -4
- package/{esm2015/context-menu/context-menu-popup-event.js → esm2020/context-menu/context-menu-popup-event.mjs} +1 -1
- package/{esm2015/context-menu/context-menu-select-event.js → esm2020/context-menu/context-menu-select-event.mjs} +1 -1
- package/{esm2015/context-menu/context-menu-target-container.directive.js → esm2020/context-menu/context-menu-target-container.directive.mjs} +5 -5
- package/{esm2015/context-menu/context-menu-target.directive.js → esm2020/context-menu/context-menu-target.directive.mjs} +6 -5
- package/{esm2015/context-menu/context-menu-target.service.js → esm2020/context-menu/context-menu-target.service.mjs} +4 -4
- package/{esm2015/context-menu/context-menu-template.directive.js → esm2020/context-menu/context-menu-template.directive.mjs} +5 -5
- package/{esm2015/context-menu/context-menu.component.js → esm2020/context-menu/context-menu.component.mjs} +5 -5
- package/{esm2015/context-menu/context-menu.module.js → esm2020/context-menu/context-menu.module.mjs} +5 -5
- package/{esm2015/context-menu/context-menu.service.js → esm2020/context-menu/context-menu.service.mjs} +4 -4
- package/{esm2015/data-binding/binding-directive-base.js → esm2020/data-binding/binding-directive-base.mjs} +5 -4
- package/{esm2015/data-binding/flat-binding.directive.js → esm2020/data-binding/flat-binding.directive.mjs} +5 -4
- package/{esm2015/data-binding/hierachy-binding.directive.js → esm2020/data-binding/hierachy-binding.directive.mjs} +5 -4
- package/{esm2015/data-binding/utils.js → esm2020/data-binding/utils.mjs} +1 -1
- package/{esm2015/dom-queries.js → esm2020/dom-queries.mjs} +1 -1
- package/{esm2015/main.js → esm2020/index.mjs} +2 -2
- package/{esm2015/size.js → esm2020/menu-animation.interface.mjs} +1 -1
- package/{esm2015/menu-base.js → esm2020/menu-base.mjs} +5 -5
- package/{esm2015/menu-event.js → esm2020/menu-event.mjs} +1 -1
- package/{esm2015/menu-item.component.js → esm2020/menu-item.component.mjs} +5 -5
- package/{esm2015/menu-item.interface.js → esm2020/menu-item.interface.mjs} +1 -1
- package/{esm2015/menu-select-event.js → esm2020/menu-select-event.mjs} +1 -1
- package/{esm2015/menu.component.js → esm2020/menu.component.mjs} +6 -5
- package/{esm2015/menu.module.js → esm2020/menu.module.mjs} +12 -11
- package/{esm2015/menus.module.js → esm2020/menus.module.mjs} +5 -5
- package/{esm2015/open-on-click-settings.js → esm2020/open-on-click-settings.mjs} +1 -1
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/preventable-event.js → esm2020/preventable-event.mjs} +1 -1
- package/{esm2015/kendo-angular-menu.js → esm2020/progress-kendo-angular-menu.mjs} +2 -2
- package/esm2020/rendering/arrow.component.mjs +47 -0
- package/{esm2015/rendering/link.directive.js → esm2020/rendering/link.directive.mjs} +5 -4
- package/{esm2015/rendering/list.component.js → esm2020/rendering/list.component.mjs} +27 -27
- package/{esm2015/rendering/popup-settings.js → esm2020/rendering/popup-settings.mjs} +1 -1
- package/{esm2015/services/actions.service.js → esm2020/services/actions.service.mjs} +5 -4
- package/{esm2015/services/hover.service.js → esm2020/services/hover.service.mjs} +6 -4
- package/{esm2015/services/items.service.js → esm2020/services/items.service.mjs} +6 -6
- package/{esm2015/services/navigation.service.js → esm2020/services/navigation.service.mjs} +8 -5
- package/{esm2015/menu-animation.interface.js → esm2020/size.mjs} +1 -1
- package/{esm2015/templates/item-content-template.directive.js → esm2020/templates/item-content-template.directive.mjs} +5 -5
- package/{esm2015/templates/item-link-template.directive.js → esm2020/templates/item-link-template.directive.mjs} +5 -5
- package/{esm2015/templates/item-template.directive.js → esm2020/templates/item-template.directive.mjs} +5 -5
- package/{esm2015/utils.js → esm2020/utils.mjs} +24 -1
- package/fesm2015/progress-kendo-angular-menu.mjs +3143 -0
- package/{fesm2015/kendo-angular-menu.js → fesm2020/progress-kendo-angular-menu.mjs} +159 -151
- package/{main.d.ts → index.d.ts} +3 -2
- package/menu-animation.interface.d.ts +1 -1
- package/menu-base.d.ts +1 -1
- package/menu-event.d.ts +1 -1
- package/menu-item.component.d.ts +1 -1
- package/menu-item.interface.d.ts +1 -1
- package/menu-select-event.d.ts +1 -1
- package/menu.component.d.ts +1 -1
- package/menu.module.d.ts +4 -3
- package/menus.module.d.ts +1 -1
- package/open-on-click-settings.d.ts +1 -1
- package/package-metadata.d.ts +1 -1
- package/package.json +29 -54
- package/preventable-event.d.ts +1 -1
- package/{kendo-angular-menu.d.ts → progress-kendo-angular-menu.d.ts} +2 -2
- package/rendering/{arrow.directive.d.ts → arrow.component.d.ts} +16 -10
- package/rendering/link.directive.d.ts +1 -1
- package/rendering/list.component.d.ts +10 -1
- package/rendering/popup-settings.d.ts +1 -1
- package/schematics/ngAdd/index.js +5 -7
- package/services/actions.service.d.ts +1 -1
- package/services/hover.service.d.ts +1 -1
- package/services/items.service.d.ts +1 -1
- package/services/navigation.service.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
- package/utils.d.ts +10 -1
- package/bundles/kendo-angular-menu.umd.js +0 -5
- package/esm2015/rendering/arrow.directive.js +0 -55
- package/schematics/ngAdd/index.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 { Component, Input, ContentChildren } from '@angular/core';
|
|
5
|
+
import { Component, Input, ContentChildren, QueryList } from '@angular/core';
|
|
6
6
|
import { ItemTemplateDirective } from './templates/item-template.directive';
|
|
7
7
|
import { ItemLinkTemplateDirective } from './templates/item-link-template.directive';
|
|
8
8
|
import { ItemContentTemplateDirective } from './templates/item-content-template.directive';
|
|
@@ -86,9 +86,9 @@ export class MenuItemComponent {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
MenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
90
|
-
MenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
89
|
+
MenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
+
MenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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: "13.3.11", ngImport: i0, type: MenuItemComponent, decorators: [{
|
|
92
92
|
type: Component,
|
|
93
93
|
args: [{
|
|
94
94
|
selector: 'kendo-menu-item',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { MenuEvent } from './menu-event';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 { Component, Input, HostBinding, EventEmitter, Output, Optional, forwardRef } from '@angular/core';
|
|
5
|
+
import { Component, Input, HostBinding, EventEmitter, Output, NgZone, Renderer2, Optional, TemplateRef, forwardRef } from '@angular/core';
|
|
6
6
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
8
|
import { packageMetadata } from './package-metadata';
|
|
@@ -12,6 +12,7 @@ import { NavigationService } from './services/navigation.service';
|
|
|
12
12
|
import { HoverService } from './services/hover.service';
|
|
13
13
|
import { normalize } from './open-on-click-settings';
|
|
14
14
|
import { inMenu } from './dom-queries';
|
|
15
|
+
import { ContextMenuService } from './context-menu/context-menu.service';
|
|
15
16
|
import { MenuBase } from './menu-base';
|
|
16
17
|
import { Keys, isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
17
18
|
import { getSizeClass } from './utils';
|
|
@@ -189,8 +190,8 @@ export class MenuComponent extends MenuBase {
|
|
|
189
190
|
}
|
|
190
191
|
}
|
|
191
192
|
}
|
|
192
|
-
MenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
193
|
-
MenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
193
|
+
MenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", 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 });
|
|
194
|
+
MenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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: [
|
|
194
195
|
ItemsService,
|
|
195
196
|
ActionsService,
|
|
196
197
|
NavigationService,
|
|
@@ -214,7 +215,7 @@ MenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
214
215
|
[ngClass]="menuClasses">
|
|
215
216
|
</ul>
|
|
216
217
|
`, isInline: true, components: [{ type: i7.ListComponent, selector: "[kendoMenuList]", inputs: ["items", "level", "index", "animate", "size", "vertical", "rtl", "openOnClick", "itemTemplate", "itemLinkTemplate"] }], directives: [{ type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MenuComponent, decorators: [{
|
|
218
219
|
type: Component,
|
|
219
220
|
args: [{
|
|
220
221
|
exportAs: 'kendoMenu',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { NgModule } from '@angular/core';
|
|
@@ -9,12 +9,13 @@ import { MenuComponent } from './menu.component';
|
|
|
9
9
|
import { MenuItemComponent } from './menu-item.component';
|
|
10
10
|
import { ListComponent, ItemComponent } from './rendering/list.component';
|
|
11
11
|
import { LinkDirective } from './rendering/link.directive';
|
|
12
|
-
import {
|
|
12
|
+
import { ExpandArrowComponent } from './rendering/arrow.component';
|
|
13
13
|
import { ItemTemplateDirective } from './templates/item-template.directive';
|
|
14
14
|
import { ItemLinkTemplateDirective } from './templates/item-link-template.directive';
|
|
15
15
|
import { ItemContentTemplateDirective } from './templates/item-content-template.directive';
|
|
16
16
|
import { HierarchyBindingDirective } from './data-binding/hierachy-binding.directive';
|
|
17
17
|
import { FlatBindingDirective } from './data-binding/flat-binding.directive';
|
|
18
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
18
19
|
import * as i0 from "@angular/core";
|
|
19
20
|
const COMPONENT_EXPORTS = [
|
|
20
21
|
MenuComponent,
|
|
@@ -25,7 +26,7 @@ const COMPONENT_EXPORTS = [
|
|
|
25
26
|
HierarchyBindingDirective,
|
|
26
27
|
FlatBindingDirective,
|
|
27
28
|
LinkDirective,
|
|
28
|
-
|
|
29
|
+
ExpandArrowComponent
|
|
29
30
|
];
|
|
30
31
|
const COMPONENT_DIRECTIVES = [
|
|
31
32
|
...COMPONENT_EXPORTS,
|
|
@@ -66,8 +67,8 @@ const COMPONENT_DIRECTIVES = [
|
|
|
66
67
|
*/
|
|
67
68
|
export class MenuModule {
|
|
68
69
|
}
|
|
69
|
-
MenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
70
|
-
MenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
70
|
+
MenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
71
|
+
MenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MenuModule, declarations: [MenuComponent,
|
|
71
72
|
MenuItemComponent,
|
|
72
73
|
ItemTemplateDirective,
|
|
73
74
|
ItemLinkTemplateDirective,
|
|
@@ -75,8 +76,8 @@ MenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12
|
|
|
75
76
|
HierarchyBindingDirective,
|
|
76
77
|
FlatBindingDirective,
|
|
77
78
|
LinkDirective,
|
|
78
|
-
|
|
79
|
-
ItemComponent], imports: [PopupModule, CommonModule], exports: [MenuComponent,
|
|
79
|
+
ExpandArrowComponent, ListComponent,
|
|
80
|
+
ItemComponent], imports: [PopupModule, CommonModule, IconsModule], exports: [MenuComponent,
|
|
80
81
|
MenuItemComponent,
|
|
81
82
|
ItemTemplateDirective,
|
|
82
83
|
ItemLinkTemplateDirective,
|
|
@@ -84,13 +85,13 @@ MenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12
|
|
|
84
85
|
HierarchyBindingDirective,
|
|
85
86
|
FlatBindingDirective,
|
|
86
87
|
LinkDirective,
|
|
87
|
-
|
|
88
|
-
MenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
88
|
+
ExpandArrowComponent] });
|
|
89
|
+
MenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MenuModule, imports: [[PopupModule, CommonModule, IconsModule]] });
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MenuModule, decorators: [{
|
|
90
91
|
type: NgModule,
|
|
91
92
|
args: [{
|
|
92
93
|
declarations: [COMPONENT_DIRECTIVES],
|
|
93
94
|
exports: [COMPONENT_EXPORTS],
|
|
94
|
-
imports: [PopupModule, CommonModule]
|
|
95
|
+
imports: [PopupModule, CommonModule, IconsModule]
|
|
95
96
|
}]
|
|
96
97
|
}] });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { NgModule } from '@angular/core';
|
|
@@ -30,10 +30,10 @@ import * as i0 from "@angular/core";
|
|
|
30
30
|
*/
|
|
31
31
|
export class MenusModule {
|
|
32
32
|
}
|
|
33
|
-
MenusModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
34
|
-
MenusModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
35
|
-
MenusModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
+
MenusModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MenusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
+
MenusModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MenusModule, exports: [MenuModule, ContextMenuModule] });
|
|
35
|
+
MenusModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MenusModule, imports: [MenuModule, ContextMenuModule] });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MenusModule, decorators: [{
|
|
37
37
|
type: NgModule,
|
|
38
38
|
args: [{
|
|
39
39
|
exports: [MenuModule, ContextMenuModule]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
/**
|
|
@@ -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: 1673469191,
|
|
13
13
|
version: '',
|
|
14
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license
|
|
14
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
/**
|
|
6
6
|
* Generated bundle index. Do not edit.
|
|
7
7
|
*/
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './index';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Input, HostBinding, isDevMode, Component } from '@angular/core';
|
|
6
|
+
import { ItemsService } from '../services/items.service';
|
|
7
|
+
import { getFontIcon, getSVGIcon } from '../utils';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../services/items.service";
|
|
10
|
+
import * as i2 from "@progress/kendo-angular-icons";
|
|
11
|
+
/**
|
|
12
|
+
* Represents a component that can be used in the [`linkTemplate`]({% slug api_menu_itemlinktemplatedirective %})
|
|
13
|
+
* of the items to render the default expand arrow.
|
|
14
|
+
*/
|
|
15
|
+
export class ExpandArrowComponent {
|
|
16
|
+
constructor(itemsService) {
|
|
17
|
+
this.itemsService = itemsService;
|
|
18
|
+
this.hostClasses = true;
|
|
19
|
+
this.role = 'presentation';
|
|
20
|
+
}
|
|
21
|
+
ngOnInit() {
|
|
22
|
+
if (isDevMode() && !this.index) {
|
|
23
|
+
throw new Error('The kendoMenuExpandArrow component requires the item index to be set.');
|
|
24
|
+
}
|
|
25
|
+
this.item = this.itemsService.get(this.index) || {};
|
|
26
|
+
this.fontIcon = getFontIcon(this.item.horizontal, this.item.rtl);
|
|
27
|
+
this.SVGIcon = getSVGIcon(this.item.horizontal, this.item.rtl);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
ExpandArrowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ExpandArrowComponent, deps: [{ token: i1.ItemsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
ExpandArrowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ExpandArrowComponent, selector: "[kendoMenuExpandArrow]", inputs: { index: ["kendoMenuExpandArrow", "index"] }, host: { properties: { "class.k-menu-expand-arrow": "this.hostClasses", "attr.role": "this.role" } }, ngImport: i0, template: `<kendo-icon-wrapper [name]="fontIcon" [svgIcon]="SVGIcon"></kendo-icon-wrapper>`, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }] });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ExpandArrowComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{
|
|
35
|
+
selector: '[kendoMenuExpandArrow]',
|
|
36
|
+
template: `<kendo-icon-wrapper [name]="fontIcon" [svgIcon]="SVGIcon"></kendo-icon-wrapper>`
|
|
37
|
+
}]
|
|
38
|
+
}], ctorParameters: function () { return [{ type: i1.ItemsService }]; }, propDecorators: { index: [{
|
|
39
|
+
type: Input,
|
|
40
|
+
args: ['kendoMenuExpandArrow']
|
|
41
|
+
}], hostClasses: [{
|
|
42
|
+
type: HostBinding,
|
|
43
|
+
args: ['class.k-menu-expand-arrow']
|
|
44
|
+
}], role: [{
|
|
45
|
+
type: HostBinding,
|
|
46
|
+
args: ['attr.role']
|
|
47
|
+
}] } });
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { Directive, Input, HostBinding, isDevMode } from '@angular/core';
|
|
6
|
+
import { ItemsService } from '../services/items.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
import * as i1 from "../services/items.service";
|
|
8
9
|
/**
|
|
@@ -26,9 +27,9 @@ export class LinkDirective {
|
|
|
26
27
|
this.item = this.itemsService.get(this.index) || {};
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
|
-
LinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
30
|
-
LinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
30
|
+
LinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinkDirective, deps: [{ token: i1.ItemsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
31
|
+
LinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", 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-active": "this.activeClass" } }, ngImport: i0 });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinkDirective, decorators: [{
|
|
32
33
|
type: Directive,
|
|
33
34
|
args: [{
|
|
34
35
|
selector: '[kendoMenuItemLink]'
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 { Component, Input, Optional } from '@angular/core';
|
|
6
|
-
import { HostBinding, ViewChild } from '@angular/core';
|
|
5
|
+
import { Component, ElementRef, Input, NgZone, Optional, Renderer2, TemplateRef } from '@angular/core';
|
|
6
|
+
import { ChangeDetectorRef, HostBinding, ViewChild } from '@angular/core';
|
|
7
7
|
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
8
8
|
import { POPUP_CONTAINER, PopupService } from '@progress/kendo-angular-popup';
|
|
9
|
+
import { ContextMenuService } from '../context-menu/context-menu.service';
|
|
9
10
|
import { NODE_INDEX } from '../constants';
|
|
10
11
|
import { closest, closestItem, hasClass, inMenu, isFocusable, nodeIndex } from '../dom-queries';
|
|
11
|
-
import {
|
|
12
|
+
import { ActionsService } from '../services/actions.service';
|
|
13
|
+
import { HoverService } from '../services/hover.service';
|
|
14
|
+
import { ItemsService } from '../services/items.service';
|
|
15
|
+
import { NavigationService } from '../services/navigation.service';
|
|
16
|
+
import { bodyFactory, getFontIcon, getSizeClass, getSVGIcon } from '../utils';
|
|
12
17
|
import { POPUP_SETTINGS, POPUP_SETTINGS_RTL } from './popup-settings';
|
|
13
18
|
import * as i0 from "@angular/core";
|
|
14
19
|
import * as i1 from "../services/items.service";
|
|
@@ -18,6 +23,7 @@ import * as i4 from "../services/navigation.service";
|
|
|
18
23
|
import * as i5 from "@angular/common";
|
|
19
24
|
import * as i6 from "@progress/kendo-angular-popup";
|
|
20
25
|
import * as i7 from "../context-menu/context-menu.service";
|
|
26
|
+
import * as i8 from "@progress/kendo-angular-icons";
|
|
21
27
|
/* eslint-disable @angular-eslint/component-selector */
|
|
22
28
|
/**
|
|
23
29
|
* @hidden
|
|
@@ -173,9 +179,9 @@ export class ListComponent {
|
|
|
173
179
|
this.actions.execute();
|
|
174
180
|
}
|
|
175
181
|
}
|
|
176
|
-
ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
177
|
-
ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
182
|
+
ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListComponent, deps: [{ token: i1.ItemsService }, { token: i2.HoverService }, { token: i3.ActionsService }, { token: i4.NavigationService }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
183
|
+
ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ListComponent, selector: "[kendoMenuList]", inputs: { items: "items", level: "level", index: "index", animate: "animate", size: "size", vertical: "vertical", rtl: "rtl", openOnClick: "openOnClick", itemTemplate: "itemTemplate", itemLinkTemplate: "itemLinkTemplate" }, ngImport: i0, template: "\n <ng-container *ngFor=\"let item of items; let idx = index\">\n <li *ngIf=\"!item.separator\" kendoMenuItem\n [item]=\"item\" [level]=\"level\" [size]=\"size\" [vertical]=\"vertical\" [animate]=\"animate\" [rtl]=\"rtl\"\n [itemTemplate]=\"itemTemplate\" [itemLinkTemplate]=\"itemLinkTemplate\" [openOnClick]=\"openOnClick\"\n [index]=\"hierarchyIndex(idx)\" [siblingIndex]=\"idx\" [attr.data-kendo-menu-index]=\"hierarchyIndex(idx)\"\n [ngClass]=\"item.cssClass\" [ngStyle]=\"item.cssStyle\"\n role=\"menuitem\"\n class=\"k-item k-menu-item\"\n [class.k-first]=\"idx === 0\" [class.k-last]=\"idx === items.length - 1\"\n [class.k-disabled]=\"item.disabled\"></li>\n <li *ngIf=\"item.separator\" class=\"k-separator k-item\"\n role=\"separator\" [ngClass]=\"item.cssClass\" [ngStyle]=\"item.cssStyle\">\n \n </li>\n </ng-container>\n ", isInline: true, components: [{ type: i0.forwardRef(function () { return ItemComponent; }), selector: "[kendoMenuItem]", inputs: ["item", "level", "index", "siblingIndex", "animate", "size", "vertical", "rtl", "openOnClick", "itemTemplate", "itemLinkTemplate"] }], directives: [{ type: i0.forwardRef(function () { return i5.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i0.forwardRef(function () { return i5.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0.forwardRef(function () { return i5.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i0.forwardRef(function () { return i5.NgStyle; }), selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListComponent, decorators: [{
|
|
179
185
|
type: Component,
|
|
180
186
|
args: [{
|
|
181
187
|
selector: '[kendoMenuList]',
|
|
@@ -233,6 +239,14 @@ export class ItemComponent {
|
|
|
233
239
|
this.animate = true;
|
|
234
240
|
this.size = 'medium';
|
|
235
241
|
this.openOnClick = false;
|
|
242
|
+
/**
|
|
243
|
+
* @hidden
|
|
244
|
+
*/
|
|
245
|
+
this.fontIcon = getFontIcon;
|
|
246
|
+
/**
|
|
247
|
+
* @hidden
|
|
248
|
+
*/
|
|
249
|
+
this.SVGIcon = getSVGIcon;
|
|
236
250
|
this.opened = false;
|
|
237
251
|
this.navigating = false;
|
|
238
252
|
this.destroyed = false;
|
|
@@ -398,8 +412,8 @@ export class ItemComponent {
|
|
|
398
412
|
this.renderer.setAttribute(this.element.nativeElement, name, value);
|
|
399
413
|
}
|
|
400
414
|
}
|
|
401
|
-
ItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
402
|
-
ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
415
|
+
ItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemComponent, deps: [{ token: i1.ItemsService }, { token: i4.NavigationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i6.PopupService }, { token: i0.ElementRef }, { token: i7.ContextMenuService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
416
|
+
ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ItemComponent, selector: "[kendoMenuItem]", inputs: { item: "item", level: "level", index: "index", siblingIndex: "siblingIndex", animate: "animate", size: "size", vertical: "vertical", rtl: "rtl", openOnClick: "openOnClick", itemTemplate: "itemTemplate", itemLinkTemplate: "itemLinkTemplate" }, host: { properties: { "attr.aria-disabled": "this.disabled", "attr.aria-haspopup": "this.hasPopup", "attr.aria-expanded": "this.expanded", "attr.aria-label": "this.label", "attr.tabindex": "this.activeId" } }, providers: [PopupService, {
|
|
403
417
|
provide: POPUP_CONTAINER,
|
|
404
418
|
useFactory: bodyFactory
|
|
405
419
|
}], viewQueries: [{ propertyName: "link", first: true, predicate: ["link"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], ngImport: i0, template: `
|
|
@@ -447,17 +461,10 @@ ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
447
461
|
</ng-container>
|
|
448
462
|
<ng-template *ngIf="template" [ngTemplateOutlet]="template" [ngTemplateOutletContext]="{ item: item, index: index }">
|
|
449
463
|
</ng-template>
|
|
450
|
-
<
|
|
451
|
-
<span class="k-icon"
|
|
452
|
-
[class.k-i-arrow-60-down]="!horizontal"
|
|
453
|
-
[class.k-i-arrow-60-right]="horizontal && !rtl"
|
|
454
|
-
[class.k-i-arrow-60-left]="horizontal && rtl"
|
|
455
|
-
>
|
|
456
|
-
</span>
|
|
457
|
-
</span>
|
|
464
|
+
<kendo-icon-wrapper *ngIf="hasContent" [name]="fontIcon(horizontal, rtl)" [svgIcon]="SVGIcon(horizontal, rtl)" class="k-menu-expand-arrow" role="presentation"></kendo-icon-wrapper>
|
|
458
465
|
</ng-template>
|
|
459
|
-
`, isInline: true, components: [{ type: ListComponent, selector: "[kendoMenuList]", inputs: ["items", "level", "index", "animate", "size", "vertical", "rtl", "openOnClick", "itemTemplate", "itemLinkTemplate"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
460
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
466
|
+
`, isInline: true, components: [{ type: ListComponent, selector: "[kendoMenuList]", inputs: ["items", "level", "index", "animate", "size", "vertical", "rtl", "openOnClick", "itemTemplate", "itemLinkTemplate"] }, { type: i8.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemComponent, decorators: [{
|
|
461
468
|
type: Component,
|
|
462
469
|
args: [{
|
|
463
470
|
providers: [PopupService, {
|
|
@@ -510,14 +517,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
510
517
|
</ng-container>
|
|
511
518
|
<ng-template *ngIf="template" [ngTemplateOutlet]="template" [ngTemplateOutletContext]="{ item: item, index: index }">
|
|
512
519
|
</ng-template>
|
|
513
|
-
<
|
|
514
|
-
<span class="k-icon"
|
|
515
|
-
[class.k-i-arrow-60-down]="!horizontal"
|
|
516
|
-
[class.k-i-arrow-60-right]="horizontal && !rtl"
|
|
517
|
-
[class.k-i-arrow-60-left]="horizontal && rtl"
|
|
518
|
-
>
|
|
519
|
-
</span>
|
|
520
|
-
</span>
|
|
520
|
+
<kendo-icon-wrapper *ngIf="hasContent" [name]="fontIcon(horizontal, rtl)" [svgIcon]="SVGIcon(horizontal, rtl)" class="k-menu-expand-arrow" role="presentation"></kendo-icon-wrapper>
|
|
521
521
|
</ng-template>
|
|
522
522
|
`
|
|
523
523
|
}]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
const POPUP_ALIGN = {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { NgZone, Injectable } from '@angular/core';
|
|
6
|
+
import { ItemsService } from './items.service';
|
|
6
7
|
import { hasObservers, PreventableEvent } from '@progress/kendo-angular-common';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
import * as i1 from "./items.service";
|
|
@@ -169,8 +170,8 @@ export class ActionsService {
|
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
|
-
ActionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
173
|
-
ActionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
173
|
+
ActionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionsService, deps: [{ token: i0.NgZone }, { token: i1.ItemsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
174
|
+
ActionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionsService });
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ActionsService, decorators: [{
|
|
175
176
|
type: Injectable
|
|
176
177
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.ItemsService }]; } });
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { Injectable } from '@angular/core';
|
|
6
|
+
import { ItemsService } from './items.service';
|
|
7
|
+
import { ActionsService } from './actions.service';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
import * as i1 from "./actions.service";
|
|
8
10
|
import * as i2 from "./items.service";
|
|
@@ -115,8 +117,8 @@ export class HoverService {
|
|
|
115
117
|
}
|
|
116
118
|
}
|
|
117
119
|
}
|
|
118
|
-
HoverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
119
|
-
HoverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
120
|
+
HoverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HoverService, deps: [{ token: i1.ActionsService }, { token: i2.ItemsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
121
|
+
HoverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HoverService });
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: HoverService, decorators: [{
|
|
121
123
|
type: Injectable
|
|
122
124
|
}], ctorParameters: function () { return [{ type: i1.ActionsService }, { type: i2.ItemsService }]; } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
import { Injectable } from '@angular/core';
|
|
@@ -88,7 +88,7 @@ export class ItemsService {
|
|
|
88
88
|
filter(predicate) {
|
|
89
89
|
const result = [];
|
|
90
90
|
const items = this.items;
|
|
91
|
-
for (
|
|
91
|
+
for (const index in items) {
|
|
92
92
|
if (predicate(index, items[index])) {
|
|
93
93
|
result.push(items[index]);
|
|
94
94
|
}
|
|
@@ -113,7 +113,7 @@ export class ItemsService {
|
|
|
113
113
|
}
|
|
114
114
|
forEach(callback) {
|
|
115
115
|
const items = this.items;
|
|
116
|
-
for (
|
|
116
|
+
for (const index in items) {
|
|
117
117
|
if (items.hasOwnProperty(index)) {
|
|
118
118
|
callback(items[index]);
|
|
119
119
|
}
|
|
@@ -123,8 +123,8 @@ export class ItemsService {
|
|
|
123
123
|
return index.replace(PARENT_REGEX, '');
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
ItemsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
127
|
-
ItemsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
126
|
+
ItemsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
127
|
+
ItemsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemsService });
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemsService, decorators: [{
|
|
129
129
|
type: Injectable
|
|
130
130
|
}] });
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 { Injectable } from '@angular/core';
|
|
5
|
+
import { Injectable, NgZone } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { ItemsService } from './items.service';
|
|
8
|
+
import { ActionsService } from './actions.service';
|
|
6
9
|
import * as i0 from "@angular/core";
|
|
7
10
|
import * as i1 from "./items.service";
|
|
8
11
|
import * as i2 from "./actions.service";
|
|
@@ -249,8 +252,8 @@ export class NavigationService {
|
|
|
249
252
|
}
|
|
250
253
|
}
|
|
251
254
|
}
|
|
252
|
-
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
253
|
-
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
255
|
+
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NavigationService, deps: [{ token: i1.ItemsService }, { token: i2.ActionsService }, { token: i3.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
256
|
+
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NavigationService });
|
|
257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NavigationService, decorators: [{
|
|
255
258
|
type: Injectable
|
|
256
259
|
}], ctorParameters: function () { return [{ type: i1.ItemsService }, { type: i2.ActionsService }, { type: i3.LocalizationService }, { type: i0.NgZone }]; } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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
5
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 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 { Directive, Optional } from '@angular/core';
|
|
5
|
+
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Represents a template for the content of the Menu items ([see example]({% slug templates_menu %})). To define the template,
|
|
@@ -39,9 +39,9 @@ export class ItemContentTemplateDirective {
|
|
|
39
39
|
this.templateRef = templateRef;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
ItemContentTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
43
|
-
ItemContentTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
ItemContentTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemContentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
43
|
+
ItemContentTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ItemContentTemplateDirective, selector: "[kendoMenuItemContentTemplate]", ngImport: i0 });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemContentTemplateDirective, decorators: [{
|
|
45
45
|
type: Directive,
|
|
46
46
|
args: [{
|
|
47
47
|
selector: '[kendoMenuItemContentTemplate]'
|