@@ -1,4 +1,3 @@
Loading
1 -
// #region imports
2 1
import {
3 2
  ComponentRef,
4 3
  Injectable,
@@ -38,15 +37,19 @@
Loading
38 37
import {
39 38
  SkyToasterComponent
40 39
} from './toaster.component';
41 -
// #endregion
42 40
43 41
@Injectable()
44 42
export class SkyToastService implements OnDestroy {
43 +
44 +
  /**
45 +
   * @internal
46 +
   */
45 47
  public get toastStream(): Observable<SkyToast[]> {
46 48
    return this._toastStream;
47 49
  }
48 50
49 51
  private host: ComponentRef<SkyToasterComponent>;
52 +
50 53
  private toasts: SkyToast[] = [];
51 54
52 55
  private _toastStream = new BehaviorSubject<SkyToast[]>([]);
@@ -55,7 +58,7 @@
Loading
55 58
    private dynamicComponentService: SkyDynamicComponentService
56 59
  ) { }
57 60
58 -
  public ngOnDestroy() {
61 +
  public ngOnDestroy(): void {
59 62
    if (this.host) {
60 63
      this.closeAll();
61 64
      this.removeHostComponent();

@@ -6,6 +6,9 @@
Loading
6 6
  BehaviorSubject
7 7
} from 'rxjs';
8 8
9 +
/**
10 +
 * @internal
11 +
 */
9 12
@Injectable()
10 13
export class SkyToasterService {
11 14

@@ -1,4 +1,3 @@
Loading
1 -
// #region imports
2 1
import {
3 2
  Component
4 3
} from '@angular/core';
@@ -6,8 +5,10 @@
Loading
6 5
import {
7 6
  SkyToastBodyContext
8 7
} from './toast-body-context';
9 -
// #endregion
10 8
9 +
/**
10 +
 * @internal
11 +
 */
11 12
@Component({
12 13
  selector: 'sky-toast-body',
13 14
  templateUrl: './toast-body.component.html'

@@ -1,4 +1,3 @@
Loading
1 -
// #region imports
2 1
import {
3 2
  AnimationEvent
4 3
} from '@angular/animations';
@@ -41,10 +40,11 @@
Loading
41 40
  SkyToasterService
42 41
} from './toaster.service';
43 42
44 -
// #endregion
45 -
46 43
const AUTO_CLOSE_MILLISECONDS = 6000;
47 44
45 +
/**
46 +
 * @internal
47 +
 */
48 48
@Component({
49 49
  selector: 'sky-toast',
50 50
  templateUrl: './toast.component.html',
@@ -56,6 +56,7 @@
Loading
56 56
  encapsulation: ViewEncapsulation.None
57 57
})
58 58
export class SkyToastComponent implements OnInit, OnDestroy {
59 +
59 60
  /**
60 61
   * Indicates whether to automatically close the toast.
61 62
   */

@@ -1,9 +1,10 @@
Loading
1 -
// #region imports
2 1
import {
3 2
  Injectable
4 3
} from '@angular/core';
5 -
// #endregion
6 4
5 +
/**
6 +
 * @internal
7 +
 */
7 8
@Injectable()
8 9
export class SkyToastBodyContext {
9 10
  public message: string;

@@ -56,6 +56,9 @@
Loading
56 56
  SkyToastDisplayDirection
57 57
} from './types/toast-display-direction';
58 58
59 +
/**
60 +
 * @internal
61 +
 */
59 62
@Component({
60 63
  selector: 'sky-toaster',
61 64
  templateUrl: './toaster.component.html',
@@ -65,6 +68,7 @@
Loading
65 68
  encapsulation: ViewEncapsulation.None
66 69
})
67 70
export class SkyToasterComponent implements AfterViewInit, OnDestroy {
71 +
68 72
  public toastsForDisplay: SkyToast[];
69 73
70 74
  public get toastStream(): Observable<SkyToast[]> {

@@ -1,4 +1,3 @@
Loading
1 -
// #region imports
2 1
import {
3 2
  ElementRef,
4 3
  Injectable,
@@ -8,8 +7,10 @@
Loading
8 7
import {
9 8
  SkyAppWindowRef
10 9
} from '@skyux/core';
11 -
// #endregion
12 10
11 +
/**
12 +
 * @internal
13 +
 */
13 14
@Injectable()
14 15
export class SkyToastAdapterService {
15 16
Files Coverage
src/app/public 100.00%
Project Totals (15 files) 100.00%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading