@angular/cdk 19.2.1 → 19.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/a11y/index.d.ts +926 -999
  2. package/accordion/index.d.ts +8 -27
  3. package/bidi/index.d.ts +38 -48
  4. package/clipboard/index.d.ts +61 -75
  5. package/coercion/index.d.ts +22 -32
  6. package/coercion/private/index.d.ts +2 -2
  7. package/collections/index.d.ts +139 -158
  8. package/dialog/index.d.ts +210 -246
  9. package/drag-drop/index.d.ts +1084 -1160
  10. package/fesm2022/a11y.mjs +62 -54
  11. package/fesm2022/a11y.mjs.map +1 -1
  12. package/fesm2022/accordion.mjs +10 -14
  13. package/fesm2022/accordion.mjs.map +1 -1
  14. package/fesm2022/bidi.mjs +15 -15
  15. package/fesm2022/bidi.mjs.map +1 -1
  16. package/fesm2022/cdk.mjs +1 -1
  17. package/fesm2022/cdk.mjs.map +1 -1
  18. package/fesm2022/clipboard.mjs +10 -14
  19. package/fesm2022/clipboard.mjs.map +1 -1
  20. package/fesm2022/coercion/private.mjs +0 -4
  21. package/fesm2022/coercion/private.mjs.map +1 -1
  22. package/fesm2022/coercion.mjs.map +1 -1
  23. package/fesm2022/collections.mjs +4 -8
  24. package/fesm2022/collections.mjs.map +1 -1
  25. package/fesm2022/dialog.mjs +10 -14
  26. package/fesm2022/dialog.mjs.map +1 -1
  27. package/fesm2022/drag-drop.mjs +31 -35
  28. package/fesm2022/drag-drop.mjs.map +1 -1
  29. package/fesm2022/keycodes.mjs +0 -4
  30. package/fesm2022/keycodes.mjs.map +1 -1
  31. package/fesm2022/layout.mjs +10 -14
  32. package/fesm2022/layout.mjs.map +1 -1
  33. package/fesm2022/listbox.mjs +10 -14
  34. package/fesm2022/listbox.mjs.map +1 -1
  35. package/fesm2022/menu.mjs +49 -53
  36. package/fesm2022/menu.mjs.map +1 -1
  37. package/fesm2022/observers/private.mjs +3 -7
  38. package/fesm2022/observers/private.mjs.map +1 -1
  39. package/fesm2022/observers.mjs +13 -17
  40. package/fesm2022/observers.mjs.map +1 -1
  41. package/fesm2022/overlay.mjs +54 -50
  42. package/fesm2022/overlay.mjs.map +1 -1
  43. package/fesm2022/platform.mjs +7 -11
  44. package/fesm2022/platform.mjs.map +1 -1
  45. package/fesm2022/portal.mjs +25 -26
  46. package/fesm2022/portal.mjs.map +1 -1
  47. package/fesm2022/private.mjs +6 -10
  48. package/fesm2022/private.mjs.map +1 -1
  49. package/fesm2022/scrolling.mjs +36 -40
  50. package/fesm2022/scrolling.mjs.map +1 -1
  51. package/fesm2022/stepper.mjs +29 -32
  52. package/fesm2022/stepper.mjs.map +1 -1
  53. package/fesm2022/table.mjs +78 -88
  54. package/fesm2022/table.mjs.map +1 -1
  55. package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
  56. package/fesm2022/testing/testbed.mjs +1 -41
  57. package/fesm2022/testing/testbed.mjs.map +1 -1
  58. package/fesm2022/testing.mjs.map +1 -1
  59. package/fesm2022/text-field.mjs +16 -20
  60. package/fesm2022/text-field.mjs.map +1 -1
  61. package/fesm2022/tree.mjs +25 -29
  62. package/fesm2022/tree.mjs.map +1 -1
  63. package/index.d.ts +2 -2
  64. package/keycodes/index.d.ts +123 -244
  65. package/layout/index.d.ts +23 -25
  66. package/listbox/index.d.ts +90 -107
  67. package/menu/index.d.ts +593 -687
  68. package/observers/index.d.ts +38 -44
  69. package/observers/private/index.d.ts +3 -3
  70. package/overlay/index.d.ts +921 -986
  71. package/package.json +1 -1
  72. package/platform/index.d.ts +50 -62
  73. package/portal/index.d.ts +172 -195
  74. package/private/index.d.ts +3 -3
  75. package/schematics/ng-add/index.js +1 -1
  76. package/schematics/ng-add/index.mjs +1 -1
  77. package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +1 -1
  78. package/scrolling/index.d.ts +268 -351
  79. package/stepper/index.d.ts +72 -124
  80. package/table/index.d.ts +336 -449
  81. package/testing/index.d.ts +490 -517
  82. package/testing/selenium-webdriver/index.d.ts +30 -20
  83. package/testing/testbed/index.d.ts +9 -19
  84. package/text-field/index.d.ts +9 -30
  85. package/tree/index.d.ts +204 -271
package/table/index.d.ts CHANGED
@@ -1,67 +1,20 @@
1
- import { AfterContentChecked } from '@angular/core';
2
- import { AfterContentInit } from '@angular/core';
3
- import { BehaviorSubject } from 'rxjs';
4
- import { ChangeDetectorRef } from '@angular/core';
5
- import { CollectionViewer } from '@angular/cdk/collections';
6
- import { DataSource } from '@angular/cdk/collections';
7
- import { Direction } from '@angular/cdk/bidi';
8
- import { Directionality } from '@angular/cdk/bidi';
9
- import { ElementRef } from '@angular/core';
10
- import { EventEmitter } from '@angular/core';
1
+ import { Directionality, Direction } from '@angular/cdk/bidi';
2
+ import { DataSource, CollectionViewer, _ViewRepeater } from '@angular/cdk/collections';
3
+ export { DataSource } from '@angular/cdk/collections';
11
4
  import * as i0 from '@angular/core';
