@material/switch
Advanced tools
Comparing version 15.0.0-canary.446734f27.0 to 15.0.0-canary.453a6248a.0
@@ -6,3 +6,3 @@ # Change Log | ||
# [15.0.0-canary.446734f27.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.446734f27.0) (2023-05-30) | ||
# [15.0.0-canary.453a6248a.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.453a6248a.0) (2024-03-25) | ||
@@ -9,0 +9,0 @@ |
@@ -122,6 +122,6 @@ /** | ||
rippleSurface.classList.add(className); | ||
}, computeBoundingRect: function () { return rippleSurface.getBoundingClientRect(); }, deregisterInteractionHandler: function (evtType, handler) { | ||
_this.nativeControl.removeEventListener(evtType, handler, applyPassive()); | ||
}, isSurfaceActive: function () { return matches(_this.nativeControl, ':active'); }, isUnbounded: function () { return true; }, registerInteractionHandler: function (evtType, handler) { | ||
_this.nativeControl.addEventListener(evtType, handler, applyPassive()); | ||
}, computeBoundingRect: function () { return rippleSurface.getBoundingClientRect(); }, deregisterInteractionHandler: function (eventType, handler) { | ||
_this.nativeControl.removeEventListener(eventType, handler, applyPassive()); | ||
}, isSurfaceActive: function () { return matches(_this.nativeControl, ':active'); }, isUnbounded: function () { return true; }, registerInteractionHandler: function (eventType, handler) { | ||
_this.nativeControl.addEventListener(eventType, handler, applyPassive()); | ||
}, removeClass: function (className) { | ||
@@ -128,0 +128,0 @@ rippleSurface.classList.remove(className); |
@@ -46,3 +46,3 @@ /** | ||
/** Handles the change event for the switch native control. */ | ||
handleChange(evt: Event): void; | ||
handleChange(event: Event): void; | ||
/** Updates the styling of the switch based on its checked state. */ | ||
@@ -49,0 +49,0 @@ private updateCheckedStyling; |
@@ -79,4 +79,4 @@ /** | ||
/** Handles the change event for the switch native control. */ | ||
MDCSwitchFoundation.prototype.handleChange = function (evt) { | ||
var nativeControl = evt.target; | ||
MDCSwitchFoundation.prototype.handleChange = function (event) { | ||
var nativeControl = event.target; | ||
this.updateAriaChecked(nativeControl.checked); | ||
@@ -83,0 +83,0 @@ this.updateCheckedStyling(nativeControl.checked); |
{ | ||
"name": "@material/switch", | ||
"description": "The Material Components for the web switch component", | ||
"version": "15.0.0-canary.446734f27.0", | ||
"version": "15.0.0-canary.453a6248a.0", | ||
"license": "MIT", | ||
@@ -20,14 +20,14 @@ "keywords": [ | ||
"dependencies": { | ||
"@material/animation": "15.0.0-canary.446734f27.0", | ||
"@material/base": "15.0.0-canary.446734f27.0", | ||
"@material/density": "15.0.0-canary.446734f27.0", | ||
"@material/dom": "15.0.0-canary.446734f27.0", | ||
"@material/elevation": "15.0.0-canary.446734f27.0", | ||
"@material/feature-targeting": "15.0.0-canary.446734f27.0", | ||
"@material/focus-ring": "15.0.0-canary.446734f27.0", | ||
"@material/ripple": "15.0.0-canary.446734f27.0", | ||
"@material/rtl": "15.0.0-canary.446734f27.0", | ||
"@material/shape": "15.0.0-canary.446734f27.0", | ||
"@material/theme": "15.0.0-canary.446734f27.0", | ||
"@material/tokens": "15.0.0-canary.446734f27.0", | ||
"@material/animation": "15.0.0-canary.453a6248a.0", | ||
"@material/base": "15.0.0-canary.453a6248a.0", | ||
"@material/density": "15.0.0-canary.453a6248a.0", | ||
"@material/dom": "15.0.0-canary.453a6248a.0", | ||
"@material/elevation": "15.0.0-canary.453a6248a.0", | ||
"@material/feature-targeting": "15.0.0-canary.453a6248a.0", | ||
"@material/focus-ring": "15.0.0-canary.453a6248a.0", | ||
"@material/ripple": "15.0.0-canary.453a6248a.0", | ||
"@material/rtl": "15.0.0-canary.453a6248a.0", | ||
"@material/shape": "15.0.0-canary.453a6248a.0", | ||
"@material/theme": "15.0.0-canary.453a6248a.0", | ||
"@material/tokens": "15.0.0-canary.453a6248a.0", | ||
"safevalues": "^0.3.4", | ||
@@ -39,3 +39,3 @@ "tslib": "^2.1.0" | ||
}, | ||
"gitHead": "a2536a849aada5f06aa85deaa7be06f44f620023" | ||
"gitHead": "1eea6443d63f2bc64fe8f6f86664b54266c41244" | ||
} |
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 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
1079061
8395
+ Added@material/animation@15.0.0-canary.453a6248a.0(transitive)
+ Added@material/base@15.0.0-canary.453a6248a.0(transitive)
+ Added@material/density@15.0.0-canary.453a6248a.0(transitive)
+ Added@material/dom@15.0.0-canary.453a6248a.0(transitive)
+ Added@material/elevation@15.0.0-canary.453a6248a.0(transitive)
+ Added@material/feature-targeting@15.0.0-canary.453a6248a.0(transitive)
+ Added@material/focus-ring@15.0.0-canary.453a6248a.0(transitive)
+ Added@material/ripple@15.0.0-canary.453a6248a.0(transitive)
+ Added@material/rtl@15.0.0-canary.453a6248a.0(transitive)
+ Added@material/shape@15.0.0-canary.453a6248a.0(transitive)
+ Added@material/theme@15.0.0-canary.453a6248a.0(transitive)
+ Added@material/tokens@15.0.0-canary.453a6248a.0(transitive)
- Removed@material/animation@15.0.0-canary.446734f27.0(transitive)
- Removed@material/base@15.0.0-canary.446734f27.0(transitive)
- Removed@material/density@15.0.0-canary.446734f27.0(transitive)
- Removed@material/dom@15.0.0-canary.446734f27.0(transitive)
- Removed@material/elevation@15.0.0-canary.446734f27.0(transitive)
- Removed@material/feature-targeting@15.0.0-canary.446734f27.0(transitive)
- Removed@material/focus-ring@15.0.0-canary.446734f27.0(transitive)
- Removed@material/ripple@15.0.0-canary.446734f27.0(transitive)
- Removed@material/rtl@15.0.0-canary.446734f27.0(transitive)
- Removed@material/shape@15.0.0-canary.446734f27.0(transitive)
- Removed@material/theme@15.0.0-canary.446734f27.0(transitive)
- Removed@material/tokens@15.0.0-canary.446734f27.0(transitive)
Updated@material/feature-targeting@15.0.0-canary.453a6248a.0