@angular/cdk 20.0.0-next.0 → 20.0.0-next.2

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 (181) hide show
  1. package/a11y/index.d.ts +330 -1234
  2. package/a11y-module.d-7d03e079.d.ts +313 -0
  3. package/accordion/index.d.ts +8 -27
  4. package/activedescendant-key-manager.d-11921e3a.d.ts +31 -0
  5. package/bidi/index.d.ts +3 -62
  6. package/bidi-module.d-f8648621.d.ts +53 -0
  7. package/clipboard/index.d.ts +61 -75
  8. package/coercion/index.d.ts +10 -33
  9. package/coercion/private/index.d.ts +2 -2
  10. package/collections/index.d.ts +13 -291
  11. package/data-source.d-7cab2c9d.d.ts +42 -0
  12. package/dialog/index.d.ts +204 -249
  13. package/drag-drop/index.d.ts +1077 -1157
  14. package/fesm2022/a11y-module-e6996d20.mjs +952 -0
  15. package/fesm2022/a11y-module-e6996d20.mjs.map +1 -0
  16. package/fesm2022/a11y.mjs +47 -2445
  17. package/fesm2022/a11y.mjs.map +1 -1
  18. package/fesm2022/accordion.mjs +12 -16
  19. package/fesm2022/accordion.mjs.map +1 -1
  20. package/fesm2022/activedescendant-key-manager-1351a9d3.mjs +16 -0
  21. package/fesm2022/activedescendant-key-manager-1351a9d3.mjs.map +1 -0
  22. package/fesm2022/array-ee3b4bab.mjs +6 -0
  23. package/fesm2022/array-ee3b4bab.mjs.map +1 -0
  24. package/fesm2022/backwards-compatibility-bcbe473e.mjs +25 -0
  25. package/fesm2022/backwards-compatibility-bcbe473e.mjs.map +1 -0
  26. package/fesm2022/bidi-module-0726b65c.mjs +78 -0
  27. package/fesm2022/bidi-module-0726b65c.mjs.map +1 -0
  28. package/fesm2022/bidi.mjs +4 -143
  29. package/fesm2022/bidi.mjs.map +1 -1
  30. package/fesm2022/breakpoints-observer-d4584b66.mjs +179 -0
  31. package/fesm2022/breakpoints-observer-d4584b66.mjs.map +1 -0
  32. package/fesm2022/cdk.mjs +1 -1
  33. package/fesm2022/cdk.mjs.map +1 -1
  34. package/fesm2022/clipboard.mjs +10 -14
  35. package/fesm2022/clipboard.mjs.map +1 -1
  36. package/fesm2022/coercion/private.mjs +2 -18
  37. package/fesm2022/coercion/private.mjs.map +1 -1
  38. package/fesm2022/coercion.mjs +5 -39
  39. package/fesm2022/coercion.mjs.map +1 -1
  40. package/fesm2022/collections.mjs +7 -476
  41. package/fesm2022/collections.mjs.map +1 -1
  42. package/fesm2022/css-pixel-value-286c9a60.mjs +10 -0
  43. package/fesm2022/css-pixel-value-286c9a60.mjs.map +1 -0
  44. package/fesm2022/data-source-5320b6fd.mjs +15 -0
  45. package/fesm2022/data-source-5320b6fd.mjs.map +1 -0
  46. package/fesm2022/dialog.mjs +37 -39
  47. package/fesm2022/dialog.mjs.map +1 -1
  48. package/fesm2022/directionality-7ea26429.mjs +72 -0
  49. package/fesm2022/directionality-7ea26429.mjs.map +1 -0
  50. package/fesm2022/dispose-view-repeater-strategy-b11b87ea.mjs +44 -0
  51. package/fesm2022/dispose-view-repeater-strategy-b11b87ea.mjs.map +1 -0
  52. package/fesm2022/drag-drop.mjs +48 -50
  53. package/fesm2022/drag-drop.mjs.map +1 -1
  54. package/fesm2022/element-705567fe.mjs +29 -0
  55. package/fesm2022/element-705567fe.mjs.map +1 -0
  56. package/fesm2022/fake-event-detection-7055b1bd.mjs +24 -0
  57. package/fesm2022/fake-event-detection-7055b1bd.mjs.map +1 -0
  58. package/fesm2022/focus-key-manager-58d29acd.mjs +22 -0
  59. package/fesm2022/focus-key-manager-58d29acd.mjs.map +1 -0
  60. package/fesm2022/focus-monitor-cebaa0d1.mjs +629 -0
  61. package/fesm2022/focus-monitor-cebaa0d1.mjs.map +1 -0
  62. package/fesm2022/id-generator-fba495fb.mjs +37 -0
  63. package/fesm2022/id-generator-fba495fb.mjs.map +1 -0
  64. package/fesm2022/keycodes-107cd3e4.mjs +122 -0
  65. package/fesm2022/keycodes-107cd3e4.mjs.map +1 -0
  66. package/fesm2022/keycodes.mjs +2 -136
  67. package/fesm2022/keycodes.mjs.map +1 -1
  68. package/fesm2022/layout.mjs +12 -184
  69. package/fesm2022/layout.mjs.map +1 -1
  70. package/fesm2022/list-key-manager-c7b5cefb.mjs +360 -0
  71. package/fesm2022/list-key-manager-c7b5cefb.mjs.map +1 -0
  72. package/fesm2022/listbox.mjs +21 -20
  73. package/fesm2022/listbox.mjs.map +1 -1
  74. package/fesm2022/menu.mjs +76 -60
  75. package/fesm2022/menu.mjs.map +1 -1
  76. package/fesm2022/modifiers-33a5859e.mjs +13 -0
  77. package/fesm2022/modifiers-33a5859e.mjs.map +1 -0
  78. package/fesm2022/observable-97c0792c.mjs +15 -0
  79. package/fesm2022/observable-97c0792c.mjs.map +1 -0
  80. package/fesm2022/observe-content-d2a6b5a0.mjs +210 -0
  81. package/fesm2022/observe-content-d2a6b5a0.mjs.map +1 -0
  82. package/fesm2022/observers/private.mjs +3 -7
  83. package/fesm2022/observers/private.mjs.map +1 -1
  84. package/fesm2022/observers.mjs +5 -213
  85. package/fesm2022/observers.mjs.map +1 -1
  86. package/fesm2022/overlay-module-863b82c9.mjs +3029 -0
  87. package/fesm2022/overlay-module-863b82c9.mjs.map +1 -0
  88. package/fesm2022/overlay.mjs +28 -3019
  89. package/fesm2022/overlay.mjs.map +1 -1
  90. package/fesm2022/passive-listeners-c0bdc49f.mjs +31 -0
  91. package/fesm2022/passive-listeners-c0bdc49f.mjs.map +1 -0
  92. package/fesm2022/platform-1be098b0.mjs +77 -0
  93. package/fesm2022/platform-1be098b0.mjs.map +1 -0
  94. package/fesm2022/platform.mjs +13 -293
  95. package/fesm2022/platform.mjs.map +1 -1
  96. package/fesm2022/portal-directives-c88fea11.mjs +615 -0
  97. package/fesm2022/portal-directives-c88fea11.mjs.map +1 -0
  98. package/fesm2022/portal.mjs +3 -650
  99. package/fesm2022/portal.mjs.map +1 -1
  100. package/fesm2022/private.mjs +3 -63
  101. package/fesm2022/private.mjs.map +1 -1
  102. package/fesm2022/recycle-view-repeater-strategy-c1712813.mjs +156 -0
  103. package/fesm2022/recycle-view-repeater-strategy-c1712813.mjs.map +1 -0
  104. package/fesm2022/scrolling-61955dd1.mjs +99 -0
  105. package/fesm2022/scrolling-61955dd1.mjs.map +1 -0
  106. package/fesm2022/scrolling-module-aa9eeac5.mjs +1463 -0
  107. package/fesm2022/scrolling-module-aa9eeac5.mjs.map +1 -0
  108. package/fesm2022/scrolling.mjs +12 -1463
  109. package/fesm2022/scrolling.mjs.map +1 -1
  110. package/fesm2022/selection-model-30243dba.mjs +221 -0
  111. package/fesm2022/selection-model-30243dba.mjs.map +1 -0
  112. package/fesm2022/shadow-dom-9f403d00.mjs +49 -0
  113. package/fesm2022/shadow-dom-9f403d00.mjs.map +1 -0
  114. package/fesm2022/stepper.mjs +32 -30
  115. package/fesm2022/stepper.mjs.map +1 -1
  116. package/fesm2022/style-loader-e14dc585.mjs +47 -0
  117. package/fesm2022/style-loader-e14dc585.mjs.map +1 -0
  118. package/fesm2022/table.mjs +88 -132
  119. package/fesm2022/table.mjs.map +1 -1
  120. package/fesm2022/test-environment-34eef1ee.mjs +19 -0
  121. package/fesm2022/test-environment-34eef1ee.mjs.map +1 -0
  122. package/fesm2022/testing/selenium-webdriver.mjs +2 -1
  123. package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
  124. package/fesm2022/testing/testbed.mjs +33 -74
  125. package/fesm2022/testing/testbed.mjs.map +1 -1
  126. package/fesm2022/testing.mjs +2 -697
  127. package/fesm2022/testing.mjs.map +1 -1
  128. package/fesm2022/text-field.mjs +24 -23
  129. package/fesm2022/text-field.mjs.map +1 -1
  130. package/fesm2022/text-filtering-b60ba8a2.mjs +698 -0
  131. package/fesm2022/text-filtering-b60ba8a2.mjs.map +1 -0
  132. package/fesm2022/tree-key-manager-2f20c79c.mjs +360 -0
  133. package/fesm2022/tree-key-manager-2f20c79c.mjs.map +1 -0
  134. package/fesm2022/tree.mjs +33 -33
  135. package/fesm2022/tree.mjs.map +1 -1
  136. package/fesm2022/typeahead-11ae39bd.mjs +88 -0
  137. package/fesm2022/typeahead-11ae39bd.mjs.map +1 -0
  138. package/fesm2022/unique-selection-dispatcher-1d6f91d8.mjs +49 -0
  139. package/fesm2022/unique-selection-dispatcher-1d6f91d8.mjs.map +1 -0
  140. package/fesm2022/visually-hidden-83aea4a0.mjs +18 -0
  141. package/fesm2022/visually-hidden-83aea4a0.mjs.map +1 -0
  142. package/focus-key-manager.d-415a6958.d.ts +33 -0
  143. package/focus-monitor.d-810a02e6.d.ts +209 -0
  144. package/harness-environment.d-4d615248.d.ts +619 -0
  145. package/index.d.ts +2 -2
  146. package/keycodes/index.d.ts +123 -244
  147. package/layout/index.d.ts +23 -25
  148. package/list-key-manager.d-72e9a2e7.d.ts +164 -0
  149. package/listbox/index.d.ts +91 -107
  150. package/menu/index.d.ts +596 -682
  151. package/number-property.d-ce316715.d.ts +15 -0
  152. package/observe-content.d-c08bc882.d.ts +84 -0
  153. package/observers/index.d.ts +4 -90
  154. package/observers/private/index.d.ts +3 -3
  155. package/overlay/index.d.ts +110 -951
  156. package/overlay-module.d-5d06db8a.d.ts +790 -0
  157. package/package.json +1 -1
  158. package/platform/index.d.ts +45 -86
  159. package/platform.d-0a5b4792.d.ts +33 -0
  160. package/portal/index.d.ts +5 -264
  161. package/portal-directives.d-d345bd53.d.ts +210 -0
  162. package/private/index.d.ts +3 -20
  163. package/schematics/ng-add/index.js +1 -1
  164. package/schematics/ng-add/index.mjs +1 -1
  165. package/schematics/ng-update/html-parsing/angular.js +2 -2
  166. package/schematics/ng-update/html-parsing/angular.mjs +2 -2
  167. package/scrolling/index.d.ts +7 -687
  168. package/scrolling-module.d-a08a462d.d.ts +551 -0
  169. package/selection-model.d-1a70542c.d.ts +111 -0
  170. package/stepper/index.d.ts +74 -124
  171. package/style-loader.d-19baab84.d.ts +21 -0
  172. package/table/index.d.ts +329 -453
  173. package/testing/index.d.ts +32 -675
  174. package/testing/selenium-webdriver/index.d.ts +30 -20
  175. package/testing/testbed/index.d.ts +9 -19
  176. package/text-field/index.d.ts +11 -30
  177. package/tree/index.d.ts +205 -271
  178. package/tree-key-manager-strategy.d-603161dd.d.ts +116 -0
  179. package/unique-selection-dispatcher.d-7993b9f5.d.ts +32 -0
  180. package/view-repeater.d-79039e1f.d.ts +88 -0
  181. package/viewport-ruler.d-f3d3e82f.d.ts +57 -0
