Skip to content

Commit

Permalink
build: update outdated api goldens (angular#14854)
Browse files Browse the repository at this point in the history
* build: update outdated api goldens

* Fix failing drag-drop test
  • Loading branch information
devversion authored and s2-abdo committed Jan 18, 2019
1 parent 4d6b0fb commit db335d9
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/cdk/drag-drop/directives/drag.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ describe('CdkDrag', () => {
dragElement.style.transform = 'scale(2)';

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

fixture.componentInstance.dragInstance.reset();
expect(dragElement.style.transform).toBe('scale(2)');
Expand Down
6 changes: 6 additions & 0 deletions tools/public_api_guard/lib/autocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ export interface MatAutocompleteDefaultOptions {
export declare class MatAutocompleteModule {
}

export declare class MatAutocompleteOrigin {
elementRef: ElementRef<HTMLElement>;
constructor(
elementRef: ElementRef<HTMLElement>);
}

export declare class MatAutocompleteSelectedEvent {
option: MatOption;
source: MatAutocomplete;
Expand Down
1 change: 1 addition & 0 deletions tools/public_api_guard/lib/bottom-sheet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export declare class MatBottomSheetModule {

export declare class MatBottomSheetRef<T = any, R = any> {
containerInstance: MatBottomSheetContainer;
disableClose: boolean | undefined;
instance: T;
constructor(containerInstance: MatBottomSheetContainer, _overlayRef: OverlayRef, _location?: Location);
afterDismissed(): Observable<R | undefined>;
Expand Down
4 changes: 2 additions & 2 deletions tools/public_api_guard/lib/chips.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ export declare class MatChip extends _MatChipMixinBase implements FocusableOptio
removable: boolean;
removeIcon: MatChipRemove;
readonly removed: EventEmitter<MatChipEvent>;
rippleConfig: RippleConfig;
rippleConfig: RippleConfig & RippleGlobalOptions;
readonly rippleDisabled: boolean;
selectable: boolean;
selected: boolean;
readonly selectionChange: EventEmitter<MatChipSelectionChange>;
trailingIcon: MatChipTrailingIcon;
value: any;
constructor(_elementRef: ElementRef, _ngZone: NgZone, platform: Platform, globalOptions: RippleGlobalOptions);
constructor(_elementRef: ElementRef, _ngZone: NgZone, platform: Platform, globalRippleOptions: RippleGlobalOptions | null);
_addHostClassName(): void;
_blur(): void;
_handleClick(event: Event): void;
Expand Down
2 changes: 1 addition & 1 deletion tools/public_api_guard/lib/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export declare class MatRipple implements OnInit, OnDestroy, RippleTarget {
readonly rippleDisabled: boolean;
trigger: HTMLElement;
unbounded: boolean;
constructor(_elementRef: ElementRef<HTMLElement>, ngZone: NgZone, platform: Platform, globalOptions: RippleGlobalOptions, animationMode?: string);
constructor(_elementRef: ElementRef<HTMLElement>, ngZone: NgZone, platform: Platform, globalOptions?: RippleGlobalOptions, animationMode?: string);
fadeOutAll(): void;
launch(config: RippleConfig): RippleRef;
launch(x: number, y: number, config?: RippleConfig): RippleRef;
Expand Down
4 changes: 2 additions & 2 deletions tools/public_api_guard/lib/tabs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ export declare class MatTabLink extends _MatTabLinkMixinBase implements OnDestro
protected _isActive: boolean;
protected _tabLinkRipple: RippleRenderer;
active: boolean;
rippleConfig: RippleConfig;
rippleConfig: RippleConfig & RippleGlobalOptions;
readonly rippleDisabled: boolean;
constructor(_tabNavBar: MatTabNav, _elementRef: ElementRef, ngZone: NgZone, platform: Platform, globalOptions: RippleGlobalOptions, tabIndex: string,
constructor(_tabNavBar: MatTabNav, _elementRef: ElementRef, ngZone: NgZone, platform: Platform, globalRippleOptions: RippleGlobalOptions | null, tabIndex: string,
_focusMonitor?: FocusMonitor | undefined);
ngOnDestroy(): void;
}
Expand Down
3 changes: 2 additions & 1 deletion tools/public_api_guard/lib/tooltip.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export declare const SCROLL_THROTTLE_MS = 20;

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

export declare class TooltipComponent {
export declare class TooltipComponent implements OnDestroy {
_hideTimeoutId: number | null;
_isHandset: Observable<BreakpointState>;
_showTimeoutId: number | null;
Expand All @@ -77,6 +77,7 @@ export declare class TooltipComponent {
afterHidden(): Observable<void>;
hide(delay: number): void;
isVisible(): boolean;
ngOnDestroy(): void;
show(delay: number): void;
}

Expand Down

0 comments on commit db335d9

Please sign in to comment.