Skip to content

Commit

Permalink
feat(overlays): expose animation customization
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Oct 4, 2018
1 parent f63c0f5 commit dc976cc
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 8 deletions.
4 changes: 4 additions & 0 deletions core/src/components/action-sheet/action-sheet-interface.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { AnimationBuilder } from '../../interface';

export interface ActionSheetOptions {
header?: string;
Expand All @@ -10,6 +11,9 @@ export interface ActionSheetOptions {
mode?: string;
keyboardClose?: boolean;
id?: string;

enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
}

export interface ActionSheetButton {
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/alert/alert-interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TextFieldTypes } from '../../interface';
import { AnimationBuilder, TextFieldTypes } from '../../interface';

export interface AlertOptions {
header?: string;
Expand All @@ -14,6 +14,9 @@ export interface AlertOptions {
mode?: string;
keyboardClose?: boolean;
id?: string;

enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
}

export interface AlertInput {
Expand Down
5 changes: 4 additions & 1 deletion core/src/components/loading/loading-interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SpinnerTypes } from '../../interface';
import { AnimationBuilder, SpinnerTypes } from '../../interface';

export interface LoadingOptions {
spinner?: SpinnerTypes;
Expand All @@ -12,4 +12,7 @@ export interface LoadingOptions {
mode?: string;
keyboardClose?: boolean;
id?: string;

enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
}
5 changes: 3 additions & 2 deletions core/src/components/modal/modal-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ export interface ModalOptions<T extends ComponentRef = ComponentRef> {
componentProps?: ComponentProps<T>;
showBackdrop?: boolean;
backdropDismiss?: boolean;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
cssClass?: string | string[];
delegate?: FrameworkDelegate;
animated?: boolean;

mode?: string;
keyboardClose?: boolean;
id?: string;

enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
}
4 changes: 4 additions & 0 deletions core/src/components/picker/picker-interface.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { AnimationBuilder } from '../../interface';

export interface PickerOptions {
columns: PickerColumn[];
Expand All @@ -9,6 +10,9 @@ export interface PickerOptions {
mode?: string;
keyboardClose?: boolean;
id?: string;

enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
}

export interface PickerButton {
Expand Down
5 changes: 3 additions & 2 deletions core/src/components/popover/popover-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ export interface PopoverOptions<T extends ComponentRef = ComponentRef> {
showBackdrop?: boolean;
backdropDismiss?: boolean;
translucent?: boolean;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
cssClass?: string | string[];
event?: Event;
delegate?: FrameworkDelegate;
Expand All @@ -16,4 +14,7 @@ export interface PopoverOptions<T extends ComponentRef = ComponentRef> {
mode?: string;
keyboardClose?: boolean;
id?: string;

enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
}
5 changes: 3 additions & 2 deletions core/src/components/toast/toast-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ export interface ToastOptions {
closeButtonText?: string;
position?: 'top' | 'bottom' | 'middle';
translucent?: boolean;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
animated?: boolean;

mode?: string;
keyboardClose?: boolean;
id?: string;

enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
}

0 comments on commit dc976cc

Please sign in to comment.