Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ionic/angular

Package Overview
Dependencies
Maintainers
13
Versions
3182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic/angular - npm Package Compare versions

Comparing version 0.0.2-29 to 0.1.4

dist/navigation/ion-nav.d.ts

27

dist/index.d.ts
export { IonicAngularModule } from './module';
export { IonNav } from './directives/ion-nav';
export { IonNav } from './navigation/ion-nav';
export { IonRouterOutlet } from './navigation/ion-router-outlet';
export { IonTab } from './navigation/ion-tab';
export { IonTabs } from './navigation/ion-tabs';
export { VirtualScroll } from './directives/virtual-scroll';

@@ -7,19 +10,13 @@ export { VirtualItem } from './directives/virtual-item';

export { VirtualFooter } from './directives/virtual-footer';
export { RouterOutlet } from './router/outlet';
export { AsyncActivateRoutes } from './router/async-activated-routes';
export { OutletInjector } from './router/outlet-injector';
export { IonicRouterModule } from './router/router-module';
export { ActionSheetController, ActionSheetProxy } from './providers/action-sheet-controller';
export { AlertController, AlertProxy } from './providers/alert-controller';
export { AngularComponentMounter } from './providers/angular-component-mounter';
export { App } from './providers/app';
export { AngularDelegate } from './providers/angular-delegate';
export { ActionSheetController } from './providers/action-sheet-controller';
export { AlertController } from './providers/alert-controller';
export { Events } from './providers/events';
export { LoadingController, LoadingProxy } from './providers/loading-controller';
export { LoadingController } from './providers/loading-controller';
export { MenuController } from './providers/menu-controller';
export { ModalController, ModalProxy } from './providers/modal-controller';
export { NavController } from './providers/nav-controller';
export { NavParams } from './providers/nav-params';
export { PickerController } from './providers/picker-controller';
export { ModalController } from './providers/modal-controller';
export { Platform } from './providers/platform';
export { PopoverController, PopoverProxy } from './providers/popover-controller';
export { ToastController, ToastProxy } from './providers/toast-controller';
export { PopoverController } from './providers/popover-controller';
export { ToastController } from './providers/toast-controller';
export * from './types/interfaces';
export { IonicAngularModule } from './module';
export { IonNav } from './directives/ion-nav';
export { IonNav } from './navigation/ion-nav';
export { IonRouterOutlet } from './navigation/ion-router-outlet';
export { IonTab } from './navigation/ion-tab';
export { IonTabs } from './navigation/ion-tabs';
export { VirtualScroll } from './directives/virtual-scroll';

@@ -7,16 +10,10 @@ export { VirtualItem } from './directives/virtual-item';

export { VirtualFooter } from './directives/virtual-footer';
export { RouterOutlet } from './router/outlet';
export { AsyncActivateRoutes } from './router/async-activated-routes';
export { OutletInjector } from './router/outlet-injector';
export { IonicRouterModule } from './router/router-module';
export { AngularDelegate } from './providers/angular-delegate';
export { ActionSheetController } from './providers/action-sheet-controller';
export { AlertController } from './providers/alert-controller';
export { AngularComponentMounter } from './providers/angular-component-mounter';
export { App } from './providers/app';
export { Events } from './providers/events';
export { LoadingController } from './providers/loading-controller';
export { MenuController } from './providers/menu-controller';
export { PickerController } from './providers/picker-controller';
export { ModalController } from './providers/modal-controller';
export { NavController } from './providers/nav-controller';
export { NavParams } from './providers/nav-params';
export { Platform } from './providers/platform';

@@ -27,9 +24,4 @@ export { PopoverController } from './providers/popover-controller';

