@progress/kendo-angular-menu 4.0.4 → 4.1.0-dev.202211241300

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 (37) hide show
  1. package/bundles/kendo-angular-menu.umd.js +1 -1
  2. package/esm2015/context-menu/context-menu-items.service.js +3 -3
  3. package/esm2015/context-menu/context-menu-target-container.directive.js +3 -3
  4. package/esm2015/context-menu/context-menu-target.directive.js +3 -3
  5. package/esm2015/context-menu/context-menu-target.service.js +3 -3
  6. package/esm2015/context-menu/context-menu-template.directive.js +3 -3
  7. package/esm2015/context-menu/context-menu.component.js +5 -3
  8. package/esm2015/context-menu/context-menu.module.js +4 -4
  9. package/esm2015/context-menu/context-menu.service.js +3 -3
  10. package/esm2015/data-binding/binding-directive-base.js +3 -3
  11. package/esm2015/data-binding/flat-binding.directive.js +3 -3
  12. package/esm2015/data-binding/hierachy-binding.directive.js +3 -3
  13. package/esm2015/menu-base.js +16 -3
  14. package/esm2015/menu-item.component.js +3 -3
  15. package/esm2015/menu.component.js +23 -15
  16. package/esm2015/menu.module.js +4 -4
  17. package/esm2015/menus.module.js +4 -4
  18. package/esm2015/package-metadata.js +1 -1
  19. package/esm2015/rendering/arrow.directive.js +3 -3
  20. package/esm2015/rendering/link.directive.js +3 -3
  21. package/esm2015/rendering/list.component.js +35 -16
  22. package/esm2015/services/actions.service.js +3 -3
  23. package/esm2015/services/hover.service.js +3 -3
  24. package/esm2015/services/items.service.js +3 -3
  25. package/esm2015/services/navigation.service.js +3 -3
  26. package/esm2015/size.js +5 -0
  27. package/esm2015/templates/item-content-template.directive.js +3 -3
  28. package/esm2015/templates/item-link-template.directive.js +3 -3
  29. package/esm2015/templates/item-template.directive.js +3 -3
  30. package/esm2015/utils.js +11 -0
  31. package/fesm2015/kendo-angular-menu.js +169 -119
  32. package/menu-base.d.ts +13 -1
  33. package/menu.component.d.ts +5 -1
  34. package/package.json +1 -1
  35. package/rendering/list.component.d.ts +11 -4
  36. package/size.d.ts +8 -0
  37. package/utils.d.ts +5 -0
package/menu-base.d.ts CHANGED
@@ -8,6 +8,7 @@ import { MenuAnimation } from './menu-animation.interface';
8
8
  import { OpenOnClickSettings } from './open-on-click-settings';
9
9
  import { ItemTemplateDirective } from './templates/item-template.directive';
10
10
  import { ItemLinkTemplateDirective } from './templates/item-link-template.directive';
11
+ import { MenuSize } from './size';
11
12
  import * as i0 from "@angular/core";
12
13
  /**
13
14
  * @hidden
@@ -36,6 +37,17 @@ export declare class MenuBase {
36
37
  * Sets the Menu animation.
37
38
  */
38
39
  animate: boolean | MenuAnimation;
40
+ /**
41
+ * Sets the Menu size.
42
+ *
43
+ * The possible values are:
44
+ * * `small`
45
+ * * `medium` (default)
46
+ * * `large`
47
+ * * `none`
48
+ *
49
+ */
50
+ size: MenuSize;
39
51
  /**
40
52
  * @hidden
41
53
  */
@@ -53,5 +65,5 @@ export declare class MenuBase {
53
65
  */
54
66
  get rootItems(): any[];
55
67
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuBase, never>;
56
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuBase, "kendo-menu-base", never, { "items": "items"; "vertical": "vertical"; "openOnClick": "openOnClick"; "hoverDelay": "hoverDelay"; "animate": "animate"; }, {}, ["itemTemplate", "itemLinkTemplate", "children"], never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuBase, "kendo-menu-base", never, { "items": "items"; "vertical": "vertical"; "openOnClick": "openOnClick"; "hoverDelay": "hoverDelay"; "animate": "animate"; "size": "size"; }, {}, ["itemTemplate", "itemLinkTemplate", "children"], never>;
57
69
  }
@@ -66,9 +66,13 @@ export declare class MenuComponent extends MenuBase implements OnChanges, AfterV
66
66
  /**
67
67
  * @hidden
68
68
  */
69
- get contextMenuClass(): boolean;
69
+ get isContextMenu(): boolean;
70
70
  get direction(): boolean;
71
71
  get rtl(): boolean;
72
+ /**
73
+ * @hidden
74
+ */
75
+ get menuClasses(): string;
72
76
  private closeClickSubscription;
73
77
  private contextKeyDownSubscription;
74
78
  constructor(itemsService: ItemsService, hover: HoverService, actions: ActionsService, navigation: NavigationService, localization: LocalizationService, ngZone: NgZone, renderer: Renderer2, contextService?: ContextMenuService);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-menu",
3
- "version": "4.0.4",
3
+ "version": "4.1.0-dev.202211241300",
4
4
  "description": "Kendo UI Angular Menu component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -5,6 +5,8 @@
5
5
  import { ElementRef, NgZone, OnDestroy, OnInit, Renderer2, TemplateRef } from '@angular/core';