12
- import * as i1 from '@angular/cdk/scrolling';
13
- import { InjectionToken } from '@angular/core';
14
- import { Injector } from '@angular/core';
15
- import { IterableChanges } from '@angular/core';
16
- import { IterableDiffer } from '@angular/core';
17
- import { IterableDiffers } from '@angular/core';
18
- import { Observable } from 'rxjs';
19
- import { OnChanges } from '@angular/core';
20
- import { OnDestroy } from '@angular/core';
21
- import { OnInit } from '@angular/core';
22
- import { QueryList } from '@angular/core';
23
- import { SimpleChanges } from '@angular/core';
24
- import { TemplateRef } from '@angular/core';
25
- import { TrackByFunction } from '@angular/core';
26
- import { ViewContainerRef } from '@angular/core';
27
- import { _ViewRepeater } from '@angular/cdk/collections';
28
-
29
- /** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */
30
- export declare class BaseCdkCell {
31
- constructor(columnDef: CdkColumnDef, elementRef: ElementRef);
32
- }
33
-
34
- /**
35
- * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs
36
- * for changes and notifying the table.
37
- */
38
- export declare abstract class BaseRowDef implements OnChanges {
39
- template: TemplateRef<any>;
40
- protected _differs: IterableDiffers;
41
- /** The columns to be displayed on this row. */
42
- columns: Iterable<string>;
43
- /** Differ used to check if any changes were made to the columns. */
44
- protected _columnsDiffer: IterableDiffer<any>;
45
- constructor(...args: unknown[]);
46
- ngOnChanges(changes: SimpleChanges): void;
47
- /**
48
- * Returns the difference between the current columns and the columns from the last diff, or null
49
- * if there is no difference.
50
- */
51
- getColumnsDiff(): IterableChanges<any> | null;
52
- /** Gets this row def's relevant cell template from the provided column def. */
53
- extractCellTemplate(column: CdkColumnDef): TemplateRef<any>;
54
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseRowDef, never>;
55
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseRowDef, never, never, {}, {}, never, never, true, never>;
56
- }
5
+ import { TemplateRef, ElementRef, InjectionToken, OnChanges, IterableDiffers, IterableDiffer, SimpleChanges, IterableChanges, OnDestroy, ViewContainerRef, AfterContentInit, AfterContentChecked, OnInit, ChangeDetectorRef, TrackByFunction, EventEmitter, QueryList, Injector } from '@angular/core';
6
+ import { Observable, BehaviorSubject } from 'rxjs';
7
+ import * as i3 from '@angular/cdk/scrolling';
57
8
 
9
+ /** @docs-private */
10
+ type Constructor<T> = new (...args: any[]) => T;
58
11
  /**
59
12
  * Interface for a mixin to provide a directive with a function that checks if the sticky input has
60
13
  * been changed since the last time the function was called. Essentially adds a dirty-check to the
61
14
  * sticky value.
62
15
  * @docs-private
63
16
  */
