|
1 | | -import { BehaviorSubject } from 'rxjs'; |
2 | 1 | import { DataSource } from '@angular/cdk/collections'; |
3 | | -import * as i0 from '@angular/core'; |
4 | 2 | import { NgForm } from '@angular/forms'; |
5 | | -import { Observable } from 'rxjs'; |
| 3 | +import { BehaviorSubject, Observable } from 'rxjs'; |
| 4 | +import * as i0 from '@angular/core'; |
6 | 5 |
|
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; |
19 | 11 | } |
20 | | - |
21 | 12 | /** |
22 | 13 | * @title CDK Popover Edit on a flex cdk-table. |
23 | 14 | */ |
24 | | -export declare class CdkPopoverEditCdkTableFlexExample { |
| 15 | +declare class CdkPopoverEditCdkTableFlexExample { |
25 | 16 | 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; |
31 | 22 | static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditCdkTableFlexExample, never>; |
32 | 23 | static ɵcmp: i0.ɵɵComponentDeclaration<CdkPopoverEditCdkTableFlexExample, "cdk-popover-edit-cdk-table-flex-example", never, {}, {}, never, never, true, never>; |
33 | 24 | } |
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 | | - |
72 | 25 | /** |
73 | 26 | * Data source to provide what data should be rendered in the table. Note that the data source |
74 | 27 | * can retrieve its data in any way. In this case, the data source is provided a reference |
75 | 28 | * to a common data base, ExampleDatabase. It is not the data source's responsibility to manage |
76 | 29 | * the underlying data. Instead, it only needs to take the data and send the table exactly what |
77 | 30 | * should be rendered. |
78 | 31 | */ |
79 | | -declare class ExampleDataSource extends DataSource<PeriodicElement> { |
| 32 | +declare class ExampleDataSource$1 extends DataSource<PeriodicElement$3> { |
80 | 33 | /** Stream of data that is provided to the table. */ |
81 | | - data: BehaviorSubject<PeriodicElement[]>; |
| 34 | + data: BehaviorSubject<PeriodicElement$3[]>; |
82 | 35 | /** Connect function called by the table to retrieve one stream containing the data to render. */ |
83 | | - connect(): Observable<PeriodicElement[]>; |
| 36 | + connect(): Observable<PeriodicElement$3[]>; |
84 | 37 | disconnect(): void; |
85 | 38 | } |
86 | 39 |
|
| 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 | +} |
87 | 59 | /** |
88 | 60 | * Data source to provide what data should be rendered in the table. Note that the data source |
89 | 61 | * can retrieve its data in any way. In this case, the data source is provided a reference |
90 | 62 | * to a common data base, ExampleDatabase. It is not the data source's responsibility to manage |
91 | 63 | * the underlying data. Instead, it only needs to take the data and send the table exactly what |
92 | 64 | * should be rendered. |
93 | 65 | */ |
94 | | -declare class ExampleDataSource_2 extends DataSource<PeriodicElement_2> { |
| 66 | +declare class ExampleDataSource extends DataSource<PeriodicElement$2> { |
95 | 67 | /** Stream of data that is provided to the table. */ |
96 | | - data: BehaviorSubject<PeriodicElement_2[]>; |
| 68 | + data: BehaviorSubject<PeriodicElement$2[]>; |
97 | 69 | /** 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[]>; |
99 | 71 | disconnect(): void; |
100 | 72 | } |
101 | 73 |
|
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; |
107 | 79 | } |
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>; |
114 | 89 | } |
115 | 90 |
|
116 | | -declare interface PeriodicElement_3 { |
| 91 | +interface PeriodicElement$1 { |
117 | 92 | name: string; |
118 | 93 | position: number; |
119 | 94 | weight: number; |
120 | 95 | symbol: string; |
121 | 96 | } |
| 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 | +} |
122 | 109 |
|
123 | | -declare interface PeriodicElement_4 { |
| 110 | +interface PeriodicElement { |
124 | 111 | name: string; |
125 | 112 | position: number; |
126 | 113 | weight: number; |
127 | 114 | symbol: string; |
128 | 115 | } |
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>; |
135 | 127 | } |
136 | 128 |
|
137 | | -export { } |
| 129 | +export { CdkPopoverEditCdkTableExample, CdkPopoverEditCdkTableFlexExample, CdkPopoverEditCellSpanVanillaTableExample, CdkPopoverEditTabOutVanillaTableExample, CdkPopoverEditVanillaTableExample }; |
0 commit comments