• 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

0.0
/src/image/preview/image-preview-ref.ts
1
import { ThyImagePreview } from './image-preview.component';
2
import { ThyDialogRef } from 'ngx-tethys/dialog';
3
import { LEFT_ARROW, RIGHT_ARROW } from '@angular/cdk/keycodes';
UNCOV
4
import { ThyImageInfo, ThyImagePreviewOptions } from '../image.class';
×
5
import { Observable } from 'rxjs';
6

UNCOV
7
export class ThyImagePreviewRef {
×
UNCOV
8
    get componentInstance() {
×
UNCOV
9
        return this.dialogRef.componentInstance;
×
UNCOV
10
    }
×
11

12
    constructor(
13
        public previewInstance: ThyImagePreview,
UNCOV
14
        private config: ThyImagePreviewOptions,
×
UNCOV
15
        private dialogRef: ThyDialogRef<ThyImagePreview>
×
16
    ) {
UNCOV
17
        dialogRef
×
UNCOV
18
            .keydownEvents()
×
19
            .pipe()
20
            .subscribe(event => {
21
                if (!config.disableKeyboardSelectable && event.keyCode === LEFT_ARROW) {
22
                    this.prev();
UNCOV
23
                }
×
24
                if (!config.disableKeyboardSelectable && event.keyCode === RIGHT_ARROW) {
25
                    this.next();
UNCOV
26
                }
×
27
            });
28
    }
UNCOV
29

×
30
    next(): void {
31
        this.previewInstance.next();
32
    }
33

34
    prev(): void {
35
        this.previewInstance.prev();
36
    }
37

38
    downloadClicked(): Observable<ThyImageInfo> {
39
        return this.previewInstance.downloadClicked.asObservable();
40
    }
41
}
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