package/table/index.d.ts CHANGED
@@ -1,59 +1,12 @@
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 { D as Directionality, a as Direction } from '../bidi-module.d-f8648621.js';
11
2
  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
- }
3
+ import { TemplateRef, ElementRef, InjectionToken, OnChanges, IterableDiffers, IterableDiffer, SimpleChanges, IterableChanges, OnDestroy, ViewContainerRef, AfterContentInit, AfterContentChecked, OnInit, ChangeDetectorRef, TrackByFunction, EventEmitter, QueryList, Injector } from '@angular/core';
4
+ import { Observable, BehaviorSubject } from 'rxjs';
5
+ import { D as DataSource, C as CollectionViewer } from '../data-source.d-7cab2c9d.js';
6
+ export { D as DataSource } from '../data-source.d-7cab2c9d.js';
7
+ import { a as _ViewRepeater } from '../view-repeater.d-79039e1f.js';
8
+ import { S as ScrollingModule } from '../scrolling-module.d-a08a462d.js';
9
+ import '../number-property.d-ce316715.js';
57
10
 
58
11
  /**
59
12
  * Interface for a mixin to provide a directive with a function that checks if the sticky input has
@@ -61,7 +14,7 @@ export declare abstract class BaseRowDef implements OnChanges {
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. */
@@ -70,118 +23,48 @@ export declare interface CanStick {
70
23
  resetStickyChanged(): void;
71
24
  }
