• 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.68
/src/core/theme/store.ts
1
import { computed, Injectable, Signal, signal } from '@angular/core';
2
import { ThyTheme } from './enum';
3

1✔
4
@Injectable({
UNCOV
5
    providedIn: 'root'
×
UNCOV
6
})
×
UNCOV
7
export class ThyThemeStore {
×
UNCOV
8
    readonly theme = signal<ThyTheme>(ThyTheme.light);
×
9

10
    readonly isDark: Signal<boolean> = computed(() => {
11
        const theme = this.theme();
12
        return (
13
            theme === ThyTheme.dark ||
×
14
            (theme === ThyTheme.system && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches)
15
        );
UNCOV
16
    });
×
17

×
18
    constructor() {}
UNCOV
19

×
UNCOV
20
    setTheme(theme: ThyTheme) {
×
21
        this.theme.set(theme);
×
22
    }
UNCOV
23

×
UNCOV
24
    normalizeColor(color: string | string[]): string {
×
25
        if (typeof color === 'string') {
×
26
            return color;
27
        }
UNCOV
28
        if (Array.isArray(color)) {
×
29
            if (color.length === 1) {
30
                return color[0];
31
            }
32

33
            if (color.length > 1) {
1✔
34
                if (this.isDark()) {
35
                    return color[1];
1✔
36
                } else {
37
                    return color[0];
38
                }
39
            }
40
        }
41
    }
42
}
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