• 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

9.52
/src/fullscreen/fullscreen.service.ts
1
import { DOCUMENT } from '@angular/common';
2
import { Injectable, NgZone, inject } from '@angular/core';
3
import { ThyFullscreenRef } from './fullscreen-ref';
4
import { ThyFullscreenConfig, ThyFullscreenMode } from './fullscreen.config';
5

6
@Injectable({
1✔
7
    providedIn: 'root'
UNCOV
8
})
×
UNCOV
9
export class ThyFullscreen {
×
UNCOV
10
    protected document = inject(DOCUMENT);
×
11
    private ngZone = inject(NgZone);
12

13
    private fullscreenRefs: ThyFullscreenRef[] = [];
14

15
    /**
16
     * 开始全屏
UNCOV
17
     * @param config
×
UNCOV
18
     */
×
UNCOV
19
    launch<TResult = unknown>(config: ThyFullscreenConfig): ThyFullscreenRef<TResult> {
×
UNCOV
20
        config.mode = config.mode || ThyFullscreenMode.immersive;
×
UNCOV
21
        const fullscreenRef = new ThyFullscreenRef<TResult>(this.document, this.ngZone);
×
UNCOV
22
        fullscreenRef.fullscreenConfig = config;
×
UNCOV
23
        fullscreenRef.launch();
×
UNCOV
24
        this.fullscreenRefs.push(fullscreenRef);
×
UNCOV
25
        fullscreenRef.afterExited().subscribe(() => {
×
26
            const index = this.fullscreenRefs.indexOf(fullscreenRef);
27
            if (index > -1) {
UNCOV
28
                this.fullscreenRefs.splice(index, 1);
×
29
            }
30
        });
31

32
        return fullscreenRef;
33
    }
34

UNCOV
35
    /**
×
UNCOV
36
     * 退出最后一个 ThyFullscreenRef 的全屏
×
37
     * @param config
38
     */
39
    exit() {
1✔
40
        const lastFullscreenRef = this.fullscreenRefs[this.fullscreenRefs.length - 1];
41
        lastFullscreenRef?.exit();
42
    }
43
}
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