• 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

0.0
/src/message/abstract/abstract-message.service.ts
1
import { ComponentType, Overlay, OverlayRef } from '@angular/cdk/overlay';
2
import { ComponentPortal } from '@angular/cdk/portal';
3
import { Injector } from '@angular/core';
4
import { ThyAbstractMessageContainerComponent } from './abstract-message-container.component';
5
import { ThyAbstractMessageQueue } from './abstract-message-queue.service';
6

7
/**
×
8
 * @internal
×
9
 */
×
10
export class ThyAbstractMessageService<TContainer extends ThyAbstractMessageContainerComponent> {
11
    protected container: TContainer;
12

×
13
    protected overlayRef: OverlayRef;
×
14

×
15
    private queue: ThyAbstractMessageQueue;
16

×
17
    constructor(private overlay: Overlay, private injector: Injector, queue: ThyAbstractMessageQueue) {
18
        this.queue = queue;
19
    }
20

21
    protected createContainer(container: ComponentType<TContainer>): TContainer {
×
22
        if (this.container) {
×
23
            this.container.toOverlayTop();
×
24
            return this.container;
25
        }
26

×
27
        this.overlayRef = this.overlay.create({
28
            hasBackdrop: false,
29
            scrollStrategy: this.overlay.scrollStrategies.noop(),
30
            positionStrategy: this.overlay.position().global()
31
        });
32
        const componentPortal = new ComponentPortal(container, null, this.injector);
33
        const componentRef = this.overlayRef.attach(componentPortal);
34
        return componentRef.instance;
35
    }
36

37
    remove(id?: string) {
38
        this.queue.remove(id);
39
    }
40
}
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