Socket
Socket
Sign inDemoInstall

@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.07e91417.0 to 0.26.0-canary.0efb9c2c.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.07e91417.0",
"version": "0.26.0-canary.0efb9c2c.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.07e91417.0",
"@material/mwc-list": "0.26.0-canary.07e91417.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.586e740dd.0",
"@material/menu-surface": "=14.0.0-canary.586e740dd.0",
"@material/mwc-base": "0.26.0-canary.0efb9c2c.0",
"@material/mwc-list": "0.26.0-canary.0efb9c2c.0",
"@material/shape": "=14.0.0-canary.586e740dd.0",
"@material/theme": "=14.0.0-canary.586e740dd.0",
"lit": "^2.0.0",
"tslib": "^2.0.1"
},
"devDependencies": {
"@material/shape": "=13.0.0-canary.65125b3a6.0"
"@material/shape": "=14.0.0-canary.586e740dd.0"
},

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

},
"gitHead": "9fcacc1890992ebd650dca508478ea3a276a1ebe"
"gitHead": "878935c40ce21b0cfddbf2aab964ba07d23dbb94"
}

@@ -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/9fcacc1890992ebd650dca508478ea3a276a1ebe/packages/menu/images/header.png" width="240px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/878935c40ce21b0cfddbf2aab964ba07d23dbb94/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/9fcacc1890992ebd650dca508478ea3a276a1ebe/packages/menu/images/basic.png" width="160px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/878935c40ce21b0cfddbf2aab964ba07d23dbb94/packages/menu/images/basic.png" width="160px">

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

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/9fcacc1890992ebd650dca508478ea3a276a1ebe/packages/menu/images/activatable.png" width="152px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/878935c40ce21b0cfddbf2aab964ba07d23dbb94/packages/menu/images/activatable.png" width="152px">

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

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/9fcacc1890992ebd650dca508478ea3a276a1ebe/packages/menu/images/multi.png" width="152px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/878935c40ce21b0cfddbf2aab964ba07d23dbb94/packages/menu/images/multi.png" width="152px">

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

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/9fcacc1890992ebd650dca508478ea3a276a1ebe/packages/menu/images/absolute.png" width="155px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/878935c40ce21b0cfddbf2aab964ba07d23dbb94/packages/menu/images/absolute.png" width="155px">

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

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/9fcacc1890992ebd650dca508478ea3a276a1ebe/packages/menu/images/fixed.png" width="154px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/878935c40ce21b0cfddbf2aab964ba07d23dbb94/packages/menu/images/fixed.png" width="154px">

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

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/9fcacc1890992ebd650dca508478ea3a276a1ebe/packages/menu/images/selection_group.png" width="170px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/878935c40ce21b0cfddbf2aab964ba07d23dbb94/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/9fcacc1890992ebd650dca508478ea3a276a1ebe/packages/menu/images/styled.png" width="234px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/878935c40ce21b0cfddbf2aab964ba07d23dbb94/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