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

@ -14,8 +14,6 @@ const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
})
export class Col implements ComponentInterface {
@Prop({ context: 'window' }) win!: Window;
@Element() el!: HTMLIonColElement;
/**
@ -169,7 +167,7 @@ export class Col implements ComponentInterface {
let matched;
for (const breakpoint of BREAKPOINTS) {
const matches = matchBreakpoint(this.win, breakpoint);
const matches = matchBreakpoint(breakpoint);
// Grab the value of the property, if it exists and our
// media query matches we return the value
@ -247,11 +245,11 @@ export class Col implements ComponentInterface {
}
hostData() {
const isRTL = this.win.document.dir === 'rtl';
const isRTL = document.dir === 'rtl';
const mode = getIonMode(this);
return {
class: {
[`${mode}`]: true
[mode]: true
},
style: {
...this.calculateOffset(isRTL),