@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.
Files changed (69) hide show
  1. package/bundles/cdk-a11y.umd.js +10 -4
  2. package/bundles/cdk-a11y.umd.js.map +1 -1
  3. package/bundles/cdk-coercion.umd.js +10 -4
  4. package/bundles/cdk-coercion.umd.js.map +1 -1
  5. package/bundles/cdk-collections.umd.js +10 -4
  6. package/bundles/cdk-collections.umd.js.map +1 -1
  7. package/bundles/cdk-drag-drop.umd.js +69 -44
  8. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  9. package/bundles/cdk-overlay.umd.js +10 -4
  10. package/bundles/cdk-overlay.umd.js.map +1 -1
  11. package/bundles/cdk-portal.umd.js +10 -4
  12. package/bundles/cdk-portal.umd.js.map +1 -1
  13. package/bundles/cdk-scrolling.umd.js +29 -4
  14. package/bundles/cdk-scrolling.umd.js.map +1 -1
  15. package/bundles/cdk-table.umd.js +18 -4
  16. package/bundles/cdk-table.umd.js.map +1 -1
  17. package/bundles/cdk-testing-protractor.umd.js +12 -5
  18. package/bundles/cdk-testing-protractor.umd.js.map +1 -1
  19. package/bundles/cdk-testing-selenium-webdriver.umd.js +12 -5
  20. package/bundles/cdk-testing-selenium-webdriver.umd.js.map +1 -1
  21. package/bundles/cdk-testing-testbed.umd.js +11 -6
  22. package/bundles/cdk-testing-testbed.umd.js.map +1 -1
  23. package/bundles/cdk-testing.umd.js +10 -4
  24. package/bundles/cdk-testing.umd.js.map +1 -1
  25. package/bundles/cdk-text-field.umd.js +29 -8
  26. package/bundles/cdk-text-field.umd.js.map +1 -1
  27. package/bundles/cdk-tree.umd.js +10 -4
  28. package/bundles/cdk-tree.umd.js.map +1 -1
  29. package/bundles/cdk.umd.js +1 -1
  30. package/bundles/cdk.umd.js.map +1 -1
  31. package/drag-drop/directives/drag.d.ts +2 -0
  32. package/drag-drop/drag-events.d.ts +2 -2
  33. package/drag-drop/index.metadata.json +1 -1
  34. package/esm2015/drag-drop/directives/drag.js +50 -39
  35. package/esm2015/drag-drop/drag-events.js +1 -1
  36. package/esm2015/drag-drop/drag-ref.js +6 -2
  37. package/esm2015/drag-drop/drag-styling.js +4 -2
  38. package/esm2015/overlay/overlay-reference.js +1 -1
  39. package/esm2015/scrolling/fixed-size-virtual-scroll.js +1 -1
  40. package/esm2015/scrolling/virtual-scroll-viewport.js +17 -1
  41. package/esm2015/table/table.js +10 -2
  42. package/esm2015/testing/protractor/protractor-element.js +3 -2
  43. package/esm2015/testing/selenium-webdriver/selenium-web-driver-element.js +3 -2
  44. package/esm2015/text-field/autosize.js +29 -9
  45. package/esm2015/version.js +1 -1
  46. package/fesm2015/cdk.js +1 -1
  47. package/fesm2015/cdk.js.map +1 -1
  48. package/fesm2015/drag-drop.js +57 -40
  49. package/fesm2015/drag-drop.js.map +1 -1
  50. package/fesm2015/scrolling.js +16 -1
  51. package/fesm2015/scrolling.js.map +1 -1
  52. package/fesm2015/table.js +9 -1
  53. package/fesm2015/table.js.map +1 -1
  54. package/fesm2015/testing/protractor.js +2 -1
  55. package/fesm2015/testing/protractor.js.map +1 -1
  56. package/fesm2015/testing/selenium-webdriver.js +2 -1
  57. package/fesm2015/testing/selenium-webdriver.js.map +1 -1
  58. package/fesm2015/text-field.js +28 -8
  59. package/fesm2015/text-field.js.map +1 -1
  60. package/overlay/overlay-reference.d.ts +9 -1
  61. package/package.json +2 -5
  62. package/schematics/ng-add/index.js +1 -1
  63. package/schematics/ng-add/index.mjs +1 -1
  64. package/scrolling/index.metadata.json +1 -1
  65. package/scrolling/virtual-scroll-viewport.d.ts +9 -0
  66. package/table/index.metadata.json +1 -1
  67. package/table/table.d.ts +6 -1
  68. package/text-field/autosize.d.ts +3 -2
  69. package/text-field/index.metadata.json +1 -1
@@ -230,10 +230,16 @@
230
230
  r[k] = a[j];
231
231
  return r;
232
232
  }
233
- function __spreadArray(to, from) {
234
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
235
- to[j] = from[i];
236
- return to;
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 },] }],