6
6
  import { ChangeDetectorRef } from '@angular/core';
7
7
  import { PopupService } from '@progress/kendo-angular-popup';
8
+ import { ContextMenuService } from '../context-menu/context-menu.service';
9
+ import { MenuSize } from 'src/size';
8
10
  import { MenuAnimation } from '../menu-animation.interface';
9
11
  import { ActionsService } from '../services/actions.service';
10
12
  import { HoverService } from '../services/hover.service';
@@ -26,6 +28,7 @@ export declare class ListComponent implements OnInit, OnDestroy {
26
28
  level: number;
27
29
  index: string;
28
30
  animate: boolean | MenuAnimation;
31
+ size: MenuSize;
29
32
  vertical: boolean;
30
33
  rtl: boolean;
31
34
  openOnClick: any;
@@ -42,7 +45,7 @@ export declare class ListComponent implements OnInit, OnDestroy {
42
45
  private nodeItem;
43
46
  private clickHandler;
44
47
  static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "[kendoMenuList]", never, { "items": "items"; "level": "level"; "index": "index"; "animate": "animate"; "vertical": "vertical"; "rtl": "rtl"; "openOnClick": "openOnClick"; "itemTemplate": "itemTemplate"; "itemLinkTemplate": "itemLinkTemplate"; }, {}, never, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "[kendoMenuList]", never, { "items": "items"; "level": "level"; "index": "index"; "animate": "animate"; "size": "size"; "vertical": "vertical"; "rtl": "rtl"; "openOnClick": "openOnClick"; "itemTemplate": "itemTemplate"; "itemLinkTemplate": "itemLinkTemplate"; }, {}, never, never>;
46
49
  }
47
50
  /**
48
51
  * @hidden
@@ -54,12 +57,14 @@ export declare class ItemComponent {
54
57
  private renderer;
55
58
  private popupService;
56
59
  element: ElementRef;
60
+ private contextService?;
57
61
  item: any;
58
62
  level: number;
59
63
  set index(index: string);
60
64
  get index(): string;
61
65
  siblingIndex: number;
62
66
  animate: boolean | MenuAnimation;
67
+ size: MenuSize;
63
68
  vertical: boolean;
64
69
  rtl: boolean;
65
70
  openOnClick: boolean;
@@ -79,6 +84,8 @@ export declare class ItemComponent {
79
84
  get hasContent(): boolean;
80
85
  get isContent(): boolean;
81
86
  get iconClass(): string;
87
+ get isContextMenu(): boolean;
88
+ get menuListClasses(): string;
82
89
  get children(): any[];
83
90
  get template(): TemplateRef<any>;
84
91
  opened: boolean;
@@ -88,7 +95,7 @@ export declare class ItemComponent {
88
95
  private popupRef;
89
96
  private _index;
90
97
  private destroyed;
91
- constructor(itemsService: ItemsService, navigation: NavigationService, changeDetector: ChangeDetectorRef, renderer: Renderer2, popupService: PopupService, element: ElementRef);
98
+ constructor(itemsService: ItemsService, navigation: NavigationService, changeDetector: ChangeDetectorRef, renderer: Renderer2, popupService: PopupService, element: ElementRef, contextService?: ContextMenuService);
92
99
  hasContentTemplates(): boolean;
93
100
  ngOnInit(): void;
94
101
  ngOnDestroy(): void;
@@ -99,6 +106,6 @@ export declare class ItemComponent {
99
106
  close(): void;
100
107
  navigate(): void;
101
108
  private setAttribute;
102
- static ɵfac: i0.ɵɵFactoryDeclaration<ItemComponent, never>;
103
- static ɵcmp: i0.ɵɵComponentDeclaration<ItemComponent, "[kendoMenuItem]", never, { "item": "item"; "level": "level"; "index": "index"; "siblingIndex": "siblingIndex"; "animate": "animate"; "vertical": "vertical"; "rtl": "rtl"; "openOnClick": "openOnClick"; "itemTemplate": "itemTemplate"; "itemLinkTemplate": "itemLinkTemplate"; }, {}, never, never>;
109
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemComponent, [null, null, null, null, null, null, { optional: true; }]>;
110
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemComponent, "[kendoMenuItem]", never, { "item": "item"; "level": "level"; "index": "index"; "siblingIndex": "siblingIndex"; "animate": "animate"; "size": "size"; "vertical": "vertical"; "rtl": "rtl"; "openOnClick": "openOnClick"; "itemTemplate": "itemTemplate"; "itemLinkTemplate": "itemLinkTemplate"; }, {}, never, never>;
104
111
  }
package/size.d.ts ADDED
@@ -0,0 +1,8 @@
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
+ /**
6
+ * Represents the possible size options of the menu.
7
+ */
8
+ export declare type MenuSize = 'small' | 'medium' | 'large' | 'none';
package/utils.d.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ElementRef } from '@angular/core';
6
+ import { MenuSize } from './size';
6
7
  /**
7
8
  * @hidden
8
9
  */
@@ -11,3 +12,7 @@ export declare const defined: (value: any) => boolean;
11
12
  * @hidden
12
13
  */
13
14
  export declare const bodyFactory: () => ElementRef;
15
+ /**
16
+ * @hidden
17
+ */
18
+ export declare const getSizeClass: (size: MenuSize) => string;