• 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

85.71
/src/select/select.config.ts
1
import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
2
import { InjectionToken } from '@angular/core';
3
import { ThyPlacement } from 'ngx-tethys/core';
1✔
4

1✔
5
export const THY_SELECT_SCROLL_STRATEGY = new InjectionToken<() => ScrollStrategy>('thy-select-scroll-strategy');
×
6

7
export const THY_SELECT_SCROLL_STRATEGY_FACTORY = (overlay: Overlay) => {
1✔
8
    return () => overlay.scrollStrategies.reposition();
9
};
10

11
export const THY_SELECT_SCROLL_STRATEGY_PROVIDER = {
12
    provide: THY_SELECT_SCROLL_STRATEGY,
1✔
13
    deps: [Overlay],
14
    useFactory: THY_SELECT_SCROLL_STRATEGY_FACTORY
15
};
16

1✔
17
export type ThyDropdownWidthMode = 'match-select' | 'min-width' | { minWidth: number };
1✔
18

19
/**
20
 * 打开select下拉菜单的配置
21
 * @public
22
 * @order 30
23
 */
24
export interface ThySelectConfig {
25
    /**
26
     * 下拉菜单的最小宽度
27
     */
28
    dropdownWidthMode?: ThyDropdownWidthMode;
29

30
    /**
31
     * 下拉菜单的弹出位置
32
     */
33
    placement?: ThyPlacement;
34
}
35

36
export const DEFAULT_SELECT_CONFIG: ThySelectConfig = {
37
    dropdownWidthMode: 'match-select',
38
    placement: 'bottom'
39
};
40

41
export const THY_SELECT_CONFIG = new InjectionToken<ThySelectConfig>('thy-select-config');
42

43
export const THY_SELECT_CONFIG_PROVIDER = {
44
    provide: THY_SELECT_CONFIG,
45
    useValue: DEFAULT_SELECT_CONFIG
46
};
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