mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
feat(slides): remove ion-slide, ion-slides, and IonicSwiper module (#25868)
This commit is contained in:
@ -1681,114 +1681,6 @@ export class IonSkeletonText {
|
||||
}
|
||||
|
||||
|
||||
export declare interface IonSlide extends Components.IonSlide {}
|
||||
|
||||
@ProxyCmp({
|
||||
defineCustomElementFn: undefined
|
||||
})
|
||||
@Component({
|
||||
selector: 'ion-slide',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
template: '<ng-content></ng-content>'
|
||||
})
|
||||
export class IonSlide {
|
||||
protected el: HTMLElement;
|
||||
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
||||
c.detach();
|
||||
this.el = r.nativeElement;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export declare interface IonSlides extends Components.IonSlides {
|
||||
/**
|
||||
* Emitted after Swiper initialization
|
||||
*/
|
||||
ionSlidesDidLoad: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the user taps/clicks on the slide's container.
|
||||
*/
|
||||
ionSlideTap: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the user double taps on the slide's container.
|
||||
*/
|
||||
ionSlideDoubleTap: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted before the active slide has changed.
|
||||
*/
|
||||
ionSlideWillChange: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted after the active slide has changed.
|
||||
*/
|
||||
ionSlideDidChange: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the next slide has started.
|
||||
*/
|
||||
ionSlideNextStart: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the previous slide has started.
|
||||
*/
|
||||
ionSlidePrevStart: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the next slide has ended.
|
||||
*/
|
||||
ionSlideNextEnd: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the previous slide has ended.
|
||||
*/
|
||||
ionSlidePrevEnd: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the slide transition has started.
|
||||
*/
|
||||
ionSlideTransitionStart: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the slide transition has ended.
|
||||
*/
|
||||
ionSlideTransitionEnd: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the slider is actively being moved.
|
||||
*/
|
||||
ionSlideDrag: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the slider is at its initial position.
|
||||
*/
|
||||
ionSlideReachStart: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the slider is at the last slide.
|
||||
*/
|
||||
ionSlideReachEnd: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the user first touches the slider.
|
||||
*/
|
||||
ionSlideTouchStart: EventEmitter<CustomEvent<void>>;
|
||||
/**
|
||||
* Emitted when the user releases the touch.
|
||||
*/
|
||||
ionSlideTouchEnd: EventEmitter<CustomEvent<void>>;
|
||||
|
||||
}
|
||||
|
||||
@ProxyCmp({
|
||||
defineCustomElementFn: undefined,
|
||||
inputs: ['mode', 'options', 'pager', 'scrollbar'],
|
||||
methods: ['update', 'updateAutoHeight', 'slideTo', 'slideNext', 'slidePrev', 'getActiveIndex', 'getPreviousIndex', 'length', 'isEnd', 'isBeginning', 'startAutoplay', 'stopAutoplay', 'lockSwipeToNext', 'lockSwipeToPrev', 'lockSwipes', 'getSwiper']
|
||||
})
|
||||
@Component({
|
||||
selector: 'ion-slides',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
template: '<ng-content></ng-content>',
|
||||
inputs: ['mode', 'options', 'pager', 'scrollbar']
|
||||
})
|
||||
export class IonSlides {
|
||||
protected el: HTMLElement;
|
||||
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
|
||||
c.detach();
|
||||
this.el = r.nativeElement;
|
||||
proxyOutputs(this, this.el, ['ionSlidesDidLoad', 'ionSlideTap', 'ionSlideDoubleTap', 'ionSlideWillChange', 'ionSlideDidChange', 'ionSlideNextStart', 'ionSlidePrevStart', 'ionSlideNextEnd', 'ionSlidePrevEnd', 'ionSlideTransitionStart', 'ionSlideTransitionEnd', 'ionSlideDrag', 'ionSlideReachStart', 'ionSlideReachEnd', 'ionSlideTouchStart', 'ionSlideTouchEnd']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export declare interface IonSpinner extends Components.IonSpinner {}
|
||||
|
||||
@ProxyCmp({
|
||||
|
Reference in New Issue
Block a user