• 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

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