Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@material/segmented-button

Package Overview
Dependencies
Maintainers
14
Versions
1201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/segmented-button - npm Package Compare versions

Comparing version 15.0.0-canary.6048fb563.0 to 15.0.0-canary.6081d829b.0

2

CHANGELOG.md

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

# [15.0.0-canary.6048fb563.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.6048fb563.0) (2022-11-16)
# [15.0.0-canary.6081d829b.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.6081d829b.0) (2023-06-07)
**Note:** Version bump only for package @material/segmented-button
{
"name": "@material/segmented-button",
"version": "15.0.0-canary.6048fb563.0",
"version": "15.0.0-canary.6081d829b.0",
"description": "The Material Components for the web segmented button component",

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

"dependencies": {
"@material/base": "15.0.0-canary.6048fb563.0",
"@material/elevation": "15.0.0-canary.6048fb563.0",
"@material/feature-targeting": "15.0.0-canary.6048fb563.0",
"@material/ripple": "15.0.0-canary.6048fb563.0",
"@material/theme": "15.0.0-canary.6048fb563.0",
"@material/touch-target": "15.0.0-canary.6048fb563.0",
"@material/typography": "15.0.0-canary.6048fb563.0",
"@material/base": "15.0.0-canary.6081d829b.0",
"@material/elevation": "15.0.0-canary.6081d829b.0",
"@material/feature-targeting": "15.0.0-canary.6081d829b.0",
"@material/ripple": "15.0.0-canary.6081d829b.0",
"@material/theme": "15.0.0-canary.6081d829b.0",
"@material/touch-target": "15.0.0-canary.6081d829b.0",
"@material/typography": "15.0.0-canary.6081d829b.0",
"tslib": "^2.1.0"
},
"gitHead": "590020431978794ff2128a91f19756dff9dbc37b"
"gitHead": "033569cc4deafe32dad2bf8cbd1de8789bc85668"
}

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc