@@ -9,11 +9,11 @@ import {ModalConfig, ModalSize} from './modal-config';
99 selector : 'sui-modal' ,
1010 template : `
1111<!-- Page dimmer for modal background. -->
12- <sui-dimmer class="page" [(isDimmed)]="_dimBackground " [isClickable]="false" [transitionDuration]="transitionDuration" (click)="close()"></sui-dimmer>
12+ <sui-dimmer class="page" [(isDimmed)]="dimBackground " [isClickable]="false" [transitionDuration]="transitionDuration" (click)="close()"></sui-dimmer>
1313<!-- Modal component, with transition component attached -->
1414<div class="ui modal {{ size }}"
15- [suiTransition]="_transitionController "
16- [class.active]="_transitionController ?.isVisible"
15+ [suiTransition]="transitionController "
16+ [class.active]="transitionController ?.isVisible"
1717 [class.fullscreen]="isFullScreen"
1818 [class.basic]="isBasic"
1919 #modal>
@@ -83,7 +83,7 @@ export class SuiModal<T, U> implements OnInit, AfterViewInit {
8383 @Input ( )
8484 public isBasic :boolean ;
8585
86- private _transitionController :TransitionController ;
86+ public transitionController :TransitionController ;
8787
8888 // Transition to display modal with.
8989 @Input ( )
@@ -94,7 +94,7 @@ export class SuiModal<T, U> implements OnInit, AfterViewInit {
9494 public transitionDuration :number ;
9595
9696 // Whether or not the backround dimmer is active.
97- private _dimBackground :boolean ;
97+ public dimBackground :boolean ;
9898 // True after `approve` or `deny` has been called.
9999 private _isClosing :boolean ;
100100
@@ -118,16 +118,16 @@ export class SuiModal<T, U> implements OnInit, AfterViewInit {
118118 res => this . dismiss ( ( ) => this . onDeny . emit ( res ) ) ) ;
119119
120120 // Internal variable initialisation.
121- this . _dimBackground = false ;
121+ this . dimBackground = false ;
122122 this . _isClosing = false ;
123- this . _transitionController = new TransitionController ( false ) ;
123+ this . transitionController = new TransitionController ( false ) ;
124124 }
125125
126126 public ngOnInit ( ) {
127127 // Transition the modal to be visible.
128- this . _transitionController . animate ( new Transition ( this . transition , this . transitionDuration , TransitionDirection . In ) ) ;
128+ this . transitionController . animate ( new Transition ( this . transition , this . transitionDuration , TransitionDirection . In ) ) ;
129129 // Use a slight delay as the `<sui-dimmer>` cancels the initial transition.
130- setTimeout ( ( ) => this . _dimBackground = true ) ;
130+ setTimeout ( ( ) => this . dimBackground = true ) ;
131131 }
132132
133133 public ngAfterViewInit ( ) {
@@ -156,9 +156,9 @@ export class SuiModal<T, U> implements OnInit, AfterViewInit {
156156 this . _isClosing = true ;
157157
158158 // Transition the modal to be invisible.
159- this . _dimBackground = false ;
160- this . _transitionController . stopAll ( ) ;
161- this . _transitionController . animate (
159+ this . dimBackground = false ;
160+ this . transitionController . stopAll ( ) ;
161+ this . transitionController . animate (
162162 new Transition ( this . transition , this . transitionDuration , TransitionDirection . Out , ( ) => {
163163 // When done, emit a dismiss event, and fire the callback.
164164 this . onDismiss . emit ( ) ;
0 commit comments