@material/segmented-button
Advanced tools
Comparing version 15.0.0-canary.cfd69490f.0 to 15.0.0-canary.cfec83c74.0
@@ -6,4 +6,4 @@ # Change Log | ||
# [15.0.0-canary.cfd69490f.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.cfd69490f.0) (2022-12-16) | ||
# [15.0.0-canary.cfec83c74.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.cfec83c74.0) (2024-05-20) | ||
**Note:** Version bump only for package @material/segmented-button |
{ | ||
"name": "@material/segmented-button", | ||
"version": "15.0.0-canary.cfd69490f.0", | ||
"version": "15.0.0-canary.cfec83c74.0", | ||
"description": "The Material Components for the web segmented button component", | ||
@@ -20,12 +20,12 @@ "license": "MIT", | ||
"dependencies": { | ||
"@material/base": "15.0.0-canary.cfd69490f.0", | ||
"@material/elevation": "15.0.0-canary.cfd69490f.0", | ||
"@material/feature-targeting": "15.0.0-canary.cfd69490f.0", | ||
"@material/ripple": "15.0.0-canary.cfd69490f.0", | ||
"@material/theme": "15.0.0-canary.cfd69490f.0", | ||
"@material/touch-target": "15.0.0-canary.cfd69490f.0", | ||
"@material/typography": "15.0.0-canary.cfd69490f.0", | ||
"@material/base": "15.0.0-canary.cfec83c74.0", | ||
"@material/elevation": "15.0.0-canary.cfec83c74.0", | ||
"@material/feature-targeting": "15.0.0-canary.cfec83c74.0", | ||
"@material/ripple": "15.0.0-canary.cfec83c74.0", | ||
"@material/theme": "15.0.0-canary.cfec83c74.0", | ||
"@material/touch-target": "15.0.0-canary.cfec83c74.0", | ||
"@material/typography": "15.0.0-canary.cfec83c74.0", | ||
"tslib": "^2.1.0" | ||
}, | ||
"gitHead": "a7b9218e1ea7572b08b54629159e6f3a98970096" | ||
"gitHead": "0ec8b129344ebbe45f00b6ad892b682b054ea892" | ||
} |
@@ -30,3 +30,3 @@ /** | ||
*/ | ||
export declare type MDCSegmentedButtonSegmentFactory = (el: Element, foundation?: MDCSegmentedButtonSegmentFoundation) => MDCSegmentedButtonSegment; | ||
export declare type MDCSegmentedButtonSegmentFactory = (el: HTMLElement, foundation?: MDCSegmentedButtonSegmentFoundation) => MDCSegmentedButtonSegment; | ||
/** | ||
@@ -37,3 +37,3 @@ * Implementation of MDCSegmentedButtonSegmentFoundation | ||
get ripple(): MDCRipple; | ||
static attachTo(root: Element): MDCSegmentedButtonSegment; | ||
static attachTo(root: HTMLElement): MDCSegmentedButtonSegment; | ||
private index; | ||
@@ -40,0 +40,0 @@ private isSingleSelect; |
@@ -82,3 +82,3 @@ /** | ||
setAttr: function (attrName, value) { | ||
_this.root.setAttribute(attrName, value); | ||
_this.safeSetAttribute(_this.root, attrName, value); | ||
}, | ||
@@ -95,7 +95,3 @@ addClass: function (className) { | ||
notifySelectedChange: function (selected) { | ||
_this.emit(events.SELECTED, { | ||
index: _this.index, | ||
selected: selected, | ||
segmentId: _this.getSegmentId() | ||
}, true /* shouldBubble */); | ||
_this.emit(events.SELECTED, { index: _this.index, selected: selected, segmentId: _this.getSegmentId() }, true /* shouldBubble */); | ||
}, | ||
@@ -102,0 +98,0 @@ getRootBoundingClientRect: function () { |
@@ -25,2 +25,3 @@ /** | ||
import { MDCSegmentedButtonSegmentAdapter } from './adapter'; | ||
/** MDC Segmented Button Segment Foundation */ | ||
export declare class MDCSegmentedButtonSegmentFoundation extends MDCFoundation<MDCSegmentedButtonSegmentAdapter> { | ||
@@ -27,0 +28,0 @@ static get defaultAdapter(): MDCSegmentedButtonSegmentAdapter; |
@@ -34,2 +34,3 @@ /** | ||
}; | ||
/** MDC Segmented Button Segment Foundation */ | ||
var MDCSegmentedButtonSegmentFoundation = /** @class */ (function (_super) { | ||
@@ -36,0 +37,0 @@ __extends(MDCSegmentedButtonSegmentFoundation, _super); |
@@ -27,5 +27,6 @@ /** | ||
import { MDCSegmentedButtonFoundation } from './foundation'; | ||
/** MDC Segmented Button */ | ||
export declare class MDCSegmentedButton extends MDCComponent<MDCSegmentedButtonFoundation> { | ||
static attachTo(root: Element): MDCSegmentedButton; | ||
get segments(): ReadonlyArray<MDCSegmentedButtonSegment>; | ||
static attachTo(root: HTMLElement): MDCSegmentedButton; | ||
get segments(): readonly MDCSegmentedButtonSegment[]; | ||
private segmentsList; | ||
@@ -32,0 +33,0 @@ private segmentFactory; |
@@ -28,2 +28,3 @@ /** | ||
import { MDCSegmentedButtonFoundation } from './foundation'; | ||
/** MDC Segmented Button */ | ||
var MDCSegmentedButton = /** @class */ (function (_super) { | ||
@@ -57,3 +58,3 @@ __extends(MDCSegmentedButton, _super); | ||
MDCSegmentedButton.prototype.instantiateSegments = function (segmentFactory) { | ||
var segmentElements = [].slice.call(this.root.querySelectorAll(selectors.SEGMENT)); | ||
var segmentElements = Array.from(this.root.querySelectorAll(selectors.SEGMENT)); | ||
return segmentElements.map(function (el) { return segmentFactory(el); }); | ||
@@ -60,0 +61,0 @@ }; |
@@ -26,2 +26,3 @@ /** | ||
import { MDCSegmentedButtonAdapter } from './adapter'; | ||
/** MDC Segmented Button Foundation */ | ||
export declare class MDCSegmentedButtonFoundation extends MDCFoundation<MDCSegmentedButtonAdapter> { | ||
@@ -28,0 +29,0 @@ static get defaultAdapter(): MDCSegmentedButtonAdapter; |
@@ -26,2 +26,3 @@ /** | ||
import { cssClasses } from './constants'; | ||
/** MDC Segmented Button Foundation */ | ||
var MDCSegmentedButtonFoundation = /** @class */ (function (_super) { | ||
@@ -35,3 +36,4 @@ __extends(MDCSegmentedButtonFoundation, _super); | ||
return { | ||
hasClass: function () { return false; }, getSegments: function () { return []; }, | ||
hasClass: function () { return false; }, | ||
getSegments: function () { return []; }, | ||
selectSegment: function () { return undefined; }, | ||
@@ -38,0 +40,0 @@ unselectSegment: function () { return undefined; }, |
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 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 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
920400
7675
+ Added@material/animation@15.0.0-canary.cfec83c74.0(transitive)
+ Added@material/base@15.0.0-canary.cfec83c74.0(transitive)
+ Added@material/dom@15.0.0-canary.cfec83c74.0(transitive)
+ Added@material/elevation@15.0.0-canary.cfec83c74.0(transitive)
+ Added@material/feature-targeting@15.0.0-canary.cfec83c74.0(transitive)
+ Added@material/ripple@15.0.0-canary.cfec83c74.0(transitive)
+ Added@material/rtl@15.0.0-canary.cfec83c74.0(transitive)
+ Added@material/theme@15.0.0-canary.cfec83c74.0(transitive)
+ Added@material/touch-target@15.0.0-canary.cfec83c74.0(transitive)
+ Added@material/typography@15.0.0-canary.cfec83c74.0(transitive)
- Removed@material/animation@15.0.0-canary.cfd69490f.0(transitive)
- Removed@material/base@15.0.0-canary.cfd69490f.0(transitive)
- Removed@material/dom@15.0.0-canary.cfd69490f.0(transitive)
- Removed@material/elevation@15.0.0-canary.cfd69490f.0(transitive)
- Removed@material/feature-targeting@15.0.0-canary.cfd69490f.0(transitive)
- Removed@material/ripple@15.0.0-canary.cfd69490f.0(transitive)
- Removed@material/rtl@15.0.0-canary.cfd69490f.0(transitive)
- Removed@material/theme@15.0.0-canary.cfd69490f.0(transitive)
- Removed@material/touch-target@15.0.0-canary.cfd69490f.0(transitive)
- Removed@material/typography@15.0.0-canary.cfd69490f.0(transitive)
Updated@material/feature-targeting@15.0.0-canary.cfec83c74.0