72
25
 
73
- /** @docs-private */
74
- export declare type CanStickCtor = Constructor<CanStick>;
75
-
76
- /**
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.
91
- * @docs-private
92
- */
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";
94
-
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>;
26
+ /** Base interface for a cell definition. Captures a column's cell template definition. */
27
+ interface CellDef {
28
+ template: TemplateRef<any>;
100
29
  }
101
-
102
30
  /**
103
31
  * Cell definition for a CDK table.
104
32
  * Captures the template of a column's data row cell as well as cell-specific properties.
105
33
  */
106
- export declare class CdkCellDef implements CellDef {
34
+ declare class CdkCellDef implements CellDef {
107
35
  /** @docs-private */
108
36
  template: TemplateRef<any>;
109
37
  constructor(...args: unknown[]);
110
38
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkCellDef, never>;
111
39
  static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCellDef, "[cdkCellDef]", never, {}, {}, never, never, true, never>;
112
40
  }
113
-
114
41
  /**
115
- * Outlet for rendering cells inside of a row or header row.
116
- * @docs-private
42
+ * Header cell definition for a CDK table.
43
+ * Captures the template of a column's header cell and as well as cell-specific properties.
117
44
  */
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;
45
+ declare class CdkHeaderCellDef implements CellDef {
46
+ /** @docs-private */
47
+ template: TemplateRef<any>;
132
48
  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>;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderCellDef, never>;
50
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderCellDef, "[cdkHeaderCellDef]", never, {}, {}, never, never, true, never>;
136
51
  }
137
-
138
52
  /**
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`.
53
+ * Footer cell definition for a CDK table.
54
+ * Captures the template of a column's footer cell and as well as cell-specific properties.
142
55
  */
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;
56
+ declare class CdkFooterCellDef implements CellDef {
57
+ /** @docs-private */
58
+ template: TemplateRef<any>;
59
+ constructor(...args: unknown[]);
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterCellDef, never>;
61
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterCellDef, "[cdkFooterCellDef]", never, {}, {}, never, never, true, never>;
178
62
  }
179
-
180
63
  /**
181
64
  * Column definition for the CDK table.
182
65
  * Defines a set of cells available for a table column.
183
66
  */
184
- export declare class CdkColumnDef implements CanStick {
67
+ declare class CdkColumnDef implements CanStick {
185
68
  _table?: any;
186
69
  private _hasStickyChanged;
187
70
  /** Unique name for this column. */
@@ -242,37 +125,96 @@ export declare class CdkColumnDef implements CanStick {
242
125
  static ngAcceptInputType_sticky: unknown;
243
126
  static ngAcceptInputType_stickyEnd: unknown;
244
127
  }
245
-
128
+ /** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */
129
+ declare class BaseCdkCell {
130
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef);
131
+ }
132
+ /** Header cell template container that adds the right classes and role. */
133
+ declare class CdkHeaderCell extends BaseCdkCell {
134
+ constructor(...args: unknown[]);
135
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderCell, never>;
136
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderCell, "cdk-header-cell, th[cdk-header-cell]", never, {}, {}, never, never, true, never>;
137
+ }
246
138
  /** Footer cell template container that adds the right classes and role. */
247
- export declare class CdkFooterCell extends BaseCdkCell {
139
+ declare class CdkFooterCell extends BaseCdkCell {
248
140
  constructor(...args: unknown[]);
249
141
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterCell, never>;
250
142
  static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterCell, "cdk-footer-cell, td[cdk-footer-cell]", never, {}, {}, never, never, true, never>;
251
143
  }
144
+ /** Cell template container that adds the right classes and role. */
145
+ declare class CdkCell extends BaseCdkCell {
146
+ constructor(...args: unknown[]);
147
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkCell, never>;
148
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCell, "cdk-cell, td[cdk-cell]", never, {}, {}, never, never, true, never>;
149
+ }
252
150
 
253
151
  /**
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.
152
+ * @docs-private
256
153
  */
257
- export declare class CdkFooterCellDef implements CellDef {
258
- /** @docs-private */
259
- template: TemplateRef<any>;
154
+ declare class _Schedule {
155
+ tasks: (() => unknown)[];
156
+ endTasks: (() => unknown)[];
157
+ }
158
+ /** Injection token used to provide a coalesced style scheduler. */
159
+ declare const _COALESCED_STYLE_SCHEDULER: InjectionToken<_CoalescedStyleScheduler>;
160
+ /**
161
+ * Allows grouping up CSSDom mutations after the current execution context.
162
+ * This can significantly improve performance when separate consecutive functions are
163
+ * reading from the CSSDom and then mutating it.
164
+ *
165
+ * @docs-private
166
+ */
167
+ declare class _CoalescedStyleScheduler {
168
+ private _currentSchedule;
169
+ private _ngZone;
260
170
  constructor(...args: unknown[]);
261
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterCellDef, never>;
262
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterCellDef, "[cdkFooterCellDef]", never, {}, {}, never, never, true, never>;
171
+ /**
172
+ * Schedules the specified task to run at the end of the current VM turn.
173
+ */
174
+ schedule(task: () => unknown): void;
175
+ /**
176
+ * Schedules the specified task to run after other scheduled tasks at the end of the current
177
+ * VM turn.
178
+ */
179
+ scheduleEnd(task: () => unknown): void;
180
+ private _createScheduleIfNeeded;
181
+ static ɵfac: i0.ɵɵFactoryDeclaration<_CoalescedStyleScheduler, never>;
182
+ static ɵprov: i0.ɵɵInjectableDeclaration<_CoalescedStyleScheduler>;
263
183
  }
264
184
 
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>;
185
+ /**
186
+ * The row template that can be used by the mat-table. Should not be used outside of the
187
+ * material library.
188
+ */
189
+ declare const CDK_ROW_TEMPLATE = "<ng-container cdkCellOutlet></ng-container>";
190
+ /**
191
+ * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs
192
+ * for changes and notifying the table.
193
+ */
194
+ declare abstract class BaseRowDef implements OnChanges {
195
+ template: TemplateRef<any>;
196
+ protected _differs: IterableDiffers;
197
+ /** The columns to be displayed on this row. */
198
+ columns: Iterable<string>;
199
+ /** Differ used to check if any changes were made to the columns. */
200
+ protected _columnsDiffer: IterableDiffer<any>;
201
+ constructor(...args: unknown[]);
202
+ ngOnChanges(changes: SimpleChanges): void;
203
+ /**
204
+ * Returns the difference between the current columns and the columns from the last diff, or null
205
+ * if there is no difference.
206
+ */
207
+ getColumnsDiff(): IterableChanges<any> | null;
208
+ /** Gets this row def's relevant cell template from the provided column def. */
209
+ extractCellTemplate(column: CdkColumnDef): TemplateRef<any>;
210
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseRowDef, never>;
211
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseRowDef, never, never, {}, {}, never, never, true, never>;
269
212
  }
270
-
271
213
  /**
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.
214
+ * Header row definition for the CDK table.
215
+ * Captures the header row's template and other header properties such as the columns to display.
274
216
  */
275
- export declare class CdkFooterRowDef extends BaseRowDef implements CanStick, OnChanges {
217
+ declare class CdkHeaderRowDef extends BaseRowDef implements CanStick, OnChanges {
276
218
  _table?: any;
277
219
  private _hasStickyChanged;
278
220
  /** Whether the row is sticky. */
@@ -285,41 +227,15 @@ export declare class CdkFooterRowDef extends BaseRowDef implements CanStick, OnC
285
227
  hasStickyChanged(): boolean;
286
228
  /** Resets the sticky changed state. */
287
229
  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>;
230
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderRowDef, never>;
231
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkHeaderRowDef, "[cdkHeaderRowDef]", never, { "columns": { "alias": "cdkHeaderRowDef"; "required": false; }; "sticky": { "alias": "cdkHeaderRowDefSticky"; "required": false; }; }, {}, never, never, true, never>;
290
232
  static ngAcceptInputType_sticky: unknown;
291
233
  }
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
234
  /**
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
- /**
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.
235
+ * Footer row definition for the CDK table.
236
+ * Captures the footer row's template and other footer properties such as the columns to display.
321
237
  */
322
- export declare class CdkHeaderRowDef extends BaseRowDef implements CanStick, OnChanges {
238
+ declare class CdkFooterRowDef extends BaseRowDef implements CanStick, OnChanges {
323
239
  _table?: any;
324
240
  private _hasStickyChanged;
325
241
  /** Whether the row is sticky. */
@@ -332,13 +248,108 @@ export declare class CdkHeaderRowDef extends BaseRowDef implements CanStick, OnC
332
248
  hasStickyChanged(): boolean;
333
249
  /** Resets the sticky changed state. */
334
250
  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>;
251
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterRowDef, never>;
252
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFooterRowDef, "[cdkFooterRowDef]", never, { "columns": { "alias": "cdkFooterRowDef"; "required": false; }; "sticky": { "alias": "cdkFooterRowDefSticky"; "required": false; }; }, {}, never, never, true, never>;
337
253
  static ngAcceptInputType_sticky: unknown;
338
254
  }
339
-
255
+ /**
256
+ * Data row definition for the CDK table.
257
+ * Captures the header row's template and other row properties such as the columns to display and
258
+ * a when predicate that describes when this row should be used.
259
+ */
260
+ declare class CdkRowDef<T> extends BaseRowDef {
261
+ _table?: any;
262
+ /**
263
+ * Function that should return true if this row template should be used for the provided index
264
+ * and row data. If left undefined, this row will be considered the default row template to use
265
+ * when no other when functions return true for the data.
266
+ * For every row, there must be at least one when function that passes or an undefined to default.
267
+ */
268
+ when: (index: number, rowData: T) => boolean;
269
+ constructor(...args: unknown[]);
270
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowDef<any>, never>;
271
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowDef<any>, "[cdkRowDef]", never, { "columns": { "alias": "cdkRowDefColumns"; "required": false; }; "when": { "alias": "cdkRowDefWhen"; "required": false; }; }, {}, never, never, true, never>;
272
+ }
273
+ /** Context provided to the row cells when `multiTemplateDataRows` is false */
274
+ interface CdkCellOutletRowContext<T> {
275
+ /** Data for the row that this cell is located within. */
276
+ $implicit?: T;
277
+ /** Index of the data object in the provided data array. */
278
+ index?: number;
279
+ /** Length of the number of total rows. */
280
+ count?: number;
281
+ /** True if this cell is contained in the first row. */
282
+ first?: boolean;
283
+ /** True if this cell is contained in the last row. */
284
+ last?: boolean;
285
+ /** True if this cell is contained in a row with an even-numbered index. */
286
+ even?: boolean;
287
+ /** True if this cell is contained in a row with an odd-numbered index. */
288
+ odd?: boolean;
289
+ }
290
+ /**
291
+ * Context provided to the row cells when `multiTemplateDataRows` is true. This context is the same
292
+ * as CdkCellOutletRowContext except that the single `index` value is replaced by `dataIndex` and
293
+ * `renderIndex`.
294
+ */
295
+ interface CdkCellOutletMultiRowContext<T> {
296
+ /** Data for the row that this cell is located within. */
297
+ $implicit?: T;
298
+ /** Index of the data object in the provided data array. */
299
+ dataIndex?: number;
300
+ /** Index location of the rendered row that this cell is located within. */
301
+ renderIndex?: number;
302
+ /** Length of the number of total rows. */
303
+ count?: number;
304
+ /** True if this cell is contained in the first row. */
305
+ first?: boolean;
306
+ /** True if this cell is contained in the last row. */
307
+ last?: boolean;
308
+ /** True if this cell is contained in a row with an even-numbered index. */
309
+ even?: boolean;
310
+ /** True if this cell is contained in a row with an odd-numbered index. */
311
+ odd?: boolean;
312
+ }
313
+ /**
314
+ * Outlet for rendering cells inside of a row or header row.
315
+ * @docs-private
316
+ */
317
+ declare class CdkCellOutlet implements OnDestroy {
318
+ _viewContainer: ViewContainerRef;
319
+ /** The ordered list of cells to render within this outlet's view container */
320
+ cells: CdkCellDef[];
321
+ /** The data context to be provided to each cell */
322
+ context: any;
323
+ /**
324
+ * Static property containing the latest constructed instance of this class.
325
+ * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using
326
+ * createEmbeddedView. After one of these components are created, this property will provide
327
+ * a handle to provide that component's cells and context. After init, the CdkCellOutlet will
328
+ * construct the cells with the provided context.
329
+ */
330
+ static mostRecentCellOutlet: CdkCellOutlet | null;
331
+ constructor(...args: unknown[]);
332
+ ngOnDestroy(): void;
333
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkCellOutlet, never>;
334
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkCellOutlet, "[cdkCellOutlet]", never, {}, {}, never, never, true, never>;
335
+ }
336
+ /** Header template container that contains the cell outlet. Adds the right class and role. */
337
+ declare class CdkHeaderRow {
338
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkHeaderRow, never>;
339
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkHeaderRow, "cdk-header-row, tr[cdk-header-row]", never, {}, {}, never, never, true, never>;
340
+ }
341
+ /** Footer template container that contains the cell outlet. Adds the right class and role. */
342
+ declare class CdkFooterRow {
343
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkFooterRow, never>;
344
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkFooterRow, "cdk-footer-row, tr[cdk-footer-row]", never, {}, {}, never, never, true, never>;
345
+ }
346
+ /** Data row template container that contains the cell outlet. Adds the right class and role. */
347
+ declare class CdkRow {
348
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkRow, never>;
349
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkRow, "cdk-row, tr[cdk-row]", never, {}, {}, never, never, true, never>;
350
+ }
340
351
  /** Row that can be used to display a message when no data is shown in the table. */
341
- export declare class CdkNoDataRow {
352
+ declare class CdkNoDataRow {
342
353
  templateRef: TemplateRef<any>;
343
354
  _contentClassName: string;
344
355
  constructor(...args: unknown[]);
@@ -346,47 +357,126 @@ export declare class CdkNoDataRow {
346
357
  static ɵdir: i0.ɵɵDirectiveDeclaration<CdkNoDataRow, "ng-template[cdkNoDataRow]", never, {}, {}, never, never, true, never>;
347
358
  }
348
359
 
360
+ /** The injection token used to specify the StickyPositioningListener. */
361
+ declare const STICKY_POSITIONING_LISTENER: InjectionToken<StickyPositioningListener>;
362
+ type StickySize = number | null | undefined;
363
+ type StickyOffset = number | null | undefined;
364
+ interface StickyUpdate {
365
+ elements?: readonly (HTMLElement[] | undefined)[];
366
+ offsets?: StickyOffset[];
367
+ sizes: StickySize[];
368
+ }
369
+ /**
370
+ * If provided, CdkTable will call the methods below when it updates the size/
371
+ * position/etc of its sticky rows and columns.
372
+ */
373
+ interface StickyPositioningListener {
374
+ /** Called when CdkTable updates its sticky start columns. */
375
+ stickyColumnsUpdated(update: StickyUpdate): void;
376
+ /** Called when CdkTable updates its sticky end columns. */
377
+ stickyEndColumnsUpdated(update: StickyUpdate): void;
378
+ /** Called when CdkTable updates its sticky header rows. */
379
+ stickyHeaderRowsUpdated(update: StickyUpdate): void;
380
+ /** Called when CdkTable updates its sticky footer rows. */
381
+ stickyFooterRowsUpdated(update: StickyUpdate): void;
382
+ }
383
+
349
384
  /**
350
385
  * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with
351
386
  * tables that animate rows.
352
387
  */
353
- export declare class CdkRecycleRows {
388
+ declare class CdkRecycleRows {
354
389
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkRecycleRows, never>;
355
390
  static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRecycleRows, "cdk-table[recycleRows], table[cdk-table][recycleRows]", never, {}, {}, never, never, true, never>;
356
391
  }
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>;
392
+ /** Interface used to provide an outlet for rows to be inserted into. */
393
+ interface RowOutlet {
394
+ viewContainer: ViewContainerRef;
362
395
  }
363
-
396
+ /** Possible types that can be set as the data source for a `CdkTable`. */
397
+ type CdkTableDataSourceInput<T> = readonly T[] | DataSource<T> | Observable<readonly T[]>;
364
398
  /**
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.
399
+ * Provides a handle for the table to grab the view container's ng-container to insert data rows.
400
+ * @docs-private
368
401
  */
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;
402
+ declare class DataRowOutlet implements RowOutlet {
403
+ viewContainer: ViewContainerRef;
404
+ elementRef: ElementRef<any>;
378
405
  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>;
406
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataRowOutlet, never>;
407
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataRowOutlet, "[rowOutlet]", never, {}, {}, never, never, true, never>;
408
+ }
409
+ /**
410
+ * Provides a handle for the table to grab the view container's ng-container to insert the header.
411
+ * @docs-private
412
+ */
413
+ declare class HeaderRowOutlet implements RowOutlet {
414
+ viewContainer: ViewContainerRef;
415
+ elementRef: ElementRef<any>;
416
+ constructor(...args: unknown[]);
417
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderRowOutlet, never>;
418
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HeaderRowOutlet, "[headerRowOutlet]", 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 footer.
422
+ * @docs-private
423
+ */
424
+ declare class FooterRowOutlet implements RowOutlet {
425
+ viewContainer: ViewContainerRef;
426
+ elementRef: ElementRef<any>;
427
+ constructor(...args: unknown[]);
428
+ static ɵfac: i0.ɵɵFactoryDeclaration<FooterRowOutlet, never>;
429
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FooterRowOutlet, "[footerRowOutlet]", never, {}, {}, never, never, true, never>;
430
+ }
431
+ /**
432
+ * Provides a handle for the table to grab the view
433
+ * container's ng-container to insert the no data row.
434
+ * @docs-private
435
+ */
436
+ declare class NoDataRowOutlet implements RowOutlet {
437
+ viewContainer: ViewContainerRef;
438
+ elementRef: ElementRef<any>;
439
+ constructor(...args: unknown[]);
440
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoDataRowOutlet, never>;
441
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NoDataRowOutlet, "[noDataRowOutlet]", never, {}, {}, never, never, true, never>;
442
+ }
443
+ /**
444
+ * The table template that can be used by the mat-table. Should not be used outside of the
445
+ * material library.
446
+ * @docs-private
447
+ */
448
+ 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";
449
+ /**
450
+ * Interface used to conveniently type the possible context interfaces for the render row.
451
+ * @docs-private
452
+ */
453
+ interface RowContext<T> extends CdkCellOutletMultiRowContext<T>, CdkCellOutletRowContext<T> {
454
+ }
455
+ /**
456
+ * Set of properties that represents the identity of a single rendered row.
457
+ *
458
+ * When the table needs to determine the list of rows to render, it will do so by iterating through
459
+ * each data object and evaluating its list of row templates to display (when multiTemplateDataRows
460
+ * is false, there is only one template per data object). For each pair of data object and row
461
+ * template, a `RenderRow` is added to the list of rows to render. If the data object and row
462
+ * template pair has already been rendered, the previously used `RenderRow` is added; else a new
463
+ * `RenderRow` is * created. Once the list is complete and all data objects have been iterated
464
+ * through, a diff is performed to determine the changes that need to be made to the rendered rows.
465
+ *
466
+ * @docs-private
467
+ */
468
+ interface RenderRow<T> {
469
+ data: T;
470
+ dataIndex: number;
471
+ rowDef: CdkRowDef<T>;
381
472
  }
382
-
383
473
  /**
384
474
  * A data table that can render a header row, data rows, and a footer row.
385
475
  * Uses the dataSource input to determine the data to be rendered. The data can be provided either
386
476
  * as a data array, an Observable stream that emits the data array to render, or a DataSource with a
387
477
  * connect function that will return an Observable stream that emits the data array to render.
388
478
  */
389
- export declare class CdkTable<T> implements AfterContentInit, AfterContentChecked, CollectionViewer, OnDestroy, OnInit {
479
+ declare class CdkTable<T> implements AfterContentInit, AfterContentChecked, CollectionViewer, OnDestroy, OnInit {
390
480
  protected readonly _differs: IterableDiffers;
391
481
  protected readonly _changeDetectorRef: ChangeDetectorRef;
392
482
  protected readonly _elementRef: ElementRef<any>;
@@ -761,15 +851,6 @@ export declare class CdkTable<T> implements AfterContentInit, AfterContentChecke
761
851
  static ngAcceptInputType_fixedLayout: unknown;
762
852
  }
763
853
 
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
854
  /**
774
855
  * Column that simply shows text content for the header and row cells. Assumes that the table
775
856
  * is using the native table implementation (`<table>`).
@@ -779,7 +860,7 @@ export declare class CdkTableModule {
779
860
  * the `dataAccessor` input. Change the text justification to the start or end using the `justify`
780
861
  * input.
781
862
  */
782
- export declare class CdkTextColumn<T> implements OnDestroy, OnInit {
863
+ declare class CdkTextColumn<T> implements OnDestroy, OnInit {
783
864
  private _table;
784
865
  private _options;
785
866
  /** Column name that should be used to reference this column. */
@@ -832,231 +913,28 @@ export declare class CdkTextColumn<T> implements OnDestroy, OnInit {
832
913
  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
914
  }
834
915
 
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;
916
+ declare class CdkTableModule {
917
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkTableModule, never>;
918
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CdkTableModule, never, [typeof 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]>;
919
+ static ɵinj: i0.ɵɵInjectorDeclaration<CdkTableModule>;
1015
920
  }
1016
921
 
1017
922
  /**
923
+ * Directions that can be used when setting sticky positioning.
1018
924
  * @docs-private
1019
925
  */
1020
- export declare class _Schedule {
1021
- tasks: (() => unknown)[];
1022
- endTasks: (() => unknown)[];
1023
- }
1024
926
 
927
+ type StickyDirection = 'top' | 'bottom' | 'left' | 'right';
1025
928
  /**
1026
929
  * List of all possible directions that can be used for sticky positioning.
1027
930
  * @docs-private
1028
931
  */
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
-
932
+ declare const STICKY_DIRECTIONS: StickyDirection[];
1055
933
  /**
1056
934
  * Applies and removes sticky positioning styles to the `CdkTable` rows and columns cells.
1057
935
  * @docs-private
1058
936
  */
1059
- export declare class StickyStyler {
937
+ declare class StickyStyler {
1060
938
  private _isNativeHtmlTable;
1061
939
  private _stickCellCss;
1062
940
  direction: Direction;
@@ -1188,17 +1066,13 @@ export declare class StickyStyler {
1188
1066
  private _afterNextRender;
1189
1067
  }
1190
1068
 
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
-
1069
+ /**
1070
+ * Used to provide a table to some of the sub-components without causing a circular dependency.
1071
+ * @docs-private
1072
+ */
1073
+ declare const CDK_TABLE: InjectionToken<any>;
1200
1074
  /** Configurable options for `CdkTextColumn`. */
1201
- export declare interface TextColumnOptions<T> {
1075
+ interface TextColumnOptions<T> {
1202
1076
  /**
1203
1077
  * Default function that provides the header text based on the column name if a header
1204
1078
  * text is not provided.
@@ -1207,5 +1081,7 @@ export declare interface TextColumnOptions<T> {
1207
1081
  /** Default data accessor to use if one is not provided. */
1208
1082
  defaultDataAccessor?: (data: T, name: string) => string;
1209
1083
  }
1084
+ /** Injection token that can be used to specify the text column options. */
1085
+ declare const TEXT_COLUMN_OPTIONS: InjectionToken<TextColumnOptions<any>>;
1210
1086
 
1211
- export { }
1087
+ export { BaseCdkCell, BaseRowDef, CDK_ROW_TEMPLATE, CDK_TABLE, CDK_TABLE_TEMPLATE, type CanStick, 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, 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 };