UNPKG

@ionic/angular

Version:

Angular specific wrappers for @ionic/core

53 lines 3.09 kB
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 defineIonRefresher } from '@ionic/core/components/ion-refresher.js'; import * as i0 from "@angular/core"; let IonRefresher = class IonRefresher { z; el; ionRefresh = new EventEmitter(); ionPull = new EventEmitter(); ionStart = new EventEmitter(); ionPullStart = new EventEmitter(); ionPullEnd = 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: IonRefresher, 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: IonRefresher, isStandalone: true, selector: "ion-refresher", inputs: { closeDuration: "closeDuration", disabled: "disabled", mode: "mode", pullFactor: "pullFactor", pullMax: "pullMax", pullMin: "pullMin", snapbackDuration: "snapbackDuration" }, outputs: { ionRefresh: "ionRefresh", ionPull: "ionPull", ionStart: "ionStart", ionPullStart: "ionPullStart", ionPullEnd: "ionPullEnd" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }; IonRefresher = __decorate([ ProxyCmp({ defineCustomElementFn: defineIonRefresher, inputs: ['closeDuration', 'disabled', 'mode', 'pullFactor', 'pullMax', 'pullMin', 'snapbackDuration'], methods: ['complete', 'cancel', 'getProgress'] }) ], IonRefresher); export { IonRefresher }; i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: IonRefresher, decorators: [{ type: Component, args: [{ selector: 'ion-refresher', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property inputs: ['closeDuration', 'disabled', 'mode', 'pullFactor', 'pullMax', 'pullMin', 'snapbackDuration'], outputs: ['ionRefresh', 'ionPull', 'ionStart', 'ionPullStart', 'ionPullEnd'], }] }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { ionRefresh: [{ type: Output }], ionPull: [{ type: Output }], ionStart: [{ type: Output }], ionPullStart: [{ type: Output }], ionPullEnd: [{ type: Output }] } }); //# sourceMappingURL=ion-refresher.js.map