@angular/cdk 10.2.3 → 10.2.7

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 (56) hide show
  1. package/bundles/cdk-a11y.umd.js +7 -6
  2. package/bundles/cdk-a11y.umd.js.map +1 -1
  3. package/bundles/cdk-a11y.umd.min.js +2 -2
  4. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  5. package/bundles/cdk-collections.umd.js +1 -3
  6. package/bundles/cdk-collections.umd.js.map +1 -1
  7. package/bundles/cdk-collections.umd.min.js.map +1 -1
  8. package/bundles/cdk-drag-drop.umd.js +20 -4
  9. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  10. package/bundles/cdk-drag-drop.umd.min.js +19 -19
  11. package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
  12. package/bundles/cdk-scrolling.umd.js +2 -2
  13. package/bundles/cdk-scrolling.umd.js.map +1 -1
  14. package/bundles/cdk-scrolling.umd.min.js +1 -1
  15. package/bundles/cdk-scrolling.umd.min.js.map +1 -1
  16. package/bundles/cdk.umd.js +1 -1
  17. package/bundles/cdk.umd.js.map +1 -1
  18. package/bundles/cdk.umd.min.js +1 -1
  19. package/bundles/cdk.umd.min.js.map +1 -1
  20. package/collections/index.metadata.json +1 -1
  21. package/collections/view-repeater.d.ts +1 -3
  22. package/drag-drop/drag-styling.d.ts +7 -0
  23. package/esm2015/a11y/focus-monitor/focus-monitor.js +6 -5
  24. package/esm2015/a11y/live-announcer/live-announcer.js +3 -3
  25. package/esm2015/collections/view-repeater.js +2 -4
  26. package/esm2015/drag-drop/clone-node.js +5 -2
  27. package/esm2015/drag-drop/drag-ref.js +6 -5
  28. package/esm2015/drag-drop/drag-styling.js +13 -1
  29. package/esm2015/scrolling/virtual-for-of.js +3 -3
  30. package/esm2015/version.js +1 -1
  31. package/fesm2015/a11y.js +7 -6
  32. package/fesm2015/a11y.js.map +1 -1
  33. package/fesm2015/cdk.js +1 -1
  34. package/fesm2015/cdk.js.map +1 -1
  35. package/fesm2015/collections.js +1 -3
  36. package/fesm2015/collections.js.map +1 -1
  37. package/fesm2015/drag-drop.js +20 -4
  38. package/fesm2015/drag-drop.js.map +1 -1
  39. package/fesm2015/scrolling.js +2 -2
  40. package/fesm2015/scrolling.js.map +1 -1
  41. package/package.json +1 -1
  42. package/schematics/ng-add/index.js +1 -1
  43. package/schematics/ng-update/data/css-selectors.d.ts +6 -3
  44. package/schematics/ng-update/data/css-selectors.js +1 -1
  45. package/schematics/ng-update/data/input-names.d.ts +2 -2
  46. package/schematics/ng-update/data/input-names.js +13 -13
  47. package/schematics/ng-update/data/output-names.d.ts +2 -2
  48. package/schematics/ng-update/data/output-names.js +2 -2
  49. package/schematics/ng-update/data/property-names.d.ts +2 -2
  50. package/schematics/ng-update/data/property-names.js +19 -19
  51. package/schematics/ng-update/migrations/class-inheritance.js +3 -3
  52. package/schematics/ng-update/migrations/css-selectors.d.ts +3 -2
  53. package/schematics/ng-update/migrations/css-selectors.js +4 -4
  54. package/schematics/ng-update/migrations/input-names.js +6 -6
  55. package/schematics/ng-update/migrations/output-names.js +6 -6
  56. package/schematics/ng-update/migrations/property-names.js +2 -2
@@ -1966,14 +1966,14 @@
1966
1966
  this._liveAnnouncer = _liveAnnouncer;
1967
1967
  this._contentObserver = _contentObserver;
1968
1968
  this._ngZone = _ngZone;
1969
- this._politeness = 'off';
1969
+ this._politeness = 'polite';
1970
1970
  }
1971
1971
  Object.defineProperty(CdkAriaLive.prototype, "politeness", {
1972
1972
  /** The aria-live politeness level to use when announcing messages. */
1973
1973
  get: function () { return this._politeness; },
1974
1974
  set: function (value) {
1975
1975
  var _this = this;
1976
- this._politeness = value === 'polite' || value === 'assertive' ? value : 'off';
1976
+ this._politeness = value === 'off' || value === 'assertive' ? value : 'polite';
1977
1977
  if (this._politeness === 'off') {
1978
1978
  if (this._subscription) {
1979
1979
  this._subscription.unsubscribe();
@@ -2148,11 +2148,11 @@
2148
2148
  }
2149
2149
  FocusMonitor.prototype.monitor = function (element, checkChildren) {
2150
2150
  if (checkChildren === void 0) { checkChildren = false; }
2151
- // Do nothing if we're not on the browser platform.
2152
- if (!this._platform.isBrowser) {
2151
+ var nativeElement = coercion.coerceElement(element);
2152
+ // Do nothing if we're not on the browser platform or the passed in node isn't an element.
2153
+ if (!this._platform.isBrowser || nativeElement.nodeType !== 1) {
2153
2154
  return rxjs.of(null);
2154
2155
  }
2155
- var nativeElement = coercion.coerceElement(element);
2156
2156
  // If the element is inside the shadow DOM, we need to bind our focus/blur listeners to
2157
2157
  // the shadow root, rather than the `document`, because the browser won't emit focus events
2158
2158
  // to the `document`, if focus is moving within the same shadow root.
@@ -2424,7 +2424,8 @@
2424
2424
  }
2425
2425
  CdkMonitorFocus.prototype.ngAfterViewInit = function () {
2426
2426
  var _this = this;
2427
- this._monitorSubscription = this._focusMonitor.monitor(this._elementRef, this._elementRef.nativeElement.hasAttribute('cdkMonitorSubtreeFocus'))
2427
+ var element = this._elementRef.nativeElement;
2428
+ this._monitorSubscription = this._focusMonitor.monitor(element, element.nodeType === 1 && element.hasAttribute('cdkMonitorSubtreeFocus'))
2428
2429
  .subscribe(function (origin) { return _this.cdkFocusChange.emit(origin); });
2429
2430
  };
2430
2431
  CdkMonitorFocus.prototype.ngOnDestroy = function () {