const Ionic = win.Ionic;
if (!Ionic) {
throw new Error(`ionic.js script missing from index.html`);
}
else {
console.log('bypassing zone');
if (Ionic) {
Ionic.ael = function ngAddEventListener(elm, eventName, cb, opts) {
console.log('add listener', !!elm.__zone_symbol__addEventListener);
if (elm.__zone_symbol__addEventListener) {

@@ -36,0 +28,0 @@ elm.__zone_symbol__addEventListener(eventName, cb, opts);

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./module","export":["IonicAngularModule"]},{"from":"./directives/ion-nav","export":["IonNav"]},{"from":"./directives/virtual-scroll","export":["VirtualScroll"]},{"from":"./directives/virtual-item","export":["VirtualItem"]},{"from":"./directives/virtual-header","export":["VirtualHeader"]},{"from":"./directives/virtual-footer","export":["VirtualFooter"]},{"from":"./router/outlet","export":["RouterOutlet"]},{"from":"./router/async-activated-routes","export":["AsyncActivateRoutes"]},{"from":"./router/outlet-injector","export":["OutletInjector"]},{"from":"./router/router-module","export":["IonicRouterModule"]},{"from":"./providers/action-sheet-controller","export":["ActionSheetController","ActionSheetProxy"]},{"from":"./providers/alert-controller","export":["AlertController","AlertProxy"]},{"from":"./providers/angular-component-mounter","export":["AngularComponentMounter"]},{"from":"./providers/app","export":["App"]},{"from":"./providers/events","export":["Events"]},{"from":"./providers/loading-controller","export":["LoadingController","LoadingProxy"]},{"from":"./providers/menu-controller","export":["MenuController"]},{"from":"./providers/modal-controller","export":["ModalController","ModalProxy"]},{"from":"./providers/nav-controller","export":["NavController"]},{"from":"./providers/nav-params","export":["NavParams"]},{"from":"./providers/platform","export":["Platform"]},{"from":"./providers/popover-controller","export":["PopoverController","PopoverProxy"]},{"from":"./providers/toast-controller","export":["ToastController","ToastProxy"]},{"from":"./types/interfaces"}]}]
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./module","export":["IonicAngularModule"]},{"from":"./navigation/ion-nav","export":["IonNav"]},{"from":"./navigation/ion-router-outlet","export":["IonRouterOutlet"]},{"from":"./navigation/ion-tab","export":["IonTab"]},{"from":"./navigation/ion-tabs","export":["IonTabs"]},{"from":"./directives/virtual-scroll","export":["VirtualScroll"]},{"from":"./directives/virtual-item","export":["VirtualItem"]},{"from":"./directives/virtual-header","export":["VirtualHeader"]},{"from":"./directives/virtual-footer","export":["VirtualFooter"]},{"from":"./providers/angular-delegate","export":["AngularDelegate"]},{"from":"./providers/action-sheet-controller","export":["ActionSheetController"]},{"from":"./providers/alert-controller","export":["AlertController"]},{"from":"./providers/events","export":["Events"]},{"from":"./providers/loading-controller","export":["LoadingController"]},{"from":"./providers/menu-controller","export":["MenuController"]},{"from":"./providers/picker-controller","export":["PickerController"]},{"from":"./providers/modal-controller","export":["ModalController"]},{"from":"./providers/platform","export":["Platform"]},{"from":"./providers/popover-controller","export":["PopoverController"]},{"from":"./providers/toast-controller","export":["ToastController"]},{"from":"./types/interfaces"}]}]

@@ -8,3 +8,6 @@ import { CommonModule } from '@angular/common';

import { TextValueAccessor } from './control-value-accessors/text-value-accessor';
import { IonNav } from './directives/ion-nav';
import { IonNav } from './navigation/ion-nav';
import { IonRouterOutlet } from './navigation/ion-router-outlet';
import { IonTab } from './navigation/ion-tab';
import { IonTabs } from './navigation/ion-tabs';
import { VirtualScroll } from './directives/virtual-scroll';

@@ -14,6 +17,5 @@ import { VirtualItem } from './directives/virtual-item';

import { VirtualFooter } from './directives/virtual-footer';
import { AngularDelegate } from './providers/angular-delegate';
import { ActionSheetController } from './providers/action-sheet-controller';
import { AlertController } from './providers/alert-controller';
import { AngularComponentMounter } from './providers/angular-component-mounter';
import { App } from './providers/app';
import { Events, setupProvideEvents } from './providers/events';

@@ -23,2 +25,3 @@ import { LoadingController } from './providers/loading-controller';

import { ModalController } from './providers/modal-controller';
import { PickerController } from './providers/picker-controller';
import { Platform } from './providers/platform';

@@ -34,5 +37,5 @@ import { PopoverController } from './providers/popover-controller';

ActionSheetController,
App,
Events,
LoadingController,
PickerController,
MenuController,

@@ -51,2 +54,5 @@ Platform,

IonNav,
IonRouterOutlet,
IonTab,
IonTabs,
NumericValueAccessor,

@@ -64,2 +70,5 @@ RadioValueAccessor,

IonNav,
IonRouterOutlet,
IonTab,
IonTabs,
NumericValueAccessor,

@@ -74,10 +83,10 @@ RadioValueAccessor,

],
imports: [
CommonModule,
],
providers: [
AngularDelegate,
ModalController,
PopoverController,
AngularComponentMounter
],
imports: [
CommonModule,
],
schemas: [

@@ -84,0 +93,0 @@ CUSTOM_ELEMENTS_SCHEMA

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"IonicAngularModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":34,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./control-value-accessors/boolean-value-accessor","name":"BooleanValueAccessor","line":36,"character":4},{"__symbolic":"reference","module":"./directives/ion-nav","name":"IonNav","line":37,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/numeric-value-accesssor","name":"NumericValueAccessor","line":38,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/radio-value-accessor","name":"RadioValueAccessor","line":39,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/select-value-accessor","name":"SelectValueAccessor","line":40,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/text-value-accessor","name":"TextValueAccessor","line":41,"character":4},{"__symbolic":"reference","module":"./directives/virtual-scroll","name":"VirtualScroll","line":42,"character":4},{"__symbolic":"reference","module":"./directives/virtual-item","name":"VirtualItem","line":43,"character":4},{"__symbolic":"reference","module":"./directives/virtual-header","name":"VirtualHeader","line":44,"character":4},{"__symbolic":"reference","module":"./directives/virtual-footer","name":"VirtualFooter","line":45,"character":4}],"exports":[{"__symbolic":"reference","module":"./control-value-accessors/boolean-value-accessor","name":"BooleanValueAccessor","line":48,"character":4},{"__symbolic":"reference","module":"./directives/ion-nav","name":"IonNav","line":49,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/numeric-value-accesssor","name":"NumericValueAccessor","line":50,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/radio-value-accessor","name":"RadioValueAccessor","line":51,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/select-value-accessor","name":"SelectValueAccessor","line":52,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/text-value-accessor","name":"TextValueAccessor","line":53,"character":4},{"__symbolic":"reference","module":"./directives/virtual-scroll","name":"VirtualScroll","line":55,"character":4},{"__symbolic":"reference","module":"./directives/virtual-item","name":"VirtualItem","line":56,"character":4},{"__symbolic":"reference","module":"./directives/virtual-header","name":"VirtualHeader","line":57,"character":4},{"__symbolic":"reference","module":"./directives/virtual-footer","name":"VirtualFooter","line":58,"character":4}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":61,"character":4}],"providers":[{"__symbolic":"reference","module":"./providers/modal-controller","name":"ModalController","line":64,"character":4},{"__symbolic":"reference","module":"./providers/popover-controller","name":"PopoverController","line":65,"character":4},{"__symbolic":"reference","module":"./providers/angular-component-mounter","name":"AngularComponentMounter","line":66,"character":4}],"schemas":[{"__symbolic":"reference","module":"@angular/core","name":"CUSTOM_ELEMENTS_SCHEMA","line":69,"character":4}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"IonicAngularModule"},"providers":[{"__symbolic":"reference","module":"./providers/alert-controller","name":"AlertController","line":77,"character":8},{"__symbolic":"reference","module":"./providers/action-sheet-controller","name":"ActionSheetController","line":78,"character":8},{"__symbolic":"reference","module":"./providers/app","name":"App","line":79,"character":8},{"__symbolic":"reference","module":"./providers/events","name":"Events","line":80,"character":8},{"__symbolic":"reference","module":"./providers/loading-controller","name":"LoadingController","line":81,"character":8},{"__symbolic":"reference","module":"./providers/menu-controller","name":"MenuController","line":82,"character":8},{"__symbolic":"reference","module":"./providers/platform","name":"Platform","line":83,"character":8},{"__symbolic":"reference","module":"./providers/toast-controller","name":"ToastController","line":84,"character":8},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":86,"character":19},"useFactory":{"__symbolic":"reference","module":"./providers/events","name":"setupProvideEvents","line":86,"character":48},"multi":true}]}}}}}}]
[{"__symbolic":"module","version":4,"metadata":{"IonicAngularModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":39,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./control-value-accessors/boolean-value-accessor","name":"BooleanValueAccessor","line":41,"character":4},{"__symbolic":"reference","module":"./navigation/ion-nav","name":"IonNav","line":42,"character":4},{"__symbolic":"reference","module":"./navigation/ion-router-outlet","name":"IonRouterOutlet","line":43,"character":4},{"__symbolic":"reference","module":"./navigation/ion-tab","name":"IonTab","line":44,"character":4},{"__symbolic":"reference","module":"./navigation/ion-tabs","name":"IonTabs","line":45,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/numeric-value-accesssor","name":"NumericValueAccessor","line":46,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/radio-value-accessor","name":"RadioValueAccessor","line":47,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/select-value-accessor","name":"SelectValueAccessor","line":48,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/text-value-accessor","name":"TextValueAccessor","line":49,"character":4},{"__symbolic":"reference","module":"./directives/virtual-scroll","name":"VirtualScroll","line":50,"character":4},{"__symbolic":"reference","module":"./directives/virtual-item","name":"VirtualItem","line":51,"character":4},{"__symbolic":"reference","module":"./directives/virtual-header","name":"VirtualHeader","line":52,"character":4},{"__symbolic":"reference","module":"./directives/virtual-footer","name":"VirtualFooter","line":53,"character":4}],"exports":[{"__symbolic":"reference","module":"./control-value-accessors/boolean-value-accessor","name":"BooleanValueAccessor","line":56,"character":4},{"__symbolic":"reference","module":"./navigation/ion-nav","name":"IonNav","line":57,"character":4},{"__symbolic":"reference","module":"./navigation/ion-router-outlet","name":"IonRouterOutlet","line":58,"character":4},{"__symbolic":"reference","module":"./navigation/ion-tab","name":"IonTab","line":59,"character":4},{"__symbolic":"reference","module":"./navigation/ion-tabs","name":"IonTabs","line":60,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/numeric-value-accesssor","name":"NumericValueAccessor","line":61,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/radio-value-accessor","name":"RadioValueAccessor","line":62,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/select-value-accessor","name":"SelectValueAccessor","line":63,"character":4},{"__symbolic":"reference","module":"./control-value-accessors/text-value-accessor","name":"TextValueAccessor","line":64,"character":4},{"__symbolic":"reference","module":"./directives/virtual-scroll","name":"VirtualScroll","line":66,"character":4},{"__symbolic":"reference","module":"./directives/virtual-item","name":"VirtualItem","line":67,"character":4},{"__symbolic":"reference","module":"./directives/virtual-header","name":"VirtualHeader","line":68,"character":4},{"__symbolic":"reference","module":"./directives/virtual-footer","name":"VirtualFooter","line":69,"character":4}],"providers":[{"__symbolic":"reference","module":"./providers/angular-delegate","name":"AngularDelegate","line":72,"character":4},{"__symbolic":"reference","module":"./providers/modal-controller","name":"ModalController","line":73,"character":4},{"__symbolic":"reference","module":"./providers/popover-controller","name":"PopoverController","line":74,"character":4}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":77,"character":4}],"schemas":[{"__symbolic":"reference","module":"@angular/core","name":"CUSTOM_ELEMENTS_SCHEMA","line":80,"character":4}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"IonicAngularModule"},"providers":[{"__symbolic":"reference","module":"./providers/alert-controller","name":"AlertController","line":88,"character":8},{"__symbolic":"reference","module":"./providers/action-sheet-controller","name":"ActionSheetController","line":89,"character":8},{"__symbolic":"reference","module":"./providers/events","name":"Events","line":90,"character":8},{"__symbolic":"reference","module":"./providers/loading-controller","name":"LoadingController","line":91,"character":8},{"__symbolic":"reference","module":"./providers/picker-controller","name":"PickerController","line":92,"character":8},{"__symbolic":"reference","module":"./providers/menu-controller","name":"MenuController","line":93,"character":8},{"__symbolic":"reference","module":"./providers/platform","name":"Platform","line":94,"character":8},{"__symbolic":"reference","module":"./providers/toast-controller","name":"ToastController","line":95,"character":8},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":97,"character":19},"useFactory":{"__symbolic":"reference","module":"./providers/events","name":"setupProvideEvents","line":97,"character":48},"multi":true}]}}}}}}]
import { ActionSheetOptions } from '@ionic/core';
export declare class ActionSheetController {
create(opts?: ActionSheetOptions): ActionSheetProxy;
import { OverlayBaseController } from '../util/overlay';
export declare class ActionSheetController extends OverlayBaseController<ActionSheetOptions, HTMLIonActionSheetElement> {
constructor();
}
export declare function getActionSheetProxy(opts: ActionSheetOptions): {
id: number;
state: number;
opts: ActionSheetOptions;
present: () => Promise<any>;
dismiss: () => Promise<any>;
onDidDismiss: (callback: (data: any, role: string) => void) => void;
onWillDismiss: (callback: (data: any, role: string) => void) => void;
};
export declare function present(actionSheetProxy: ActionSheetProxyInternal): Promise<any>;
export declare function dismiss(actionSheetProxy: ActionSheetProxyInternal): Promise<any>;
export declare function loadOverlay(opts: ActionSheetOptions): Promise<HTMLIonActionSheetElement>;
export interface ActionSheetProxy {
present(): Promise<void>;
dismiss(): Promise<void>;
onDidDismiss(callback: (data: any, role: string) => void): void;
onWillDismiss(callback: (data: any, role: string) => void): void;
}
export interface ActionSheetProxyInternal extends ActionSheetProxy {
id: number;
opts: ActionSheetOptions;
state: number;
element: HTMLIonActionSheetElement;
onDidDismissHandler?: (data: any, role: string) => void;
onWillDismissHandler?: (data: any, role: string) => void;
}
export declare const PRESENTING = 1;
export declare const DISMISSING = 2;
import { Injectable } from '@angular/core';
import { ensureElementInBody, hydrateElement } from '../util/util';
let actionSheetId = 0;
export class ActionSheetController {
create(opts) {
return getActionSheetProxy(opts);
import { OverlayBaseController } from '../util/overlay';
export class ActionSheetController extends OverlayBaseController {
constructor() {
super('ion-action-sheet-controller');
}

@@ -14,66 +13,2 @@ }

ActionSheetController.ctorParameters = () => [];
export function getActionSheetProxy(opts) {
return {
id: actionSheetId++,
state: PRESENTING,
opts: opts,
present: function () { return present(this); },
dismiss: function () { return dismiss(this); },
onDidDismiss: function (callback) {
this.onDidDismissHandler = callback;
},
onWillDismiss: function (callback) {
this.onWillDismissHandler = callback;
},
};
}
export function present(actionSheetProxy) {
actionSheetProxy.state = PRESENTING;
return loadOverlay(actionSheetProxy.opts).then((actionSheetElement) => {
actionSheetProxy.element = actionSheetElement;
const onDidDismissHandler = (event) => {
actionSheetElement.removeEventListener(ION_ACTION_SHEET_DID_DISMISS_EVENT, onDidDismissHandler);
if (actionSheetProxy.onDidDismissHandler) {
actionSheetProxy.onDidDismissHandler(event.detail.data, event.detail.role);
}
};
const onWillDismissHandler = (event) => {
actionSheetElement.removeEventListener(ION_ACTION_SHEET_WILL_DISMISS_EVENT, onWillDismissHandler);
if (actionSheetProxy.onWillDismissHandler) {
actionSheetProxy.onWillDismissHandler(event.detail.data, event.detail.role);
}
};
actionSheetElement.addEventListener(ION_ACTION_SHEET_DID_DISMISS_EVENT, onDidDismissHandler);
actionSheetElement.addEventListener(ION_ACTION_SHEET_WILL_DISMISS_EVENT, onWillDismissHandler);
if (actionSheetProxy.state === PRESENTING) {
return actionSheetElement.present();
}
// we'll only ever get here if someone tried to dismiss the overlay or mess with it's internal state
// attribute before it could async load and present itself.
// with that in mind, just return null to make the TS compiler happy
return null;
});
}
export function dismiss(actionSheetProxy) {
actionSheetProxy.state = DISMISSING;
if (actionSheetProxy.element) {
if (actionSheetProxy.state === DISMISSING) {
return actionSheetProxy.element.dismiss();
}
}
// either we're not in the dismissing state
// or we're calling this before the element is created
// so just return a resolved promise
return Promise.resolve();
}
export function loadOverlay(opts) {
const element = ensureElementInBody('ion-action-sheet-controller');
return hydrateElement(element).then(() => {
return element.create(opts);
});
}
export const PRESENTING = 1;
export const DISMISSING = 2;
const ION_ACTION_SHEET_DID_DISMISS_EVENT = 'ionActionSheetDidDismiss';
const ION_ACTION_SHEET_WILL_DISMISS_EVENT = 'ionActionSheetWillDismiss';
//# sourceMappingURL=action-sheet-controller.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"ActionSheetController":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"create":[{"__symbolic":"method"}]}},"getActionSheetProxy":{"__symbolic":"function","parameters":["opts"],"value":{"__symbolic":"error","message":"Expression form not supported","line":16,"character":8}},"present":{"__symbolic":"function"},"dismiss":{"__symbolic":"function"},"loadOverlay":{"__symbolic":"function"},"ActionSheetProxy":{"__symbolic":"interface"},"ActionSheetProxyInternal":{"__symbolic":"interface"},"PRESENTING":1,"DISMISSING":2}}]
[{"__symbolic":"module","version":4,"metadata":{"ActionSheetController":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../util/overlay","name":"OverlayBaseController","line":5,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}}}}]
import { AlertOptions } from '@ionic/core';
export declare class AlertController {
create(opts?: AlertOptions): AlertProxy;
import { OverlayBaseController } from '../util/overlay';
export declare class AlertController extends OverlayBaseController<AlertOptions, HTMLIonAlertElement> {
constructor();
}
export declare function getAlertProxy(opts: AlertOptions): {
id: number;
state: number;
opts: AlertOptions;
present: () => Promise<any>;
dismiss: () => Promise<any>;
onDidDismiss: (callback: (data: any, role: string) => void) => void;
onWillDismiss: (callback: (data: any, role: string) => void) => void;
};
export declare function present(alertProxy: AlertProxyInternal): Promise<any>;
export declare function dismiss(alertProxy: AlertProxyInternal): Promise<any>;
export declare function loadOverlay(opts: AlertOptions): Promise<HTMLIonAlertElement>;
export interface AlertProxy {
present(): Promise<void>;
dismiss(): Promise<void>;
onDidDismiss(callback: (data: any, role: string) => void): void;
onWillDismiss(callback: (data: any, role: string) => void): void;
}
export interface AlertProxyInternal extends AlertProxy {
id: number;
opts: AlertOptions;
state: number;
element: HTMLIonAlertElement;
onDidDismissHandler?: (data: any, role: string) => void;
onWillDismissHandler?: (data: any, role: string) => void;
}
export declare const PRESENTING = 1;
export declare const DISMISSING = 2;
import { Injectable } from '@angular/core';
import { ensureElementInBody, hydrateElement } from '../util/util';
let alertId = 0;
export class AlertController {
create(opts) {
return getAlertProxy(opts);
import { OverlayBaseController } from '../util/overlay';
export class AlertController extends OverlayBaseController {
constructor() {
super('ion-alert-controller');
}

@@ -14,66 +13,2 @@ }

AlertController.ctorParameters = () => [];
export function getAlertProxy(opts) {
return {
id: alertId++,
state: PRESENTING,
opts: opts,
present: function () { return present(this); },
dismiss: function () { return dismiss(this); },
onDidDismiss: function (callback) {
this.onDidDismissHandler = callback;
},
onWillDismiss: function (callback) {
this.onWillDismissHandler = callback;
},
};
}
export function present(alertProxy) {
alertProxy.state = PRESENTING;
return loadOverlay(alertProxy.opts).then((alertElement) => {
alertProxy.element = alertElement;
const onDidDismissHandler = (event) => {
alertElement.removeEventListener(ION_ALERT_DID_DISMISS_EVENT, onDidDismissHandler);
if (alertProxy.onDidDismissHandler) {
alertProxy.onDidDismissHandler(event.detail.data, event.detail.role);
}
};
const onWillDismissHandler = (event) => {
alertElement.removeEventListener(ION_ALERT_WILL_DISMISS_EVENT, onWillDismissHandler);
if (alertProxy.onWillDismissHandler) {
alertProxy.onWillDismissHandler(event.detail.data, event.detail.role);
}
};
alertElement.addEventListener(ION_ALERT_DID_DISMISS_EVENT, onDidDismissHandler);
alertElement.addEventListener(ION_ALERT_WILL_DISMISS_EVENT, onWillDismissHandler);
if (alertProxy.state === PRESENTING) {
return alertElement.present();
}
// we'll only ever get here if someone tried to dismiss the overlay or mess with it's internal state
// attribute before it could async load and present itself.
// with that in mind, just return null to make the TS compiler happy
return null;
});
}
export function dismiss(alertProxy) {
alertProxy.state = DISMISSING;
if (alertProxy.element) {
if (alertProxy.state === DISMISSING) {
return alertProxy.element.dismiss();
}
}
// either we're not in the dismissing state
// or we're calling this before the element is created
// so just return a resolved promise
return Promise.resolve();
}
export function loadOverlay(opts) {
const element = ensureElementInBody('ion-alert-controller');
return hydrateElement(element).then(() => {
return element.create(opts);
});
}
export const PRESENTING = 1;
export const DISMISSING = 2;
const ION_ALERT_DID_DISMISS_EVENT = 'ionAlertDidDismiss';
const ION_ALERT_WILL_DISMISS_EVENT = 'ionAlertWillDismiss';
//# sourceMappingURL=alert-controller.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"AlertController":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"create":[{"__symbolic":"method"}]}},"getAlertProxy":{"__symbolic":"function","parameters":["opts"],"value":{"__symbolic":"error","message":"Expression form not supported","line":16,"character":8}},"present":{"__symbolic":"function"},"dismiss":{"__symbolic":"function"},"loadOverlay":{"__symbolic":"function"},"AlertProxy":{"__symbolic":"interface"},"AlertProxyInternal":{"__symbolic":"interface"},"PRESENTING":1,"DISMISSING":2}}]
[{"__symbolic":"module","version":4,"metadata":{"AlertController":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../util/overlay","name":"OverlayBaseController","line":5,"character":37},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}}}}]
import { LoadingOptions } from '@ionic/core';
export declare class LoadingController {
create(opts?: LoadingOptions): LoadingProxy;
import { OverlayBaseController } from '../util/overlay';
export declare class LoadingController extends OverlayBaseController<LoadingOptions, HTMLIonLoadingElement> {
constructor();
}
export declare function getLoadingProxy(opts: LoadingOptions): {
id: number;
state: number;
opts: LoadingOptions;
present: () => Promise<any>;
dismiss: () => Promise<any>;
onDidDismiss: (callback: (data: any, role: string) => void) => void;
onWillDismiss: (callback: (data: any, role: string) => void) => void;
};
export declare function present(loadingProxy: LoadingProxyInternal): Promise<any>;
export declare function dismiss(loadingProxy: LoadingProxyInternal): Promise<any>;
export declare function loadOverlay(opts: LoadingOptions): Promise<HTMLIonLoadingElement>;
export interface LoadingProxy {
present(): Promise<void>;
dismiss(): Promise<void>;
onDidDismiss(callback: (data: any, role: string) => void): void;
onWillDismiss(callback: (data: any, role: string) => void): void;
}
export interface LoadingProxyInternal extends LoadingProxy {
id: number;
opts: LoadingOptions;
state: number;
element: HTMLIonLoadingElement;
onDidDismissHandler?: (data: any, role: string) => void;
onWillDismissHandler?: (data: any, role: string) => void;
}
export declare const PRESENTING = 1;
export declare const DISMISSING = 2;
import { Injectable } from '@angular/core';
import { ensureElementInBody, hydrateElement } from '../util/util';
let loadingId = 0;
export class LoadingController {
create(opts) {
return getLoadingProxy(opts);
import { OverlayBaseController } from '../util/overlay';
export class LoadingController extends OverlayBaseController {
constructor() {
super('ion-loading-controller');
}

@@ -14,66 +13,2 @@ }

LoadingController.ctorParameters = () => [];
export function getLoadingProxy(opts) {
return {
id: loadingId++,
state: PRESENTING,
opts: opts,
present: function () { return present(this); },
dismiss: function () { return dismiss(this); },
onDidDismiss: function (callback) {
this.onDidDismissHandler = callback;
},
onWillDismiss: function (callback) {
this.onWillDismissHandler = callback;
},
};
}
export function present(loadingProxy) {
loadingProxy.state = PRESENTING;
return loadOverlay(loadingProxy.opts).then((loadingElement) => {
loadingProxy.element = loadingElement;
const onDidDismissHandler = (event) => {
loadingElement.removeEventListener(ION_LOADING_DID_DISMISS_EVENT, onDidDismissHandler);
if (loadingProxy.onDidDismissHandler) {
loadingProxy.onDidDismissHandler(event.detail.data, event.detail.role);
}
};
const onWillDismissHandler = (event) => {
loadingElement.removeEventListener(ION_LOADING_WILL_DISMISS_EVENT, onWillDismissHandler);
if (loadingProxy.onWillDismissHandler) {
loadingProxy.onWillDismissHandler(event.detail.data, event.detail.role);
}
};
loadingElement.addEventListener(ION_LOADING_DID_DISMISS_EVENT, onDidDismissHandler);
loadingElement.addEventListener(ION_LOADING_WILL_DISMISS_EVENT, onWillDismissHandler);
if (loadingProxy.state === PRESENTING) {
return loadingElement.present();
}
// we'll only ever get here if someone tried to dismiss the overlay or mess with it's internal state
// attribute before it could async load and present itself.
// with that in mind, just return null to make the TS compiler happy
return null;
});
}
export function dismiss(loadingProxy) {
loadingProxy.state = DISMISSING;
if (loadingProxy.element) {
if (loadingProxy.state === DISMISSING) {
return loadingProxy.element.dismiss();
}
}
// either we're not in the dismissing state
// or we're calling this before the element is created
// so just return a resolved promise
return Promise.resolve();
}
export function loadOverlay(opts) {
const element = ensureElementInBody('ion-loading-controller');
return hydrateElement(element).then(() => {
return element.create(opts);
});
}
export const PRESENTING = 1;
export const DISMISSING = 2;
const ION_LOADING_DID_DISMISS_EVENT = 'ionLoadingDidDismiss';
const ION_LOADING_WILL_DISMISS_EVENT = 'ionLoadingWillDismiss';
//# sourceMappingURL=loading-controller.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"LoadingController":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"create":[{"__symbolic":"method"}]}},"getLoadingProxy":{"__symbolic":"function","parameters":["opts"],"value":{"__symbolic":"error","message":"Expression form not supported","line":16,"character":8}},"present":{"__symbolic":"function"},"dismiss":{"__symbolic":"function"},"loadOverlay":{"__symbolic":"function"},"LoadingProxy":{"__symbolic":"interface"},"LoadingProxyInternal":{"__symbolic":"interface"},"PRESENTING":1,"DISMISSING":2}}]
[{"__symbolic":"module","version":4,"metadata":{"LoadingController":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../util/overlay","name":"OverlayBaseController","line":5,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}}}}]
export declare class MenuController {
constructor();
/**
* Programatically open the Menu.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {Promise} returns a promise when the menu is fully opened
*/
open(menuId?: string): Promise<boolean>;
/**
* Programatically close the Menu. If no `menuId` is given as the first
* argument then it'll close any menu which is open. If a `menuId`
* is given then it'll close that exact menu.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {Promise} returns a promise when the menu is fully closed
*/
close(menuId?: string): Promise<boolean>;
enable(enabled: boolean, menuId?: string): HTMLIonMenuElement;
enableAsync(menuId?: string): Promise<HTMLIonMenuElement>;
get(menuId?: string): HTMLIonMenuElement;
getAsync(menuId?: string): Promise<HTMLIonMenuElement>;
getMenus(): HTMLIonMenuElement[];
getMenusAsync(): Promise<HTMLIonMenuElement[]>;
getOpen(): HTMLIonMenuElement;
getOpenAsync(): Promise<HTMLIonMenuElement>;
isEnabled(menuId?: string): boolean;
isEnabledAsync(menuId?: string): Promise<boolean>;
isOpen(menuId?: string): boolean;
isOpenAsync(menuId?: string): Promise<boolean>;
open(menuId?: string): Promise<boolean>;
swipeEnable(shouldEnable: boolean, menuId?: string): HTMLIonMenuElement;
swipeEnableAsync(shouldEnable: boolean, menuId?: string): Promise<HTMLIonMenuElement>;
/**
* Toggle the menu. If it's closed, it will open, and if opened, it
* will close.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {Promise} returns a promise when the menu has been toggled
*/
toggle(menuId?: string): Promise<boolean>;
/**
* Used to enable or disable a menu. For example, there could be multiple
* left menus, but only one of them should be able to be opened at the same
* time. If there are multiple menus on the same side, then enabling one menu
* will also automatically disable all the others that are on the same side.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {HTMLIonMenuElement} Returns the instance of the menu, which is useful for chaining.
*/
enable(shouldEnable: boolean, menuId?: string): Promise<HTMLIonMenuElement>;
/**
* Used to enable or disable the ability to swipe open the menu.
* @param {boolean} shouldEnable True if it should be swipe-able, false if not.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {HTMLIonMenuElement} Returns the instance of the menu, which is useful for chaining.
*/
swipeEnable(shouldEnable: boolean, menuId?: string): Promise<HTMLIonMenuElement>;
/**
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {boolean} Returns true if the specified menu is currently open, otherwise false.
* If the menuId is not specified, it returns true if ANY menu is currenly open.
*/
isOpen(menuId?: string): Promise<boolean>;
/**
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {boolean} Returns true if the menu is currently enabled, otherwise false.
*/
isEnabled(menuId?: string): Promise<boolean>;
/**
* Used to get a menu instance. If a `menuId` is not provided then it'll
* return the first menu found. If a `menuId` is `left` or `right`, then
* it'll return the enabled menu on that side. Otherwise, if a `menuId` is
* provided, then it'll try to find the menu using the menu's `id`
* property. If a menu is not found then it'll return `null`.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {HTMLIonMenuElement} Returns the instance of the menu if found, otherwise `null`.
*/
get(menuId?: string): Promise<HTMLIonMenuElement>;
/**
* @return {Menu} Returns the instance of the menu already opened, otherwise `null`.
*/
getOpen(): Promise<HTMLIonMenuElement>;
/**
* @return {Array<HTMLIonMenuElement>} Returns an array of all menu instances.
*/
getMenus(): Promise<HTMLIonMenuElement[]>;
}

@@ -1,108 +0,97 @@

import { ensureElementInBody } from '../util/util';
let element;
import { Injectable } from '@angular/core';
import { proxyMethod } from '../util/util';
const CTRL = 'ion-menu-controller';
export class MenuController {
constructor() {
element = ensureElementInBody('ion-menu-controller');
/**
* Programatically open the Menu.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {Promise} returns a promise when the menu is fully opened
*/
open(menuId) {
return proxyMethod(CTRL, 'open', menuId);
}
/**
* Programatically close the Menu. If no `menuId` is given as the first
* argument then it'll close any menu which is open. If a `menuId`
* is given then it'll close that exact menu.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {Promise} returns a promise when the menu is fully closed
*/
close(menuId) {
return element.componentOnReady().then(() => {
return element.close(menuId);
});
return proxyMethod(CTRL, 'close', menuId);
}
// maintain legacy sync api
enable(enabled, menuId) {
if (element && element.enable) {
return element.enable(enabled, menuId);
}
// IDK, this is not a good place to be in
return null;
/**
* Toggle the menu. If it's closed, it will open, and if opened, it
* will close.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {Promise} returns a promise when the menu has been toggled
*/
toggle(menuId) {
return proxyMethod(CTRL, 'toggle', menuId);
}
enableAsync(menuId) {
return element.componentOnReady().then(() => {
return element.enable(true, menuId);
});
/**
* Used to enable or disable a menu. For example, there could be multiple
* left menus, but only one of them should be able to be opened at the same
* time. If there are multiple menus on the same side, then enabling one menu
* will also automatically disable all the others that are on the same side.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {HTMLIonMenuElement} Returns the instance of the menu, which is useful for chaining.
*/
enable(shouldEnable, menuId) {
return proxyMethod(CTRL, 'enable', shouldEnable, menuId);
}
get(menuId) {
if (element && element.get) {
return element.get(menuId);
}
// IDK, this is not a good place to be in
return null;
/**
* Used to enable or disable the ability to swipe open the menu.
* @param {boolean} shouldEnable True if it should be swipe-able, false if not.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {HTMLIonMenuElement} Returns the instance of the menu, which is useful for chaining.
*/
swipeEnable(shouldEnable, menuId) {
return proxyMethod(CTRL, 'swipeEnable', shouldEnable, menuId);
}
getAsync(menuId) {
return element.componentOnReady().then(() => {
return element.get(menuId);
});
/**
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {boolean} Returns true if the specified menu is currently open, otherwise false.
* If the menuId is not specified, it returns true if ANY menu is currenly open.
*/
isOpen(menuId) {
return proxyMethod(CTRL, 'isOpen', menuId);
}
getMenus() {
if (element && element.getMenus) {
return element.getMenus();
}
// IDK, this is not a good place to be in
return [];
/**
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {boolean} Returns true if the menu is currently enabled, otherwise false.
*/
isEnabled(menuId) {
return proxyMethod(CTRL, 'isEnabled', menuId);
}
getMenusAsync() {
return element.componentOnReady().then(() => {
return element.getMenus();
});
/**
* Used to get a menu instance. If a `menuId` is not provided then it'll
* return the first menu found. If a `menuId` is `left` or `right`, then
* it'll return the enabled menu on that side. Otherwise, if a `menuId` is
* provided, then it'll try to find the menu using the menu's `id`
* property. If a menu is not found then it'll return `null`.
* @param {string} [menuId] Optionally get the menu by its id, or side.
* @return {HTMLIonMenuElement} Returns the instance of the menu if found, otherwise `null`.
*/
get(menuId) {
return proxyMethod(CTRL, 'get', menuId);
}
/**
* @return {Menu} Returns the instance of the menu already opened, otherwise `null`.
*/
getOpen() {
if (element && element.getOpen) {
return element.getOpen();
}
// IDK, this is not a good place to be in
return null;
return proxyMethod(CTRL, 'getOpen');
}
getOpenAsync() {
return element.componentOnReady().then(() => {
return element.getOpen();
});
/**
* @return {Array<HTMLIonMenuElement>} Returns an array of all menu instances.
*/
getMenus() {
return proxyMethod(CTRL, 'getMenus');
}
isEnabled(menuId) {
if (element && element.isEnabled) {
return element.isEnabled(menuId);
}
// IDK, this is not a good place to be in
return false;
}
isEnabledAsync(menuId) {
return element.componentOnReady().then(() => {
return element.isEnabled(menuId);
});
}
isOpen(menuId) {
if (element && element.isOpen) {
return element.isOpen(menuId);
}
// IDK, this is not a good place to be in
return false;
}
isOpenAsync(menuId) {
return element.componentOnReady().then(() => {
return element.isOpen(menuId);
});
}
open(menuId) {
return element.componentOnReady().then(() => {
return element.open(menuId);
});
}
swipeEnable(shouldEnable, menuId) {
if (element && element.swipeEnable) {
return element.swipeEnable(shouldEnable, menuId);
}
// IDK, this is not a good place to be in
return null;
}
swipeEnableAsync(shouldEnable, menuId) {
return element.componentOnReady().then(() => {
return element.swipeEnable(shouldEnable, menuId);
});
}
toggle(menuId) {
return element.componentOnReady().then(() => {
return element.toggle(menuId);
});
}
}
MenuController.decorators = [
{ type: Injectable },
];
/** @nocollapse */
MenuController.ctorParameters = () => [];
//# sourceMappingURL=menu-controller.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"MenuController":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}],"close":[{"__symbolic":"method"}],"enable":[{"__symbolic":"method"}],"enableAsync":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"getAsync":[{"__symbolic":"method"}],"getMenus":[{"__symbolic":"method"}],"getMenusAsync":[{"__symbolic":"method"}],"getOpen":[{"__symbolic":"method"}],"getOpenAsync":[{"__symbolic":"method"}],"isEnabled":[{"__symbolic":"method"}],"isEnabledAsync":[{"__symbolic":"method"}],"isOpen":[{"__symbolic":"method"}],"isOpenAsync":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"swipeEnable":[{"__symbolic":"method"}],"swipeEnableAsync":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"MenuController":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1}}],"members":{"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"enable":[{"__symbolic":"method"}],"swipeEnable":[{"__symbolic":"method"}],"isOpen":[{"__symbolic":"method"}],"isEnabled":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"getOpen":[{"__symbolic":"method"}],"getMenus":[{"__symbolic":"method"}]}}}}]

@@ -1,42 +0,11 @@

import { ComponentFactoryResolver, Injector, Type } from '@angular/core';
import { FrameworkDelegate, ModalOptions } from '@ionic/core';
import { AngularComponentMounter } from '../providers/angular-component-mounter';
import { AngularMountingData } from '../types/interfaces';
export declare class ModalController implements FrameworkDelegate {
private angularComponentMounter;
private componentResolveFactory;
import { ComponentFactoryResolver, Injector } from '@angular/core';
import { ModalOptions } from '@ionic/core';
import { OverlayBaseController } from '../util/overlay';
import { AngularDelegate } from './angular-delegate';
export declare class ModalController extends OverlayBaseController<ModalOptions, HTMLIonModalElement> {
private cfr;
private injector;
constructor(angularComponentMounter: AngularComponentMounter, componentResolveFactory: ComponentFactoryResolver, injector: Injector);
create(opts?: ModalOptions): ModalProxy;
dismiss(data?: any, role?: string, id?: number): Promise<void>;
attachViewToDom(elementOrContainerToMountTo: HTMLElement, elementOrComponentToMount: Type<any>, data?: any, classesToAdd?: string[]): Promise<AngularMountingData>;
removeViewFromDom(parentElement: HTMLElement, childElement: HTMLElement): Promise<any>;
private angularDelegate;
constructor(cfr: ComponentFactoryResolver, injector: Injector, angularDelegate: AngularDelegate);
create(opts?: ModalOptions): Promise<HTMLIonModalElement>;
}
export declare function getModalProxy(opts: ModalOptions): {
id: number;
state: number;
opts: ModalOptions;
present: () => Promise<any>;
dismiss: () => Promise<any>;
onDidDismiss: (callback: (data: any, role: string) => void) => void;
onWillDismiss: (callback: (data: any, role: string) => void) => void;
};
export declare function present(modalProxy: ModalProxyInternal): Promise<any>;
export declare function dismiss(modalProxy: ModalProxyInternal): Promise<any>;
export declare function loadOverlay(opts: ModalOptions): Promise<HTMLIonModalElement>;
export interface ModalProxy {
present(): Promise<void>;
dismiss(): Promise<void>;
onDidDismiss(callback: (data: any, role: string) => void): void;
onWillDismiss(callback: (data: any, role: string) => void): void;
}
export interface ModalProxyInternal extends ModalProxy {
id: number;
opts: ModalOptions;
state: number;
element: HTMLIonModalElement;
onDidDismissHandler?: (data: any, role: string) => void;
onWillDismissHandler?: (data: any, role: string) => void;
}
export declare const PRESENTING = 1;
export declare const DISMISSING = 2;

@@ -1,27 +0,14 @@

import { ComponentFactoryResolver, Injectable, Injector, } from '@angular/core';
import { AngularComponentMounter } from '../providers/angular-component-mounter';
import { ensureElementInBody, hydrateElement } from '../util/util';
let modalId = 0;
export class ModalController {
constructor(angularComponentMounter, componentResolveFactory, injector) {
this.angularComponentMounter = angularComponentMounter;
this.componentResolveFactory = componentResolveFactory;
import { ComponentFactoryResolver, Injectable, Injector } from '@angular/core';
import { OverlayBaseController } from '../util/overlay';
import { AngularDelegate } from './angular-delegate';
export class ModalController extends OverlayBaseController {
constructor(cfr, injector, angularDelegate) {
super('ion-modal-controller');
this.cfr = cfr;
this.injector = injector;
this.angularDelegate = angularDelegate;
}
create(opts) {
opts.delegate = this;
return getModalProxy(opts);
return super.create(Object.assign({}, opts, { delegate: this.angularDelegate.create(this.cfr, this.injector) }));
}
dismiss(data, role, id) {
const modalController = document.querySelector('ion-modal-controller');
return modalController.componentOnReady().then(() => {
return modalController.dismiss(data, role, id);
});
}
attachViewToDom(elementOrContainerToMountTo, elementOrComponentToMount, data, classesToAdd) {
return this.angularComponentMounter.attachViewToDom(elementOrContainerToMountTo, null, elementOrComponentToMount, this.componentResolveFactory, this.injector, data, classesToAdd);
}
removeViewFromDom(parentElement, childElement) {
return this.angularComponentMounter.removeViewFromDom(parentElement, childElement);
}
}

@@ -33,71 +20,6 @@ ModalController.decorators = [

ModalController.ctorParameters = () => [
{ type: AngularComponentMounter, },
{ type: ComponentFactoryResolver, },
{ type: Injector, },
{ type: AngularDelegate, },
];
export function getModalProxy(opts) {
return {
id: modalId++,
state: PRESENTING,
opts: opts,
present: function () { return present(this); },
dismiss: function () { return dismiss(this); },
onDidDismiss: function (callback) {
this.onDidDismissHandler = callback;
},
onWillDismiss: function (callback) {
this.onWillDismissHandler = callback;
},
};
}
export function present(modalProxy) {
modalProxy.state = PRESENTING;
return loadOverlay(modalProxy.opts).then((modalElement) => {
Object.assign(modalElement, modalProxy.opts);
modalProxy.element = modalElement;
const onDidDismissHandler = (event) => {
modalElement.removeEventListener(ION_MODAL_DID_DISMISS_EVENT, onDidDismissHandler);
if (modalProxy.onDidDismissHandler) {
modalProxy.onDidDismissHandler(event.detail.data, event.detail.role);
}
};
const onWillDismissHandler = (event) => {
modalElement.removeEventListener(ION_MODAL_WILL_DISMISS_EVENT, onWillDismissHandler);
if (modalProxy.onWillDismissHandler) {
modalProxy.onWillDismissHandler(event.detail.data, event.detail.role);
}
};
modalElement.addEventListener(ION_MODAL_DID_DISMISS_EVENT, onDidDismissHandler);
modalElement.addEventListener(ION_MODAL_WILL_DISMISS_EVENT, onWillDismissHandler);
if (modalProxy.state === PRESENTING) {
return modalElement.present();
}
// we'll only ever get here if someone tried to dismiss the overlay or mess with it's internal state
// attribute before it could async load and present itself.
// with that in mind, just return null to make the TS compiler happy
return null;
});
}
export function dismiss(modalProxy) {
modalProxy.state = DISMISSING;
if (modalProxy.element) {
if (modalProxy.state === DISMISSING) {
return modalProxy.element.dismiss();
}
}
// either we're not in the dismissing state
// or we're calling this before the element is created
// so just return a resolved promise
return Promise.resolve();
}
export function loadOverlay(opts) {
const element = ensureElementInBody('ion-modal-controller');
return hydrateElement(element).then(() => {
return element.create(opts);
});
}
export const PRESENTING = 1;
export const DISMISSING = 2;
const ION_MODAL_DID_DISMISS_EVENT = 'ionModalDidDismiss';
const ION_MODAL_WILL_DISMISS_EVENT = 'ionModalWillDismiss';
//# sourceMappingURL=modal-controller.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"ModalController":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":20,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../providers/angular-component-mounter","name":"AngularComponentMounter","line":23,"character":47},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":23,"character":105},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":23,"character":149}]}],"create":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}],"attachViewToDom":[{"__symbolic":"method"}],"removeViewFromDom":[{"__symbolic":"method"}]}},"getModalProxy":{"__symbolic":"function","parameters":["opts"],"value":{"__symbolic":"error","message":"Expression form not supported","line":50,"character":8}},"present":{"__symbolic":"function"},"dismiss":{"__symbolic":"function"},"loadOverlay":{"__symbolic":"function"},"ModalProxy":{"__symbolic":"interface"},"ModalProxyInternal":{"__symbolic":"interface"},"PRESENTING":1,"DISMISSING":2}}]
[{"__symbolic":"module","version":4,"metadata":{"ModalController":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../util/overlay","name":"OverlayBaseController","line":6,"character":37},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":8,"character":17},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":9,"character":22},{"__symbolic":"reference","module":"./angular-delegate","name":"AngularDelegate","line":10,"character":29}]}],"create":[{"__symbolic":"method"}]}}}}]

@@ -1,42 +0,11 @@

import { ComponentFactoryResolver, Injector, Type } from '@angular/core';
import { FrameworkDelegate, PopoverOptions } from '@ionic/core';
import { AngularComponentMounter } from '../providers/angular-component-mounter';
import { AngularMountingData } from '../types/interfaces';
export declare class PopoverController implements FrameworkDelegate {
private angularComponentMounter;
private componentResolveFactory;
import { ComponentFactoryResolver, Injector } from '@angular/core';
import { PopoverOptions } from '@ionic/core';
import { OverlayBaseController } from '../util/overlay';
import { AngularDelegate } from './angular-delegate';
export declare class PopoverController extends OverlayBaseController<PopoverOptions, HTMLIonPopoverElement> {
private cfr;
private injector;
constructor(angularComponentMounter: AngularComponentMounter, componentResolveFactory: ComponentFactoryResolver, injector: Injector);
create(opts?: PopoverOptions): PopoverProxy;
dismiss(data?: any, role?: string, id?: number): Promise<void>;
attachViewToDom(elementOrContainerToMountTo: HTMLElement, elementOrComponentToMount: Type<any>, data?: any, classesToAdd?: string[]): Promise<AngularMountingData>;
removeViewFromDom(parentElement: HTMLElement, childElement: HTMLElement): Promise<any>;
private angularDelegate;
constructor(cfr: ComponentFactoryResolver, injector: Injector, angularDelegate: AngularDelegate);
create(opts?: PopoverOptions): Promise<HTMLIonPopoverElement>;
}
export declare function getPopoverProxy(opts: PopoverOptions): {
id: number;
state: number;
opts: PopoverOptions;
present: () => Promise<any>;
dismiss: () => Promise<any>;
onDidDismiss: (callback: (data: any, role: string) => void) => void;
onWillDismiss: (callback: (data: any, role: string) => void) => void;
};
export declare function present(popoverProxy: PopoverProxyInternal): Promise<any>;
export declare function dismiss(popoverProxy: PopoverProxyInternal): Promise<any>;
export declare function loadOverlay(opts: PopoverOptions): Promise<HTMLIonPopoverElement>;
export interface PopoverProxy {
present(): Promise<void>;
dismiss(): Promise<void>;
onDidDismiss(callback: (data: any, role: string) => void): void;
onWillDismiss(callback: (data: any, role: string) => void): void;
}
export interface PopoverProxyInternal extends PopoverProxy {
id: number;
opts: PopoverOptions;
state: number;
element: HTMLIonPopoverElement;
onDidDismissHandler?: (data: any, role: string) => void;
onWillDismissHandler?: (data: any, role: string) => void;
}
export declare const PRESENTING = 1;
export declare const DISMISSING = 2;

@@ -1,27 +0,14 @@

import { ComponentFactoryResolver, Injectable, Injector, } from '@angular/core';
import { AngularComponentMounter } from '../providers/angular-component-mounter';
import { ensureElementInBody, hydrateElement } from '../util/util';
let popoverId = 0;
export class PopoverController {
constructor(angularComponentMounter, componentResolveFactory, injector) {
this.angularComponentMounter = angularComponentMounter;
this.componentResolveFactory = componentResolveFactory;
import { ComponentFactoryResolver, Injectable, Injector } from '@angular/core';
import { OverlayBaseController } from '../util/overlay';
import { AngularDelegate } from './angular-delegate';
export class PopoverController extends OverlayBaseController {
constructor(cfr, injector, angularDelegate) {
super('ion-popover-controller');
this.cfr = cfr;
this.injector = injector;
this.angularDelegate = angularDelegate;
}
create(opts) {
opts.delegate = this;
return getPopoverProxy(opts);
return super.create(Object.assign({}, opts, { delegate: this.angularDelegate.create(this.cfr, this.injector) }));
}
dismiss(data, role, id) {
const popoverController = document.querySelector('ion-popover-controller');
return popoverController.componentOnReady().then(() => {
return popoverController.dismiss(data, role, id);
});
}
attachViewToDom(elementOrContainerToMountTo, elementOrComponentToMount, data, classesToAdd) {
return this.angularComponentMounter.attachViewToDom(elementOrContainerToMountTo, null, elementOrComponentToMount, this.componentResolveFactory, this.injector, data, classesToAdd);
}
removeViewFromDom(parentElement, childElement) {
return this.angularComponentMounter.removeViewFromDom(parentElement, childElement);
}
}

@@ -33,71 +20,6 @@ PopoverController.decorators = [

PopoverController.ctorParameters = () => [
{ type: AngularComponentMounter, },
{ type: ComponentFactoryResolver, },
{ type: Injector, },
{ type: AngularDelegate, },
];
export function getPopoverProxy(opts) {
return {
id: popoverId++,
state: PRESENTING,
opts: opts,
present: function () { return present(this); },
dismiss: function () { return dismiss(this); },
onDidDismiss: function (callback) {
this.onDidDismissHandler = callback;
},
onWillDismiss: function (callback) {
this.onWillDismissHandler = callback;
},
};
}
export function present(popoverProxy) {
popoverProxy.state = PRESENTING;
return loadOverlay(popoverProxy.opts).then((popoverElement) => {
Object.assign(popoverElement, popoverProxy.opts);
popoverProxy.element = popoverElement;
const onDidDismissHandler = (event) => {
popoverElement.removeEventListener(ION_POPOVER_DID_DISMISS_EVENT, onDidDismissHandler);
if (popoverProxy.onDidDismissHandler) {
popoverProxy.onDidDismissHandler(event.detail.data, event.detail.role);
}
};
const onWillDismissHandler = (event) => {
popoverElement.removeEventListener(ION_POPOVER_WILL_DISMISS_EVENT, onWillDismissHandler);
if (popoverProxy.onWillDismissHandler) {
popoverProxy.onWillDismissHandler(event.detail.data, event.detail.role);
}
};
popoverElement.addEventListener(ION_POPOVER_DID_DISMISS_EVENT, onDidDismissHandler);
popoverElement.addEventListener(ION_POPOVER_WILL_DISMISS_EVENT, onWillDismissHandler);
if (popoverProxy.state === PRESENTING) {
return popoverElement.present();
}
// we'll only ever get here if someone tried to dismiss the overlay or mess with it's internal state
// attribute before it could async load and present itself.
// with that in mind, just return null to make the TS compiler happy
return null;
});
}
export function dismiss(popoverProxy) {
popoverProxy.state = DISMISSING;
if (popoverProxy.element) {
if (popoverProxy.state === DISMISSING) {
return popoverProxy.element.dismiss();
}
}
// either we're not in the dismissing state
// or we're calling this before the element is created
// so just return a resolved promise
return Promise.resolve();
}
export function loadOverlay(opts) {
const element = ensureElementInBody('ion-popover-controller');
return hydrateElement(element).then(() => {
return element.create(opts);
});
}
export const PRESENTING = 1;
export const DISMISSING = 2;
const ION_POPOVER_DID_DISMISS_EVENT = 'ionPopoverDidDismiss';
const ION_POPOVER_WILL_DISMISS_EVENT = 'ionPopoverWillDismiss';
//# sourceMappingURL=popover-controller.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"PopoverController":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":20,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../providers/angular-component-mounter","name":"AngularComponentMounter","line":23,"character":47},{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":23,"character":105},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":23,"character":149}]}],"create":[{"__symbolic":"method"}],"dismiss":[{"__symbolic":"method"}],"attachViewToDom":[{"__symbolic":"method"}],"removeViewFromDom":[{"__symbolic":"method"}]}},"getPopoverProxy":{"__symbolic":"function","parameters":["opts"],"value":{"__symbolic":"error","message":"Expression form not supported","line":50,"character":8}},"present":{"__symbolic":"function"},"dismiss":{"__symbolic":"function"},"loadOverlay":{"__symbolic":"function"},"PopoverProxy":{"__symbolic":"interface"},"PopoverProxyInternal":{"__symbolic":"interface"},"PRESENTING":1,"DISMISSING":2}}]
[{"__symbolic":"module","version":4,"metadata":{"PopoverController":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../util/overlay","name":"OverlayBaseController","line":6,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":8,"character":17},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":9,"character":22},{"__symbolic":"reference","module":"./angular-delegate","name":"AngularDelegate","line":10,"character":29}]}],"create":[{"__symbolic":"method"}]}}}}]
import { ToastOptions } from '@ionic/core';
export declare class ToastController {
create(opts?: ToastOptions): ToastProxy;
import { OverlayBaseController } from '../util/overlay';
export declare class ToastController extends OverlayBaseController<ToastOptions, HTMLIonToastElement> {
constructor();
}
export declare function getToastProxy(opts: ToastOptions): {
id: number;
state: number;
opts: ToastOptions;
present: () => Promise<any>;
dismiss: () => Promise<any>;
onDidDismiss: (callback: (data: any, role: string) => void) => void;
onWillDismiss: (callback: (data: any, role: string) => void) => void;
};
export declare function present(toastProxy: ToastProxyInternal): Promise<any>;
export declare function dismiss(toastProxy: ToastProxyInternal): Promise<any>;
export declare function loadOverlay(opts: ToastOptions): Promise<HTMLIonToastElement>;
export interface ToastProxy {
present(): Promise<void>;
dismiss(): Promise<void>;
onDidDismiss(callback: (data: any, role: string) => void): void;
onWillDismiss(callback: (data: any, role: string) => void): void;
}
export interface ToastProxyInternal extends ToastProxy {
id: number;
opts: ToastOptions;
state: number;
element: HTMLIonToastElement;
onDidDismissHandler?: (data: any, role: string) => void;
onWillDismissHandler?: (data: any, role: string) => void;
}
export declare const PRESENTING = 1;
export declare const DISMISSING = 2;
import { Injectable } from '@angular/core';
import { ensureElementInBody, hydrateElement } from '../util/util';
let toastId = 0;
export class ToastController {
create(opts) {
return getToastProxy(opts);
import { OverlayBaseController } from '../util/overlay';
export class ToastController extends OverlayBaseController {
constructor() {
super('ion-toast-controller');
}

@@ -14,66 +13,2 @@ }

ToastController.ctorParameters = () => [];
export function getToastProxy(opts) {
return {
id: toastId++,
state: PRESENTING,
opts: opts,
present: function () { return present(this); },
dismiss: function () { return dismiss(this); },
onDidDismiss: function (callback) {
this.onDidDismissHandler = callback;
},
onWillDismiss: function (callback) {
this.onWillDismissHandler = callback;
},
};
}
export function present(toastProxy) {
toastProxy.state = PRESENTING;
return loadOverlay(toastProxy.opts).then((toastElement) => {
toastProxy.element = toastElement;
const onDidDismissHandler = (event) => {
toastElement.removeEventListener(ION_TOAST_DID_DISMISS_EVENT, onDidDismissHandler);
if (toastProxy.onDidDismissHandler) {
toastProxy.onDidDismissHandler(event.detail.data, event.detail.role);
}
};
const onWillDismissHandler = (event) => {
toastElement.removeEventListener(ION_TOAST_WILL_DISMISS_EVENT, onWillDismissHandler);
if (toastProxy.onWillDismissHandler) {
toastProxy.onWillDismissHandler(event.detail.data, event.detail.role);
}
};
toastElement.addEventListener(ION_TOAST_DID_DISMISS_EVENT, onDidDismissHandler);
toastElement.addEventListener(ION_TOAST_WILL_DISMISS_EVENT, onWillDismissHandler);
if (toastProxy.state === PRESENTING) {
return toastElement.present();
}
// we'll only ever get here if someone tried to dismiss the overlay or mess with it's internal state
// attribute before it could async load and present itself.
// with that in mind, just return null to make the TS compiler happy
return null;
});
}
export function dismiss(toastProxy) {
toastProxy.state = DISMISSING;
if (toastProxy.element) {
if (toastProxy.state === DISMISSING) {
return toastProxy.element.dismiss();
}
}
// either we're not in the dismissing state
// or we're calling this before the element is created
// so just return a resolved promise
return Promise.resolve();
}
export function loadOverlay(opts) {
const element = ensureElementInBody('ion-toast-controller');
return hydrateElement(element).then(() => {
return element.create(opts);
});
}
export const PRESENTING = 1;
export const DISMISSING = 2;
const ION_TOAST_DID_DISMISS_EVENT = 'ionToastDidDismiss';
const ION_TOAST_WILL_DISMISS_EVENT = 'ionToastWillDismiss';
//# sourceMappingURL=toast-controller.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"ToastController":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"create":[{"__symbolic":"method"}]}},"getToastProxy":{"__symbolic":"function","parameters":["opts"],"value":{"__symbolic":"error","message":"Expression form not supported","line":16,"character":8}},"present":{"__symbolic":"function"},"dismiss":{"__symbolic":"function"},"loadOverlay":{"__symbolic":"function"},"ToastProxy":{"__symbolic":"interface"},"ToastProxyInternal":{"__symbolic":"interface"},"PRESENTING":1,"DISMISSING":2}}]
[{"__symbolic":"module","version":4,"metadata":{"ToastController":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../util/overlay","name":"OverlayBaseController","line":5,"character":37},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}}}}]

@@ -1,16 +0,1 @@

import { ComponentFactory, ComponentFactoryResolver, ComponentRef, Injector } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { EscapeHatch, FrameworkMountingData } from '@ionic/core';
export interface AngularMountingData extends FrameworkMountingData {
componentFactory?: ComponentFactory<any>;
childInjector?: Injector;
componentRef?: ComponentRef<any>;
instance?: any;
angularHostElement?: HTMLElement;
}
export interface AngularEscapeHatch extends EscapeHatch {
activatedRoute?: ActivatedRoute;
cfr?: ComponentFactoryResolver;
injector?: Injector;
}
export interface IonicGlobal {

@@ -17,0 +2,0 @@ config: any;

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"AngularMountingData":{"__symbolic":"interface"},"AngularEscapeHatch":{"__symbolic":"interface"},"IonicGlobal":{"__symbolic":"interface"},"IonicWindow":{"__symbolic":"interface"}}}]
[{"__symbolic":"module","version":4,"metadata":{"IonicGlobal":{"__symbolic":"interface"},"IonicWindow":{"__symbolic":"interface"}}}]

@@ -1,6 +0,4 @@

export declare function hydrateElement(element: any): any;
export declare function getElement(elementName: string): Element;
export declare function ensureElementInBody(elementName: string): Element;
export declare function removeAllNodeChildren(element: HTMLElement): void;
export declare function isString(something: any): boolean;
export declare function getIonApp(): Promise<HTMLIonAppElement>;
import { ElementRef } from '@angular/core';
export declare function proxyMethod(ctrlName: string, methodName: string, ...args: any[]): Promise<any>;
export declare function proxyEl(ref: ElementRef, methodName: string, ...args: any[]): any;
export declare function ensureElementInBody(elementName: string): HTMLStencilElement;

@@ -1,9 +0,12 @@

export function hydrateElement(element) {
return element.componentOnReady();
export function proxyMethod(ctrlName, methodName, ...args) {
const controller = ensureElementInBody(ctrlName);
return controller.componentOnReady()
.then(() => controller[methodName].apply(controller, args));
}
export function getElement(elementName) {
return document.querySelector(elementName);
export function proxyEl(ref, methodName, ...args) {
return ref.nativeElement.componentOnReady()
.then((el) => el[methodName].apply(el, args));
}
export function ensureElementInBody(elementName) {
let element = getElement(elementName);
let element = document.querySelector(elementName);
if (!element) {

@@ -15,14 +18,2 @@ element = document.createElement(elementName);

}
export function removeAllNodeChildren(element) {
while (element.firstChild) {
element.removeChild(element.firstChild);
}
}
export function isString(something) {
return typeof something === 'string' ? true : false;
}
export function getIonApp() {
const element = ensureElementInBody('ion-app');
return element.componentOnReady();
}
//# sourceMappingURL=util.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"hydrateElement":{"__symbolic":"function","parameters":["element"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"element"},"member":"componentOnReady"}}},"getElement":{"__symbolic":"function","parameters":["elementName"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"document"},"member":"querySelector"},"arguments":[{"__symbolic":"reference","name":"elementName"}]}},"ensureElementInBody":{"__symbolic":"function"},"removeAllNodeChildren":{"__symbolic":"function"},"isString":{"__symbolic":"function","parameters":["something"],"value":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":25,"character":9},"right":"string"},"thenExpression":true,"elseExpression":false}},"getIonApp":{"__symbolic":"function"}}}]
[{"__symbolic":"module","version":4,"metadata":{"proxyMethod":{"__symbolic":"function"},"proxyEl":{"__symbolic":"function","parameters":["ref","methodName","args"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ref"},"member":"nativeElement"},"member":"componentOnReady"}},"member":"then"},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":10,"character":10}]}},"ensureElementInBody":{"__symbolic":"function"}}}]
{
"name": "@ionic/angular",
"version": "0.0.2-29",
"version": "0.1.4",
"description": "Angular specific wrappers for @ionic/core",

@@ -8,6 +8,7 @@ "keywords": [

"framework",
"angular",
"mobile",
"app",
"hybrid",
"webapp",
"capacitor",
"cordova",

@@ -24,10 +25,7 @@ "progressive web app",

"build": "npm run clean && npm run compile && npm run clean-generated",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"build.link": "npm run build && node scripts/link-copy.js",
"clean": "node scripts/clean.js",
"clean-generated": "node ./scripts/clean-generated.js",
"compile": "./node_modules/.bin/ngc",
"deploy": "node scripts/deploy.js",
"lint": "tslint --project .",
"prepare.deploy": "node scripts/deploy.js --prepare",
"set.version": "node scripts/set-version.js",
"tsc": "tsc -p ."

@@ -50,5 +48,4 @@ },

"@angular/router": "latest",
"@ionic/core": "^0.1.3",
"@ionic/core": "latest",
"chalk": "^2.3.2",
"conventional-changelog-cli": "^1.3.16",
"execa": "^0.9.0",

@@ -55,0 +52,0 @@ "fs-extra": "^5.0.0",

# @ionic/angular
Ionic Angular specific building blocks on top of [@ionic/core](https://www.npmjs.com/package/@ionic/core) components/services.
Ionic Angular specific building blocks on top of [@ionic/core](https://www.npmjs.com/package/@ionic/core) components.

@@ -8,6 +8,13 @@

* [Ionic Components](https://www.npmjs.com/package/@ionic/core)
* [Ionic Core Components](https://www.npmjs.com/package/@ionic/core)
* [Ionic Documentation](https://ionicframework.com/docs/)
* [Ionic Worldwide Slack](http://ionicworldwide.herokuapp.com/)
* [Ionic Forum](https://forum.ionicframework.com/)
* [Ionicons](http://ionicons.com/)
* [Ionic Worldwide Slack](http://ionicworldwide.herokuapp.com/)
* [Stencil](https://stenciljs.com/)
* [Stencil Worldwide Slack](https://stencil-worldwide.slack.com)
## License
* [MIT](https://raw.githubusercontent.com/ionic-team/ionic/master/LICENSE)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc