• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atinc / ngx-tethys / 0bbb2cec-209e-4d8a-b1b3-6bc54e05daa6

04 Sep 2023 08:40AM UTC coverage: 15.616% (-74.6%) from 90.2%
0bbb2cec-209e-4d8a-b1b3-6bc54e05daa6

Pull #2829

circleci

cmm-va
fix: add test
Pull Request #2829: fix: add tabIndex

300 of 6386 branches covered (0.0%)

Branch coverage included in aggregate %.

78 of 78 new or added lines in 26 files covered. (100.0%)

2849 of 13779 relevant lines covered (20.68%)

83.41 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

30.77
/src/message/message.component.ts
1
import { Component, Input, HostBinding, NgZone } from '@angular/core';
2
import { trigger, state, style, animate, transition } from '@angular/animations';
3
import { ThyMessageConfig } from './message.config';
4
import { ThyMessageQueue } from './message-queue.service';
5
import { ANIMATION_IN_DURATION, ANIMATION_OUT_DURATION, HIDE_STYLE, ThyAbstractMessageComponent } from './abstract';
6
import { ThyStringOrTemplateOutletDirective } from 'ngx-tethys/shared';
7
import { ThyIconComponent } from 'ngx-tethys/icon';
8
import { NgIf } from '@angular/common';
9
import { coerceArray } from 'ngx-tethys/util';
10
import { useHostRenderer } from '@tethys/cdk/dom';
11

12
/**
13
 * @internal
14
 */
15
@Component({
1✔
16
    selector: 'thy-message',
17
    templateUrl: './message.component.html',
×
18
    host: {
×
19
        '[class]': "'thy-message thy-message-' + config.type"
×
20
    },
×
21
    animations: [
22
        trigger('flyInOut', [
23
            state('flyIn', style({ transform: 'translateY(0)', opacity: 1, height: '*' })),
24
            transition('void => flyIn', [
×
25
                style({ transform: 'translateY(-100%)', opacity: 0, height: '*' }),
×
26
                animate(ANIMATION_IN_DURATION)
×
27
            ]),
28
            transition('flyIn => componentHide', [animate(ANIMATION_OUT_DURATION, style(HIDE_STYLE))]),
1✔
29
            state('componentHide', style(HIDE_STYLE))
30
        ])
31
    ],
32
    standalone: true,
1✔
33
    imports: [NgIf, ThyIconComponent, ThyStringOrTemplateOutletDirective]
34
})
35
export class ThyMessageComponent extends ThyAbstractMessageComponent<ThyMessageConfig> {
36
    @HostBinding('@flyInOut') animationState = 'flyIn';
37

1✔
38
    config: ThyMessageConfig;
39

40
    private hostRenderer = useHostRenderer();
41

42
    @Input()
43
    set thyConfig(value: ThyMessageConfig) {
44
        this.config = value;
45

46
        if (this.config?.hostClass) {
47
            const hostClass = coerceArray(this.config.hostClass);
48
            this.hostRenderer.updateClass(hostClass);
49
        }
50
    }
51

52
    constructor(ngZone: NgZone, messageQueue: ThyMessageQueue) {
53
        super(ngZone, messageQueue);
54
    }
55
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc