fix(): update global references

This commit is contained in:
mhartington
2017-08-07 11:55:39 -04:00
parent 5bfe7e44a0
commit ea95cc0947
6 changed files with 24 additions and 23 deletions

View File

@ -1,5 +1,5 @@
import { Component, Listen } from '@stencil/core';
import { ActionSheetEvent, ActionSheetOptions, ActionSheet, IonicControllerApi } from '../../index';
import { ActionSheetEvent, ActionSheetOptions, ActionSheet, IonicControllerApi, Ionic } from '../../index';
@Component({
@ -15,7 +15,7 @@ export class ActionSheetController implements IonicControllerApi {
ionViewDidLoad() {
this.appRoot = document.querySelector('ion-app') || document.body;
Ionic.loadController('action-sheet', this);
Ionic.registerController('action-sheet', this);
}

View File

@ -1,15 +1,15 @@
import { Animation } from '../../../index';
/**
* iOS Loading Enter Animation
*/
export default function(baseElm: HTMLElement) {
const baseAnimation = new Ionic.Animation();
export default function(Animation: Animation, baseElm: HTMLElement) {
const baseAnimation = new Animation();
const backdropAnimation = new Ionic.Animation();
const backdropAnimation = new Animation();
backdropAnimation.addElement(baseElm.querySelector('.loading-backdrop'));
const wrapperAnimation = new Ionic.Animation();
const wrapperAnimation = new Animation();
wrapperAnimation.addElement(baseElm.querySelector('.loading-wrapper'));
backdropAnimation.fromTo('opacity', 0.01, 0.3);

View File

@ -1,15 +1,15 @@
import { Animation } from '../../../index';
/**
* iOS Loading Leave Animation
*/
export default function(baseElm: HTMLElement) {
const baseAnimation = new Ionic.Animation();
export default function(Animation: Animation, baseElm: HTMLElement) {
const baseAnimation = new Animation();
const backdropAnimation = new Ionic.Animation();
const backdropAnimation = new Animation();
backdropAnimation.addElement(baseElm.querySelector('.loading-backdrop'));
const wrapperAnimation = new Ionic.Animation();
const wrapperAnimation = new Animation();
wrapperAnimation.addElement(baseElm.querySelector('.loading-wrapper'));
backdropAnimation.fromTo('opacity', 0.3, 0);

View File

@ -1,5 +1,5 @@
import { Component, Listen } from '@stencil/core';
import { PopoverEvent, PopoverOptions, Popover, IonicControllerApi } from '../../index';
import { PopoverEvent, PopoverOptions, Popover, IonicControllerApi, Ionic } from '../../index';
@Component({
@ -15,7 +15,7 @@ export class PopoverController implements IonicControllerApi {
ionViewDidLoad() {
this.appRoot = document.querySelector('ion-app') || document.body;
Ionic.loadController('popover', this);
Ionic.registerController('popover', this);
}

View File

@ -1,11 +1,12 @@
import { Animation } from '../../../index';
export default function(baseElm: HTMLElement) {
const baseAnimation = new Ionic.Animation();
export default function(Animation: Animation, baseElm: HTMLElement) {
const baseAnimation = new Animation();
const backdropAnimation = new Ionic.Animation();
const backdropAnimation = new Animation();
backdropAnimation.addElement(baseElm.querySelector('.popover-backdrop'));
const wrapperAnimation = new Ionic.Animation();
const wrapperAnimation = new Animation();
wrapperAnimation.addElement(baseElm.querySelector('.popover-wrapper'));
backdropAnimation.fromTo('opacity', 0.01, 0.3);

View File

@ -1,15 +1,15 @@
import { Animation } from '../../../index';
/**
* iOS Modal Leave Animation
*/
export default function(baseElm: HTMLElement) {
const baseAnimation = new Ionic.Animation();
export default function(Animation: Animation, baseElm: HTMLElement) {
const baseAnimation = new Animation();
const backdropAnimation = new Ionic.Animation();
const backdropAnimation = new Animation();
backdropAnimation.addElement(baseElm.querySelector('.modal-backdrop'));
const wrapperAnimation = new Ionic.Animation();
const wrapperAnimation = new Animation();
const wrapperElm = baseElm.querySelector('.modal-wrapper');
wrapperAnimation.addElement(wrapperElm);
const wrapperElmRect = wrapperElm.getBoundingClientRect();