@progress/kendo-angular-menu 24.0.0-develop.2 → 24.0.0-develop.20

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.
@@ -22,8 +22,8 @@ const packageMetadata = {
22
22
  productName: 'Kendo UI for Angular',
23
23
  productCode: 'KENDOUIANGULAR',
24
24
  productCodes: ['KENDOUIANGULAR'],
25
- publishDate: 1776936102,
26
- version: '24.0.0-develop.2',
25
+ publishDate: 1778149410,
26
+ version: '24.0.0-develop.20',
27
27
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
28
28
  };
29
29
 
@@ -1154,7 +1154,7 @@ const getSizeClass = (size) => {
1154
1154
  'medium': 'k-menu-group-md',
1155
1155
  'large': 'k-menu-group-lg'
1156
1156
  };
1157
- return SIZE_CLASSES[size];
1157
+ return SIZE_CLASSES[size] || '';
1158
1158
  };
1159
1159
  /**
1160
1160
  * @hidden
@@ -1652,10 +1652,7 @@ class ItemComponent {
1652
1652
  return this.item.disabled;
1653
1653
  }
1654
1654
  get hasPopup() {
1655
- return this.hasContent ? true : null;
1656
- }
1657
- get label() {
1658
- return this.item.text ? this.item.text : null;
1655
+ return this.hasContent ? 'menu' : null;
1659
1656
  }
1660
1657
  get defaultPopupSettings() {
1661
1658
  const settings = this.rtl ? POPUP_SETTINGS_RTL : POPUP_SETTINGS;
@@ -1685,7 +1682,7 @@ class ItemComponent {
1685
1682
  }
1686
1683
  get menuListClasses() {
1687
1684
  const sizeClass = getSizeClass(this.size);
1688
- return this.isContextMenu ? `k-context-menu k-menu-group ${sizeClass}` : `k-menu-group ${sizeClass}`;
1685
+ return `k-menu-group ${sizeClass}`;
1689
1686
  }
1690
1687
  get children() {
1691
1688
  const item = this.item;
@@ -1835,20 +1832,20 @@ class ItemComponent {
1835
1832
  };
1836
1833
  }
1837
1834
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ItemComponent, deps: [{ token: ItemsService }, { token: NavigationService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i5.PopupService }, { token: i0.ElementRef }, { token: ContextMenuService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1838
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ItemComponent, isStandalone: true, 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", popupSettings: "popupSettings", trackBy: "trackBy" }, host: { properties: { "attr.aria-disabled": "this.disabled", "attr.aria-haspopup": "this.hasPopup", "attr.aria-label": "this.label" } }, providers: [PopupService, {
1835
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ItemComponent, isStandalone: true, 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", popupSettings: "popupSettings", trackBy: "trackBy" }, host: { properties: { "attr.aria-disabled": "this.disabled", "attr.aria-haspopup": "this.hasPopup" } }, providers: [PopupService, {
1839
1836
  provide: POPUP_CONTAINER,
1840
1837
  useFactory: bodyFactory
1841
1838
  }], viewQueries: [{ propertyName: "link", first: true, predicate: ["link"], descendants: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
1842
1839
  @if (!hasLink && !item.content && !linkTemplate) {
1843
1840
  <span class="k-link k-menu-link" #link
1844
- [class.k-active]="opened" role="presentation">
1841
+ [class.k-active]="opened" [class.k-disabled]="item.disabled && (level > 0 || isContextMenu)" role="presentation">
1845
1842
  <ng-template [ngTemplateOutlet]="itemcontent">
1846
1843
  </ng-template>
1847
1844
  </span>
1848
1845
  }
1849
1846
  @if (item.url && !linkTemplate) {
1850
1847
  <a class="k-link k-menu-link" #link [attr.href]="item.url"
1851
- [class.k-active]="opened" tabindex="-1" role="presentation">
1848
+ [class.k-active]="opened" [class.k-disabled]="item.disabled && (level > 0 || isContextMenu)" tabindex="-1" role="presentation">
1852
1849
  <ng-template [ngTemplateOutlet]="itemcontent">
1853
1850
  </ng-template>
1854
1851
  </a>
@@ -1915,14 +1912,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
1915
1912
  template: `
1916
1913
  @if (!hasLink && !item.content && !linkTemplate) {
1917
1914
  <span class="k-link k-menu-link" #link
1918
- [class.k-active]="opened" role="presentation">
1915
+ [class.k-active]="opened" [class.k-disabled]="item.disabled && (level > 0 || isContextMenu)" role="presentation">
1919
1916
  <ng-template [ngTemplateOutlet]="itemcontent">
1920
1917
  </ng-template>
1921
1918
  </span>
1922
1919
  }
1923
1920
  @if (item.url && !linkTemplate) {
1924
1921
  <a class="k-link k-menu-link" #link [attr.href]="item.url"
1925
- [class.k-active]="opened" tabindex="-1" role="presentation">
1922
+ [class.k-active]="opened" [class.k-disabled]="item.disabled && (level > 0 || isContextMenu)" tabindex="-1" role="presentation">
1926
1923
  <ng-template [ngTemplateOutlet]="itemcontent">
1927
1924
  </ng-template>
1928
1925
  </a>
@@ -2022,9 +2019,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
2022
2019
  }], hasPopup: [{
2023
2020
  type: HostBinding,
2024
2021
  args: ['attr.aria-haspopup']
2025
- }], label: [{
2026
- type: HostBinding,
2027
- args: ['attr.aria-label']
2028
2022
  }] } });
2029
2023
 
2030
2024
  /**
@@ -2089,8 +2083,9 @@ class MenuComponent extends MenuBase {
2089
2083
  */
