refactor(all): updating to newest stencil apis (#18578)

* chore(): update ionicons

* refactor(all): updating to newest stencil apis

* fix lint issues

* more changes

* moreee

* fix treeshaking

* fix config

* fix checkbox

* fix stuff

* chore(): update ionicons

* fix linting errors
This commit is contained in:
Manu MA
2019-06-23 11:26:42 +02:00
committed by GitHub
parent 78e477b2a7
commit 34dfc3ce98
112 changed files with 1231 additions and 1235 deletions

View File

@ -19,8 +19,6 @@ import { createColorClasses, hostContext, openURL } from '../../utils/theme';
export class FabButton implements ComponentInterface, AnchorInterface, ButtonInterface {
@Element() el!: HTMLElement;
@Prop({ context: 'window' }) win!: Window;
/**
* The color to use from your application's color palette.
* Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
@ -117,7 +115,7 @@ export class FabButton implements ComponentInterface, AnchorInterface, ButtonInt
'aria-disabled': disabled ? 'true' : null,
class: {
...createColorClasses(color),
[`${mode}`]: true,
[mode]: true,
'fab-button-in-list': inList,
'fab-button-translucent-in-list': inList && translucent,
'fab-button-close-active': activated,
@ -150,7 +148,7 @@ export class FabButton implements ComponentInterface, AnchorInterface, ButtonInt
disabled={this.disabled}
onFocus={this.onFocus}
onBlur={this.onBlur}
onClick={(ev: Event) => openURL(this.win, this.href, ev, this.routerDirection)}
onClick={(ev: Event) => openURL(this.href, ev, this.routerDirection)}
>
<span class="close-icon">
<ion-icon name="close" lazy={false}></ion-icon>