@material/radio
Advanced tools
Comparing version 15.0.0-canary.c5018840c.0 to 15.0.0-canary.c51a0bbcc.0
@@ -6,4 +6,7 @@ # Change Log | ||
# [15.0.0-canary.c5018840c.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.c5018840c.0) (2022-07-18) | ||
# [15.0.0-canary.c51a0bbcc.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.c51a0bbcc.0) (2023-11-15) | ||
**Note:** Version bump only for package @material/radio | ||
### Bug Fixes | ||
* **radio:** Attribute `hidden` now correctly hides the radio button. ([cf9f123](https://github.com/material-components/material-components-web/commit/cf9f12371c251063b3ed1553c439a23f69899377)) |
@@ -27,4 +27,5 @@ /** | ||
import { MDCRadioFoundation } from './foundation'; | ||
/** MDC Radio */ | ||
export declare class MDCRadio extends MDCComponent<MDCRadioFoundation> implements MDCRippleCapableSurface { | ||
static attachTo(root: Element): MDCRadio; | ||
static attachTo(root: HTMLElement): MDCRadio; | ||
get checked(): boolean; | ||
@@ -31,0 +32,0 @@ set checked(checked: boolean); |
@@ -29,2 +29,3 @@ /** | ||
import { MDCRadioFoundation } from './foundation'; | ||
/** MDC Radio */ | ||
var MDCRadio = /** @class */ (function (_super) { | ||
@@ -83,7 +84,12 @@ __extends(MDCRadio, _super); | ||
var _this = this; | ||
// DO NOT INLINE this variable. For backward compatibility, foundations take a Partial<MDCFooAdapter>. | ||
// To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable. | ||
// DO NOT INLINE this variable. For backward compatibility, foundations take | ||
// a Partial<MDCFooAdapter>. To ensure we don't accidentally omit any | ||
// methods, we need a separate, strongly typed adapter variable. | ||
var adapter = { | ||
addClass: function (className) { return _this.root.classList.add(className); }, | ||
removeClass: function (className) { return _this.root.classList.remove(className); }, | ||
addClass: function (className) { | ||
_this.root.classList.add(className); | ||
}, | ||
removeClass: function (className) { | ||
_this.root.classList.remove(className); | ||
}, | ||
setNativeControlDisabled: function (disabled) { return _this.nativeControl.disabled = | ||
@@ -96,9 +102,10 @@ disabled; }, | ||
var _this = this; | ||
// DO NOT INLINE this variable. For backward compatibility, foundations take a Partial<MDCFooAdapter>. | ||
// To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable. | ||
// DO NOT INLINE this variable. For backward compatibility, foundations take | ||
// a Partial<MDCFooAdapter>. To ensure we don't accidentally omit any | ||
// methods, we need a separate, strongly typed adapter variable. | ||
// tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface. | ||
var adapter = __assign(__assign({}, MDCRipple.createAdapter(this)), { registerInteractionHandler: function (evtType, handler) { | ||
_this.nativeControl.addEventListener(evtType, handler, applyPassive()); | ||
}, deregisterInteractionHandler: function (evtType, handler) { | ||
_this.nativeControl.removeEventListener(evtType, handler, applyPassive()); | ||
var adapter = __assign(__assign({}, MDCRipple.createAdapter(this)), { registerInteractionHandler: function (eventType, handler) { | ||
_this.nativeControl.addEventListener(eventType, handler, applyPassive()); | ||
}, deregisterInteractionHandler: function (eventType, handler) { | ||
_this.nativeControl.removeEventListener(eventType, handler, applyPassive()); | ||
}, | ||
@@ -105,0 +112,0 @@ // Radio buttons technically go "active" whenever there is *any* keyboard |
@@ -25,2 +25,3 @@ /** | ||
import { MDCRadioAdapter } from './adapter'; | ||
/** MDC Radio Foundation */ | ||
export declare class MDCRadioFoundation extends MDCFoundation<MDCRadioAdapter> { | ||
@@ -27,0 +28,0 @@ static get cssClasses(): { |
@@ -26,2 +26,3 @@ /** | ||
import { cssClasses, strings } from './constants'; | ||
/** MDC Radio Foundation */ | ||
var MDCRadioFoundation = /** @class */ (function (_super) { | ||
@@ -28,0 +29,0 @@ __extends(MDCRadioFoundation, _super); |
{ | ||
"name": "@material/radio", | ||
"description": "The Material Components for the web radio component", | ||
"version": "15.0.0-canary.c5018840c.0", | ||
"version": "15.0.0-canary.c51a0bbcc.0", | ||
"license": "MIT", | ||
@@ -20,14 +20,14 @@ "keywords": [ | ||
"dependencies": { | ||
"@material/animation": "15.0.0-canary.c5018840c.0", | ||
"@material/base": "15.0.0-canary.c5018840c.0", | ||
"@material/density": "15.0.0-canary.c5018840c.0", | ||
"@material/dom": "15.0.0-canary.c5018840c.0", | ||
"@material/feature-targeting": "15.0.0-canary.c5018840c.0", | ||
"@material/focus-ring": "15.0.0-canary.c5018840c.0", | ||
"@material/ripple": "15.0.0-canary.c5018840c.0", | ||
"@material/theme": "15.0.0-canary.c5018840c.0", | ||
"@material/touch-target": "15.0.0-canary.c5018840c.0", | ||
"@material/animation": "15.0.0-canary.c51a0bbcc.0", | ||
"@material/base": "15.0.0-canary.c51a0bbcc.0", | ||
"@material/density": "15.0.0-canary.c51a0bbcc.0", | ||
"@material/dom": "15.0.0-canary.c51a0bbcc.0", | ||
"@material/feature-targeting": "15.0.0-canary.c51a0bbcc.0", | ||
"@material/focus-ring": "15.0.0-canary.c51a0bbcc.0", | ||
"@material/ripple": "15.0.0-canary.c51a0bbcc.0", | ||
"@material/theme": "15.0.0-canary.c51a0bbcc.0", | ||
"@material/touch-target": "15.0.0-canary.c51a0bbcc.0", | ||
"tslib": "^2.1.0" | ||
}, | ||
"gitHead": "c86de383c50b7d72b8c5cf908c5fdf3e6efa94c4" | ||
"gitHead": "e65c7fe6dcc6d6069f00d4d2f8c55e61710d046b" | ||
} |
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 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
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
913403
6162
+ Added@material/animation@15.0.0-canary.c51a0bbcc.0(transitive)
+ Added@material/base@15.0.0-canary.c51a0bbcc.0(transitive)
+ Added@material/density@15.0.0-canary.c51a0bbcc.0(transitive)
+ Added@material/dom@15.0.0-canary.c51a0bbcc.0(transitive)
+ Added@material/feature-targeting@15.0.0-canary.c51a0bbcc.0(transitive)
+ Added@material/focus-ring@15.0.0-canary.c51a0bbcc.0(transitive)
+ Added@material/ripple@15.0.0-canary.c51a0bbcc.0(transitive)
+ Added@material/rtl@15.0.0-canary.c51a0bbcc.0(transitive)
+ Added@material/theme@15.0.0-canary.c51a0bbcc.0(transitive)
+ Added@material/touch-target@15.0.0-canary.c51a0bbcc.0(transitive)
- Removed@material/animation@15.0.0-canary.c5018840c.0(transitive)
- Removed@material/base@15.0.0-canary.c5018840c.0(transitive)
- Removed@material/density@15.0.0-canary.c5018840c.0(transitive)
- Removed@material/dom@15.0.0-canary.c5018840c.0(transitive)
- Removed@material/feature-targeting@15.0.0-canary.c5018840c.0(transitive)
- Removed@material/focus-ring@15.0.0-canary.c5018840c.0(transitive)
- Removed@material/ripple@15.0.0-canary.c5018840c.0(transitive)
- Removed@material/rtl@15.0.0-canary.c5018840c.0(transitive)
- Removed@material/theme@15.0.0-canary.c5018840c.0(transitive)
- Removed@material/touch-target@15.0.0-canary.c5018840c.0(transitive)
Updated@material/feature-targeting@15.0.0-canary.c51a0bbcc.0