@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.
Files changed (49) hide show
  1. package/data-binding/binding-directive-base.d.ts +1 -1
  2. package/fesm2022/progress-kendo-angular-menu.mjs +87 -87
  3. package/menu-base.d.ts +1 -1
  4. package/package.json +11 -19
  5. package/esm2022/constants.mjs +0 -8
  6. package/esm2022/context-menu/context-menu-event.mjs +0 -25
  7. package/esm2022/context-menu/context-menu-items.service.mjs +0 -27
  8. package/esm2022/context-menu/context-menu-popup-event.mjs +0 -29
  9. package/esm2022/context-menu/context-menu-select-event.mjs +0 -14
  10. package/esm2022/context-menu/context-menu-target-container.directive.mjs +0 -49
  11. package/esm2022/context-menu/context-menu-target.directive.mjs +0 -62
  12. package/esm2022/context-menu/context-menu-target.service.mjs +0 -27
  13. package/esm2022/context-menu/context-menu-template.directive.mjs +0 -39
  14. package/esm2022/context-menu/context-menu.component.mjs +0 -527
  15. package/esm2022/context-menu/context-menu.module.mjs +0 -69
  16. package/esm2022/context-menu/context-menu.service.mjs +0 -30
  17. package/esm2022/data-binding/binding-directive-base.mjs +0 -46
  18. package/esm2022/data-binding/flat-binding.directive.mjs +0 -139
  19. package/esm2022/data-binding/hierachy-binding.directive.mjs +0 -124
  20. package/esm2022/data-binding/utils.mjs +0 -31
  21. package/esm2022/directives.mjs +0 -48
  22. package/esm2022/dom-queries.mjs +0 -104
  23. package/esm2022/index.mjs +0 -29
  24. package/esm2022/menu-animation.interface.mjs +0 -5
  25. package/esm2022/menu-base.mjs +0 -103
  26. package/esm2022/menu-event.mjs +0 -22
  27. package/esm2022/menu-item.component.mjs +0 -149
  28. package/esm2022/menu-item.interface.mjs +0 -5
  29. package/esm2022/menu-select-event.mjs +0 -14
  30. package/esm2022/menu.component.mjs +0 -304
  31. package/esm2022/menu.module.mjs +0 -65
  32. package/esm2022/menus.module.mjs +0 -59
  33. package/esm2022/open-on-click-settings.mjs +0 -10
  34. package/esm2022/package-metadata.mjs +0 -16
  35. package/esm2022/preventable-event.mjs +0 -34
  36. package/esm2022/progress-kendo-angular-menu.mjs +0 -8
  37. package/esm2022/rendering/arrow.component.mjs +0 -70
  38. package/esm2022/rendering/link.directive.mjs +0 -69
  39. package/esm2022/rendering/list.component.mjs +0 -679
  40. package/esm2022/rendering/popup-settings.mjs +0 -74
  41. package/esm2022/services/actions.service.mjs +0 -192
  42. package/esm2022/services/hover.service.mjs +0 -127
  43. package/esm2022/services/items.service.mjs +0 -128
  44. package/esm2022/services/navigation.service.mjs +0 -268
  45. package/esm2022/size.mjs +0 -5
  46. package/esm2022/templates/item-content-template.directive.mjs +0 -53
  47. package/esm2022/templates/item-link-template.directive.mjs +0 -57
  48. package/esm2022/templates/item-template.directive.mjs +0 -54
  49. package/esm2022/utils.mjs +0 -52
