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

IgniteUI / igniteui-angular / 13331632524

14 Feb 2025 02:51PM UTC coverage: 22.015% (-69.6%) from 91.622%
13331632524

Pull #15372

github

web-flow
Merge d52d57714 into bcb78ae0a
Pull Request #15372: chore(*): test ci passing

1990 of 15592 branches covered (12.76%)

431 of 964 new or added lines in 18 files covered. (44.71%)

19956 existing lines in 307 files now uncovered.

6452 of 29307 relevant lines covered (22.02%)

249.17 hits per line

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

22.22
/projects/igniteui-angular/src/lib/expansion-panel/expansion-panel.common.ts
1
import { Directive, ElementRef, EventEmitter, InjectionToken } from '@angular/core';
2
import { AnimationReferenceMetadata } from '@angular/animations';
3
import { CancelableEventArgs, IBaseEventArgs } from '../core/utils';
4

5
export interface IgxExpansionPanelBase {
6
    id: string;
7
    cssClass: string;
8
    /** @hidden @internal */
9
    headerId: string;
10
    collapsed: boolean;
11
    animationSettings: { openAnimation: AnimationReferenceMetadata; closeAnimation: AnimationReferenceMetadata };
12
    contentCollapsed: EventEmitter<any>;
13
    contentCollapsing: EventEmitter<any>;
14
    contentExpanded: EventEmitter<any>;
15
    contentExpanding: EventEmitter<any>;
16
    collapse(evt?: Event);
17
    expand(evt?: Event);
18
    toggle(evt?: Event);
19
}
20

21
/** @hidden */
22
export const IGX_EXPANSION_PANEL_COMPONENT = /*@__PURE__*/new InjectionToken<IgxExpansionPanelBase>('IgxExpansionPanelToken');
2✔
23

24
export interface IExpansionPanelEventArgs extends IBaseEventArgs {
25
    event: Event;
26
}
27

28
export interface IExpansionPanelCancelableEventArgs  extends IExpansionPanelEventArgs, CancelableEventArgs {}
29

30
@Directive()
31
export abstract class HeaderContentBaseDirective {
2✔
32

UNCOV
33
    constructor(protected element: ElementRef) { }
×
34

35
    /**
36
     * Returns the `textContent` of an element
37
     *
38
     * ```html
39
     * <igx-expansion-panel-title>
40
     *  Tooltip content
41
     * </igx-expansion-panel-title>
42
     * ```
43
     *
44
     *  or the `title` content
45
     *
46
     * ```html
47
     * <igx-expansion-panel-title [title]="'Tooltip content'">
48
     * </igx-expansion-panel-title>
49
     * ```
50
     *
51
     * If both are provided, returns the `title` content.
52
     *
53
     * @param element
54
     * @returns tooltip content for an element
55
     */
UNCOV
56
    public getTooltipContent = (element: ElementRef): string => {
×
UNCOV
57
        if (element.nativeElement.title) {
×
UNCOV
58
            return element.nativeElement.title;
×
59
        }
UNCOV
60
        if (element.nativeElement.textContent) {
×
UNCOV
61
            return element.nativeElement.textContent.trim();
×
62
        }
63

64
        return null;
×
65
    };
66
}
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