Socket
Socket
Sign inDemoInstall

@material/mwc-base

Package Overview
Dependencies
Maintainers
19
Versions
721
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/mwc-base - npm Package Compare versions

Comparing version 0.11.1 to 0.12.0

elevation-css.d.ts

72

base-element.d.ts

@@ -17,40 +17,40 @@ /**

*/
import {MDCFoundation} from '@material/base';
import {LitElement} from 'lit-element';
import {Constructor} from './utils.js';
export {observer} from './observer.js';
export {addHasRemoveClass} from './utils.js';
import { MDCFoundation } from '@material/base';
import { LitElement } from 'lit-element';
import { Constructor } from './utils.js';
export { observer } from './observer.js';
export { addHasRemoveClass } from './utils.js';
export * from '@material/base/types.js';
export declare abstract class BaseElement extends LitElement {
/**
* Root element for MDC Foundation usage.
*
* Define in your component with the `@query` decorator
*/
protected abstract mdcRoot: HTMLElement;
/**
* Return the foundation class for this component
*/
protected abstract readonly mdcFoundationClass: Constructor<MDCFoundation>;
/**
* An instance of the MDC Foundation class to attach to the root element
*/
protected abstract mdcFoundation: MDCFoundation;
/**
* Create the adapter for the `mdcFoundation`.
*
* Override and return an object with the Adapter's functions implemented:
*
* {
* addClass: () => {},
* removeClass: () => {},
* ...
* }
*/
protected abstract createAdapter(): {};
/**
* Create and attach the MDC Foundation to the instance
*/
protected createFoundation(): void;
protected firstUpdated(): void;
/**
* Root element for MDC Foundation usage.
*
* Define in your component with the `@query` decorator
*/
protected abstract mdcRoot: HTMLElement;
/**
* Return the foundation class for this component
*/
protected abstract readonly mdcFoundationClass: Constructor<MDCFoundation>;
/**
* An instance of the MDC Foundation class to attach to the root element
*/
protected abstract mdcFoundation: MDCFoundation;
/**
* Create the adapter for the `mdcFoundation`.
*
* Override and return an object with the Adapter's functions implemented:
*
* {
* addClass: () => {},
* removeClass: () => {},
* ...
* }
*/
protected abstract createAdapter(): {};
/**
* Create and attach the MDC Foundation to the instance
*/
protected createFoundation(): void;
protected firstUpdated(): void;
}

@@ -17,23 +17,23 @@ /**

*/
import {MDCRippleFoundation} from '@material/ripple/foundation.js';
import {BaseElement} from './base-element';
import { MDCRippleFoundation } from '@material/ripple/foundation.js';
import { BaseElement } from './base-element';
export * from './base-element';
export interface HTMLElementWithRipple extends HTMLElement {
ripple?: MDCRippleFoundation;
ripple?: MDCRippleFoundation;
}
export declare abstract class FormElement extends BaseElement {
/**
* Form-capable element in the component ShadowRoot.
*
* Define in your component with the `@query` decorator
*/
protected abstract formElement: HTMLElement;
protected createRenderRoot(): ShadowRoot;
/**
* Implement ripple getter for Ripple integration with mwc-formfield
*/
readonly ripple?: MDCRippleFoundation;
click(): void;
setAriaLabel(label: string): void;
protected firstUpdated(): void;
/**
* Form-capable element in the component ShadowRoot.
*
* Define in your component with the `@query` decorator
*/
protected abstract formElement: HTMLElement;
protected createRenderRoot(): ShadowRoot;
/**
* Implement ripple getter for Ripple integration with mwc-formfield
*/
readonly ripple?: MDCRippleFoundation;
click(): void;
setAriaLabel(label: string): void;
protected firstUpdated(): void;
}
export interface Observer {
(value: any, old: any): void;
(value: any, old: any): void;
}
export declare const observer: (observer: Observer) =>
(proto: any, propName: string|number|symbol) => void;
export declare const observer: (observer: Observer) => (proto: any, propName: string | number | symbol) => void;
{
"name": "@material/mwc-base",
"version": "0.11.1",
"version": "0.12.0",
"description": "",

@@ -12,5 +12,5 @@ "repository": {

"dependencies": {
"@material/base": "=5.0.0-canary.5729943ba.0",
"@material/dom": "=5.0.0-canary.5729943ba.0",
"@material/ripple": "=5.0.0-canary.5729943ba.0",
"@material/base": "=5.0.0-canary.1c494e567.0",
"@material/dom": "=5.0.0-canary.1c494e567.0",
"@material/ripple": "=5.0.0-canary.1c494e567.0",
"lit-element": "^2.2.1",

@@ -25,3 +25,3 @@ "tslib": "^1.10.0"

},
"gitHead": "395c02244bf15c2658cb110eb405ff2e4c0477fc"
"gitHead": "4c0dc16b89066f24fca4efcf78c36c87657f0a03"
}

@@ -17,9 +17,8 @@ /**

*/
export declare function findAssignedElement(
slot: HTMLSlotElement, selector: string): HTMLElement|null;
export declare function findAssignedElement(slot: HTMLSlotElement, selector: string): HTMLElement | null;
export declare type Constructor<T> = new (...args: any[]) => T;
export declare function addHasRemoveClass(element: HTMLElement): {
addClass: (className: string) => void;
removeClass: (className: string) => void;
hasClass: (className: string) => boolean;
addClass: (className: string) => void;
removeClass: (className: string) => void;
hasClass: (className: string) => boolean;
};

@@ -26,0 +25,0 @@ /**

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