feat(overlays): expose animation customization

This commit is contained in:
Manu Mtz.-Almeida
2018-10-04 17:21:15 +02:00
parent f63c0f5ccc
commit dc976cc745
7 changed files with 25 additions and 8 deletions

View File

@ -1,3 +1,4 @@
import { AnimationBuilder } from '../../interface';
export interface ActionSheetOptions { export interface ActionSheetOptions {
header?: string; header?: string;
@ -10,6 +11,9 @@ export interface ActionSheetOptions {
mode?: string; mode?: string;
keyboardClose?: boolean; keyboardClose?: boolean;
id?: string; id?: string;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
} }
export interface ActionSheetButton { export interface ActionSheetButton {

View File

@ -1,4 +1,4 @@
import { TextFieldTypes } from '../../interface'; import { AnimationBuilder, TextFieldTypes } from '../../interface';
export interface AlertOptions { export interface AlertOptions {
header?: string; header?: string;
@ -14,6 +14,9 @@ export interface AlertOptions {
mode?: string; mode?: string;
keyboardClose?: boolean; keyboardClose?: boolean;
id?: string; id?: string;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
} }
export interface AlertInput { export interface AlertInput {

View File

@ -1,4 +1,4 @@
import { SpinnerTypes } from '../../interface'; import { AnimationBuilder, SpinnerTypes } from '../../interface';
export interface LoadingOptions { export interface LoadingOptions {
spinner?: SpinnerTypes; spinner?: SpinnerTypes;
@ -12,4 +12,7 @@ export interface LoadingOptions {
mode?: string; mode?: string;
keyboardClose?: boolean; keyboardClose?: boolean;
id?: string; id?: string;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
} }

View File

@ -5,8 +5,6 @@ export interface ModalOptions<T extends ComponentRef = ComponentRef> {
componentProps?: ComponentProps<T>; componentProps?: ComponentProps<T>;
showBackdrop?: boolean; showBackdrop?: boolean;
backdropDismiss?: boolean; backdropDismiss?: boolean;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
cssClass?: string | string[]; cssClass?: string | string[];
delegate?: FrameworkDelegate; delegate?: FrameworkDelegate;
animated?: boolean; animated?: boolean;
@ -14,4 +12,7 @@ export interface ModalOptions<T extends ComponentRef = ComponentRef> {
mode?: string; mode?: string;
keyboardClose?: boolean; keyboardClose?: boolean;
id?: string; id?: string;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
} }

View File

@ -1,3 +1,4 @@
import { AnimationBuilder } from '../../interface';
export interface PickerOptions { export interface PickerOptions {
columns: PickerColumn[]; columns: PickerColumn[];
@ -9,6 +10,9 @@ export interface PickerOptions {
mode?: string; mode?: string;
keyboardClose?: boolean; keyboardClose?: boolean;
id?: string; id?: string;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
} }
export interface PickerButton { export interface PickerButton {

View File

@ -6,8 +6,6 @@ export interface PopoverOptions<T extends ComponentRef = ComponentRef> {
showBackdrop?: boolean; showBackdrop?: boolean;
backdropDismiss?: boolean; backdropDismiss?: boolean;
translucent?: boolean; translucent?: boolean;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
cssClass?: string | string[]; cssClass?: string | string[];
event?: Event; event?: Event;
delegate?: FrameworkDelegate; delegate?: FrameworkDelegate;
@ -16,4 +14,7 @@ export interface PopoverOptions<T extends ComponentRef = ComponentRef> {
mode?: string; mode?: string;
keyboardClose?: boolean; keyboardClose?: boolean;
id?: string; id?: string;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
} }

View File

@ -8,11 +8,12 @@ export interface ToastOptions {
closeButtonText?: string; closeButtonText?: string;
position?: 'top' | 'bottom' | 'middle'; position?: 'top' | 'bottom' | 'middle';
translucent?: boolean; translucent?: boolean;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
animated?: boolean; animated?: boolean;
mode?: string; mode?: string;
keyboardClose?: boolean; keyboardClose?: boolean;
id?: string; id?: string;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
} }