@material/segmented-button
Advanced tools
Comparing version 15.0.0-canary.eb103d4b5.0 to 15.0.0-canary.ebb636f3d.0
@@ -6,4 +6,4 @@ # Change Log | ||
# [15.0.0-canary.eb103d4b5.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.eb103d4b5.0) (2022-10-31) | ||
# [15.0.0-canary.ebb636f3d.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.ebb636f3d.0) (2023-09-29) | ||
**Note:** Version bump only for package @material/segmented-button |
{ | ||
"name": "@material/segmented-button", | ||
"version": "15.0.0-canary.eb103d4b5.0", | ||
"version": "15.0.0-canary.ebb636f3d.0", | ||
"description": "The Material Components for the web segmented button component", | ||
@@ -20,12 +20,12 @@ "license": "MIT", | ||
"dependencies": { | ||
"@material/base": "15.0.0-canary.eb103d4b5.0", | ||
"@material/elevation": "15.0.0-canary.eb103d4b5.0", | ||
"@material/feature-targeting": "15.0.0-canary.eb103d4b5.0", | ||
"@material/ripple": "15.0.0-canary.eb103d4b5.0", | ||
"@material/theme": "15.0.0-canary.eb103d4b5.0", | ||
"@material/touch-target": "15.0.0-canary.eb103d4b5.0", | ||
"@material/typography": "15.0.0-canary.eb103d4b5.0", | ||
"@material/base": "15.0.0-canary.ebb636f3d.0", | ||
"@material/elevation": "15.0.0-canary.ebb636f3d.0", | ||
"@material/feature-targeting": "15.0.0-canary.ebb636f3d.0", | ||
"@material/ripple": "15.0.0-canary.ebb636f3d.0", | ||
"@material/theme": "15.0.0-canary.ebb636f3d.0", | ||
"@material/touch-target": "15.0.0-canary.ebb636f3d.0", | ||
"@material/typography": "15.0.0-canary.ebb636f3d.0", | ||
"tslib": "^2.1.0" | ||
}, | ||
"gitHead": "6fd82c2abdb8567ca00c6847142375ca8ac18b90" | ||
"gitHead": "6f62607a00dd885ebbe422b247dc4acc1ded22cb" | ||
} |
@@ -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
917767
7675
+ Added@material/animation@15.0.0-canary.ebb636f3d.0(transitive)
+ Added@material/base@15.0.0-canary.ebb636f3d.0(transitive)
+ Added@material/dom@15.0.0-canary.ebb636f3d.0(transitive)
+ Added@material/elevation@15.0.0-canary.ebb636f3d.0(transitive)
+ Added@material/feature-targeting@15.0.0-canary.ebb636f3d.0(transitive)
+ Added@material/ripple@15.0.0-canary.ebb636f3d.0(transitive)
+ Added@material/rtl@15.0.0-canary.ebb636f3d.0(transitive)
+ Added@material/theme@15.0.0-canary.ebb636f3d.0(transitive)
+ Added@material/touch-target@15.0.0-canary.ebb636f3d.0(transitive)
+ Added@material/typography@15.0.0-canary.ebb636f3d.0(transitive)
- Removed@material/animation@15.0.0-canary.eb103d4b5.0(transitive)
- Removed@material/base@15.0.0-canary.eb103d4b5.0(transitive)
- Removed@material/dom@15.0.0-canary.eb103d4b5.0(transitive)
- Removed@material/elevation@15.0.0-canary.eb103d4b5.0(transitive)
- Removed@material/feature-targeting@15.0.0-canary.eb103d4b5.0(transitive)
- Removed@material/ripple@15.0.0-canary.eb103d4b5.0(transitive)
- Removed@material/rtl@15.0.0-canary.eb103d4b5.0(transitive)
- Removed@material/theme@15.0.0-canary.eb103d4b5.0(transitive)
- Removed@material/touch-target@15.0.0-canary.eb103d4b5.0(transitive)
- Removed@material/typography@15.0.0-canary.eb103d4b5.0(transitive)
Updated@material/feature-targeting@15.0.0-canary.ebb636f3d.0