mirror of
https://github.com/material-components/material-web.git
synced 2024-10-27 06:04:44 +03:00
Remove as any
usage with @customElement
Unnecessary as of lit-element v0.6.5 Fixes #114
This commit is contained in:
parent
b40e146bca
commit
b6cf725d60
@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
Run `lint` and `format` in CI
|
Run `lint` and `format` in CI
|
||||||
- Remove CHANGELOG files in packages
|
- Remove CHANGELOG files in packages
|
||||||
- Add section about CHANGELOG entries to CONTRIBUTING guide
|
- Add section about CHANGELOG entries to CONTRIBUTING guide
|
||||||
|
- Remove `as any` from `@customElement` decorators
|
||||||
|
|
||||||
## [0.6.0] - 2019-06-05
|
## [0.6.0] - 2019-06-05
|
||||||
- Upgrade lerna to 3.x
|
- Upgrade lerna to 3.x
|
||||||
|
@ -19,7 +19,7 @@ import {customElement} from '@material/mwc-base/base-element';
|
|||||||
import {ButtonBase} from './mwc-button-base.js';
|
import {ButtonBase} from './mwc-button-base.js';
|
||||||
import {style} from './mwc-button-css.js';
|
import {style} from './mwc-button-css.js';
|
||||||
|
|
||||||
@customElement('mwc-button' as any)
|
@customElement('mwc-button')
|
||||||
export class Button extends ButtonBase {
|
export class Button extends ButtonBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-checkbox' as any)
|
@customElement('mwc-checkbox')
|
||||||
export class Checkbox extends CheckboxBase {
|
export class Checkbox extends CheckboxBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-drawer' as any)
|
@customElement('mwc-drawer')
|
||||||
export class Drawer extends DrawerBase {
|
export class Drawer extends DrawerBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-fab' as any)
|
@customElement('mwc-fab')
|
||||||
export class Fab extends FabBase {
|
export class Fab extends FabBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-formfield' as any)
|
@customElement('mwc-formfield')
|
||||||
export class Formfield extends FormfieldBase {
|
export class Formfield extends FormfieldBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-icon-button' as any)
|
@customElement('mwc-icon-button')
|
||||||
export class IconButton extends IconButtonBase {
|
export class IconButton extends IconButtonBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ import {customElement, html, LitElement} from '@material/mwc-base/base-element';
|
|||||||
|
|
||||||
import {style} from './mwc-icon-host-css.js';
|
import {style} from './mwc-icon-host-css.js';
|
||||||
|
|
||||||
@customElement('mwc-icon' as any)
|
@customElement('mwc-icon')
|
||||||
export class Icon extends LitElement {
|
export class Icon extends LitElement {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-linear-progress' as any)
|
@customElement('mwc-linear-progress')
|
||||||
export class LinearProgress extends LinearProgressBase {
|
export class LinearProgress extends LinearProgressBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-radio' as any)
|
@customElement('mwc-radio')
|
||||||
export class Radio extends RadioBase {
|
export class Radio extends RadioBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-ripple' as any)
|
@customElement('mwc-ripple')
|
||||||
export class Ripple extends RippleBase {
|
export class Ripple extends RippleBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-slider' as any)
|
@customElement('mwc-slider')
|
||||||
export class Slider extends SliderBase {
|
export class Slider extends SliderBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-snackbar' as any)
|
@customElement('mwc-snackbar')
|
||||||
export class Snackbar extends SnackbarBase {
|
export class Snackbar extends SnackbarBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-switch' as any)
|
@customElement('mwc-switch')
|
||||||
export class Switch extends SwitchBase {
|
export class Switch extends SwitchBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-tab-bar' as any)
|
@customElement('mwc-tab-bar')
|
||||||
export class TabBar extends TabBarBase {
|
export class TabBar extends TabBarBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-tab-indicator' as any)
|
@customElement('mwc-tab-indicator')
|
||||||
export class TabIndicator extends TabIndicatorBase {
|
export class TabIndicator extends TabIndicatorBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-tab-scroller' as any)
|
@customElement('mwc-tab-scroller')
|
||||||
export class TabScroller extends TabScrollerBase {
|
export class TabScroller extends TabScrollerBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-tab' as any)
|
@customElement('mwc-tab')
|
||||||
export class Tab extends TabBase {
|
export class Tab extends TabBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@customElement('mwc-top-app-bar' as any)
|
@customElement('mwc-top-app-bar')
|
||||||
export class TopAppBar extends TopAppBarBase {
|
export class TopAppBar extends TopAppBarBase {
|
||||||
static styles = style;
|
static styles = style;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user