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

@material/mwc-menu

Package Overview
Dependencies
Maintainers
21
Versions
694
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/mwc-menu - npm Package Compare versions

Comparing version 0.26.0-canary.e2203ffa.0 to 0.26.0-canary.e5923d68.0

14

mwc-menu-base.js

@@ -15,3 +15,4 @@ /**

import { observer } from '@material/mwc-base/observer';
import { html, property, query } from 'lit-element';
import { html } from 'lit';
import { property, query } from 'lit/decorators.js';
export { createSetFromIndex, isEventMulti, isIndexSet } from '@material/mwc-list/mwc-list-foundation';

@@ -172,2 +173,13 @@ /**

},
getAttributeFromElementAtIndex: (index, attr) => {
const listElement = this.listElement;
if (!listElement) {
return null;
}
const element = listElement.items[index];
if (!element) {
return null;
}
return element.getAttribute(attr);
},
elementContainsClass: (element, className) => element.classList.contains(className),

@@ -174,0 +186,0 @@ closeSurface: () => {

7

mwc-menu-surface-base.js

@@ -12,5 +12,6 @@ /**

import { deepActiveElementPath, doesElementContainFocus } from '@material/mwc-base/utils';
import { html, property, query, state } from 'lit-element';
import { classMap } from 'lit-html/directives/class-map.js';
import { styleMap } from 'lit-html/directives/style-map.js';
import { html } from 'lit';
import { property, query, state } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
import { styleMap } from 'lit/directives/style-map.js';
// tslint:disable:no-bitwise

@@ -17,0 +18,0 @@ // required for closure compiler

@@ -15,3 +15,3 @@ /**

export declare class MenuSurface extends MenuSurfaceBase {
static styles: import("lit-element").CSSResult[];
static styles: import("lit").CSSResult[];
}

@@ -9,3 +9,3 @@ /**

// tslint:disable:strip-private-property-underscore
import { customElement } from 'lit-element';
import { customElement } from 'lit/decorators.js';
import { MenuSurfaceBase } from './mwc-menu-surface-base';

@@ -12,0 +12,0 @@ import { styles } from './mwc-menu-surface.css';

@@ -16,3 +16,3 @@ /**

export declare class Menu extends MenuBase {
static styles: import("lit-element").CSSResult[];
static styles: import("lit").CSSResult[];
}

@@ -9,3 +9,3 @@ /**

// tslint:disable:strip-private-property-underscore
import { customElement } from 'lit-element';
import { customElement } from 'lit/decorators.js';
import { MenuBase } from './mwc-menu-base';

@@ -12,0 +12,0 @@ import { styles } from './mwc-menu.css';

{
"name": "@material/mwc-menu",
"version": "0.26.0-canary.e2203ffa.0",
"version": "0.26.0-canary.e5923d68.0",
"description": "Material Design menu web component",

@@ -14,14 +14,13 @@ "keywords": [

"dependencies": {
"@material/menu": "=13.0.0-canary.65125b3a6.0",
"@material/menu-surface": "=13.0.0-canary.65125b3a6.0",
"@material/mwc-base": "0.26.0-canary.e2203ffa.0",
"@material/mwc-list": "0.26.0-canary.e2203ffa.0",
"@material/shape": "=13.0.0-canary.65125b3a6.0",
"@material/theme": "=13.0.0-canary.65125b3a6.0",
"lit-element": "^3.0.0",
"lit-html": "^2.0.0",
"@material/menu": "=14.0.0-canary.86b50ef74.0",
"@material/menu-surface": "=14.0.0-canary.86b50ef74.0",
"@material/mwc-base": "0.26.0-canary.e5923d68.0",
"@material/mwc-list": "0.26.0-canary.e5923d68.0",
"@material/shape": "=14.0.0-canary.86b50ef74.0",
"@material/theme": "=14.0.0-canary.86b50ef74.0",
"lit": "^2.0.0",
"tslib": "^2.0.1"
},
"devDependencies": {
"@material/shape": "=13.0.0-canary.65125b3a6.0"
"@material/shape": "=14.0.0-canary.86b50ef74.0"
},

@@ -34,3 +33,3 @@ "scripts": {

},
"gitHead": "dccbe3e93b2694b3336adcf33188115ced04a52e"
"gitHead": "41f6e947d4028d5479ec62a20cbf1e1fce3c3a27"
}

@@ -7,3 +7,3 @@ # `<mwc-menu>` [![Published on npm](https://img.shields.io/npm/v/@material/mwc-menu.svg)](https://www.npmjs.com/package/@material/mwc-menu)

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/dccbe3e93b2694b3336adcf33188115ced04a52e/packages/menu/images/header.png" width="240px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/41f6e947d4028d5479ec62a20cbf1e1fce3c3a27/packages/menu/images/header.png" width="240px">

@@ -36,3 +36,3 @@ [Material Design Guidelines: menus](https://material.io/design/components/menus.html)

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/dccbe3e93b2694b3336adcf33188115ced04a52e/packages/menu/images/basic.png" width="160px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/41f6e947d4028d5479ec62a20cbf1e1fce3c3a27/packages/menu/images/basic.png" width="160px">

@@ -66,3 +66,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/dccbe3e93b2694b3336adcf33188115ced04a52e/packages/menu/images/activatable.png" width="152px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/41f6e947d4028d5479ec62a20cbf1e1fce3c3a27/packages/menu/images/activatable.png" width="152px">

@@ -83,3 +83,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/dccbe3e93b2694b3336adcf33188115ced04a52e/packages/menu/images/multi.png" width="152px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/41f6e947d4028d5479ec62a20cbf1e1fce3c3a27/packages/menu/images/multi.png" width="152px">

@@ -100,3 +100,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/dccbe3e93b2694b3336adcf33188115ced04a52e/packages/menu/images/absolute.png" width="155px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/41f6e947d4028d5479ec62a20cbf1e1fce3c3a27/packages/menu/images/absolute.png" width="155px">

@@ -122,3 +122,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/dccbe3e93b2694b3336adcf33188115ced04a52e/packages/menu/images/fixed.png" width="154px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/41f6e947d4028d5479ec62a20cbf1e1fce3c3a27/packages/menu/images/fixed.png" width="154px">

@@ -154,3 +154,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/dccbe3e93b2694b3336adcf33188115ced04a52e/packages/menu/images/selection_group.png" width="170px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/41f6e947d4028d5479ec62a20cbf1e1fce3c3a27/packages/menu/images/selection_group.png" width="170px">

@@ -199,3 +199,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/dccbe3e93b2694b3336adcf33188115ced04a52e/packages/menu/images/styled.png" width="234px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/41f6e947d4028d5479ec62a20cbf1e1fce3c3a27/packages/menu/images/styled.png" width="234px">

@@ -202,0 +202,0 @@ ```html

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