Skip to content

Commit 77b6524

Browse files
committed
build: update goldens to ngtsc output
We should update our API goldens to be based on the ngtsc output. This helps us speeding up development since we don't need to build the packages with NGC whenever we want to update a golden (cache is usually ngtsc now since it's the default) One could argue that we do not want to have the definition members in the goldens, but we already do have private members in there too (due to how ts-api-guardian works). It technically is also correct to have the definition members in there since selectors, inputs are part of the public API.
1 parent 2f84389 commit 77b6524

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+648
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
- *yarn_install
172172
- *setup_bazel_binary
173173

174-
- run: bazel test tools/public_api_guard/... --define=compile=legacy
174+
- run: bazel test tools/public_api_guard/...
175175

176176
# -----------------------------------------------------------------
177177
# Job that runs the e2e tests with Protractor and Chromium headless

tools/public_api_guard/cdk/a11y.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
export declare class A11yModule {
2+
static ɵinj: i0.ɵɵInjectorDef<A11yModule>;
3+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<A11yModule, [typeof i1.CdkAriaLive, typeof i2.CdkTrapFocus, typeof i3.CdkMonitorFocus], [typeof i4.CommonModule, typeof i5.PlatformModule, typeof i6.ObserversModule], [typeof i1.CdkAriaLive, typeof i2.CdkTrapFocus, typeof i3.CdkMonitorFocus]>;
24
}
35

