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

atinc / ngx-tethys / #71

06 Aug 2025 02:34AM UTC coverage: 9.672% (-80.6%) from 90.298%
#71

push

web-flow
feat(date-picker): add dateCellRender #TINFR-2386 (#3495) (#3499)

104 of 6813 branches covered (1.53%)

Branch coverage included in aggregate %.

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

11855 existing lines in 343 files now uncovered.

1969 of 14620 relevant lines covered (13.47%)

6.13 hits per line

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

26.67
/src/message/message.component.ts
1
import { Component, HostBinding, effect, inject } 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 { ThyIcon } from 'ngx-tethys/icon';
8

9
import { coerceArray } from 'ngx-tethys/util';
10
import { useHostRenderer } from '@tethys/cdk/dom';
11

12
/**
13
 * @internal
14
 */
1✔
15
@Component({
UNCOV
16
    selector: 'thy-message',
×
UNCOV
17
    templateUrl: './message.component.html',
×
UNCOV
18
    host: {
×
UNCOV
19
        '[class]': "'thy-message thy-message-' + config().type"
×
UNCOV
20
    },
×
UNCOV
21
    animations: [
×
UNCOV
22
        trigger('flyInOut', [
×
UNCOV
23
            state('flyIn', style({ transform: 'translateY(0)', opacity: 1, height: '*' })),
×
UNCOV
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))
1✔
30
        ])
31
    ],
32
    imports: [ThyIcon, ThyStringOrTemplateOutletDirective]
33
})
1✔
34
export class ThyMessage extends ThyAbstractMessageComponent<ThyMessageConfig> {
35
    @HostBinding('@flyInOut') animationState = 'flyIn';
36

37
    private hostRenderer = useHostRenderer();
38

39
    constructor() {
40
        const messageQueue = inject(ThyMessageQueue);
41
        super(messageQueue);
42

43
        effect(() => {
44
            const config = this.config();
45
            if (config?.hostClass) {
46
                const hostClass = coerceArray(config.hostClass);
47
                this.hostRenderer.updateClass(hostClass);
48
            }
49
        });
50
    }
51
}
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