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

atinc / ngx-tethys / 68ef226c-f83e-44c1-b8ed-e420a83c5d84

28 May 2025 10:31AM UTC coverage: 10.352% (-80.0%) from 90.316%
68ef226c-f83e-44c1-b8ed-e420a83c5d84

Pull #3460

circleci

pubuzhixing8
chore: xxx
Pull Request #3460: refactor(icon): migrate signal input #TINFR-1476

132 of 6823 branches covered (1.93%)

Branch coverage included in aggregate %.

10 of 14 new or added lines in 1 file covered. (71.43%)

11648 existing lines in 344 files now uncovered.

2078 of 14525 relevant lines covered (14.31%)

6.69 hits per line

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

0.0
/src/dialog/dialog-ref.ts
1
import { GlobalPositionStrategy, OverlayRef } from '@angular/cdk/overlay';
2
import { ThyAbstractInternalOverlayRef, ThyAbstractOverlayPosition, ThyAbstractOverlayRef } from 'ngx-tethys/core';
3

4
import { ThyDialogContainer } from './dialog-container.component';
5
import { ThyDialogConfig } from './dialog.config';
6
import { dialogAbstractOverlayOptions } from './dialog.options';
UNCOV
7

×
UNCOV
8
/**
×
9
 * @publicApi
10
 * @order 30
11
 */
12
export interface ThyAbstractDialog {
13
    toTop(id: string): void;
14
}
UNCOV
15

×
UNCOV
16
export abstract class ThyDialogRef<T, TResult = unknown> extends ThyAbstractOverlayRef<T, ThyDialogContainer, TResult> {}
×
17

18
export class ThyInternalDialogRef<T, TResult = unknown> extends ThyAbstractInternalOverlayRef<T, ThyDialogContainer, TResult> {
19
    thyDialog: ThyAbstractDialog;
20

21
    constructor(overlayRef: OverlayRef, containerInstance: ThyDialogContainer, config: ThyDialogConfig<T>, service: ThyAbstractDialog) {
22
        super(dialogAbstractOverlayOptions, overlayRef, containerInstance, config);
23
        this.thyDialog = service;
×
UNCOV
24
    }
×
UNCOV
25

×
UNCOV
26
    /**
×
27
     * Updates the dialog's position.
28
     * @param position New dialog position.
29
     */
30
    updatePosition(position?: ThyAbstractOverlayPosition): this {
31
        this.updateGlobalPosition(position);
UNCOV
32
        return this;
×
33
    }
34

35
    /**
36
     * Updates the dialog's width and height.
37
     * @param width New width of the dialog.
38
     * @param height New height of the dialog.
39
     */
40
    updateSizeAndPosition(width: string = '', height: string = '', position?: ThyAbstractOverlayPosition): this {
41
        (this.getPositionStrategy() as GlobalPositionStrategy).width(width).height(height);
42
        this.updatePosition(position);
43
        return this;
44
    }
45

46
    /**
47
     * Update dialog to top
48
     */
49
    toTop() {
50
        this.thyDialog.toTop(this.id);
51
    }
52
}
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