Skip to content

Commit

Permalink
chore: AoT compiler support.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz committed Mar 2, 2017
1 parent 83aebf8 commit 0a94366
Show file tree
Hide file tree
Showing 24 changed files with 788 additions and 220 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
...
import { ExtendAlertModule } from 'ionic2-extend-alert/dist/extend-alert.module'
import { ExtendAlertModule } from 'ionic2-extend-alert'
@NgModule({
Expand Down
48 changes: 48 additions & 0 deletions dist/alert-component.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { ElementRef, Renderer } from '@angular/core';
import { Config } from 'ionic-angular/config/config';
import { GestureController, BlockerDelegate, ViewController, Platform, NavParams } from 'ionic-angular';
/**
* @private
*/
export declare class AlertCmp {
_viewCtrl: ViewController;
_elementRef: ElementRef;
private _renderer;
private _plt;
activeId: string;
descId: string;
autoInterval: any;
d: {
cssClass?: string;
message?: string;
title?: string;
subTitle?: string;
buttons?: any[];
inputs?: any[];
enableBackdropDismiss?: boolean;
};
enabled: boolean;
hdrId: string;
id: number;
inputType: string;
lastClick: number;
msgId: string;
subHdrId: string;
mode: string;
gestureBlocker: BlockerDelegate;
constructor(_viewCtrl: ViewController, _elementRef: ElementRef, config: Config, gestureCtrl: GestureController, params: NavParams, _renderer: Renderer, _plt: Platform);
ionViewDidLoad(): void;
ionViewWillEnter(): void;
ionViewDidLeave(): void;
ionViewWillLeave(): void;
ionViewDidEnter(): void;
keyUp(ev: KeyboardEvent): void;
btnClick(button: any): void;
rbClick(checkedInput: any): void;
cbClick(checkedInput: any): void;
bdClick(): void;
autoClose(): void;
dismiss(role: any): Promise<any>;
getValues(): any;
ngOnDestroy(): void;
}
203 changes: 114 additions & 89 deletions dist/alert-component.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/alert-component.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/alert-component.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"__symbolic":"module","version":1,"metadata":{"AlertCmp":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ion-alert","template":"<ion-backdrop (click)=\"bdClick()\" [class.backdrop-no-tappable]=\"!d.enableBackdropDismiss\"></ion-backdrop><div class=\"alert-wrapper\"><div class=\"alert-head\"><h2 id=\"{{hdrId}}\" class=\"alert-title\" *ngIf=\"d.title\" [innerHTML]=\"d.title\"></h2><h3 id=\"{{subHdrId}}\" class=\"alert-sub-title\" *ngIf=\"d.subTitle\" [innerHTML]=\"d.subTitle\"></h3></div><div id=\"{{msgId}}\" class=\"alert-message\" [innerHTML]=\"d.message\"></div><div *ngIf=\"d.inputs.length\" [ngSwitch]=\"inputType\"><template ngSwitchCase=\"radio\"><div class=\"alert-radio-group\" role=\"radiogroup\" [attr.aria-labelledby]=\"hdrId\" [attr.aria-activedescendant]=\"activeId\"><button ion-button=\"alert-radio-button\" *ngFor=\"let i of d.inputs\" (click)=\"rbClick(i)\" [attr.aria-checked]=\"i.checked\" [disabled]=\"i.disabled\" [attr.id]=\"i.id\" class=\"alert-tappable alert-radio\" role=\"radio\"><div class=\"alert-radio-icon\"><div class=\"alert-radio-inner\"></div></div><div class=\"alert-radio-label\">{{i.label}}</div></button></div></template><template ngSwitchCase=\"checkbox\"><div class=\"alert-checkbox-group\"><button ion-button=\"alert-checkbox-button\" *ngFor=\"let i of d.inputs\" (click)=\"cbClick(i)\" [attr.aria-checked]=\"i.checked\" [disabled]=\"i.disabled\" class=\"alert-tappable alert-checkbox\" role=\"checkbox\"><div class=\"alert-checkbox-icon\"><div class=\"alert-checkbox-inner\"></div></div><div class=\"alert-checkbox-label\">{{i.label}}</div></button></div></template><template ngSwitchDefault><div class=\"alert-input-group\"><div *ngFor=\"let i of d.inputs\" class=\"alert-input-wrapper\"><input [placeholder]=\"i.placeholder\" [(ngModel)]=\"i.value\" [type]=\"i.type\" class=\"alert-input\"></div></div></template></div><div class=\"alert-button-group\" [ngClass]=\"{'alert-button-group-vertical':d.buttons.length>2}\"><button ion-button=\"alert-button\" *ngFor=\"let b of d.buttons\" (click)=\"btnClick(b)\" [ngClass]=\"b.cssClass\">{{b.text}}</button></div></div>","host":{"role":"dialog","[attr.aria-labelledby]":"hdrId","[attr.aria-describedby]":"descId"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"ionic-angular","name":"ViewController"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"ionic-angular/config/config","name":"Config"},{"__symbolic":"reference","module":"ionic-angular","name":"GestureController"},{"__symbolic":"reference","module":"ionic-angular","name":"NavParams"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer"},{"__symbolic":"reference","module":"ionic-angular","name":"Platform"}]}],"ionViewDidLoad":[{"__symbolic":"method"}],"ionViewWillEnter":[{"__symbolic":"method"}],"ionViewDidLeave":[{"__symbolic":"method"}],"ionViewWillLeave":[{"__symbolic":"method"}],"ionViewDidEnter":[{"__symbolic":"method"}],"keyUp":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["body:keyup",["$event"]]}]}],"btnClick":[{"__symbolic":"method"}],"rbClick":[{"__symbolic":"method"}],"cbClick":[{"__symbolic":"method"}],"bdClick":[{"__symbolic":"method"}],"autoClose":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}],"getValues":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}}}
1 change: 0 additions & 1 deletion dist/alert-options.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/alert-transitions.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { Transition } from 'ionic-angular/transitions/transition';
/**
* Animations for alerts
*/
export declare class AlertPopIn extends Transition {
init(): void;
}
Expand Down
74 changes: 35 additions & 39 deletions dist/alert-transitions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0a94366

Please sign in to comment.