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 1229 additions and 1233 deletions

View File

@ -1,7 +1,8 @@
import { Component, ComponentInterface, Prop, h } from '@stencil/core';
import { config } from '../../global/config';
import { getIonMode } from '../../global/ionic-global';
import { Config, SpinnerTypes } from '../../interface';
import { SpinnerTypes } from '../../interface';
import { sanitizeDOMString } from '../../utils/sanitization';
@Component({
@ -9,8 +10,6 @@ import { sanitizeDOMString } from '../../utils/sanitization';
})
export class RefresherContent implements ComponentInterface {
@Prop({ context: 'config' }) config!: Config;
/**
* A static icon to display when you begin to pull down
*/
@ -45,13 +44,13 @@ export class RefresherContent implements ComponentInterface {
componentWillLoad() {
if (this.pullingIcon === undefined) {
this.pullingIcon = this.config.get('refreshingIcon', 'arrow-down');
this.pullingIcon = config.get('refreshingIcon', 'arrow-down');
}
if (this.refreshingSpinner === undefined) {
const mode = getIonMode(this);
this.refreshingSpinner = this.config.get(
this.refreshingSpinner = config.get(
'refreshingSpinner',
this.config.get('spinner', mode === 'ios' ? 'lines' : 'crescent')
config.get('spinner', mode === 'ios' ? 'lines' : 'crescent')
);
}
}
@ -60,7 +59,7 @@ export class RefresherContent implements ComponentInterface {
const mode = getIonMode(this);
return {
class: {
[`${mode}`]: true,
[mode]: true,
}
};
}