64
- export declare interface CanStick {
17
+ interface CanStick {
65
18
  /** Whether sticky positioning should be applied. */
66
19
  sticky: boolean;
67
20
  /** Whether the sticky value has changed since this was last called. */
@@ -69,119 +22,60 @@ export declare interface CanStick {
69
22
  /** Resets the dirty check for cases where the sticky state has been used without checking. */
70
23
  resetStickyChanged(): void;
71
24
  }
72
-
73
25
  /** @docs-private */
74
- export declare type CanStickCtor = Constructor<CanStick>;
75
-
26
+ type CanStickCtor = Constructor<CanStick>;
76
27
  /**
77
- * The row template that can be used by the mat-table. Should not be used outside of the
78
- * material library.
79
- */
80
- export declare const CDK_ROW_TEMPLATE = "<ng-container cdkCellOutlet></ng-container>";
81
-
82
- /**
83
- * Used to provide a table to some of the sub-components without causing a circular dependency.
84
- * @docs-private
85
- */
86
- export declare const CDK_TABLE: InjectionToken<any>;
87
-
88
- /**
89
- * The table template that can be used by the mat-table. Should not be used outside of the
90
- * material library.
28
+ * Mixin to provide a directive with a function that checks if the sticky input has been
29
+ * changed since the last time the function was called. Essentially adds a dirty-check to the
30
+ * sticky value.
91
31
  * @docs-private
32
+ * @deprecated Implement the `CanStick` interface instead.
33
+ * @breaking-change 19.0.0
92
34
  */
93
- export declare const CDK_TABLE_TEMPLATE = "\n <ng-content select=\"caption\"/>\n <ng-content select=\"colgroup, col\"/>\n\n <!--\n Unprojected content throws a hydration error so we need this to capture it.\n It gets removed on the client so it doesn't affect the layout.\n -->\n @if (_isServer) {\n <ng-content/>\n }\n\n @if (_isNativeHtmlTable) {\n <thead role=\"rowgroup\">\n <ng-container headerRowOutlet/>\n </thead>\n <tbody role=\"rowgroup\">\n <ng-container rowOutlet/>\n <ng-container noDataRowOutlet/>\n </tbody>\n <tfoot role=\"rowgroup\">\n <ng-container footerRowOutlet/>\n </tfoot>\n } @else {\n <ng-container headerRowOutlet/>\n <ng-container rowOutlet/>\n <ng-container noDataRowOutlet/>\n <ng-container footerRowOutlet/>\n }\n";
35
+ declare function mixinHasStickyInput<T extends Constructor<{}>>(base: T): CanStickCtor & T;
94
36
 
95
- /** Cell template container that adds the right classes and role. */
96
- export declare class CdkCell extends BaseCdkCell {
97
- constructor(...args: unknown[]);
98
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkCell, never>;
99
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCell, "cdk-cell, td[cdk-cell]", never, {}, {}, never, never, true, never>;
37
+ /** Base interface for a cell definition. Captures a column's cell template definition. */
38
+ interface CellDef {
39
+ template: TemplateRef<any>;
100
40
  }
101
-
102
41
  /**
103
42
  * Cell definition for a CDK table.
104
43
  * Captures the template of a column's data row cell as well as cell-specific properties.
105
44
  */
106
- export declare class CdkCellDef implements CellDef {
45
+ declare class CdkCellDef implements CellDef {
107
46
  /** @docs-private */
108
47
  template: TemplateRef<any>;
109
48
  constructor(...args: unknown[]);
110
49
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkCellDef, never>;
111
50
  static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCellDef, "[cdkCellDef]", never, {}, {}, never, never, true, never>;
112
51
  }
113
-
114
52
  /**
115
- * Outlet for rendering cells inside of a row or header row.
116
- * @docs-private
53
+ * Header cell definition for a CDK table.
54
+ * Captures the template of a column's header cell and as well as cell-specific properties.
117
55
  */
118
- export declare class CdkCellOutlet implements OnDestroy {
119
- _viewContainer: ViewContainerRef;
120
- /** The ordered list of cells to render within this outlet's view container */
121
- cells: CdkCellDef[];
122
- /** The data context to be provided to each cell */
123
- context: any;
124
- /**
125
- * Static property containing the latest constructed instance of this class.
126
- * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using
127
- * createEmbeddedView. After one of these components are created, this property will provide
128
- * a handle to provide that component's cells and context. After init, the CdkCellOutlet will
129
- * construct the cells with the provided context.
130
- */
131
- static mostRecentCellOutlet: CdkCellOutlet | null;
56
+ declare class CdkHeaderCellDef implements CellDef {
57
+ /** @docs-private */
58
+ template: TemplateRef<any>;
132
59
  constructor(...args: unknown[]);
133
- ngOnDestroy(): void;
134
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkCellOutlet, never>;
135
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCellOutlet, "[cdkCellOutlet]", never, {}, {}, never, never, true, never>;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderCellDef, never>;
61
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderCellDef, "[cdkHeaderCellDef]", never, {}, {}, never, never, true, never>;
136
62
  }
137
-
138
63
  /**
139
- * Context provided to the row cells when `multiTemplateDataRows` is true. This context is the same
140
- * as CdkCellOutletRowContext except that the single `index` value is replaced by `dataIndex` and
141
- * `renderIndex`.
64
+ * Footer cell definition for a CDK table.
65
+ * Captures the template of a column's footer cell and as well as cell-specific properties.
142
66
  */
143
- export declare interface CdkCellOutletMultiRowContext<T> {
144
- /** Data for the row that this cell is located within. */
145
- $implicit?: T;
146
- /** Index of the data object in the provided data array. */
147
- dataIndex?: number;
148
- /** Index location of the rendered row that this cell is located within. */
149
- renderIndex?: number;
150
- /** Length of the number of total rows. */
151
- count?: number;
152
- /** True if this cell is contained in the first row. */
153
- first?: boolean;
154
- /** True if this cell is contained in the last row. */
155
- last?: boolean;
156
- /** True if this cell is contained in a row with an even-numbered index. */
157
- even?: boolean;
158
- /** True if this cell is contained in a row with an odd-numbered index. */
159
- odd?: boolean;
160
- }
161
-
162
- /** Context provided to the row cells when `multiTemplateDataRows` is false */
163
- export declare interface CdkCellOutletRowContext<T> {
164
- /** Data for the row that this cell is located within. */
165
- $implicit?: T;
166
- /** Index of the data object in the provided data array. */
167
- index?: number;
168
- /** Length of the number of total rows. */
169
- count?: number;
170
- /** True if this cell is contained in the first row. */
171
- first?: boolean;
172
- /** True if this cell is contained in the last row. */
173
- last?: boolean;
174
- /** True if this cell is contained in a row with an even-numbered index. */
175
- even?: boolean;
176
- /** True if this cell is contained in a row with an odd-numbered index. */
177
- odd?: boolean;
67
+ declare class CdkFooterCellDef implements CellDef {
68
+ /** @docs-private */
69
+ template: TemplateRef<any>;
70
+ constructor(...args: unknown[]);
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterCellDef, never>;
72
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterCellDef, "[cdkFooterCellDef]", never, {}, {}, never, never, true, never>;
178
73
  }
179
-
180
74
  /**
181
75
  * Column definition for the CDK table.
182
76
  * Defines a set of cells available for a table column.
183
77
  */
184
- export declare class CdkColumnDef implements CanStick {
78
+ declare class CdkColumnDef implements CanStick {
185
79
  _table?: any;
186
80
  private _hasStickyChanged;
187
81
  /** Unique name for this column. */
@@ -242,37 +136,96 @@ export declare class CdkColumnDef implements CanStick {
242
136
  static ngAcceptInputType_sticky: unknown;
243
137
  static ngAcceptInputType_stickyEnd: unknown;
244
138
  }
245
-
139
+ /** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */
140
+ declare class BaseCdkCell {
141
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef);
142
+ }
143
+ /** Header cell template container that adds the right classes and role. */
144
+ declare class CdkHeaderCell extends BaseCdkCell {
145
+ constructor(...args: unknown[]);
146
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderCell, never>;
147
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderCell, "cdk-header-cell, th[cdk-header-cell]", never, {}, {}, never, never, true, never>;
148
+ }
246
149
  /** Footer cell template container that adds the right classes and role. */
247
- export declare class CdkFooterCell extends BaseCdkCell {
150
+ declare class CdkFooterCell extends BaseCdkCell {
248
151
  constructor(...args: unknown[]);
249
152
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterCell, never>;
250
153
  static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterCell, "cdk-footer-cell, td[cdk-footer-cell]", never, {}, {}, never, never, true, never>;
251
154
  }
155
+ /** Cell template container that adds the right classes and role. */
156
+ declare class CdkCell extends BaseCdkCell {
157
+ constructor(...args: unknown[]);
158
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkCell, never>;
159
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCell, "cdk-cell, td[cdk-cell]", never, {}, {}, never, never, true, never>;
160
+ }
252
161
 
253
162
  /**
254
- * Footer cell definition for a CDK table.
255
- * Captures the template of a column's footer cell and as well as cell-specific properties.
163
+ * @docs-private
256
164
  */
257
- export declare class CdkFooterCellDef implements CellDef {
258
- /** @docs-private */
259
- template: TemplateRef<any>;
165
+ declare class _Schedule {
166
+ tasks: (() => unknown)[];
167
+ endTasks: (() => unknown)[];
168
+ }
169
+ /** Injection token used to provide a coalesced style scheduler. */
170
+ declare const _COALESCED_STYLE_SCHEDULER: InjectionToken<_CoalescedStyleScheduler>;
171
+ /**
172
+ * Allows grouping up CSSDom mutations after the current execution context.
173
+ * This can significantly improve performance when separate consecutive functions are
174
+ * reading from the CSSDom and then mutating it.
175
+ *
176
+ * @docs-private
177
+ */
178
+ declare class _CoalescedStyleScheduler {
179
+ private _currentSchedule;
180
+ private _ngZone;
260
181
  constructor(...args: unknown[]);
261
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterCellDef, never>;
262
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterCellDef, "[cdkFooterCellDef]", never, {}, {}, never, never, true, never>;
182
+ /**
183
+ * Schedules the specified task to run at the end of the current VM turn.
184
+ */
185
+ schedule(task: () => unknown): void;
186
+ /**
187
+ * Schedules the specified task to run after other scheduled tasks at the end of the current
188
+ * VM turn.
189
+ */
190
+ scheduleEnd(task: () => unknown): void;
191
+ private _createScheduleIfNeeded;
192
+ static ɵfac: i0.ɵɵFactoryDeclaration<_CoalescedStyleScheduler, never>;
193
+ static ɵprov: i0.ɵɵInjectableDeclaration<_CoalescedStyleScheduler>;
263
194
  }
264
195
 
265
- /** Footer template container that contains the cell outlet. Adds the right class and role. */
266
- export declare class CdkFooterRow {
267
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterRow, never>;
268
- static ɵcmp: i0.ɵɵComponentDeclaration<CdkFooterRow, "cdk-footer-row, tr[cdk-footer-row]", never, {}, {}, never, never, true, never>;
196
+ /**
197
+ * The row template that can be used by the mat-table. Should not be used outside of the
198
+ * material library.
199
+ */
200
+ declare const CDK_ROW_TEMPLATE = "<ng-container cdkCellOutlet></ng-container>";
201
+ /**
202
+ * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs
203
+ * for changes and notifying the table.
204
+ */
205
+ declare abstract class BaseRowDef implements OnChanges {
206
+ template: TemplateRef<any>;
207
+ protected _differs: IterableDiffers;
208
+ /** The columns to be displayed on this row. */
209
+ columns: Iterable<string>;
210
+ /** Differ used to check if any changes were made to the columns. */
211
+ protected _columnsDiffer: IterableDiffer<any>;
212
+ constructor(...args: unknown[]);
213
+ ngOnChanges(changes: SimpleChanges): void;
214
+ /**
215
+ * Returns the difference between the current columns and the columns from the last diff, or null
216
+ * if there is no difference.
217
+ */
218
+ getColumnsDiff(): IterableChanges<any> | null;
219
+ /** Gets this row def's relevant cell template from the provided column def. */
220
+ extractCellTemplate(column: CdkColumnDef): TemplateRef<any>;
221
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseRowDef, never>;
222
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseRowDef, never, never, {}, {}, never, never, true, never>;
269
223
  }
270
-
271
224
  /**
272
- * Footer row definition for the CDK table.
273
- * Captures the footer row's template and other footer properties such as the columns to display.
225
+ * Header row definition for the CDK table.
226
+ * Captures the header row's template and other header properties such as the columns to display.
274
227
  */
275
- export declare class CdkFooterRowDef extends BaseRowDef implements CanStick, OnChanges {
228
+ declare class CdkHeaderRowDef extends BaseRowDef implements CanStick, OnChanges {
276
229
  _table?: any;
277
230
  private _hasStickyChanged;
278
231
  /** Whether the row is sticky. */
@@ -285,41 +238,15 @@ export declare class CdkFooterRowDef extends BaseRowDef implements CanStick, OnC
285
238
  hasStickyChanged(): boolean;
286
239
  /** Resets the sticky changed state. */
287
240
  resetStickyChanged(): void;
288
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterRowDef, never>;
289
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterRowDef, "[cdkFooterRowDef]", never, { "columns": { "alias": "cdkFooterRowDef"; "required": false; }; "sticky": { "alias": "cdkFooterRowDefSticky"; "required": false; }; }, {}, never, never, true, never>;
241
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderRowDef, never>;
242
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderRowDef, "[cdkHeaderRowDef]", never, { "columns": { "alias": "cdkHeaderRowDef"; "required": false; }; "sticky": { "alias": "cdkHeaderRowDefSticky"; "required": false; }; }, {}, never, never, true, never>;
290
243
  static ngAcceptInputType_sticky: unknown;
291
244
  }
292
-
293
- /** Header cell template container that adds the right classes and role. */
294
- export declare class CdkHeaderCell extends BaseCdkCell {
295
- constructor(...args: unknown[]);
296
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderCell, never>;
297
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderCell, "cdk-header-cell, th[cdk-header-cell]", never, {}, {}, never, never, true, never>;
298
- }
299
-
300
- /**
301
- * Header cell definition for a CDK table.
302
- * Captures the template of a column's header cell and as well as cell-specific properties.
303
- */
304
- export declare class CdkHeaderCellDef implements CellDef {
305
- /** @docs-private */
306
- template: TemplateRef<any>;
307
- constructor(...args: unknown[]);
308
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderCellDef, never>;
309
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderCellDef, "[cdkHeaderCellDef]", never, {}, {}, never, never, true, never>;
310
- }
311
-
312
- /** Header template container that contains the cell outlet. Adds the right class and role. */
313
- export declare class CdkHeaderRow {
314
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderRow, never>;
315
- static ɵcmp: i0.ɵɵComponentDeclaration<CdkHeaderRow, "cdk-header-row, tr[cdk-header-row]", never, {}, {}, never, never, true, never>;
316
- }
317
-
318
245
  /**
319
- * Header row definition for the CDK table.
320
- * Captures the header row's template and other header properties such as the columns to display.
246
+ * Footer row definition for the CDK table.
247
+ * Captures the footer row's template and other footer properties such as the columns to display.
321
248
  */
322
- export declare class CdkHeaderRowDef extends BaseRowDef implements CanStick, OnChanges {
249
+ declare class CdkFooterRowDef extends BaseRowDef implements CanStick, OnChanges {
323
250
  _table?: any;
324
251
  private _hasStickyChanged;
325
252
  /** Whether the row is sticky. */
@@ -332,13 +259,108 @@ export declare class CdkHeaderRowDef extends BaseRowDef implements CanStick, OnC
332
259
  hasStickyChanged(): boolean;
333
260
  /** Resets the sticky changed state. */
334
261
  resetStickyChanged(): void;
335
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderRowDef, never>;
336
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderRowDef, "[cdkHeaderRowDef]", never, { "columns": { "alias": "cdkHeaderRowDef"; "required": false; }; "sticky": { "alias": "cdkHeaderRowDefSticky"; "required": false; }; }, {}, never, never, true, never>;
262
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterRowDef, never>;
263
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterRowDef, "[cdkFooterRowDef]", never, { "columns": { "alias": "cdkFooterRowDef"; "required": false; }; "sticky": { "alias": "cdkFooterRowDefSticky"; "required": false; }; }, {}, never, never, true, never>;
337
264
  static ngAcceptInputType_sticky: unknown;
338
265
  }
339
-
266
+ /**
267
+ * Data row definition for the CDK table.
268
+ * Captures the header row's template and other row properties such as the columns to display and
269
+ * a when predicate that describes when this row should be used.
270
+ */
271
+ declare class CdkRowDef<T> extends BaseRowDef {
272
+ _table?: any;
273
+ /**
274
+ * Function that should return true if this row template should be used for the provided index
275
+ * and row data. If left undefined, this row will be considered the default row template to use
276
+ * when no other when functions return true for the data.
277
+ * For every row, there must be at least one when function that passes or an undefined to default.
278
+ */
279
+ when: (index: number, rowData: T) => boolean;
280
+ constructor(...args: unknown[]);
281
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowDef<any>, never>;
282
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowDef<any>, "[cdkRowDef]", never, { "columns": { "alias": "cdkRowDefColumns"; "required": false; }; "when": { "alias": "cdkRowDefWhen"; "required": false; }; }, {}, never, never, true, never>;
283
+ }
284
+ /** Context provided to the row cells when `multiTemplateDataRows` is false */
285
+ interface CdkCellOutletRowContext<T> {
286
+ /** Data for the row that this cell is located within. */
287
+ $implicit?: T;
288
+ /** Index of the data object in the provided data array. */
289
+ index?: number;
290
+ /** Length of the number of total rows. */
291
+ count?: number;
292
+ /** True if this cell is contained in the first row. */
293
+ first?: boolean;
294
+ /** True if this cell is contained in the last row. */
295
+ last?: boolean;
296
+ /** True if this cell is contained in a row with an even-numbered index. */
297
+ even?: boolean;
298
+ /** True if this cell is contained in a row with an odd-numbered index. */
299
+ odd?: boolean;
300
+ }
301
+ /**
302
+ * Context provided to the row cells when `multiTemplateDataRows` is true. This context is the same
303
+ * as CdkCellOutletRowContext except that the single `index` value is replaced by `dataIndex` and
304
+ * `renderIndex`.
305
+ */
306
+ interface CdkCellOutletMultiRowContext<T> {
307
+ /** Data for the row that this cell is located within. */
308
+ $implicit?: T;
309
+ /** Index of the data object in the provided data array. */
310
+ dataIndex?: number;
311
+ /** Index location of the rendered row that this cell is located within. */
312
+ renderIndex?: number;
313
+ /** Length of the number of total rows. */
314
+ count?: number;
315
+ /** True if this cell is contained in the first row. */
316
+ first?: boolean;
317
+ /** True if this cell is contained in the last row. */
318
+ last?: boolean;
319
+ /** True if this cell is contained in a row with an even-numbered index. */
320
+ even?: boolean;
321
+ /** True if this cell is contained in a row with an odd-numbered index. */
322
+ odd?: boolean;
323
+ }
324
+ /**
325
+ * Outlet for rendering cells inside of a row or header row.
326
+ * @docs-private
327
+ */
328
+ declare class CdkCellOutlet implements OnDestroy {
329
+ _viewContainer: ViewContainerRef;
330
+ /** The ordered list of cells to render within this outlet's view container */
331
+ cells: CdkCellDef[];
332
+ /** The data context to be provided to each cell */
333
+ context: any;
334
+ /**
335
+ * Static property containing the latest constructed instance of this class.
336
+ * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using
337
+ * createEmbeddedView. After one of these components are created, this property will provide
338
+ * a handle to provide that component's cells and context. After init, the CdkCellOutlet will
339
+ * construct the cells with the provided context.
340
+ */
341
+ static mostRecentCellOutlet: CdkCellOutlet | null;
342
+ constructor(...args: unknown[]);
343
+ ngOnDestroy(): void;
344
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkCellOutlet, never>;
345
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCellOutlet, "[cdkCellOutlet]", never, {}, {}, never, never, true, never>;
346
+ }
347
+ /** Header template container that contains the cell outlet. Adds the right class and role. */
348
+ declare class CdkHeaderRow {
349
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderRow, never>;
350
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkHeaderRow, "cdk-header-row, tr[cdk-header-row]", never, {}, {}, never, never, true, never>;
351
+ }
352
+ /** Footer template container that contains the cell outlet. Adds the right class and role. */
353
+ declare class CdkFooterRow {
354
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterRow, never>;
355
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkFooterRow, "cdk-footer-row, tr[cdk-footer-row]", never, {}, {}, never, never, true, never>;
356
+ }
357
+ /** Data row template container that contains the cell outlet. Adds the right class and role. */
358
+ declare class CdkRow {
359
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkRow, never>;
360
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkRow, "cdk-row, tr[cdk-row]", never, {}, {}, never, never, true, never>;
361
+ }
340
362
  /** Row that can be used to display a message when no data is shown in the table. */
341
- export declare class CdkNoDataRow {
363
+ declare class CdkNoDataRow {
342
364
  templateRef: TemplateRef<any>;
343
365
  _contentClassName: string;
344
366
  constructor(...args: unknown[]);
@@ -346,47 +368,126 @@ export declare class CdkNoDataRow {
346
368
  static ɵdir: i0.ɵɵDirectiveDeclaration<CdkNoDataRow, "ng-template[cdkNoDataRow]", never, {}, {}, never, never, true, never>;
347
369
  }
348
370
 
371
+ /** The injection token used to specify the StickyPositioningListener. */
372
+ declare const STICKY_POSITIONING_LISTENER: InjectionToken<StickyPositioningListener>;
373
+ type StickySize = number | null | undefined;
374
+ type StickyOffset = number | null | undefined;
375
+ interface StickyUpdate {
376
+ elements?: readonly (HTMLElement[] | undefined)[];
377
+ offsets?: StickyOffset[];
378
+ sizes: StickySize[];
379
+ }
380
+ /**
381
+ * If provided, CdkTable will call the methods below when it updates the size/
382
+ * position/etc of its sticky rows and columns.
383
+ */
384
+ interface StickyPositioningListener {
385
+ /** Called when CdkTable updates its sticky start columns. */
386
+ stickyColumnsUpdated(update: StickyUpdate): void;
387
+ /** Called when CdkTable updates its sticky end columns. */
388
+ stickyEndColumnsUpdated(update: StickyUpdate): void;
389
+ /** Called when CdkTable updates its sticky header rows. */
390
+ stickyHeaderRowsUpdated(update: StickyUpdate): void;
391
+ /** Called when CdkTable updates its sticky footer rows. */
392
+ stickyFooterRowsUpdated(update: StickyUpdate): void;
393
+ }
394
+
349
395
  /**
350
396
  * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
351
397
  * tables that animate rows.
352
398
  */
353
- export declare class CdkRecycleRows {
399
+ declare class CdkRecycleRows {
354
400
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkRecycleRows, never>;
355
401
  static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRecycleRows, "cdk-table[recycleRows], table[cdk-table][recycleRows]", never, {}, {}, never, never, true, never>;
356
402
  }
357
-
358
- /** Data row template container that contains the cell outlet. Adds the right class and role. */
359
- export declare class CdkRow {
360
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkRow, never>;
361
- static ɵcmp: i0.ɵɵComponentDeclaration<CdkRow, "cdk-row, tr[cdk-row]", never, {}, {}, never, never, true, never>;
403
+ /** Interface used to provide an outlet for rows to be inserted into. */
404
+ interface RowOutlet {
405
+ viewContainer: ViewContainerRef;
362
406
  }
363
-
407
+ /** Possible types that can be set as the data source for a `CdkTable`. */
408
+ type CdkTableDataSourceInput<T> = readonly T[] | DataSource<T> | Observable<readonly T[]>;
364
409
  /**
365
- * Data row definition for the CDK table.
366
- * Captures the header row's template and other row properties such as the columns to display and
367
- * a when predicate that describes when this row should be used.
410
+ * Provides a handle for the table to grab the view container's ng-container to insert data rows.
411
+ * @docs-private
368
412
  */
369
- export declare class CdkRowDef<T> extends BaseRowDef {
370
- _table?: any;
371
- /**
372
- * Function that should return true if this row template should be used for the provided index
373
- * and row data. If left undefined, this row will be considered the default row template to use
374
- * when no other when functions return true for the data.
375
- * For every row, there must be at least one when function that passes or an undefined to default.
376
- */
377
- when: (index: number, rowData: T) => boolean;
413
+ declare class DataRowOutlet implements RowOutlet {
414
+ viewContainer: ViewContainerRef;
415
+ elementRef: ElementRef<any>;
378
416
  constructor(...args: unknown[]);
379
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowDef<any>, never>;
380
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowDef<any>, "[cdkRowDef]", never, { "columns": { "alias": "cdkRowDefColumns"; "required": false; }; "when": { "alias": "cdkRowDefWhen"; "required": false; }; }, {}, never, never, true, never>;
417
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataRowOutlet, never>;
418
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataRowOutlet, "[rowOutlet]", never, {}, {}, never, never, true, never>;
419
+ }
420
+ /**
421
+ * Provides a handle for the table to grab the view container's ng-container to insert the header.
422
+ * @docs-private
423
+ */
424
+ declare class HeaderRowOutlet implements RowOutlet {
425
+ viewContainer: ViewContainerRef;
426
+ elementRef: ElementRef<any>;
427
+ constructor(...args: unknown[]);
428
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderRowOutlet, never>;
429
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HeaderRowOutlet, "[headerRowOutlet]", never, {}, {}, never, never, true, never>;
430
+ }
431
+ /**
432
+ * Provides a handle for the table to grab the view container's ng-container to insert the footer.
433
+ * @docs-private
434
+ */
435
+ declare class FooterRowOutlet implements RowOutlet {
436
+ viewContainer: ViewContainerRef;
437
+ elementRef: ElementRef<any>;
438
+ constructor(...args: unknown[]);
439
+ static ɵfac: i0.ɵɵFactoryDeclaration<FooterRowOutlet, never>;
440
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FooterRowOutlet, "[footerRowOutlet]", never, {}, {}, never, never, true, never>;
441
+ }
442
+ /**
443
+ * Provides a handle for the table to grab the view
444
+ * container's ng-container to insert the no data row.
445
+ * @docs-private
446
+ */
447
+ declare class NoDataRowOutlet implements RowOutlet {
448
+ viewContainer: ViewContainerRef;
449
+ elementRef: ElementRef<any>;
450
+ constructor(...args: unknown[]);
451
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoDataRowOutlet, never>;
452
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NoDataRowOutlet, "[noDataRowOutlet]", never, {}, {}, never, never, true, never>;
453
+ }
454
+ /**
455
+ * The table template that can be used by the mat-table. Should not be used outside of the
456
+ * material library.
457
+ * @docs-private
458
+ */
459
+ declare const CDK_TABLE_TEMPLATE = "\n <ng-content select=\"caption\"/>\n <ng-content select=\"colgroup, col\"/>\n\n <!--\n Unprojected content throws a hydration error so we need this to capture it.\n It gets removed on the client so it doesn't affect the layout.\n -->\n @if (_isServer) {\n <ng-content/>\n }\n\n @if (_isNativeHtmlTable) {\n <thead role=\"rowgroup\">\n <ng-container headerRowOutlet/>\n </thead>\n <tbody role=\"rowgroup\">\n <ng-container rowOutlet/>\n <ng-container noDataRowOutlet/>\n </tbody>\n <tfoot role=\"rowgroup\">\n <ng-container footerRowOutlet/>\n </tfoot>\n } @else {\n <ng-container headerRowOutlet/>\n <ng-container rowOutlet/>\n <ng-container noDataRowOutlet/>\n <ng-container footerRowOutlet/>\n }\n";
460
+ /**
461
+ * Interface used to conveniently type the possible context interfaces for the render row.
462
+ * @docs-private
463
+ */
464
+ interface RowContext<T> extends CdkCellOutletMultiRowContext<T>, CdkCellOutletRowContext<T> {
465
+ }
466
+ /**
467
+ * Set of properties that represents the identity of a single rendered row.
468
+ *
469
+ * When the table needs to determine the list of rows to render, it will do so by iterating through
470
+ * each data object and evaluating its list of row templates to display (when multiTemplateDataRows
471
+ * is false, there is only one template per data object). For each pair of data object and row
472
+ * template, a `RenderRow` is added to the list of rows to render. If the data object and row
473
+ * template pair has already been rendered, the previously used `RenderRow` is added; else a new
474
+ * `RenderRow` is * created. Once the list is complete and all data objects have been iterated
475
+ * through, a diff is performed to determine the changes that need to be made to the rendered rows.
476
+ *
477
+ * @docs-private
478
+ */
479
+ interface RenderRow<T> {
480
+ data: T;
481
+ dataIndex: number;
482
+ rowDef: CdkRowDef<T>;
381
483
  }
382
-
383
484
  /**
384
485
  * A data table that can render a header row, data rows, and a footer row.
385
486
  * Uses the dataSource input to determine the data to be rendered. The data can be provided either
386
487
  * as a data array, an Observable stream that emits the data array to render, or a DataSource with a
387
488
  * connect function that will return an Observable stream that emits the data array to render.
388
489
  */
389
- export declare class CdkTable<T> implements AfterContentInit, AfterContentChecked, CollectionViewer, OnDestroy, OnInit {
490
+ declare class CdkTable<T> implements AfterContentInit, AfterContentChecked, CollectionViewer, OnDestroy, OnInit {
390
491
  protected readonly _differs: IterableDiffers;
391
492
  protected readonly _changeDetectorRef: ChangeDetectorRef;
392
493
  protected readonly _elementRef: ElementRef<any>;
@@ -761,15 +862,6 @@ export declare class CdkTable<T> implements AfterContentInit, AfterContentChecke
761
862
  static ngAcceptInputType_fixedLayout: unknown;
762
863
  }
763
864
 
764
- /** Possible types that can be set as the data source for a `CdkTable`. */
765
- export declare type CdkTableDataSourceInput<T> = readonly T[] | DataSource<T> | Observable<readonly T[]>;
766
-
767
- export declare class CdkTableModule {
768
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkTableModule, never>;
769
- static ɵmod: i0.ɵɵNgModuleDeclaration<CdkTableModule, never, [typeof i1.ScrollingModule, typeof i2.CdkTable, typeof i3.CdkRowDef, typeof i4.CdkCellDef, typeof i3.CdkCellOutlet, typeof i4.CdkHeaderCellDef, typeof i4.CdkFooterCellDef, typeof i4.CdkColumnDef, typeof i4.CdkCell, typeof i3.CdkRow, typeof i4.CdkHeaderCell, typeof i4.CdkFooterCell, typeof i3.CdkHeaderRow, typeof i3.CdkHeaderRowDef, typeof i3.CdkFooterRow, typeof i3.CdkFooterRowDef, typeof i2.DataRowOutlet, typeof i2.HeaderRowOutlet, typeof i2.FooterRowOutlet, typeof i5.CdkTextColumn, typeof i3.CdkNoDataRow, typeof i2.CdkRecycleRows, typeof i2.NoDataRowOutlet], [typeof i2.CdkTable, typeof i3.CdkRowDef, typeof i4.CdkCellDef, typeof i3.CdkCellOutlet, typeof i4.CdkHeaderCellDef, typeof i4.CdkFooterCellDef, typeof i4.CdkColumnDef, typeof i4.CdkCell, typeof i3.CdkRow, typeof i4.CdkHeaderCell, typeof i4.CdkFooterCell, typeof i3.CdkHeaderRow, typeof i3.CdkHeaderRowDef, typeof i3.CdkFooterRow, typeof i3.CdkFooterRowDef, typeof i2.DataRowOutlet, typeof i2.HeaderRowOutlet, typeof i2.FooterRowOutlet, typeof i5.CdkTextColumn, typeof i3.CdkNoDataRow, typeof i2.CdkRecycleRows, typeof i2.NoDataRowOutlet]>;
770
- static ɵinj: i0.ɵɵInjectorDeclaration<CdkTableModule>;
771
- }
772
-
773
865
  /**
774
866
  * Column that simply shows text content for the header and row cells. Assumes that the table
775
867
  * is using the native table implementation (`<table>`).
@@ -779,7 +871,7 @@ export declare class CdkTableModule {
779
871
  * the `dataAccessor` input. Change the text justification to the start or end using the `justify`
780
872
  * input.
781
873
  */
782
- export declare class CdkTextColumn<T> implements OnDestroy, OnInit {
874
+ declare class CdkTextColumn<T> implements OnDestroy, OnInit {
783
875
  private _table;
784
876
  private _options;
785
877
  /** Column name that should be used to reference this column. */
@@ -832,231 +924,28 @@ export declare class CdkTextColumn<T> implements OnDestroy, OnInit {
832
924
  static ɵcmp: i0.ɵɵComponentDeclaration<CdkTextColumn<any>, "cdk-text-column", never, { "name": { "alias": "name"; "required": false; }; "headerText": { "alias": "headerText"; "required": false; }; "dataAccessor": { "alias": "dataAccessor"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; }, {}, never, never, true, never>;
833
925
  }
834
926
 
835
- /** Base interface for a cell definition. Captures a column's cell template definition. */
836
- export declare interface CellDef {
837
- template: TemplateRef<any>;
838
- }
839
-
840
- /** Injection token used to provide a coalesced style scheduler. */
841
- export declare const _COALESCED_STYLE_SCHEDULER: InjectionToken<_CoalescedStyleScheduler>;
842
-
843
- /**
844
- * Allows grouping up CSSDom mutations after the current execution context.
845
- * This can significantly improve performance when separate consecutive functions are
846
- * reading from the CSSDom and then mutating it.
847
- *
848
- * @docs-private
849
- */
850
- export declare class _CoalescedStyleScheduler {
851
- private _currentSchedule;
852
- private _ngZone;
853
- constructor(...args: unknown[]);
854
- /**
855
- * Schedules the specified task to run at the end of the current VM turn.
856
- */
857
- schedule(task: () => unknown): void;
858
- /**
859
- * Schedules the specified task to run after other scheduled tasks at the end of the current
860
- * VM turn.
861
- */
862
- scheduleEnd(task: () => unknown): void;
863
- private _createScheduleIfNeeded;
864
- static ɵfac: i0.ɵɵFactoryDeclaration<_CoalescedStyleScheduler, never>;
865
- static ɵprov: i0.ɵɵInjectableDeclaration<_CoalescedStyleScheduler>;
866
- }
867
-
868
-
869
- /** @docs-private */
870
- export declare type Constructor<T> = new (...args: any[]) => T;
871
-
872
- /**
873
- * Provides a handle for the table to grab the view container's ng-container to insert data rows.
874
- * @docs-private
875
- */
876
- export declare class DataRowOutlet implements RowOutlet {
877
- viewContainer: ViewContainerRef;
878
- elementRef: ElementRef<any>;
879
- constructor(...args: unknown[]);
880
- static ɵfac: i0.ɵɵFactoryDeclaration<DataRowOutlet, never>;
881
- static ɵdir: i0.ɵɵDirectiveDeclaration<DataRowOutlet, "[rowOutlet]", never, {}, {}, never, never, true, never>;
882
- }
883
-
884
- export { DataSource }
885
-
886
- /**
887
- * Provides a handle for the table to grab the view container's ng-container to insert the footer.
888
- * @docs-private
889
- */
890
- export declare class FooterRowOutlet implements RowOutlet {
891
- viewContainer: ViewContainerRef;
892
- elementRef: ElementRef<any>;
893
- constructor(...args: unknown[]);
894
- static ɵfac: i0.ɵɵFactoryDeclaration<FooterRowOutlet, never>;
895
- static ɵdir: i0.ɵɵDirectiveDeclaration<FooterRowOutlet, "[footerRowOutlet]", never, {}, {}, never, never, true, never>;
896
- }
897
-
898
- /**
899
- * Provides a handle for the table to grab the view container's ng-container to insert the header.
900
- * @docs-private
901
- */
902
- export declare class HeaderRowOutlet implements RowOutlet {
903
- viewContainer: ViewContainerRef;
904
- elementRef: ElementRef<any>;
905
- constructor(...args: unknown[]);
906
- static ɵfac: i0.ɵɵFactoryDeclaration<HeaderRowOutlet, never>;
907
- static ɵdir: i0.ɵɵDirectiveDeclaration<HeaderRowOutlet, "[headerRowOutlet]", never, {}, {}, never, never, true, never>;
908
- }
909
-
910
- declare namespace i2 {
911
- export {
912
- CdkRecycleRows,
913
- RowOutlet,
914
- CdkTableDataSourceInput,
915
- DataRowOutlet,
916
- HeaderRowOutlet,
917
- FooterRowOutlet,
918
- NoDataRowOutlet,
919
- CDK_TABLE_TEMPLATE,
920
- RowContext,
921
- RenderRow,
922
- CdkTable
923
- }
924
- }
925
-
926
- declare namespace i3 {
927
- export {
928
- CDK_ROW_TEMPLATE,
929
- BaseRowDef,
930
- CdkHeaderRowDef,
931
- CdkFooterRowDef,
932
- CdkRowDef,
933
- CdkCellOutletRowContext,
934
- CdkCellOutletMultiRowContext,
935
- CdkCellOutlet,
936
- CdkHeaderRow,
937
- CdkFooterRow,
938
- CdkRow,
939
- CdkNoDataRow
940
- }
941
- }
942
-
943
- declare namespace i4 {
944
- export {
945
- CellDef,
946
- CdkCellDef,
947
- CdkHeaderCellDef,
948
- CdkFooterCellDef,
949
- CdkColumnDef,
950
- BaseCdkCell,
951
- CdkHeaderCell,
952
- CdkFooterCell,
953
- CdkCell
954
- }
955
- }
956
-
957
- declare namespace i5 {
958
- export {
959
- CdkTextColumn
960
- }
961
- }
962
-
963
- /**
964
- * Mixin to provide a directive with a function that checks if the sticky input has been
965
- * changed since the last time the function was called. Essentially adds a dirty-check to the
966
- * sticky value.
967
- * @docs-private
968
- * @deprecated Implement the `CanStick` interface instead.
969
- * @breaking-change 19.0.0
970
- */
971
- export declare function mixinHasStickyInput<T extends Constructor<{}>>(base: T): CanStickCtor & T;
972
-
973
- /**
974
- * Provides a handle for the table to grab the view
975
- * container's ng-container to insert the no data row.
976
- * @docs-private
977
- */
978
- export declare class NoDataRowOutlet implements RowOutlet {
979
- viewContainer: ViewContainerRef;
980
- elementRef: ElementRef<any>;
981
- constructor(...args: unknown[]);
982
- static ɵfac: i0.ɵɵFactoryDeclaration<NoDataRowOutlet, never>;
983
- static ɵdir: i0.ɵɵDirectiveDeclaration<NoDataRowOutlet, "[noDataRowOutlet]", never, {}, {}, never, never, true, never>;
984
- }
985
-
986
- /**
987
- * Set of properties that represents the identity of a single rendered row.
988
- *
989
- * When the table needs to determine the list of rows to render, it will do so by iterating through
990
- * each data object and evaluating its list of row templates to display (when multiTemplateDataRows
991
- * is false, there is only one template per data object). For each pair of data object and row
992
- * template, a `RenderRow` is added to the list of rows to render. If the data object and row
993
- * template pair has already been rendered, the previously used `RenderRow` is added; else a new
994
- * `RenderRow` is * created. Once the list is complete and all data objects have been iterated
995
- * through, a diff is performed to determine the changes that need to be made to the rendered rows.
996
- *
997
- * @docs-private
998
- */
999
- export declare interface RenderRow<T> {
1000
- data: T;
1001
- dataIndex: number;
1002
- rowDef: CdkRowDef<T>;
1003
- }
1004
-
1005
- /**
1006
- * Interface used to conveniently type the possible context interfaces for the render row.
1007
- * @docs-private
1008
- */
1009
- export declare interface RowContext<T> extends CdkCellOutletMultiRowContext<T>, CdkCellOutletRowContext<T> {
1010
- }
1011
-
1012
- /** Interface used to provide an outlet for rows to be inserted into. */
1013
- export declare interface RowOutlet {
1014
- viewContainer: ViewContainerRef;
927
+ declare class CdkTableModule {
928
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkTableModule, never>;
929
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CdkTableModule, never, [typeof i3.ScrollingModule, typeof CdkTable, typeof CdkRowDef, typeof CdkCellDef, typeof CdkCellOutlet, typeof CdkHeaderCellDef, typeof CdkFooterCellDef, typeof CdkColumnDef, typeof CdkCell, typeof CdkRow, typeof CdkHeaderCell, typeof CdkFooterCell, typeof CdkHeaderRow, typeof CdkHeaderRowDef, typeof CdkFooterRow, typeof CdkFooterRowDef, typeof DataRowOutlet, typeof HeaderRowOutlet, typeof FooterRowOutlet, typeof CdkTextColumn, typeof CdkNoDataRow, typeof CdkRecycleRows, typeof NoDataRowOutlet], [typeof CdkTable, typeof CdkRowDef, typeof CdkCellDef, typeof CdkCellOutlet, typeof CdkHeaderCellDef, typeof CdkFooterCellDef, typeof CdkColumnDef, typeof CdkCell, typeof CdkRow, typeof CdkHeaderCell, typeof CdkFooterCell, typeof CdkHeaderRow, typeof CdkHeaderRowDef, typeof CdkFooterRow, typeof CdkFooterRowDef, typeof DataRowOutlet, typeof HeaderRowOutlet, typeof FooterRowOutlet, typeof CdkTextColumn, typeof CdkNoDataRow, typeof CdkRecycleRows, typeof NoDataRowOutlet]>;
930
+ static ɵinj: i0.ɵɵInjectorDeclaration<CdkTableModule>;
1015
931
  }
1016
932
 
1017
933
  /**
934
+ * Directions that can be used when setting sticky positioning.
1018
935
  * @docs-private
1019
936
  */
1020
- export declare class _Schedule {
1021
- tasks: (() => unknown)[];
1022
- endTasks: (() => unknown)[];
1023
- }
1024
937
 
938
+ type StickyDirection = 'top' | 'bottom' | 'left' | 'right';
1025
939
  /**
1026
940
  * List of all possible directions that can be used for sticky positioning.
1027
941
  * @docs-private
1028
942
  */
1029
- export declare const STICKY_DIRECTIONS: StickyDirection[];
1030
-
1031
- /** The injection token used to specify the StickyPositioningListener. */
1032
- export declare const STICKY_POSITIONING_LISTENER: InjectionToken<StickyPositioningListener>;
1033
-
1034
- export declare type StickyDirection = 'top' | 'bottom' | 'left' | 'right';
1035
-
1036
- export declare type StickyOffset = number | null | undefined;
1037
-
1038
- /**
1039
- * If provided, CdkTable will call the methods below when it updates the size/
1040
- * position/etc of its sticky rows and columns.
1041
- */
1042
- export declare interface StickyPositioningListener {
1043
- /** Called when CdkTable updates its sticky start columns. */
1044
- stickyColumnsUpdated(update: StickyUpdate): void;
1045
- /** Called when CdkTable updates its sticky end columns. */
1046
- stickyEndColumnsUpdated(update: StickyUpdate): void;
1047
- /** Called when CdkTable updates its sticky header rows. */
1048
- stickyHeaderRowsUpdated(update: StickyUpdate): void;
1049
- /** Called when CdkTable updates its sticky footer rows. */
1050
- stickyFooterRowsUpdated(update: StickyUpdate): void;
1051
- }
1052
-
1053
- export declare type StickySize = number | null | undefined;
1054
-
943
+ declare const STICKY_DIRECTIONS: StickyDirection[];
1055
944
  /**
1056
945
  * Applies and removes sticky positioning styles to the `CdkTable` rows and columns cells.
1057
946
  * @docs-private
1058
947
  */
1059
- export declare class StickyStyler {
948
+ declare class StickyStyler {
1060
949
  private _isNativeHtmlTable;
1061
950
  private _stickCellCss;
1062
951
  direction: Direction;
@@ -1188,17 +1077,13 @@ export declare class StickyStyler {
1188
1077
  private _afterNextRender;
1189
1078
  }
1190
1079
 
1191
- export declare interface StickyUpdate {
1192
- elements?: readonly (HTMLElement[] | undefined)[];
1193
- offsets?: StickyOffset[];
1194
- sizes: StickySize[];
1195
- }
1196
-
1197
- /** Injection token that can be used to specify the text column options. */
1198
- export declare const TEXT_COLUMN_OPTIONS: InjectionToken<TextColumnOptions<any>>;
1199
-
1080
+ /**
1081
+ * Used to provide a table to some of the sub-components without causing a circular dependency.
1082
+ * @docs-private
1083
+ */
1084
+ declare const CDK_TABLE: InjectionToken<any>;
1200
1085
  /** Configurable options for `CdkTextColumn`. */
1201
- export declare interface TextColumnOptions<T> {
1086
+ interface TextColumnOptions<T> {
1202
1087
  /**
1203
1088
  * Default function that provides the header text based on the column name if a header
1204
1089
  * text is not provided.
@@ -1207,5 +1092,7 @@ export declare interface TextColumnOptions<T> {
1207
1092
  /** Default data accessor to use if one is not provided. */
1208
1093
  defaultDataAccessor?: (data: T, name: string) => string;
1209
1094
  }
1095
+ /** Injection token that can be used to specify the text column options. */
1096
+ declare const TEXT_COLUMN_OPTIONS: InjectionToken<TextColumnOptions<any>>;
1210
1097
 
1211
- export { }
1098
+ export { BaseCdkCell, BaseRowDef, CDK_ROW_TEMPLATE, CDK_TABLE, CDK_TABLE_TEMPLATE, type CanStick, type CanStickCtor, CdkCell, CdkCellDef, CdkCellOutlet, type CdkCellOutletMultiRowContext, type CdkCellOutletRowContext, CdkColumnDef, CdkFooterCell, CdkFooterCellDef, CdkFooterRow, CdkFooterRowDef, CdkHeaderCell, CdkHeaderCellDef, CdkHeaderRow, CdkHeaderRowDef, CdkNoDataRow, CdkRecycleRows, CdkRow, CdkRowDef, CdkTable, type CdkTableDataSourceInput, CdkTableModule, CdkTextColumn, type CellDef, type Constructor, DataRowOutlet, FooterRowOutlet, HeaderRowOutlet, NoDataRowOutlet, type RenderRow, type RowContext, type RowOutlet, STICKY_DIRECTIONS, STICKY_POSITIONING_LISTENER, type StickyDirection, type StickyOffset, type StickyPositioningListener, type StickySize, StickyStyler, type StickyUpdate, TEXT_COLUMN_OPTIONS, type TextColumnOptions, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, _Schedule, mixinHasStickyInput };