@progress/kendo-angular-menu 21.4.1 → 22.0.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data-binding/binding-directive-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-menu.mjs +87 -87
- package/menu-base.d.ts +1 -1
- package/package.json +11 -19
- package/esm2022/constants.mjs +0 -8
- package/esm2022/context-menu/context-menu-event.mjs +0 -25
- package/esm2022/context-menu/context-menu-items.service.mjs +0 -27
- package/esm2022/context-menu/context-menu-popup-event.mjs +0 -29
- package/esm2022/context-menu/context-menu-select-event.mjs +0 -14
- package/esm2022/context-menu/context-menu-target-container.directive.mjs +0 -49
- package/esm2022/context-menu/context-menu-target.directive.mjs +0 -62
- package/esm2022/context-menu/context-menu-target.service.mjs +0 -27
- package/esm2022/context-menu/context-menu-template.directive.mjs +0 -39
- package/esm2022/context-menu/context-menu.component.mjs +0 -527
- package/esm2022/context-menu/context-menu.module.mjs +0 -69
- package/esm2022/context-menu/context-menu.service.mjs +0 -30
- package/esm2022/data-binding/binding-directive-base.mjs +0 -46
- package/esm2022/data-binding/flat-binding.directive.mjs +0 -139
- package/esm2022/data-binding/hierachy-binding.directive.mjs +0 -124
- package/esm2022/data-binding/utils.mjs +0 -31
- package/esm2022/directives.mjs +0 -48
- package/esm2022/dom-queries.mjs +0 -104
- package/esm2022/index.mjs +0 -29
- package/esm2022/menu-animation.interface.mjs +0 -5
- package/esm2022/menu-base.mjs +0 -103
- package/esm2022/menu-event.mjs +0 -22
- package/esm2022/menu-item.component.mjs +0 -149
- package/esm2022/menu-item.interface.mjs +0 -5
- package/esm2022/menu-select-event.mjs +0 -14
- package/esm2022/menu.component.mjs +0 -304
- package/esm2022/menu.module.mjs +0 -65
- package/esm2022/menus.module.mjs +0 -59
- package/esm2022/open-on-click-settings.mjs +0 -10
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/preventable-event.mjs +0 -34
- package/esm2022/progress-kendo-angular-menu.mjs +0 -8
- package/esm2022/rendering/arrow.component.mjs +0 -70
- package/esm2022/rendering/link.directive.mjs +0 -69
- package/esm2022/rendering/list.component.mjs +0 -679
- package/esm2022/rendering/popup-settings.mjs +0 -74
- package/esm2022/services/actions.service.mjs +0 -192
- package/esm2022/services/hover.service.mjs +0 -127
- package/esm2022/services/items.service.mjs +0 -128
- package/esm2022/services/navigation.service.mjs +0 -268
- package/esm2022/size.mjs +0 -5
- package/esm2022/templates/item-content-template.directive.mjs +0 -53
- package/esm2022/templates/item-link-template.directive.mjs +0 -57
- package/esm2022/templates/item-template.directive.mjs +0 -54
- package/esm2022/utils.mjs +0 -52
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Input, HostBinding, isDevMode, Component } from '@angular/core';
|
|
6
|
-
import { ItemsService } from '../services/items.service';
|
|
7
|
-
import { getFontIcon, getSVGIcon } from '../utils';
|
|
8
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../services/items.service";
|
|
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
|
-
* @example
|
|
16
|
-
* ```html
|
|
17
|
-
* <ng-template kendoMenuItemLinkTemplate let-item="item" let-index="index">
|
|
18
|
-
* <span [kendoMenuExpandArrow]="index"></span>
|
|
19
|
-
* </ng-template>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export class ExpandArrowComponent {
|
|
23
|
-
itemsService;
|
|
24
|
-
/**
|
|
25
|
-
* Specifies the index of the Menu item. The input is mandatory.
|
|
26
|
-
*/
|
|
27
|
-
index;
|
|
28
|
-
hostClasses = true;
|
|
29
|
-
ariaHidden = 'true';
|
|
30
|
-
item;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
fontIcon;
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
SVGIcon;
|
|
39
|
-
constructor(itemsService) {
|
|
40
|
-
this.itemsService = itemsService;
|
|
41
|
-
}
|
|
42
|
-
ngOnInit() {
|
|
43
|
-
if (isDevMode() && !this.index) {
|
|
44
|
-
throw new Error('The kendoMenuExpandArrow component requires the item index to be set.');
|
|
45
|
-
}
|
|
46
|
-
this.item = this.itemsService.get(this.index) || {};
|
|
47
|
-
this.fontIcon = getFontIcon(this.item.horizontal, this.item.rtl);
|
|
48
|
-
this.SVGIcon = getSVGIcon(this.item.horizontal, this.item.rtl);
|
|
49
|
-
}
|
|
50
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExpandArrowComponent, deps: [{ token: i1.ItemsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", 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"] }] });
|
|
52
|
-
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExpandArrowComponent, decorators: [{
|
|
54
|
-
type: Component,
|
|
55
|
-
args: [{
|
|
56
|
-
selector: '[kendoMenuExpandArrow]',
|
|
57
|
-
template: `<kendo-icon-wrapper [name]="fontIcon" [svgIcon]="SVGIcon"></kendo-icon-wrapper>`,
|
|
58
|
-
standalone: true,
|
|
59
|
-
imports: [IconWrapperComponent]
|
|
60
|
-
}]
|
|
61
|
-
}], ctorParameters: () => [{ type: i1.ItemsService }], propDecorators: { index: [{
|
|
62
|
-
type: Input,
|
|
63
|
-
args: ['kendoMenuExpandArrow']
|
|
64
|
-
}], hostClasses: [{
|
|
65
|
-
type: HostBinding,
|
|
66
|
-
args: ['class.k-menu-expand-arrow']
|
|
67
|
-
}], ariaHidden: [{
|
|
68
|
-
type: HostBinding,
|
|
69
|
-
args: ['attr.aria-hidden']
|
|
70
|
-
}] } });
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, Input, HostBinding, isDevMode } from '@angular/core';
|
|
6
|
-
import { ItemsService } from '../services/items.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../services/items.service";
|
|
9
|
-
/**
|
|
10
|
-
* Represents a directive that can be used in the [`linkTemplate`]({% slug api_menu_itemlinktemplatedirective %})
|
|
11
|
-
* of the items to apply the default styling and behavior.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```html
|
|
15
|
-
* <ng-template kendoMenuItemLinkTemplate let-item="item" let-index="index">
|
|
16
|
-
* <a [kendoMenuItemLink]="index">{{ item.text }}</a>
|
|
17
|
-
* </ng-template>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export class LinkDirective {
|
|
21
|
-
itemsService;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies the index of the Menu item. The input is mandatory.
|
|
24
|
-
*/
|
|
25
|
-
index;
|
|
26
|
-
hostClasses = true;
|
|
27
|
-
role = 'presentation';
|
|
28
|
-
tabindex = '-1';
|
|
29
|
-
get activeClass() {
|
|
30
|
-
return this.item.opened;
|
|
31
|
-
}
|
|
32
|
-
item;
|
|
33
|
-
constructor(itemsService) {
|
|
34
|
-
this.itemsService = itemsService;
|
|
35
|
-
}
|
|
36
|
-
ngOnInit() {
|
|
37
|
-
if (isDevMode() && !this.index) {
|
|
38
|
-
throw new Error('The kendoMenuItemLink directive requires the item index to be set.');
|
|
39
|
-
}
|
|
40
|
-
this.item = this.itemsService.get(this.index) || {};
|
|
41
|
-
}
|
|
42
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LinkDirective, deps: [{ token: i1.ItemsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
43
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", 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 });
|
|
44
|
-
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LinkDirective, decorators: [{
|
|
46
|
-
type: Directive,
|
|
47
|
-
args: [{
|
|
48
|
-
selector: '[kendoMenuItemLink]',
|
|
49
|
-
standalone: true
|
|
50
|
-
}]
|
|
51
|
-
}], ctorParameters: () => [{ type: i1.ItemsService }], propDecorators: { index: [{
|
|
52
|
-
type: Input,
|
|
53
|
-
args: ['kendoMenuItemLink']
|
|
54
|
-
}], hostClasses: [{
|
|
55
|
-
type: HostBinding,
|
|
56
|
-
args: ['class.k-link']
|
|
57
|
-
}, {
|
|
58
|
-
type: HostBinding,
|
|
59
|
-
args: ['class.k-menu-link']
|
|
60
|
-
}], role: [{
|
|
61
|
-
type: HostBinding,
|
|
62
|
-
args: ['attr.role']
|
|
63
|
-
}], tabindex: [{
|
|
64
|
-
type: HostBinding,
|
|
65
|
-
args: ['attr.tabindex']
|
|
66
|
-
}], activeClass: [{
|
|
67
|
-
type: HostBinding,
|
|
68
|
-
args: ['class.k-active']
|
|
69
|
-
}] } });
|