@progress/kendo-angular-menu 16.5.0-develop.1 → 16.5.0-develop.3

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.
@@ -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: 1720706836,
13
- version: '16.5.0-develop.1',
12
+ publishDate: 1721377342,
13
+ version: '16.5.0-develop.3',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -290,9 +290,6 @@ export class ItemComponent {
290
290
  get hasPopup() {
291
291
  return this.hasContent ? true : null;
292
292
  }
293
- get expanded() {
294
- return this.hasContent ? this.opened : null;
295
- }
296
293
  get label() {
297
294
  return this.item.text ? this.item.text : null;
298
295
  }
@@ -354,6 +351,11 @@ export class ItemComponent {
354
351
  ngOnInit() {
355
352
  this.itemsService.add(this);
356
353
  }
354
+ ngAfterViewInit() {
355
+ if (this.hasContent) {
356
+ this.setAttribute('aria-expanded', this.opened.toString());
357
+ }
358
+ }
357
359
  ngOnDestroy() {
358
360
  this.itemsService.remove(this);
359
361
  this.destroyed = true;
@@ -433,7 +435,7 @@ export class ItemComponent {
433
435
  }
434
436
  }
435
437
  ItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", 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 });
436
- ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ItemComponent, selector: "[kendoMenuItem]", inputs: { appendTo: "appendTo", 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, {
438
+ ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ItemComponent, selector: "[kendoMenuItem]", inputs: { appendTo: "appendTo", 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-label": "this.label", "attr.tabindex": "this.activeId" } }, providers: [PopupService, {
437
439
  provide: POPUP_CONTAINER,
438
440
  useFactory: bodyFactory
439
441
  }], viewQueries: [{ propertyName: "link", first: true, predicate: ["link"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], ngImport: i0, template: `
@@ -581,9 +583,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
581
583
  }], hasPopup: [{
582
584
  type: HostBinding,
583
585
  args: ['attr.aria-haspopup']
584
- }], expanded: [{
585
- type: HostBinding,
586
- args: ['attr.aria-expanded']
587
586
  }], label: [{
588
587
  type: HostBinding,
589
588
  args: ['attr.aria-label']
@@ -23,8 +23,8 @@ const packageMetadata = {
23
23
  name: '@progress/kendo-angular-menu',
24
24
  productName: 'Kendo UI for Angular',
25
25
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
26
- publishDate: 1720706836,
27
- version: '16.5.0-develop.1',
26
+ publishDate: 1721377342,
27
+ version: '16.5.0-develop.3',
28
28
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
29
29
  };
30
30
 
@@ -1535,9 +1535,6 @@ class ItemComponent {
1535
1535
  get hasPopup() {
1536
1536
  return this.hasContent ? true : null;
1537
1537
  }
1538
- get expanded() {
1539
- return this.hasContent ? this.opened : null;
1540
- }
1541
1538
  get label() {
1542
1539
  return this.item.text ? this.item.text : null;
1543
1540
  }
@@ -1599,6 +1596,11 @@ class ItemComponent {
1599
1596
  ngOnInit() {
1600
1597
  this.itemsService.add(this);
1601
1598
  }
1599
+ ngAfterViewInit() {
1600
+ if (this.hasContent) {
1601
+ this.setAttribute('aria-expanded', this.opened.toString());
1602
+ }
1603
+ }
1602
1604
  ngOnDestroy() {
1603
1605
  this.itemsService.remove(this);
1604
1606
  this.destroyed = true;
@@ -1678,7 +1680,7 @@ class ItemComponent {
1678
1680
  }
1679
1681
  }
1680
1682
  ItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemComponent, deps: [{ token: ItemsService }, { token: NavigationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i6.PopupService }, { token: i0.ElementRef }, { token: ContextMenuService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1681
- ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ItemComponent, selector: "[kendoMenuItem]", inputs: { appendTo: "appendTo", 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, {
1683
+ ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ItemComponent, selector: "[kendoMenuItem]", inputs: { appendTo: "appendTo", 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-label": "this.label", "attr.tabindex": "this.activeId" } }, providers: [PopupService, {
1682
1684
  provide: POPUP_CONTAINER,
1683
1685
  useFactory: bodyFactory
1684
1686
  }], viewQueries: [{ propertyName: "link", first: true, predicate: ["link"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], ngImport: i0, template: `
@@ -1828,9 +1830,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1828
1830
  }], hasPopup: [{
1829
1831
  type: HostBinding,
1830
1832
  args: ['attr.aria-haspopup']
1831
- }], expanded: [{
1832
- type: HostBinding,
1833
- args: ['attr.aria-expanded']
1834
1833
  }], label: [{
1835
1834
  type: HostBinding,
1836
1835
  args: ['attr.aria-label']
@@ -23,8 +23,8 @@ const packageMetadata = {
23
23
  name: '@progress/kendo-angular-menu',
24
24
  productName: 'Kendo UI for Angular',
25
25
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
26
- publishDate: 1720706836,
27
- version: '16.5.0-develop.1',
26
+ publishDate: 1721377342,
27
+ version: '16.5.0-develop.3',
28
28
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
29
29
  };
30
30
 
@@ -1529,9 +1529,6 @@ class ItemComponent {
1529
1529
  get hasPopup() {
1530
1530
  return this.hasContent ? true : null;
1531
1531
  }
1532
- get expanded() {
1533
- return this.hasContent ? this.opened : null;
1534
- }
1535
1532
  get label() {
1536
1533
  return this.item.text ? this.item.text : null;
1537
1534
  }
@@ -1593,6 +1590,11 @@ class ItemComponent {
1593
1590
  ngOnInit() {
1594
1591
  this.itemsService.add(this);
1595
1592
  }
1593
+ ngAfterViewInit() {
1594
+ if (this.hasContent) {
1595
+ this.setAttribute('aria-expanded', this.opened.toString());
1596
+ }
1597
+ }
1596
1598
  ngOnDestroy() {
1597
1599
  this.itemsService.remove(this);
1598
1600
  this.destroyed = true;
@@ -1672,7 +1674,7 @@ class ItemComponent {
1672
1674
  }
1673
1675
  }
1674
1676
  ItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemComponent, deps: [{ token: ItemsService }, { token: NavigationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i6.PopupService }, { token: i0.ElementRef }, { token: ContextMenuService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1675
- ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ItemComponent, selector: "[kendoMenuItem]", inputs: { appendTo: "appendTo", 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, {
1677
+ ItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ItemComponent, selector: "[kendoMenuItem]", inputs: { appendTo: "appendTo", 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-label": "this.label", "attr.tabindex": "this.activeId" } }, providers: [PopupService, {
1676
1678
  provide: POPUP_CONTAINER,
1677
1679
  useFactory: bodyFactory
1678
1680
  }], viewQueries: [{ propertyName: "link", first: true, predicate: ["link"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], ngImport: i0, template: `
@@ -1820,9 +1822,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1820
1822
  }], hasPopup: [{
1821
1823
  type: HostBinding,
1822
1824
  args: ['attr.aria-haspopup']
1823
- }], expanded: [{
1824
- type: HostBinding,
1825
- args: ['attr.aria-expanded']
1826
1825
  }], label: [{
1827
1826
  type: HostBinding,
1828
1827
  args: ['attr.aria-label']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-menu",
3
- "version": "16.5.0-develop.1",
3
+ "version": "16.5.0-develop.3",
4
4
  "description": "Kendo UI Angular Menu component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -23,15 +23,15 @@
23
23
  "@angular/core": "15 - 18",
24
24
  "@angular/platform-browser": "15 - 18",
25
25
  "@progress/kendo-licensing": "^1.0.2",
26
- "@progress/kendo-angular-common": "16.5.0-develop.1",
27
- "@progress/kendo-angular-l10n": "16.5.0-develop.1",
28
- "@progress/kendo-angular-icons": "16.5.0-develop.1",
29
- "@progress/kendo-angular-popup": "16.5.0-develop.1",
26
+ "@progress/kendo-angular-common": "16.5.0-develop.3",
27
+ "@progress/kendo-angular-l10n": "16.5.0-develop.3",
28
+ "@progress/kendo-angular-icons": "16.5.0-develop.3",
29
+ "@progress/kendo-angular-popup": "16.5.0-develop.3",
30
30
  "rxjs": "^6.5.3 || ^7.0.0"
31
31
  },
32
32
  "dependencies": {
33
33
  "tslib": "^2.3.1",
34
- "@progress/kendo-angular-schematics": "16.5.0-develop.1"
34
+ "@progress/kendo-angular-schematics": "16.5.0-develop.3"
35
35
  },
36
36
  "schematics": "./schematics/collection.json",
37
37
  "module": "fesm2015/progress-kendo-angular-menu.mjs",
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2024 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 { ElementRef, NgZone, OnDestroy, OnInit, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
5
+ import { AfterViewInit, ElementRef, NgZone, OnDestroy, OnInit, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
6
6
  import { ChangeDetectorRef } from '@angular/core';
7
7
  import { PopupService } from '@progress/kendo-angular-popup';
8
8
  import { ContextMenuService } from '../context-menu/context-menu.service';
@@ -51,7 +51,7 @@ export declare class ListComponent implements OnInit, OnDestroy {
51
51
  /**
52
52
  * @hidden
53
53
  */
54
- export declare class ItemComponent {
54
+ export declare class ItemComponent implements OnInit, AfterViewInit, OnDestroy {
55
55
  private itemsService;
56
56
  private navigation;
57
57
  private changeDetector;
@@ -76,7 +76,6 @@ export declare class ItemComponent {
76
76
  popupTemplate: TemplateRef<any>;
77
77
  get disabled(): boolean;
78
78
  get hasPopup(): boolean;
79
- get expanded(): boolean;
80
79
  get label(): boolean;
81
80
  get activeId(): string;
82
81
  get popupSettings(): any;
@@ -108,6 +107,7 @@ export declare class ItemComponent {
108
107
  constructor(itemsService: ItemsService, navigation: NavigationService, changeDetector: ChangeDetectorRef, renderer: Renderer2, popupService: PopupService, element: ElementRef, contextService?: ContextMenuService);
109
108
  hasContentTemplates(): boolean;
110
109
  ngOnInit(): void;
110
+ ngAfterViewInit(): void;
111
111
  ngOnDestroy(): void;
112
112
  focus(): void;
113
113
  blur(): void;