2090
2084
  get ariaOrientation() {
2091
2085
  if (this.vertical) {
2092
- return 'vertical';
2086
+ return this.ariaRole === 'menubar' ? 'vertical' : null;
2093
2087
  }
2088
+ return this.ariaRole === 'menu' ? 'horizontal' : null;
2094
2089
  }
2095
2090
  /**
2096
2091
  * @hidden
@@ -2111,7 +2106,10 @@ class MenuComponent extends MenuBase {
2111
2106
  const sizeClass = getSizeClass(this.size);
2112
2107
  const staticClasses = 'k-reset k-header k-menu';
2113
2108
  if (this.isContextMenu) {
2114
- return `k-context-menu k-menu-group ${sizeClass || ''}`;
2109
+ const contextMenuClasses = this.vertical
2110
+ ? 'k-context-menu k-menu-group'
2111
+ : `${staticClasses} k-context-menu k-menu-horizontal`;
2112
+ return `${contextMenuClasses} ${sizeClass || ''}`;
2115
2113
  }
2116
2114
  return `${staticClasses} k-menu-${this.vertical ? 'vertical' : 'horizontal'}`;
2117
2115
  }
@@ -73,7 +73,7 @@ export declare class MenuComponent extends MenuBase implements OnChanges, AfterV
73
73
  /**
74
74
  * @hidden
75
75
  */
76
- get ariaOrientation(): string;
76
+ get ariaOrientation(): string | null;
77
77
  /**
78
78
  * @hidden
79
79
  */
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1776936102,
11
- "version": "24.0.0-develop.2",
10
+ "publishDate": 1778149410,
11
+ "version": "24.0.0-develop.20",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-menu",
3
- "version": "24.0.0-develop.2",
3
+ "version": "24.0.0-develop.20",
4
4
  "description": "Kendo UI Angular Menu component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -19,7 +19,7 @@
19
19
  "package": {
20
20
  "productName": "Kendo UI for Angular",
21
21
  "productCode": "KENDOUIANGULAR",
22
- "publishDate": 1776936102,
22
+ "publishDate": 1778149410,
23
23
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
24
24
  }
25
25
  },
@@ -29,15 +29,15 @@
29
29
  "@angular/core": "19 - 21",
30
30
  "@angular/platform-browser": "19 - 21",
31
31
  "@progress/kendo-licensing": "^1.11.0",
32
- "@progress/kendo-angular-common": "24.0.0-develop.2",
33
- "@progress/kendo-angular-l10n": "24.0.0-develop.2",
34
- "@progress/kendo-angular-icons": "24.0.0-develop.2",
35
- "@progress/kendo-angular-popup": "24.0.0-develop.2",
32
+ "@progress/kendo-angular-common": "24.0.0-develop.20",
33
+ "@progress/kendo-angular-l10n": "24.0.0-develop.20",
34
+ "@progress/kendo-angular-icons": "24.0.0-develop.20",
35
+ "@progress/kendo-angular-popup": "24.0.0-develop.20",
36
36
  "rxjs": "^6.5.3 || ^7.0.0"
37
37
  },
38
38
  "dependencies": {
39
39
  "tslib": "^2.3.1",
40
- "@progress/kendo-angular-schematics": "24.0.0-develop.2"
40
+ "@progress/kendo-angular-schematics": "24.0.0-develop.20"
41
41
  },
42
42
  "schematics": "./schematics/collection.json",
43
43
  "module": "fesm2022/progress-kendo-angular-menu.mjs",
@@ -81,8 +81,7 @@ export declare class ItemComponent implements OnInit, OnChanges, AfterViewInit,
81
81
  link: ElementRef;
82
82
  popupTemplate: TemplateRef<any>;
83
83
  get disabled(): boolean;
84
- get hasPopup(): boolean;
85
- get label(): boolean;
84
+ get hasPopup(): string;
86
85
  get defaultPopupSettings(): any;
87
86
  get horizontal(): boolean;
88
87
  get hasLink(): boolean;