• 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

0.0
/src/dialog/dialog-ref.ts
1
import { ThyAbstractInternalOverlayRef, ThyAbstractOverlayPosition, ThyAbstractOverlayRef } from 'ngx-tethys/core';
2

3
import { GlobalPositionStrategy, OverlayRef } from '@angular/cdk/overlay';
4

5
import { ThyDialogContainerComponent } from './dialog-container.component';
6
import { ThyDialogConfig } from './dialog.config';
7
import { dialogAbstractOverlayOptions } from './dialog.options';
8

9
/**
10
 * @publicApi
11
 * @order 30
×
12
 */
13
export abstract class ThyDialogRef<T, TResult = unknown> extends ThyAbstractOverlayRef<T, ThyDialogContainerComponent, TResult> {}
14

15
export class ThyInternalDialogRef<T, TResult = unknown> extends ThyAbstractInternalOverlayRef<T, ThyDialogContainerComponent, TResult> {
16
    constructor(overlayRef: OverlayRef, containerInstance: ThyDialogContainerComponent, config: ThyDialogConfig<T>) {
17
        super(dialogAbstractOverlayOptions, overlayRef, containerInstance, config);
18
    }
×
19

×
20
    /**
21
     * Updates the dialog's position.
22
     * @param position New dialog position.
23
     */
24
    updatePosition(position?: ThyAbstractOverlayPosition): this {
25
        this.updateGlobalPosition(position);
26
        return this;
×
27
    }
×
28

×
29
    /**
×
30
     * Updates the dialog's width and height.
31
     * @param width New width of the dialog.
32
     * @param height New height of the dialog.
33
     */
34
    updateSizeAndPosition(width: string = '', height: string = '', position?: ThyAbstractOverlayPosition): this {
35
        (this.getPositionStrategy() as GlobalPositionStrategy).width(width).height(height);
36
        this.updatePosition(position);
37
        return this;
38
    }
39
}
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