• 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

26.67
/src/popover/header/popover-header.component.ts
1
import { ChangeDetectionStrategy, Component, ContentChild, EventEmitter, Input, Output, TemplateRef } from '@angular/core';
2
import { ThyTranslate } from 'ngx-tethys/core';
3
import { ThyPopover } from '../popover.service';
4
import { ThyIconComponent } from 'ngx-tethys/icon';
5
import { NgIf, NgTemplateOutlet } from '@angular/common';
6

7
/**
8
 * 悬浮层头部组件
9
 * @name thy-popover-header
10
 * @order 30
11
 */
12
@Component({
13
    selector: 'thy-popover-header',
1✔
14
    templateUrl: './popover-header.component.html',
15
    exportAs: 'thyPopoverHeader',
×
16
    changeDetection: ChangeDetectionStrategy.OnPush,
×
17
    host: {
18
        class: 'thy-popover-header'
19
    },
20
    standalone: true,
×
21
    imports: [NgIf, NgTemplateOutlet, ThyIconComponent]
×
22
})
×
23
export class ThyPopoverHeaderComponent {
24
    /**
25
     * 头部标题
26
     */
27
    @Input() thyTitle: string;
28

×
29
    /**
×
30
     * 标题的多语言 Key
31
     */
1✔
32
    @Input()
33
    set thyTitleTranslationKey(key: string) {
34
        if (key && !this.thyTitle) {
35
            this.thyTitle = this.translate.instant(key);
1✔
36
        }
37
    }
38

39
    /**
40
     * 自定义头部模板
41
     * @type TemplateRef
42
     */
1✔
43
    @ContentChild('popoverHeader')
44
    public headerTemplate: TemplateRef<any>;
45

46
    /**
47
     * @internal
48
     */
49
    @Output() thyClosed: EventEmitter<Event> = new EventEmitter<Event>();
50

51
    constructor(private translate: ThyTranslate, private thyPopover: ThyPopover) {}
52

53
    /**
54
     * @internal
55
     */
56
    close(event: Event) {
57
        this.thyClosed.emit(event);
58
        this.thyPopover.close();
59
    }
60
}
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