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

atinc / ngx-tethys / d9ae709b-3c27-4b69-b125-b8b80b54f90b

pending completion
d9ae709b-3c27-4b69-b125-b8b80b54f90b

Pull #2757

circleci

mengshuicmq
fix: fix code review
Pull Request #2757: feat(color-picker): color-picker support disabled (#INFR-8645)

98 of 6315 branches covered (1.55%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

2392 of 13661 relevant lines covered (17.51%)

83.12 hits per line

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

57.14
/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

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

36
    config: ThyMessageConfig;
37

38
    @Input()
39
    set thyConfig(value: ThyMessageConfig) {
40
        this.config = value;
41
    }
42

43
    constructor(ngZone: NgZone, messageQueue: ThyMessageQueue) {
44
        super(ngZone, messageQueue);
45
    }
46
}
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