Skip to content

Commit 5f86006

Browse files
committed
main - 3cc2b54 build: update @angular/bazel to support .d.ts code splitting
1 parent b45a4c4 commit 5f86006

File tree

117 files changed

+2155
-2376
lines changed

Some content is hidden

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

117 files changed

+2155
-2376
lines changed
Lines changed: 78 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,129 @@
1-
import { BehaviorSubject } from 'rxjs';
21
import { DataSource } from '@angular/cdk/collections';
3-
import * as i0 from '@angular/core';
42
import { NgForm } from '@angular/forms';
5-
import { Observable } from 'rxjs';
3+
import { BehaviorSubject, Observable } from 'rxjs';
4+
import * as i0 from '@angular/core';
65

7-
/**
8-
* @title CDK Popover Edit on a CDK data-table
9-
*/
10-
export declare class CdkPopoverEditCdkTableExample {
11-
displayedColumns: string[];
12-
dataSource: ExampleDataSource_2;
13-
readonly preservedNameValues: WeakMap<PeriodicElement_2, any>;
14-
readonly preservedWeightValues: WeakMap<PeriodicElement_2, any>;
15-
onSubmitName(element: PeriodicElement_2, f: NgForm): void;
16-
onSubmitWeight(element: PeriodicElement_2, f: NgForm): void;
17-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditCdkTableExample, never>;
18-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkPopoverEditCdkTableExample, "cdk-popover-edit-cdk-table-example", never, {}, {}, never, never, true, never>;
6+
interface PeriodicElement$3 {
7+
name: string;
8+
position: number;
9+
weight: number;
10+
symbol: string;
1911
}
20-
2112
/**
2213
* @title CDK Popover Edit on a flex cdk-table.
2314
*/
24-
export declare class CdkPopoverEditCdkTableFlexExample {
15+
declare class CdkPopoverEditCdkTableFlexExample {
2516
displayedColumns: string[];
26-
dataSource: ExampleDataSource;
27-
readonly preservedNameValues: WeakMap<PeriodicElement, any>;
28-
readonly preservedWeightValues: WeakMap<PeriodicElement, any>;
29-
onSubmitName(element: PeriodicElement, f: NgForm): void;
30-
onSubmitWeight(element: PeriodicElement, f: NgForm): void;
17+
dataSource: ExampleDataSource$1;
18+
readonly preservedNameValues: WeakMap<PeriodicElement$3, any>;
19+
readonly preservedWeightValues: WeakMap<PeriodicElement$3, any>;
20+
onSubmitName(element: PeriodicElement$3, f: NgForm): void;
21+
onSubmitWeight(element: PeriodicElement$3, f: NgForm): void;
3122
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditCdkTableFlexExample, never>;
3223
static ɵcmp: i0.ɵɵComponentDeclaration<CdkPopoverEditCdkTableFlexExample, "cdk-popover-edit-cdk-table-flex-example", never, {}, {}, never, never, true, never>;
3324
}
34-
35-
/**
36-
* @title CDK Popover Edit spanning multiple columns on an HTML data-table
37-
*/
38-
export declare class CdkPopoverEditCellSpanVanillaTableExample {
39-
readonly preservedValues: WeakMap<Person, any>;
40-
readonly persons: Person[];
41-
onSubmit(person: Person, f: NgForm): void;
42-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditCellSpanVanillaTableExample, never>;
43-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkPopoverEditCellSpanVanillaTableExample, "cdk-popover-edit-cell-span-vanilla-table-example", never, {}, {}, never, never, true, never>;
44-
}
45-
46-
/**
47-
* @title CDK Popover Edit with spreadsheet-like configuration on an HTML data-table
48-
*/
49-
export declare class CdkPopoverEditTabOutVanillaTableExample {
50-
readonly preservedNameValues: WeakMap<PeriodicElement_3, any>;
51-
readonly preservedWeightValues: WeakMap<PeriodicElement_3, any>;
52-
readonly elements: PeriodicElement_3[];
53-
onSubmitName(element: PeriodicElement_3, f: NgForm): void;
54-
onSubmitWeight(element: PeriodicElement_3, f: NgForm): void;
55-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditTabOutVanillaTableExample, never>;
56-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkPopoverEditTabOutVanillaTableExample, "cdk-popover-edit-tab-out-vanilla-table-example", never, {}, {}, never, never, true, never>;
57-
}
58-
59-
/**
60-
* @title CDK Popover Edit on an HTML data-table
61-
*/
62-
export declare class CdkPopoverEditVanillaTableExample {
63-
readonly preservedNameValues: WeakMap<PeriodicElement_4, any>;
64-
readonly preservedWeightValues: WeakMap<PeriodicElement_4, any>;
65-
readonly elements: PeriodicElement_4[];
66-
onSubmitName(element: PeriodicElement_4, f: NgForm): void;
67-
onSubmitWeight(element: PeriodicElement_4, f: NgForm): void;
68-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditVanillaTableExample, never>;
69-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkPopoverEditVanillaTableExample, "cdk-popover-edit-vanilla-table-example", never, {}, {}, never, never, true, never>;
70-
}
71-
7225
/**
7326
* Data source to provide what data should be rendered in the table. Note that the data source
7427
* can retrieve its data in any way. In this case, the data source is provided a reference
7528
* to a common data base, ExampleDatabase. It is not the data source's responsibility to manage
7629
* the underlying data. Instead, it only needs to take the data and send the table exactly what
7730
* should be rendered.
7831
*/
79-
declare class ExampleDataSource extends DataSource<PeriodicElement> {
32+
declare class ExampleDataSource$1 extends DataSource<PeriodicElement$3> {
8033
/** Stream of data that is provided to the table. */
81-
data: BehaviorSubject<PeriodicElement[]>;
34+
data: BehaviorSubject<PeriodicElement$3[]>;
8235
/** Connect function called by the table to retrieve one stream containing the data to render. */
83-
connect(): Observable<PeriodicElement[]>;
36+
connect(): Observable<PeriodicElement$3[]>;
8437
disconnect(): void;
8538
}
8639

40+
interface PeriodicElement$2 {
41+
name: string;
42+
position: number;
43+
weight: number;
44+
symbol: string;
45+
}
46+
/**
47+
* @title CDK Popover Edit on a CDK data-table
48+
*/
49+
declare class CdkPopoverEditCdkTableExample {
50+
displayedColumns: string[];
51+
dataSource: ExampleDataSource;
52+
readonly preservedNameValues: WeakMap<PeriodicElement$2, any>;
53+
readonly preservedWeightValues: WeakMap<PeriodicElement$2, any>;
54+
onSubmitName(element: PeriodicElement$2, f: NgForm): void;
55+
onSubmitWeight(element: PeriodicElement$2, f: NgForm): void;
56+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditCdkTableExample, never>;
57+
static ɵcmp: i0.ɵɵComponentDeclaration<CdkPopoverEditCdkTableExample, "cdk-popover-edit-cdk-table-example", never, {}, {}, never, never, true, never>;
58+
}
8759
/**
8860
* Data source to provide what data should be rendered in the table. Note that the data source
8961
* can retrieve its data in any way. In this case, the data source is provided a reference
9062
* to a common data base, ExampleDatabase. It is not the data source's responsibility to manage
9163
* the underlying data. Instead, it only needs to take the data and send the table exactly what
9264
* should be rendered.
9365
*/
94-
declare class ExampleDataSource_2 extends DataSource<PeriodicElement_2> {
66+
declare class ExampleDataSource extends DataSource<PeriodicElement$2> {
9567
/** Stream of data that is provided to the table. */
96-
data: BehaviorSubject<PeriodicElement_2[]>;
68+
data: BehaviorSubject<PeriodicElement$2[]>;
9769
/** Connect function called by the table to retrieve one stream containing the data to render. */
98-
connect(): Observable<PeriodicElement_2[]>;
70+
connect(): Observable<PeriodicElement$2[]>;
9971
disconnect(): void;
10072
}
10173

102-
declare interface PeriodicElement {
103-
name: string;
104-
position: number;
105-
weight: number;
106-
symbol: string;
74+
interface Person {
75+
id: number;
76+
firstName: string;
77+
middleName: string;
78+
lastName: string;
10779
}
108-
109-
declare interface PeriodicElement_2 {
110-
name: string;
111-
position: number;
112-
weight: number;
113-
symbol: string;
80+
/**
81+
* @title CDK Popover Edit spanning multiple columns on an HTML data-table
82+
*/
83+
declare class CdkPopoverEditCellSpanVanillaTableExample {
84+
readonly preservedValues: WeakMap<Person, any>;
85+
readonly persons: Person[];
86+
onSubmit(person: Person, f: NgForm): void;
87+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditCellSpanVanillaTableExample, never>;
88+
static ɵcmp: i0.ɵɵComponentDeclaration<CdkPopoverEditCellSpanVanillaTableExample, "cdk-popover-edit-cell-span-vanilla-table-example", never, {}, {}, never, never, true, never>;
11489
}
11590

116-
declare interface PeriodicElement_3 {
91+
interface PeriodicElement$1 {
11792
name: string;
11893
position: number;
11994
weight: number;
12095
symbol: string;
12196
}
97+
/**
98+
* @title CDK Popover Edit with spreadsheet-like configuration on an HTML data-table
99+
*/
100+
declare class CdkPopoverEditTabOutVanillaTableExample {
101+
readonly preservedNameValues: WeakMap<PeriodicElement$1, any>;
102+
readonly preservedWeightValues: WeakMap<PeriodicElement$1, any>;
103+
readonly elements: PeriodicElement$1[];
104+
onSubmitName(element: PeriodicElement$1, f: NgForm): void;
105+
onSubmitWeight(element: PeriodicElement$1, f: NgForm): void;
106+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditTabOutVanillaTableExample, never>;
107+
static ɵcmp: i0.ɵɵComponentDeclaration<CdkPopoverEditTabOutVanillaTableExample, "cdk-popover-edit-tab-out-vanilla-table-example", never, {}, {}, never, never, true, never>;
108+
}
122109

123-
declare interface PeriodicElement_4 {
110+
interface PeriodicElement {
124111
name: string;
125112
position: number;
126113
weight: number;
127114
symbol: string;
128115
}
129-
130-
declare interface Person {
131-
id: number;
132-
firstName: string;
133-
middleName: string;
134-
lastName: string;
116+
/**
117+
* @title CDK Popover Edit on an HTML data-table
118+
*/
119+
declare class CdkPopoverEditVanillaTableExample {
120+
readonly preservedNameValues: WeakMap<PeriodicElement, any>;
121+
readonly preservedWeightValues: WeakMap<PeriodicElement, any>;
122+
readonly elements: PeriodicElement[];
123+
onSubmitName(element: PeriodicElement, f: NgForm): void;
124+
onSubmitWeight(element: PeriodicElement, f: NgForm): void;
125+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditVanillaTableExample, never>;
126+
static ɵcmp: i0.ɵɵComponentDeclaration<CdkPopoverEditVanillaTableExample, "cdk-popover-edit-vanilla-table-example", never, {}, {}, never, never, true, never>;
135127
}
136128

137-
export { }
129+
export { CdkPopoverEditCdkTableExample, CdkPopoverEditCdkTableFlexExample, CdkPopoverEditCellSpanVanillaTableExample, CdkPopoverEditTabOutVanillaTableExample, CdkPopoverEditVanillaTableExample };
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1-
import * as i0 from '@angular/core';
21
import { SelectionChange } from '@angular/cdk-experimental/selection';
2+
import * as i0 from '@angular/core';
33

44
/**
55
* @title CDK Selection Column on a CDK table.
66
*/
7-
export declare class CdkSelectionColumnExample {
7+
declare class CdkSelectionColumnExample {
88
displayedColumns: string[];
99
dataSource: PeriodicElement[];
1010
selected: string[];
1111
selectionChanged(event: SelectionChange<PeriodicElement>): void;
1212
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectionColumnExample, never>;
1313
static ɵcmp: i0.ɵɵComponentDeclaration<CdkSelectionColumnExample, "cdk-selection-column-example", never, {}, {}, never, never, true, never>;
1414
}
15+
interface PeriodicElement {
16+
name: string;
17+
position: number;
18+
weight: number;
19+
symbol: string;
20+
}
1521

1622
/**
1723
* @title CDK Selection on a simple list.
1824
*/
19-
export declare class CdkSelectionListExample {
25+
declare class CdkSelectionListExample {
2026
data: string[];
2127
selected1: string[];
2228
selected2: string[];
@@ -30,11 +36,4 @@ export declare class CdkSelectionListExample {
3036
static ɵcmp: i0.ɵɵComponentDeclaration<CdkSelectionListExample, "cdk-selection-list-example", never, {}, {}, never, never, true, never>;
3137
}
3238

33-
declare interface PeriodicElement {
34-
name: string;
35-
position: number;
36-
weight: number;
37-
symbol: string;
38-
}
39-
40-
export { }
39+
export { CdkSelectionColumnExample, CdkSelectionListExample };

cdk/a11y/index.d.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
import { AfterViewInit } from '@angular/core';
2-
import { ElementRef } from '@angular/core';
3-
import { FocusMonitor } from '@angular/cdk/a11y';
4-
import { FocusOrigin } from '@angular/cdk/a11y';
1+
import { FocusOrigin, FocusMonitor } from '@angular/cdk/a11y';
52
import * as i0 from '@angular/core';
6-
import { OnDestroy } from '@angular/core';
3+
import { OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
74

85
/** @title Monitoring focus with FocusMonitor */
9-
export declare class FocusMonitorDirectivesExample {
6+
declare class FocusMonitorDirectivesExample {
107
private _ngZone;
118
private _cdr;
129
elementOrigin: string;
@@ -18,7 +15,7 @@ export declare class FocusMonitorDirectivesExample {
1815
}
1916

2017
/** @title Focusing with a specific FocusOrigin */
21-
export declare class FocusMonitorFocusViaExample implements OnDestroy, AfterViewInit {
18+
declare class FocusMonitorFocusViaExample implements OnDestroy, AfterViewInit {
2219
focusMonitor: FocusMonitor;
2320
private _cdr;
2421
private _ngZone;
@@ -32,7 +29,7 @@ export declare class FocusMonitorFocusViaExample implements OnDestroy, AfterView
3229
}
3330

3431
/** @title Monitoring focus with FocusMonitor */
35-
export declare class FocusMonitorOverviewExample implements OnDestroy, AfterViewInit {
32+
declare class FocusMonitorOverviewExample implements OnDestroy, AfterViewInit {
3633
private _focusMonitor;
3734
private _cdr;
3835
private _ngZone;
@@ -47,4 +44,4 @@ export declare class FocusMonitorOverviewExample implements OnDestroy, AfterView
4744
static ɵcmp: i0.ɵɵComponentDeclaration<FocusMonitorOverviewExample, "focus-monitor-overview-example", never, {}, {}, never, never, true, never>;
4845
}
4946

50-
export { }
47+
export { FocusMonitorDirectivesExample, FocusMonitorFocusViaExample, FocusMonitorOverviewExample };

cdk/accordion/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import * as i0 from '@angular/core';
33
/**
44
* @title Accordion overview
55
*/
6-
export declare class CdkAccordionOverviewExample {
6+
declare class CdkAccordionOverviewExample {
77
items: string[];
88
expandedIndex: number;
99
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAccordionOverviewExample, never>;
1010
static ɵcmp: i0.ɵɵComponentDeclaration<CdkAccordionOverviewExample, "cdk-accordion-overview-example", never, {}, {}, never, never, true, never>;
1111
}
1212

13-
export { }
13+
export { CdkAccordionOverviewExample };

cdk/clipboard/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import * as i0 from '@angular/core';
33
/**
44
* @title Clipboard overview
55
*/
6-
export declare class CdkClipboardOverviewExample {
6+
declare class CdkClipboardOverviewExample {
77
value: string;
88
static ɵfac: i0.ɵɵFactoryDeclaration<CdkClipboardOverviewExample, never>;
99
static ɵcmp: i0.ɵɵComponentDeclaration<CdkClipboardOverviewExample, "cdk-clipboard-overview-example", never, {}, {}, never, never, true, never>;
1010
}
1111

12-
export { }
12+
export { CdkClipboardOverviewExample };

cdk/dialog/index.d.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
import { Dialog } from '@angular/cdk/dialog';
2-
import { DialogRef } from '@angular/cdk/dialog';
1+
import { Dialog, DialogRef } from '@angular/cdk/dialog';
32
import * as i0 from '@angular/core';
43

54
/**
65
* @title Injecting data when opening a dialog
76
*/
8-
export declare class CdkDialogDataExample {
7+
declare class CdkDialogDataExample {
98
dialog: Dialog;
109
openDialog(): void;
1110
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogDataExample, never>;
1211
static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogDataExample, "cdk-dialog-data-example", never, {}, {}, never, never, true, never>;
1312
}
14-
15-
export declare class CdkDialogDataExampleDialog {
13+
declare class CdkDialogDataExampleDialog {
1614
data: any;
1715
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogDataExampleDialog, never>;
1816
static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogDataExampleDialog, "cdk-dialog-data-example-dialog", never, {}, {}, never, never, true, never>;
@@ -21,16 +19,15 @@ export declare class CdkDialogDataExampleDialog {
2119
/**
2220
* @title CDK Dialog Overview
2321
*/
24-
export declare class CdkDialogOverviewExample {
22+
declare class CdkDialogOverviewExample {
2523
dialog: Dialog;
2624
animal: string | undefined;
2725
name: string;
2826
openDialog(): void;
2927
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogOverviewExample, never>;
3028
static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogOverviewExample, "cdk-dialog-overview-example", never, {}, {}, never, never, true, never>;
3129
}
32-
33-
export declare class CdkDialogOverviewExampleDialog {
30+
declare class CdkDialogOverviewExampleDialog {
3431
dialogRef: DialogRef<string, unknown>;
3532
data: any;
3633
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogOverviewExampleDialog, never>;
@@ -40,17 +37,16 @@ export declare class CdkDialogOverviewExampleDialog {
4037
/**
4138
* @title CDK Dialog Styling
4239
*/
43-
export declare class CdkDialogStylingExample {
40+
declare class CdkDialogStylingExample {
4441
dialog: Dialog;
4542
openDialog(): void;
4643
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogStylingExample, never>;
4744
static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogStylingExample, "cdk-dialog-styling-example", never, {}, {}, never, never, true, never>;
4845
}
49-
50-
export declare class CdkDialogStylingExampleDialog {
46+
declare class CdkDialogStylingExampleDialog {
5147
dialogRef: DialogRef<any, any>;
5248
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogStylingExampleDialog, never>;
5349
static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogStylingExampleDialog, "cdk-dialog-styling-example-dialog", never, {}, {}, never, never, true, never>;
5450
}
5551

56-
export { }
52+
export { CdkDialogDataExample, CdkDialogDataExampleDialog, CdkDialogOverviewExample, CdkDialogOverviewExampleDialog, CdkDialogStylingExample, CdkDialogStylingExampleDialog };

0 commit comments

Comments
 (0)