@angular/cdk 21.0.0-next.3 → 21.0.0-next.5
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.
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/menu.mjs +3 -5
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +3 -5
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/table.mjs +8 -2
- package/fesm2022/table.mjs.map +1 -1
- package/menu/index.d.ts +3 -5
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/table/index.d.ts +3 -1
- package/overlay/_index-deprecated.scss +0 -13
package/fesm2022/table.mjs
CHANGED
|
@@ -550,7 +550,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2",
|
|
|
550
550
|
/** Row that can be used to display a message when no data is shown in the table. */
|
|
551
551
|
class CdkNoDataRow {
|
|
552
552
|
templateRef = inject(TemplateRef);
|
|
553
|
-
|
|
553
|
+
_contentClassNames = ['cdk-no-data-row', 'cdk-row'];
|
|
554
|
+
_cellClassNames = ['cdk-cell', 'cdk-no-data-cell'];
|
|
555
|
+
_cellSelector = 'td, cdk-cell, [cdk-cell], .cdk-cell';
|
|
554
556
|
constructor() { }
|
|
555
557
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkNoDataRow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
556
558
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: CdkNoDataRow, isStandalone: true, selector: "ng-template[cdkNoDataRow]", ngImport: i0 });
|
|
@@ -2119,7 +2121,11 @@ class CdkTable {
|
|
|
2119
2121
|
// to figure out which one to add it to when there are multiple.
|
|
2120
2122
|
if (view.rootNodes.length === 1 && rootNode?.nodeType === this._document.ELEMENT_NODE) {
|
|
2121
2123
|
rootNode.setAttribute('role', 'row');
|
|
2122
|
-
rootNode.classList.add(noDataRow.
|
|
2124
|
+
rootNode.classList.add(...noDataRow._contentClassNames);
|
|
2125
|
+
const cells = rootNode.querySelectorAll(noDataRow._cellSelector);
|
|
2126
|
+
for (let i = 0; i < cells.length; i++) {
|
|
2127
|
+
cells[i].classList.add(...noDataRow._cellClassNames);
|
|
2128
|
+
}
|
|
2123
2129
|
}
|
|
2124
2130
|
}
|
|
2125
2131
|
else {
|