@material/menu-surface
Advanced tools
Comparing version 15.0.0-canary.d0788120f.0 to 15.0.0-canary.d153db62b.0
@@ -65,5 +65,5 @@ /** | ||
/** Registers an event listener on the window. */ | ||
registerWindowEventHandler<K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void; | ||
registerWindowEventHandler<K extends EventType>(eventType: K, handler: SpecificEventListener<K>): void; | ||
/** Deregisters an event listener on the window. */ | ||
deregisterWindowEventHandler<K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void; | ||
deregisterWindowEventHandler<K extends EventType>(eventType: K, handler: SpecificEventListener<K>): void; | ||
} |
@@ -6,3 +6,3 @@ # 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) | ||
@@ -9,0 +9,0 @@ |
@@ -201,7 +201,7 @@ /** | ||
}, | ||
registerWindowEventHandler: function (evtType, handler) { | ||
window.addEventListener(evtType, handler); | ||
registerWindowEventHandler: function (eventType, handler) { | ||
window.addEventListener(eventType, handler); | ||
}, | ||
deregisterWindowEventHandler: function (evtType, handler) { | ||
window.removeEventListener(evtType, handler); | ||
deregisterWindowEventHandler: function (eventType, handler) { | ||
window.removeEventListener(eventType, handler); | ||
}, | ||
@@ -208,0 +208,0 @@ }; |
@@ -142,5 +142,5 @@ /** | ||
/** Handle clicks and close if not within menu-surface element. */ | ||
handleBodyClick(evt: MouseEvent): void; | ||
handleBodyClick(event: MouseEvent): void; | ||
/** Handle keys that close the surface. */ | ||
handleKeydown(evt: KeyboardEvent): void; | ||
handleKeydown(event: KeyboardEvent): void; | ||
/** Handles resize events on the window. */ | ||
@@ -147,0 +147,0 @@ private handleResize; |
@@ -283,4 +283,4 @@ /** | ||
/** Handle clicks and close if not within menu-surface element. */ | ||
MDCMenuSurfaceFoundation.prototype.handleBodyClick = function (evt) { | ||
var el = evt.target; | ||
MDCMenuSurfaceFoundation.prototype.handleBodyClick = function (event) { | ||
var el = event.target; | ||
if (this.adapter.isElementInContainer(el)) { | ||
@@ -292,4 +292,4 @@ return; | ||
/** Handle keys that close the surface. */ | ||
MDCMenuSurfaceFoundation.prototype.handleKeydown = function (evt) { | ||
var keyCode = evt.keyCode, key = evt.key; | ||
MDCMenuSurfaceFoundation.prototype.handleKeydown = function (event) { | ||
var keyCode = event.keyCode, key = event.key; | ||
var isEscape = key === 'Escape' || keyCode === 27; | ||
@@ -296,0 +296,0 @@ if (isEscape) { |
{ | ||
"name": "@material/menu-surface", | ||
"version": "15.0.0-canary.d0788120f.0", | ||
"version": "15.0.0-canary.d153db62b.0", | ||
"description": "The Material Components for the web menu surface component", | ||
@@ -20,9 +20,9 @@ "license": "MIT", | ||
"dependencies": { | ||
"@material/animation": "15.0.0-canary.d0788120f.0", | ||
"@material/base": "15.0.0-canary.d0788120f.0", | ||
"@material/elevation": "15.0.0-canary.d0788120f.0", | ||
"@material/feature-targeting": "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/animation": "15.0.0-canary.d153db62b.0", | ||
"@material/base": "15.0.0-canary.d153db62b.0", | ||
"@material/elevation": "15.0.0-canary.d153db62b.0", | ||
"@material/feature-targeting": "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", | ||
"tslib": "^2.1.0" | ||
@@ -33,3 +33,3 @@ }, | ||
}, | ||
"gitHead": "7eccbee262206623b89c40dadb4e11abe30d5e45" | ||
"gitHead": "4ca05c144c691cd06cd5926fe0bc54818e462202" | ||
} |
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
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
684070
+ Added@material/animation@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/base@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/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)
- Removed@material/animation@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/base@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/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)
Updated@material/feature-targeting@15.0.0-canary.d153db62b.0