@material/menu
Advanced tools
Comparing version 15.0.0-canary.d0788120f.0 to 15.0.0-canary.d153db62b.0
@@ -69,3 +69,3 @@ /** | ||
*/ | ||
notifySelected(evtData: MDCMenuItemEventDetail): void; | ||
notifySelected(eventData: MDCMenuItemEventDetail): void; | ||
/** @return Returns the menu item count. */ | ||
@@ -72,0 +72,0 @@ getMenuItemCount(): number; |
@@ -6,5 +6,12 @@ # Change Log | ||
# [15.0.0-canary.d0788120f.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.d0788120f.0) (2023-05-09) | ||
# [15.0.0-canary.d153db62b.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.d153db62b.0) (2023-09-19) | ||
### Bug Fixes | ||
* **menu:** Account for empty map being passed to theme mixin ([0c52ade](https://github.com/material-components/material-components-web/commit/0c52adeab4a46fb942e7ac64a950d094b54716f8)) | ||
* **menu:** do not require all for theme-styles ([1fb4b1a](https://github.com/material-components/material-components-web/commit/1fb4b1a063ecaec1ad0d508b3f5ae5aca3e96652)) | ||
* **menu:** make require-all a theme-styles param. ([c64a277](https://github.com/material-components/material-components-web/commit/c64a2776efe4f0aaaee5c32f5fb9ef3570483213)) | ||
### Features | ||
@@ -11,0 +18,0 @@ |
@@ -59,7 +59,7 @@ /** | ||
} | ||
this.handleKeydown = function (evt) { | ||
_this.foundation.handleKeydown(evt); | ||
this.handleKeydown = function (event) { | ||
_this.foundation.handleKeydown(event); | ||
}; | ||
this.handleItemAction = function (evt) { | ||
_this.foundation.handleItemAction(_this.items[evt.detail.index]); | ||
this.handleItemAction = function (event) { | ||
_this.foundation.handleItemAction(_this.items[event.detail.index]); | ||
}; | ||
@@ -322,6 +322,6 @@ this.handleMenuSurfaceOpened = function () { | ||
getElementIndex: function (element) { return _this.items.indexOf(element); }, | ||
notifySelected: function (evtData) { | ||
notifySelected: function (eventData) { | ||
_this.emit(strings.SELECTED_EVENT, { | ||
index: evtData.index, | ||
item: _this.items[evtData.index], | ||
index: eventData.index, | ||
item: _this.items[eventData.index], | ||
}); | ||
@@ -328,0 +328,0 @@ }, |
@@ -52,3 +52,3 @@ /** | ||
destroy(): void; | ||
handleKeydown(evt: KeyboardEvent): void; | ||
handleKeydown(event: KeyboardEvent): void; | ||
handleItemAction(listItem: HTMLElement): void; | ||
@@ -55,0 +55,0 @@ handleMenuSurfaceOpened(): void; |
@@ -87,4 +87,4 @@ /** | ||
}; | ||
MDCMenuFoundation.prototype.handleKeydown = function (evt) { | ||
var key = evt.key, keyCode = evt.keyCode; | ||
MDCMenuFoundation.prototype.handleKeydown = function (event) { | ||
var key = event.key, keyCode = event.keyCode; | ||
var isTab = key === 'Tab' || keyCode === 9; | ||
@@ -91,0 +91,0 @@ if (isTab) { |
{ | ||
"name": "@material/menu", | ||
"version": "15.0.0-canary.d0788120f.0", | ||
"version": "15.0.0-canary.d153db62b.0", | ||
"description": "The Material Components for the web menu component", | ||
@@ -20,16 +20,16 @@ "license": "MIT", | ||
"dependencies": { | ||
"@material/base": "15.0.0-canary.d0788120f.0", | ||
"@material/dom": "15.0.0-canary.d0788120f.0", | ||
"@material/elevation": "15.0.0-canary.d0788120f.0", | ||
"@material/feature-targeting": "15.0.0-canary.d0788120f.0", | ||
"@material/list": "15.0.0-canary.d0788120f.0", | ||
"@material/menu-surface": "15.0.0-canary.d0788120f.0", | ||
"@material/ripple": "15.0.0-canary.d0788120f.0", | ||
"@material/rtl": "15.0.0-canary.d0788120f.0", | ||
"@material/shape": "15.0.0-canary.d0788120f.0", | ||
"@material/theme": "15.0.0-canary.d0788120f.0", | ||
"@material/tokens": "15.0.0-canary.d0788120f.0", | ||
"@material/base": "15.0.0-canary.d153db62b.0", | ||
"@material/dom": "15.0.0-canary.d153db62b.0", | ||
"@material/elevation": "15.0.0-canary.d153db62b.0", | ||
"@material/feature-targeting": "15.0.0-canary.d153db62b.0", | ||
"@material/list": "15.0.0-canary.d153db62b.0", | ||
"@material/menu-surface": "15.0.0-canary.d153db62b.0", | ||
"@material/ripple": "15.0.0-canary.d153db62b.0", | ||
"@material/rtl": "15.0.0-canary.d153db62b.0", | ||
"@material/shape": "15.0.0-canary.d153db62b.0", | ||
"@material/theme": "15.0.0-canary.d153db62b.0", | ||
"@material/tokens": "15.0.0-canary.d153db62b.0", | ||
"tslib": "^2.1.0" | ||
}, | ||
"gitHead": "7eccbee262206623b89c40dadb4e11abe30d5e45" | ||
"gitHead": "4ca05c144c691cd06cd5926fe0bc54818e462202" | ||
} |
@@ -275,3 +275,3 @@ <!--docs: | ||
--- | --- | ||
`handleKeydown(evt: Event) => void` | Event handler for the `keydown` events within the menu. | ||
`handleKeydown(event: Event) => void` | Event handler for the `keydown` events within the menu. | ||
`handleItemAction(listItem: Element) => void` | Event handler for list's action event. | ||
@@ -278,0 +278,0 @@ `handleMenuSurfaceOpened() => void` | Event handler for menu surface's opened event. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1180626
+ Added@material/animation@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/base@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/density@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/dom@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/elevation@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/feature-targeting@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/list@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/menu-surface@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/ripple@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/rtl@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/shape@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/theme@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/tokens@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/typography@15.0.0-canary.d153db62b.0(transitive)
- Removed@material/animation@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/base@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/density@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/dom@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/elevation@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/feature-targeting@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/list@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/menu-surface@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/ripple@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/rtl@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/shape@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/theme@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/tokens@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/typography@15.0.0-canary.d0788120f.0(transitive)
Updated@material/feature-targeting@15.0.0-canary.d153db62b.0