@ionic/angular
Version:
Angular specific wrappers for @ionic/core
62 lines • 4.12 kB
JavaScript
import { __decorate } from "tslib";
/* tslint:disable */
/* auto-generated angular directive proxies */
import { ChangeDetectionStrategy, Component, EventEmitter, Output } from '@angular/core';
import { ProxyCmp } from './angular-component-lib/utils';
import { defineCustomElement as defineIonAlert } from '@ionic/core/components/ion-alert.js';
import * as i0 from "@angular/core";
let IonAlert = class IonAlert {
z;
el;
ionAlertDidPresent = new EventEmitter();
ionAlertWillPresent = new EventEmitter();
ionAlertWillDismiss = new EventEmitter();
ionAlertDidDismiss = new EventEmitter();
didPresent = new EventEmitter();
willPresent = new EventEmitter();
willDismiss = new EventEmitter();
didDismiss = new EventEmitter();
constructor(c, r, z) {
this.z = z;
c.detach();
this.el = r.nativeElement;
}
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonAlert, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: IonAlert, isStandalone: true, selector: "ion-alert", inputs: { animated: "animated", backdropDismiss: "backdropDismiss", buttons: "buttons", cssClass: "cssClass", enterAnimation: "enterAnimation", header: "header", htmlAttributes: "htmlAttributes", inputs: "inputs", isOpen: "isOpen", keyboardClose: "keyboardClose", leaveAnimation: "leaveAnimation", message: "message", mode: "mode", subHeader: "subHeader", translucent: "translucent", trigger: "trigger" }, outputs: { ionAlertDidPresent: "ionAlertDidPresent", ionAlertWillPresent: "ionAlertWillPresent", ionAlertWillDismiss: "ionAlertWillDismiss", ionAlertDidDismiss: "ionAlertDidDismiss", didPresent: "didPresent", willPresent: "willPresent", willDismiss: "willDismiss", didDismiss: "didDismiss" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
};
IonAlert = __decorate([
ProxyCmp({
defineCustomElementFn: defineIonAlert,
inputs: ['animated', 'backdropDismiss', 'buttons', 'cssClass', 'enterAnimation', 'header', 'htmlAttributes', 'inputs', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'subHeader', 'translucent', 'trigger'],
methods: ['present', 'dismiss', 'onDidDismiss', 'onWillDismiss']
})
], IonAlert);
export { IonAlert };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonAlert, decorators: [{
type: Component,
args: [{
selector: 'ion-alert',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['animated', 'backdropDismiss', 'buttons', 'cssClass', 'enterAnimation', 'header', 'htmlAttributes', 'inputs', 'isOpen', 'keyboardClose', 'leaveAnimation', 'message', 'mode', 'subHeader', 'translucent', 'trigger'],
outputs: ['ionAlertDidPresent', 'ionAlertWillPresent', 'ionAlertWillDismiss', 'ionAlertDidDismiss', 'didPresent', 'willPresent', 'willDismiss', 'didDismiss'],
}]
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { ionAlertDidPresent: [{
type: Output
}], ionAlertWillPresent: [{
type: Output
}], ionAlertWillDismiss: [{
type: Output
}], ionAlertDidDismiss: [{
type: Output
}], didPresent: [{
type: Output
}], willPresent: [{
type: Output
}], willDismiss: [{
type: Output
}], didDismiss: [{
type: Output
}] } });
//# sourceMappingURL=ion-alert.js.map