Socket
Socket
Sign inDemoInstall

@material/segmented-button

Package Overview
Dependencies
11
Maintainers
14
Versions
1200
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 15.0.0-canary.88db01990.0 to 15.0.0-canary.89b2e4122.0

2

CHANGELOG.md

@@ -6,4 +6,4 @@ # Change Log

# [15.0.0-canary.88db01990.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.88db01990.0) (2022-07-12)
# [15.0.0-canary.89b2e4122.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.89b2e4122.0) (2023-08-31)
**Note:** Version bump only for package @material/segmented-button
{
"name": "@material/segmented-button",
"version": "15.0.0-canary.88db01990.0",
"version": "15.0.0-canary.89b2e4122.0",
"description": "The Material Components for the web segmented button component",

@@ -20,12 +20,12 @@ "license": "MIT",

"dependencies": {
"@material/base": "15.0.0-canary.88db01990.0",
"@material/elevation": "15.0.0-canary.88db01990.0",
"@material/feature-targeting": "15.0.0-canary.88db01990.0",
"@material/ripple": "15.0.0-canary.88db01990.0",
"@material/theme": "15.0.0-canary.88db01990.0",
"@material/touch-target": "15.0.0-canary.88db01990.0",
"@material/typography": "15.0.0-canary.88db01990.0",
"@material/base": "15.0.0-canary.89b2e4122.0",
"@material/elevation": "15.0.0-canary.89b2e4122.0",
"@material/feature-targeting": "15.0.0-canary.89b2e4122.0",
"@material/ripple": "15.0.0-canary.89b2e4122.0",
"@material/theme": "15.0.0-canary.89b2e4122.0",
"@material/touch-target": "15.0.0-canary.89b2e4122.0",
"@material/typography": "15.0.0-canary.89b2e4122.0",
"tslib": "^2.1.0"
},
"gitHead": "a2570f15e2572775da6e1894e5310c107a703ea4"
"gitHead": "68bd55db9489546e515443239f477836e16db19b"
}

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc