Skip to content

Commit 5a8dd1e

Browse files
devversionvivian-hu-zz
authored andcommitted
build: update outdated api goldens (#14854)
* build: update outdated api goldens * Fix failing drag-drop test
1 parent 63e6a67 commit 5a8dd1e

File tree

7 files changed

+15
-7
lines changed

7 files changed

+15
-7
lines changed

src/cdk/drag-drop/directives/drag.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ describe('CdkDrag', () => {
606606
dragElement.style.transform = 'scale(2)';
607607

608608
dragElementViaMouse(fixture, dragElement, 50, 100);
609-
expect(dragElement.style.transform).toBe('scale(2) translate3d(50px, 100px, 0px)');
609+
expect(dragElement.style.transform).toBe('translate3d(50px, 100px, 0px) scale(2)');
610610

611611
fixture.componentInstance.dragInstance.reset();
612612
expect(dragElement.style.transform).toBe('scale(2)');

tools/public_api_guard/lib/autocomplete.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ export interface MatAutocompleteDefaultOptions {
6060
export declare class MatAutocompleteModule {
6161
}
6262

63+
export declare class MatAutocompleteOrigin {
64+
elementRef: ElementRef<HTMLElement>;
65+
constructor(
66+
elementRef: ElementRef<HTMLElement>);
67+
}
68+
6369
export declare class MatAutocompleteSelectedEvent {
6470
option: MatOption;
6571
source: MatAutocomplete;

tools/public_api_guard/lib/bottom-sheet.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export declare class MatBottomSheetModule {
5050

5151
export declare class MatBottomSheetRef<T = any, R = any> {
5252
containerInstance: MatBottomSheetContainer;
53+
disableClose: boolean | undefined;
5354
instance: T;
5455
constructor(containerInstance: MatBottomSheetContainer, _overlayRef: OverlayRef, _location?: Location);
5556
afterDismissed(): Observable<R | undefined>;

tools/public_api_guard/lib/chips.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ export declare class MatChip extends _MatChipMixinBase implements FocusableOptio
2020
removable: boolean;
2121
removeIcon: MatChipRemove;
2222
readonly removed: EventEmitter<MatChipEvent>;
23-
rippleConfig: RippleConfig;
23+
rippleConfig: RippleConfig & RippleGlobalOptions;
2424
readonly rippleDisabled: boolean;
2525
selectable: boolean;
2626
selected: boolean;
2727
readonly selectionChange: EventEmitter<MatChipSelectionChange>;
2828
trailingIcon: MatChipTrailingIcon;
2929
value: any;
30-
constructor(_elementRef: ElementRef, _ngZone: NgZone, platform: Platform, globalOptions: RippleGlobalOptions);
30+
constructor(_elementRef: ElementRef, _ngZone: NgZone, platform: Platform, globalRippleOptions: RippleGlobalOptions | null);
3131
_addHostClassName(): void;
3232
_blur(): void;
3333
_handleClick(event: Event): void;

tools/public_api_guard/lib/core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export declare class MatRipple implements OnInit, OnDestroy, RippleTarget {
296296
readonly rippleDisabled: boolean;
297297
trigger: HTMLElement;
298298
unbounded: boolean;
299-
constructor(_elementRef: ElementRef<HTMLElement>, ngZone: NgZone, platform: Platform, globalOptions: RippleGlobalOptions, animationMode?: string);
299+
constructor(_elementRef: ElementRef<HTMLElement>, ngZone: NgZone, platform: Platform, globalOptions?: RippleGlobalOptions, animationMode?: string);
300300
fadeOutAll(): void;
301301
launch(config: RippleConfig): RippleRef;
302302
launch(x: number, y: number, config?: RippleConfig): RippleRef;

tools/public_api_guard/lib/tabs.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ export declare class MatTabLink extends _MatTabLinkMixinBase implements OnDestro
159159
protected _isActive: boolean;
160160
protected _tabLinkRipple: RippleRenderer;
161161
active: boolean;
162-
rippleConfig: RippleConfig;
162+
rippleConfig: RippleConfig & RippleGlobalOptions;
163163
readonly rippleDisabled: boolean;
164-
constructor(_tabNavBar: MatTabNav, _elementRef: ElementRef, ngZone: NgZone, platform: Platform, globalOptions: RippleGlobalOptions, tabIndex: string,
164+
constructor(_tabNavBar: MatTabNav, _elementRef: ElementRef, ngZone: NgZone, platform: Platform, globalRippleOptions: RippleGlobalOptions | null, tabIndex: string,
165165
_focusMonitor?: FocusMonitor | undefined);
166166
ngOnDestroy(): void;
167167
}

tools/public_api_guard/lib/tooltip.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export declare const SCROLL_THROTTLE_MS = 20;
6060

6161
export declare const TOOLTIP_PANEL_CLASS = "mat-tooltip-panel";
6262

63-
export declare class TooltipComponent {
63+
export declare class TooltipComponent implements OnDestroy {
6464
_hideTimeoutId: number | null;
6565
_isHandset: Observable<BreakpointState>;
6666
_showTimeoutId: number | null;
@@ -77,6 +77,7 @@ export declare class TooltipComponent {
7777
afterHidden(): Observable<void>;
7878
hide(delay: number): void;
7979
isVisible(): boolean;
80+
ngOnDestroy(): void;
8081
show(delay: number): void;
8182
}
8283

0 commit comments

Comments
 (0)