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

atinc / ngx-tethys / ba7e05e2-37c0-44c6-8725-6f617aa0d43e

pending completion
ba7e05e2-37c0-44c6-8725-6f617aa0d43e

Pull #2756

circleci

huanhuanwa
test(color-picker): add test #INFR-8673
Pull Request #2756: feat(color-picker): add popoverRef param when panel open and close #INFR-8673

187 of 6315 branches covered (2.96%)

Branch coverage included in aggregate %.

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

2645 of 13660 relevant lines covered (19.36%)

83.2 hits per line

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

25.0
/src/core/behaviors/tabindex.ts
1
import { coerceNumberProperty } from '@angular/cdk/coercion';
2

3
import { Constructor, MixinBase } from './constructor';
4
import { mixinDisabled, ThyCanDisable } from './disabled';
5

8✔
6
export interface ThyHasTabIndex {
8✔
7
    tabIndex: number;
8

×
9
    defaultTabIndex: number;
10
}
11

×
12
type HasTabIndexCtor = Constructor<ThyHasTabIndex>;
13

14
/** Mixin to augment a directive with a `tabIndex` property. */
×
15
export function mixinTabIndex<T extends Constructor<ThyCanDisable>>(base: T, defaultTabIndex = 0): HasTabIndexCtor & T {
×
16
    return class extends base implements ThyHasTabIndex {
×
17
        private _tabIndex: number = defaultTabIndex;
18

19
        defaultTabIndex = defaultTabIndex;
20

1✔
21
        get tabIndex(): number {
22
            return this.thyDisabled ? -1 : this._tabIndex;
23
        }
24
        set tabIndex(value: number) {
25
            this._tabIndex = value != null ? coerceNumberProperty(value) : this.defaultTabIndex;
26
        }
27

28
        constructor(...args: any[]) {
29
            super(...args);
30
        }
31
    };
32
}
33

34
export const TabIndexMixinBase: Constructor<ThyHasTabIndex> & Constructor<ThyCanDisable> & typeof MixinBase = mixinTabIndex(
35
    mixinDisabled(MixinBase)
36
);
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