46
export declare class ActiveDescendantKeyManager<T> extends ListKeyManager<Highlightable & T> {
@@ -11,6 +13,8 @@ export declare class AriaDescriber implements OnDestroy {
1113
describe(hostElement: Element, message: string | HTMLElement): void;
1214
ngOnDestroy(): void;
1315
removeDescription(hostElement: Element, message: string | HTMLElement): void;
16+
static ɵfac: i0.ɵɵFactoryDef<AriaDescriber>;
17+
static ɵprov: i0.ɵɵInjectableDef<AriaDescriber>;
1418
}
1519

1620
export declare type AriaLivePoliteness = 'off' | 'polite' | 'assertive';
@@ -23,12 +27,16 @@ export declare class CdkAriaLive implements OnDestroy {
2327
politeness: AriaLivePoliteness;
2428
constructor(_elementRef: ElementRef, _liveAnnouncer: LiveAnnouncer, _contentObserver: ContentObserver, _ngZone: NgZone);
2529
ngOnDestroy(): void;
30+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkAriaLive, "[cdkAriaLive]", ["cdkAriaLive"], { 'politeness': "cdkAriaLive" }, {}, never>;
31+
static ɵfac: i0.ɵɵFactoryDef<CdkAriaLive>;
2632
}
2733

2834
export declare class CdkMonitorFocus implements OnDestroy {
2935
cdkFocusChange: EventEmitter<FocusOrigin>;
3036
constructor(_elementRef: ElementRef<HTMLElement>, _focusMonitor: FocusMonitor);
3137
ngOnDestroy(): void;
38+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkMonitorFocus, "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", never, {}, { 'cdkFocusChange': "cdkFocusChange" }, never>;
39+
static ɵfac: i0.ɵɵFactoryDef<CdkMonitorFocus>;
3240
}
3341

3442
export declare class CdkTrapFocus implements OnDestroy, AfterContentInit, DoCheck {
@@ -41,6 +49,8 @@ export declare class CdkTrapFocus implements OnDestroy, AfterContentInit, DoChec
4149
ngOnDestroy(): void;
4250
static ngAcceptInputType_autoCapture: boolean | string;
4351
static ngAcceptInputType_enabled: boolean | string;
52+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkTrapFocus, "[cdkTrapFocus]", ["cdkTrapFocus"], { 'enabled': "cdkTrapFocus", 'autoCapture': "cdkTrapFocusAutoCapture" }, {}, never>;
53+
static ɵfac: i0.ɵɵFactoryDef<CdkTrapFocus>;
4454
}
4555

4656
export interface FocusableOption extends ListKeyManagerOption {
@@ -63,6 +73,8 @@ export declare class FocusMonitor implements OnDestroy {
6373
ngOnDestroy(): void;
6474
stopMonitoring(element: HTMLElement): void;
6575
stopMonitoring(element: ElementRef<HTMLElement>): void;
76+
static ɵfac: i0.ɵɵFactoryDef<FocusMonitor>;
77+
static ɵprov: i0.ɵɵInjectableDef<FocusMonitor>;
6678
}
6779

6880
export interface FocusOptions {
@@ -90,6 +102,8 @@ export declare class FocusTrap {
90102
export declare class FocusTrapFactory {
91103
constructor(_checker: InteractivityChecker, _ngZone: NgZone, _document: any);
92104
create(element: HTMLElement, deferCaptureElements?: boolean): FocusTrap;
105+
static ɵfac: i0.ɵɵFactoryDef<FocusTrapFactory>;
106+
static ɵprov: i0.ɵɵInjectableDef<FocusTrapFactory>;
93107
}
94108

95109
export interface Highlightable extends ListKeyManagerOption {
@@ -103,6 +117,8 @@ export declare class InteractivityChecker {
103117
isFocusable(element: HTMLElement): boolean;
104118
isTabbable(element: HTMLElement): boolean;
105119
isVisible(element: HTMLElement): boolean;
120+
static ɵfac: i0.ɵɵFactoryDef<InteractivityChecker>;
121+
static ɵprov: i0.ɵɵInjectableDef<InteractivityChecker>;
106122
}
107123

108124
export declare function isFakeMousedownFromScreenReader(event: MouseEvent): boolean;
@@ -151,6 +167,8 @@ export declare class LiveAnnouncer implements OnDestroy {
151167
announce(message: string, politeness?: AriaLivePoliteness, duration?: number): Promise<void>;
152168
clear(): void;
153169
ngOnDestroy(): void;
170+
static ɵfac: i0.ɵɵFactoryDef<LiveAnnouncer>;
171+
static ɵprov: i0.ɵɵInjectableDef<LiveAnnouncer>;
154172
}
155173

156174
export interface LiveAnnouncerDefaultOptions {

tools/public_api_guard/cdk/accordion.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export declare class CdkAccordion implements OnDestroy, OnChanges {
88
ngOnDestroy(): void;
99
openAll(): void;
1010
static ngAcceptInputType_multi: boolean | string;
11+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkAccordion, "cdk-accordion, [cdkAccordion]", ["cdkAccordion"], { 'multi': "multi" }, {}, never>;
12+
static ɵfac: i0.ɵɵFactoryDef<CdkAccordion>;
1113
}
1214

1315
export declare class CdkAccordionItem implements OnDestroy {
@@ -27,7 +29,11 @@ export declare class CdkAccordionItem implements OnDestroy {
2729
toggle(): void;
2830
static ngAcceptInputType_disabled: boolean | string;
2931
static ngAcceptInputType_expanded: boolean | string;
32+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkAccordionItem, "cdk-accordion-item, [cdkAccordionItem]", ["cdkAccordionItem"], { 'expanded': "expanded", 'disabled': "disabled" }, { 'closed': "closed", 'opened': "opened", 'destroyed': "destroyed", 'expandedChange': "expandedChange" }, never>;
33+
static ɵfac: i0.ɵɵFactoryDef<CdkAccordionItem>;
3034
}
3135

3236
export declare class CdkAccordionModule {
37+
static ɵinj: i0.ɵɵInjectorDef<CdkAccordionModule>;
38+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<CdkAccordionModule, [typeof i1.CdkAccordion, typeof i2.CdkAccordionItem], never, [typeof i1.CdkAccordion, typeof i2.CdkAccordionItem]>;
3339
}

tools/public_api_guard/cdk/bidi.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
export declare class BidiModule {
2+
static ɵinj: i0.ɵɵInjectorDef<BidiModule>;
3+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<BidiModule, [typeof i1.Dir], never, [typeof i1.Dir]>;
24
}
35

46
export declare class Dir implements Directionality, AfterContentInit, OnDestroy {
@@ -8,6 +10,8 @@ export declare class Dir implements Directionality, AfterContentInit, OnDestroy
810
readonly value: Direction;
911
ngAfterContentInit(): void;
1012
ngOnDestroy(): void;
13+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<Dir, "[dir]", ["dir"], { 'dir': "dir" }, { 'change': "dirChange" }, never>;
14+
static ɵfac: i0.ɵɵFactoryDef<Dir>;
1115
}
1216

1317
export declare const DIR_DOCUMENT: InjectionToken<Document>;
@@ -19,4 +23,6 @@ export declare class Directionality implements OnDestroy {
1923
readonly value: Direction;
2024
constructor(_document?: any);
2125
ngOnDestroy(): void;
26+
static ɵfac: i0.ɵɵFactoryDef<Directionality>;
27+
static ɵprov: i0.ɵɵInjectableDef<Directionality>;
2228
}

tools/public_api_guard/cdk/clipboard.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@ export declare class CdkCopyToClipboard {
33
text: string;
44
constructor(_clipboard: Clipboard);
55
copy(): void;
6+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkCopyToClipboard, "[cdkCopyToClipboard]", never, { 'text': "cdkCopyToClipboard" }, { 'copied': "copied" }, never>;
7+
static ɵfac: i0.ɵɵFactoryDef<CdkCopyToClipboard>;
68
}
79

810
export declare class Clipboard {
911
constructor(document: any);
1012
beginCopy(text: string): PendingCopy;
1113
copy(text: string): boolean;
14+
static ɵfac: i0.ɵɵFactoryDef<Clipboard>;
15+
static ɵprov: i0.ɵɵInjectableDef<Clipboard>;
1216
}
1317

1418
export declare class ClipboardModule {
19+
static ɵinj: i0.ɵɵInjectorDef<ClipboardModule>;
20+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<ClipboardModule, [typeof i1.CdkCopyToClipboard], [typeof i2.CommonModule], [typeof i1.CdkCopyToClipboard]>;
1521
}
1622

1723
export declare class PendingCopy {

tools/public_api_guard/cdk/collections.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export declare class UniqueSelectionDispatcher implements OnDestroy {
5353
listen(listener: UniqueSelectionDispatcherListener): () => void;
5454
ngOnDestroy(): void;
5555
notify(id: string, name: string): void;
56+
static ɵfac: i0.ɵɵFactoryDef<UniqueSelectionDispatcher>;
57+
static ɵprov: i0.ɵɵInjectableDef<UniqueSelectionDispatcher>;
5658
}
5759

5860
export declare type UniqueSelectionDispatcherListener = (id: string, name: string) => void;

tools/public_api_guard/cdk/drag-drop.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export declare class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDes
4747
ngOnDestroy(): void;
4848
reset(): void;
4949
static ngAcceptInputType_disabled: boolean | string;
50+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkDrag<any>, "[cdkDrag]", ["cdkDrag"], { 'data': "cdkDragData", 'lockAxis': "cdkDragLockAxis", 'rootElementSelector': "cdkDragRootElement", 'boundaryElement': "cdkDragBoundary", 'dragStartDelay': "cdkDragStartDelay", 'freeDragPosition': "cdkDragFreeDragPosition", 'disabled': "cdkDragDisabled", 'constrainPosition': "cdkDragConstrainPosition", 'previewClass': "cdkDragPreviewClass" }, { 'started': "cdkDragStarted", 'released': "cdkDragReleased", 'ended': "cdkDragEnded", 'entered': "cdkDragEntered", 'exited': "cdkDragExited", 'dropped': "cdkDragDropped", 'moved': "cdkDragMoved" }, ["_previewTemplate", "_placeholderTemplate", "_handles"]>;
51+
static ɵfac: i0.ɵɵFactoryDef<CdkDrag<any>>;
5052
}
5153

5254
export interface CdkDragDrop<T, O = T> {
@@ -89,6 +91,8 @@ export declare class CdkDragHandle implements OnDestroy {
8991
constructor(element: ElementRef<HTMLElement>, parentDrag?: any);
9092
ngOnDestroy(): void;
9193
static ngAcceptInputType_disabled: boolean | string;
94+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkDragHandle, "[cdkDragHandle]", never, { 'disabled': "cdkDragHandleDisabled" }, {}, never>;
95+
static ɵfac: i0.ɵɵFactoryDef<CdkDragHandle>;
9296
}
9397

9498
export interface CdkDragMove<T = any> {
@@ -112,12 +116,16 @@ export declare class CdkDragPlaceholder<T = any> {
112116
data: T;
113117
templateRef: TemplateRef<T>;
114118
constructor(templateRef: TemplateRef<T>);
119+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkDragPlaceholder<any>, "ng-template[cdkDragPlaceholder]", never, { 'data': "data" }, {}, never>;
120+
static ɵfac: i0.ɵɵFactoryDef<CdkDragPlaceholder<any>>;
115121
}
116122

117123
export declare class CdkDragPreview<T = any> {
118124
data: T;
119125
templateRef: TemplateRef<T>;
120126
constructor(templateRef: TemplateRef<T>);
127+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkDragPreview<any>, "ng-template[cdkDragPreview]", never, { 'data': "data" }, {}, never>;
128+
static ɵfac: i0.ɵɵFactoryDef<CdkDragPreview<any>>;
121129
}
122130

123131
export interface CdkDragRelease<T = any> {
@@ -164,13 +172,17 @@ export declare class CdkDropList<T = any> implements AfterContentInit, OnDestroy
164172
static ngAcceptInputType_autoScrollDisabled: boolean | string;
165173
static ngAcceptInputType_disabled: boolean | string;
166174
static ngAcceptInputType_sortingDisabled: boolean | string;
175+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkDropList<any>, "[cdkDropList], cdk-drop-list", ["cdkDropList"], { 'connectedTo': "cdkDropListConnectedTo", 'data': "cdkDropListData", 'orientation': "cdkDropListOrientation", 'id': "id", 'lockAxis': "cdkDropListLockAxis", 'disabled': "cdkDropListDisabled", 'sortingDisabled': "cdkDropListSortingDisabled", 'enterPredicate': "cdkDropListEnterPredicate", 'autoScrollDisabled': "cdkDropListAutoScrollDisabled" }, { 'dropped': "cdkDropListDropped", 'entered': "cdkDropListEntered", 'exited': "cdkDropListExited", 'sorted': "cdkDropListSorted" }, ["_draggables"]>;
176+
static ɵfac: i0.ɵɵFactoryDef<CdkDropList<any>>;
167177
}
168178

169179
export declare class CdkDropListGroup<T> implements OnDestroy {
170180
readonly _items: Set<T>;
171181
disabled: boolean;
172182
ngOnDestroy(): void;
173183
static ngAcceptInputType_disabled: boolean | string;
184+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkDropListGroup<any>, "[cdkDropListGroup]", ["cdkDropListGroup"], { 'disabled': "cdkDropListGroupDisabled" }, {}, never>;
185+
static ɵfac: i0.ɵɵFactoryDef<CdkDropListGroup<any>>;
174186
}
175187

176188
export declare function copyArrayItem<T = any>(currentArray: T[], targetArray: T[], currentIndex: number, targetIndex: number): void;
@@ -179,9 +191,13 @@ export declare class DragDrop {
179191
constructor(_document: any, _ngZone: NgZone, _viewportRuler: ViewportRuler, _dragDropRegistry: DragDropRegistry<DragRef, DropListRef>);
180192
createDrag<T = any>(element: ElementRef<HTMLElement> | HTMLElement, config?: DragRefConfig): DragRef<T>;
181193
createDropList<T = any>(element: ElementRef<HTMLElement> | HTMLElement): DropListRef<T>;
194+
static ɵfac: i0.ɵɵFactoryDef<DragDrop>;
195+
static ɵprov: i0.ɵɵInjectableDef<DragDrop>;
182196
}
183197

184198
export declare class DragDropModule {
199+
static ɵinj: i0.ɵɵInjectorDef<DragDropModule>;
200+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<DragDropModule, [typeof i1.CdkDropList, typeof i2.CdkDropListGroup, typeof i3.CdkDrag, typeof i4.CdkDragHandle, typeof i5.CdkDragPreview, typeof i6.CdkDragPlaceholder], never, [typeof i1.CdkDropList, typeof i2.CdkDropListGroup, typeof i3.CdkDrag, typeof i4.CdkDragHandle, typeof i5.CdkDragPreview, typeof i6.CdkDragPlaceholder]>;
185201
}
186202

187203
export declare class DragDropRegistry<I, C> implements OnDestroy {
@@ -197,6 +213,8 @@ export declare class DragDropRegistry<I, C> implements OnDestroy {
197213
removeDropContainer(drop: C): void;
198214
startDragging(drag: I, event: TouchEvent | MouseEvent): void;
199215
stopDragging(drag: I): void;
216+
static ɵfac: i0.ɵɵFactoryDef<DragDropRegistry<any, any>>;
217+
static ɵprov: i0.ɵɵInjectableDef<DragDropRegistry<any, any>>;
200218
}
201219

202220
export declare class DragRef<T = any> {

tools/public_api_guard/cdk/layout.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ export declare class BreakpointObserver implements OnDestroy {
33
isMatched(value: string | string[]): boolean;
44
ngOnDestroy(): void;
55
observe(value: string | string[]): Observable<BreakpointState>;
6+
static ɵfac: i0.ɵɵFactoryDef<BreakpointObserver>;
7+
static ɵprov: i0.ɵɵInjectableDef<BreakpointObserver>;
68
}
79

810
export declare const Breakpoints: {
@@ -30,9 +32,13 @@ export interface BreakpointState {
3032
}
3133

3234
export declare class LayoutModule {
35+
static ɵinj: i0.ɵɵInjectorDef<LayoutModule>;
36+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<LayoutModule, never, never, never>;
3337
}
3438

3539
export declare class MediaMatcher {
3640
constructor(_platform: Platform);
3741
matchMedia(query: string): MediaQueryList;
42+
static ɵfac: i0.ɵɵFactoryDef<MediaMatcher>;
43+
static ɵprov: i0.ɵɵInjectableDef<MediaMatcher>;
3844
}

tools/public_api_guard/cdk/observers.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,26 @@ export declare class CdkObserveContent implements AfterContentInit, OnDestroy {
77
ngOnDestroy(): void;
88
static ngAcceptInputType_debounce: boolean | string;
99
static ngAcceptInputType_disabled: boolean | string;
10+
static ɵdir: i0.ɵɵDirectiveDefWithMeta<CdkObserveContent, "[cdkObserveContent]", ["cdkObserveContent"], { 'disabled': "cdkObserveContentDisabled", 'debounce': "debounce" }, { 'event': "cdkObserveContent" }, never>;
11+
static ɵfac: i0.ɵɵFactoryDef<CdkObserveContent>;
1012
}
1113

1214
export declare class ContentObserver implements OnDestroy {
1315
constructor(_mutationObserverFactory: MutationObserverFactory);
1416
ngOnDestroy(): void;
1517
observe(element: Element): Observable<MutationRecord[]>;
1618
observe(element: ElementRef<Element>): Observable<MutationRecord[]>;
19+
static ɵfac: i0.ɵɵFactoryDef<ContentObserver>;
20+
static ɵprov: i0.ɵɵInjectableDef<ContentObserver>;
1721
}
1822

1923
export declare class MutationObserverFactory {
2024
create(callback: MutationCallback): MutationObserver | null;
25+
static ɵfac: i0.ɵɵFactoryDef<MutationObserverFactory>;
26+
static ɵprov: i0.ɵɵInjectableDef<MutationObserverFactory>;
2127
}
2228

2329
export declare class ObserversModule {
30+
static ɵinj: i0.ɵɵInjectorDef<ObserversModule>;
31+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<ObserversModule, [typeof CdkObserveContent], never, [typeof CdkObserveContent]>;
2432
}

0 commit comments

Comments
 (0)