Skip to content

Commit 645edc5

Browse files
Revert "feat(table): enable multiple data rows (#10964)" (#11102)
1 parent 0e466ee commit 645edc5

File tree

15 files changed

+104
-713
lines changed

15 files changed

+104
-713
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cdk/table/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ ng_module(
99
module_name = "@angular/cdk/table",
1010
deps = [
1111
"//src/cdk/collections",
12-
"//src/cdk/coercion",
1312
"@rxjs",
1413
],
1514
tsconfig = "//src/cdk:tsconfig-build.json",

src/cdk/table/render-rows.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/cdk/table/row.ts

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ export class CdkRowDef<T> extends BaseRowDef {
130130
}
131131
}
132132

133-
/** Context provided to the row cells when `multiTemplateDataRows` is false */
133+
/** Context provided to the row cells */
134134
export interface CdkCellOutletRowContext<T> {
135135
/** Data for the row that this cell is located within. */
136136
$implicit?: T;
137137

138-
/** Index of the data object in the provided data array. */
138+
/** Index location of the row that this cell is located within. */
139139
index?: number;
140140

141141
/** Length of the number of total rows. */
@@ -154,37 +154,6 @@ export interface CdkCellOutletRowContext<T> {
154154
odd?: boolean;
155155
}
156156

157-
/**
158-
* Context provided to the row cells when `multiTemplateDataRows` is true. This context is the same
159-
* as CdkCellOutletRowContext except that the single `index` value is replaced by `dataIndex` and
160-
* `renderIndex`.
161-
*/
162-
export interface CdkCellOutletMultiRowContext<T> {
163-
/** Data for the row that this cell is located within. */
164-
$implicit?: T;
165-
166-
/** Index of the data object in the provided data array. */
167-
dataIndex?: number;
168-
169-
/** Index location of the rendered row that this cell is located within. */
170-
renderIndex?: number;
171-
172-
/** Length of the number of total rows. */
173-
count?: number;
174-
175-
/** True if this cell is contained in the first row. */
176-
first?: boolean;
177-
178-
/** True if this cell is contained in the last row. */
179-
last?: boolean;
180-
181-
/** True if this cell is contained in a row with an even-numbered index. */
182-
even?: boolean;
183-
184-
/** True if this cell is contained in a row with an odd-numbered index. */
185-
odd?: boolean;
186-
}
187-
188157
/**
189158
* Outlet for rendering cells inside of a row or header row.
190159
* @docs-private

src/cdk/table/table-errors.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ export function getTableMultipleDefaultRowDefsError() {
3535
* Returns an error to be thrown when there are no matching row defs for a particular set of data.
3636
* @docs-private
3737
*/
38-
export function getTableMissingMatchingRowDefError(data: any) {
39-
return Error(`Could not find a matching row definition for the` +
40-
`provided row data: ${JSON.stringify(data)}`);
38+
export function getTableMissingMatchingRowDefError() {
39+
return Error(`Could not find a matching row definition for the provided row data.`);
4140
}
4241

4342
/**

0 commit comments

Comments
 (0)