@@ -1,27 +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 { Injectable } from '@angular/core';
6
- import { ContextMenuService } from './context-menu.service';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "./context-menu.service";
9
- /**
10
- * @hidden
11
- */
12
- export class ContextMenuItemsService {
13
- contextService;
14
- constructor(contextService) {
15
- this.contextService = contextService;
16
- }
17
- get(index) {
18
- if (this.contextService.items) {
19
- return this.contextService.items.get(index);
20
- }
21
- }
22
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuItemsService, deps: [{ token: i1.ContextMenuService }], target: i0.ɵɵFactoryTarget.Injectable });
23
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuItemsService });
24
- }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuItemsService, decorators: [{
26
- type: Injectable
27
- }], ctorParameters: () => [{ type: i1.ContextMenuService }] });
@@ -1,29 +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 { PreventableEvent } from '../preventable-event';
6
- /**
7
- * Represents the arguments for the `popupOpen` and `popupClose` events of the ContextMenu.
8
- */
9
- export class ContextMenuPopupEvent extends PreventableEvent {
10
- /**
11
- * Specifies the target element for which the ContextMenu is opened.
12
- */
13
- target;
14
- /**
15
- * Specifies the DOM event that started the action.
16
- */
17
- originalEvent;
18
- /**
19
- * Specifies the ContextMenuComponent that triggered the event.
20
- */
21
- sender;
22
- /**
23
- * @hidden
24
- */
25
- constructor(args) {
26
- super();
27
- Object.assign(this, args);
28
- }
29
- }
@@ -1,14 +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 { ContextMenuEvent } from './context-menu-event';
6
- /**
7
- * Represents the arguments for the `select` event of the ContextMenu.
8
- */
9
- export class ContextMenuSelectEvent extends ContextMenuEvent {
10
- /**
11
- * Specifies the DOM event that triggered the selection.
12
- */
13
- originalEvent;
14
- }
@@ -1,49 +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, ElementRef } from '@angular/core';
6
- import { ContextMenuTargetService } from './context-menu-target.service';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "./context-menu-target.service";
9
- /**
10
- * Represents a container for the [targets]({% slug api_menu_contextmenutargetdirective %}) of the ContextMenu.
11
- *
12
- * @example
13
- * ```html
14
- * <div
15
- * #target="kendoContextMenuTargetContainer"
16
- * kendoContextMenuTargetContainer
17
- * >
18
- * <div kendoContextMenuTarget></div>
19
- * <div kendoContextMenuTarget></div>
20
- * </div>
21
- * ```
22
- */
23
- export class ContextMenuTargetContainerDirective {
24
- targetService;
25
- /**
26
- * @hidden
27
- */
28
- element;
29
- /**
30
- * @hidden
31
- */
32
- constructor(elementRef, targetService) {
33
- this.targetService = targetService;
34
- if (elementRef) {
35
- this.element = elementRef.nativeElement;
36
- }
37
- }
38
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuTargetContainerDirective, deps: [{ token: i0.ElementRef }, { token: i1.ContextMenuTargetService }], target: i0.ɵɵFactoryTarget.Directive });
39
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ContextMenuTargetContainerDirective, isStandalone: true, selector: "[kendoContextMenuTargetContainer]", providers: [ContextMenuTargetService], exportAs: ["kendoContextMenuTargetContainer"], ngImport: i0 });
40
- }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuTargetContainerDirective, decorators: [{
42
- type: Directive,
43
- args: [{
44
- selector: '[kendoContextMenuTargetContainer]',
45
- exportAs: 'kendoContextMenuTargetContainer',
46
- providers: [ContextMenuTargetService],
47
- standalone: true
48
- }]
49
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.ContextMenuTargetService }] });
@@ -1,62 +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, ElementRef, Input, HostBinding } from '@angular/core';
6
- import { ContextMenuTargetService } from './context-menu-target.service';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "./context-menu-target.service";
9
- /**
10
- * @hidden
11
- */
12
- export const TARGET_CLASS = 'k-contextmenu-target';
13
- /**
14
- * Represents a [target]({% slug api_menu_contextmenutargetdirective %}) for the ContextMenu
15
- * ([see example]({% slug target_contextmenu %}#toc-directives)).
16
- *
17
- * @example
18
- * ```html
19
- * <div kendoContextMenuTarget> </div>
20
- * ```
21
- */
22
- export class ContextMenuTargetDirective {
23
- targetService;
24
- /**
25
- * Specifies the data which is associated with the target.
26
- */
27
- data;
28
- /**
29
- * Specifies the target DOM element.
30
- */
31
- element;
32
- /**
33
- * @hidden
34
- */
35
- hostClass = true;
36
- constructor(elementRef, targetService) {
37
- this.targetService = targetService;
38
- if (elementRef) {
39
- this.element = elementRef.nativeElement;
40
- }
41
- targetService.add(this);
42
- }
43
- ngOnDestroy() {
44
- this.targetService.remove(this);
45
- }
46
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuTargetDirective, deps: [{ token: i0.ElementRef }, { token: i1.ContextMenuTargetService }], target: i0.ɵɵFactoryTarget.Directive });
47
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ContextMenuTargetDirective, isStandalone: true, selector: "[kendoContextMenuTarget]", inputs: { data: ["kendoContextMenuTarget", "data"] }, host: { properties: { "class.k-contextmenu-target": "this.hostClass" } }, exportAs: ["kendoContextMenuTarget"], ngImport: i0 });
48
- }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuTargetDirective, decorators: [{
50
- type: Directive,
51
- args: [{
52
- selector: '[kendoContextMenuTarget]',
53
- exportAs: 'kendoContextMenuTarget',
54
- standalone: true
55
- }]
56
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.ContextMenuTargetService }], propDecorators: { data: [{
57
- type: Input,
58
- args: ['kendoContextMenuTarget']
59
- }], hostClass: [{
60
- type: HostBinding,
61
- args: [`class.${TARGET_CLASS}`]
62
- }] } });
@@ -1,27 +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 { Injectable } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @hidden
9
- */
10
- export class ContextMenuTargetService {
11
- targets = [];
12
- add(target) {
13
- this.targets.push(target);
14
- }
15
- remove(target) {
16
- const index = this.targets.indexOf(target);
17
- this.targets.splice(index, 1);
18
- }
19
- find(targetElement) {
20
- return this.targets.find(target => target.element === targetElement);
21
- }
22
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuTargetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
23
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuTargetService });
24
- }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuTargetService, decorators: [{
26
- type: Injectable
27
- }] });
@@ -1,39 +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, TemplateRef, Optional } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Represents a template for the content of the ContextMenu. To define a template, nest an `<ng-template>`
9
- * tag with the `kendoContextMenuTemplate` directive inside a `<kendo-contextmenu>` component
10
- * ([more information and examples]({% slug templates_contextmenu %})).
11
- *
12
- * <demo metaUrl="menus/context-menu/template/" height="200"></demo>
13
- *
14
- * @example
15
- * ```html
16
- * <kendo-contextmenu>
17
- * <ng-template kendoContextMenuTemplate let-item="item">
18
- * <span>{{ item.text }}</span>
19
- * </ng-template>
20
- * </kendo-contextmenu>
21
- * ```
22
- */
23
- export class ContextMenuTemplateDirective {
24
- templateRef;
25
- constructor(templateRef) {
26
- this.templateRef = templateRef;
27
- }
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
29
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ContextMenuTemplateDirective, isStandalone: true, selector: "[kendoContextMenuTemplate]", ngImport: i0 });
30
- }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContextMenuTemplateDirective, decorators: [{
32
- type: Directive,
33
- args: [{
34
- selector: '[kendoContextMenuTemplate]',
35
- standalone: true
36
- }]
37
- }], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
38
- type: Optional
39
- }] }] });