@angular/cdk 12.1.3 → 12.2.1
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/bundles/cdk-a11y.umd.js +10 -4
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-coercion.umd.js +10 -4
- package/bundles/cdk-coercion.umd.js.map +1 -1
- package/bundles/cdk-collections.umd.js +10 -4
- package/bundles/cdk-collections.umd.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.js +69 -44
- package/bundles/cdk-drag-drop.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +10 -4
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-portal.umd.js +10 -4
- package/bundles/cdk-portal.umd.js.map +1 -1
- package/bundles/cdk-scrolling.umd.js +29 -4
- package/bundles/cdk-scrolling.umd.js.map +1 -1
- package/bundles/cdk-table.umd.js +18 -4
- package/bundles/cdk-table.umd.js.map +1 -1
- package/bundles/cdk-testing-protractor.umd.js +12 -5
- package/bundles/cdk-testing-protractor.umd.js.map +1 -1
- package/bundles/cdk-testing-selenium-webdriver.umd.js +12 -5
- package/bundles/cdk-testing-selenium-webdriver.umd.js.map +1 -1
- package/bundles/cdk-testing-testbed.umd.js +11 -6
- package/bundles/cdk-testing-testbed.umd.js.map +1 -1
- package/bundles/cdk-testing.umd.js +10 -4
- package/bundles/cdk-testing.umd.js.map +1 -1
- package/bundles/cdk-text-field.umd.js +29 -8
- package/bundles/cdk-text-field.umd.js.map +1 -1
- package/bundles/cdk-tree.umd.js +10 -4
- package/bundles/cdk-tree.umd.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/drag-drop/directives/drag.d.ts +2 -0
- package/drag-drop/drag-events.d.ts +2 -2
- package/drag-drop/index.metadata.json +1 -1
- package/esm2015/drag-drop/directives/drag.js +50 -39
- package/esm2015/drag-drop/drag-events.js +1 -1
- package/esm2015/drag-drop/drag-ref.js +6 -2
- package/esm2015/drag-drop/drag-styling.js +4 -2
- package/esm2015/overlay/overlay-reference.js +1 -1
- package/esm2015/scrolling/fixed-size-virtual-scroll.js +1 -1
- package/esm2015/scrolling/virtual-scroll-viewport.js +17 -1
- package/esm2015/table/table.js +10 -2
- package/esm2015/testing/protractor/protractor-element.js +3 -2
- package/esm2015/testing/selenium-webdriver/selenium-web-driver-element.js +3 -2
- package/esm2015/text-field/autosize.js +29 -9
- package/esm2015/version.js +1 -1
- package/fesm2015/cdk.js +1 -1
- package/fesm2015/cdk.js.map +1 -1
- package/fesm2015/drag-drop.js +57 -40
- package/fesm2015/drag-drop.js.map +1 -1
- package/fesm2015/scrolling.js +16 -1
- package/fesm2015/scrolling.js.map +1 -1
- package/fesm2015/table.js +9 -1
- package/fesm2015/table.js.map +1 -1
- package/fesm2015/testing/protractor.js +2 -1
- package/fesm2015/testing/protractor.js.map +1 -1
- package/fesm2015/testing/selenium-webdriver.js +2 -1
- package/fesm2015/testing/selenium-webdriver.js.map +1 -1
- package/fesm2015/text-field.js +28 -8
- package/fesm2015/text-field.js.map +1 -1
- package/overlay/overlay-reference.d.ts +9 -1
- package/package.json +2 -5
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/scrolling/index.metadata.json +1 -1
- package/scrolling/virtual-scroll-viewport.d.ts +9 -0
- package/table/index.metadata.json +1 -1
- package/table/table.d.ts +6 -1
- package/text-field/autosize.d.ts +3 -2
- package/text-field/index.metadata.json +1 -1
package/bundles/cdk-table.umd.js
CHANGED
|
@@ -230,10 +230,16 @@
|
|
|
230
230
|
r[k] = a[j];
|
|
231
231
|
return r;
|
|
232
232
|
}
|
|
233
|
-
function __spreadArray(to, from) {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
function __spreadArray(to, from, pack) {
|
|
234
|
+
if (pack || arguments.length === 2)
|
|
235
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
236
|
+
if (ar || !(i in from)) {
|
|
237
|
+
if (!ar)
|
|
238
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
239
|
+
ar[i] = from[i];
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return to.concat(ar || from);
|
|
237
243
|
}
|
|
238
244
|
function __await(v) {
|
|
239
245
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -1685,6 +1691,11 @@
|
|
|
1685
1691
|
this._isShowingNoDataRow = false;
|
|
1686
1692
|
this._multiTemplateDataRows = false;
|
|
1687
1693
|
this._fixedLayout = false;
|
|
1694
|
+
/**
|
|
1695
|
+
* Emits when the table completes rendering a set of data rows based on the latest data from the
|
|
1696
|
+
* data source, even if the set of rows is empty.
|
|
1697
|
+
*/
|
|
1698
|
+
this.contentChanged = new core.EventEmitter();
|
|
1688
1699
|
// TODO(andrewseguin): Remove max value as the end index
|
|
1689
1700
|
// and instead calculate the view on init and scroll.
|
|
1690
1701
|
/**
|
|
@@ -1871,6 +1882,7 @@
|
|
|
1871
1882
|
var changes = this._dataDiffer.diff(this._renderRows);
|
|
1872
1883
|
if (!changes) {
|
|
1873
1884
|
this._updateNoDataRow();
|
|
1885
|
+
this.contentChanged.next();
|
|
1874
1886
|
return;
|
|
1875
1887
|
}
|
|
1876
1888
|
var viewContainer = this._rowOutlet.viewContainer;
|
|
@@ -1889,6 +1901,7 @@
|
|
|
1889
1901
|
});
|
|
1890
1902
|
this._updateNoDataRow();
|
|
1891
1903
|
this.updateStickyColumnStyles();
|
|
1904
|
+
this.contentChanged.next();
|
|
1892
1905
|
};
|
|
1893
1906
|
/** Adds a column definition that was not included as part of the content children. */
|
|
1894
1907
|
CdkTable.prototype.addColumnDef = function (columnDef) {
|
|
@@ -2474,6 +2487,7 @@
|
|
|
2474
2487
|
dataSource: [{ type: core.Input }],
|
|
2475
2488
|
multiTemplateDataRows: [{ type: core.Input }],
|
|
2476
2489
|
fixedLayout: [{ type: core.Input }],
|
|
2490
|
+
contentChanged: [{ type: core.Output }],
|
|
2477
2491
|
_rowOutlet: [{ type: core.ViewChild, args: [DataRowOutlet, { static: true },] }],
|
|
2478
2492
|
_headerRowOutlet: [{ type: core.ViewChild, args: [HeaderRowOutlet, { static: true },] }],
|
|
2479
2493
|
_footerRowOutlet: [{ type: core.ViewChild, args: [FooterRowOutlet, { static: true },] }],
|