@angular/cdk 12.1.1 → 12.1.2

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 (82) hide show
  1. package/a11y/index.metadata.json +1 -1
  2. package/a11y/input-modality/input-modality-detector.d.ts +0 -2
  3. package/bundles/cdk-a11y.umd.js +11 -16
  4. package/bundles/cdk-a11y.umd.js.map +1 -1
  5. package/bundles/cdk-drag-drop.umd.js +51 -38
  6. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  7. package/bundles/cdk-overlay.umd.js +1 -2
  8. package/bundles/cdk-overlay.umd.js.map +1 -1
  9. package/bundles/cdk-platform.umd.js +7 -0
  10. package/bundles/cdk-platform.umd.js.map +1 -1
  11. package/bundles/cdk-scrolling.umd.js +3 -3
  12. package/bundles/cdk-scrolling.umd.js.map +1 -1
  13. package/bundles/cdk-table.umd.js +25 -9
  14. package/bundles/cdk-table.umd.js.map +1 -1
  15. package/bundles/cdk-testing-protractor.umd.js.map +1 -1
  16. package/bundles/cdk-testing-selenium-webdriver.umd.js.map +1 -1
  17. package/bundles/cdk-testing-testbed.umd.js +4 -2
  18. package/bundles/cdk-testing-testbed.umd.js.map +1 -1
  19. package/bundles/cdk-testing.umd.js.map +1 -1
  20. package/bundles/cdk.umd.js +1 -1
  21. package/bundles/cdk.umd.js.map +1 -1
  22. package/drag-drop/drag-styling.d.ts +5 -10
  23. package/drag-drop/index.metadata.json +1 -1
  24. package/drag-drop/parent-position-tracker.d.ts +0 -2
  25. package/esm2015/a11y/fake-event-detection.js +7 -6
  26. package/esm2015/a11y/focus-monitor/focus-monitor.js +5 -5
  27. package/esm2015/a11y/input-modality/input-modality-detector.js +5 -11
  28. package/esm2015/drag-drop/drag-ref.js +25 -17
  29. package/esm2015/drag-drop/drag-styling.js +26 -16
  30. package/esm2015/drag-drop/parent-position-tracker.js +3 -6
  31. package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +3 -4
  32. package/esm2015/platform/features/shadow-dom.js +7 -1
  33. package/esm2015/scrolling/viewport-ruler.js +4 -4
  34. package/esm2015/table/cell.js +16 -4
  35. package/esm2015/table/table.js +2 -2
  36. package/esm2015/testing/protractor/protractor-element.js +1 -1
  37. package/esm2015/testing/selenium-webdriver/selenium-web-driver-element.js +1 -1
  38. package/esm2015/testing/test-element.js +1 -1
  39. package/esm2015/testing/testbed/fake-events/event-objects.js +5 -3
  40. package/esm2015/testing/testbed/unit-test-element.js +1 -1
  41. package/esm2015/version.js +1 -1
  42. package/fesm2015/a11y.js +12 -17
  43. package/fesm2015/a11y.js.map +1 -1
  44. package/fesm2015/cdk.js +1 -1
  45. package/fesm2015/cdk.js.map +1 -1
  46. package/fesm2015/drag-drop.js +49 -35
  47. package/fesm2015/drag-drop.js.map +1 -1
  48. package/fesm2015/overlay.js +2 -3
  49. package/fesm2015/overlay.js.map +1 -1
  50. package/fesm2015/platform.js +7 -1
  51. package/fesm2015/platform.js.map +1 -1
  52. package/fesm2015/scrolling.js +3 -3
  53. package/fesm2015/scrolling.js.map +1 -1
  54. package/fesm2015/table.js +15 -3
  55. package/fesm2015/table.js.map +1 -1
  56. package/fesm2015/testing/protractor.js.map +1 -1
  57. package/fesm2015/testing/selenium-webdriver.js.map +1 -1
  58. package/fesm2015/testing/testbed.js +4 -2
  59. package/fesm2015/testing/testbed.js.map +1 -1
  60. package/fesm2015/testing.js.map +1 -1
  61. package/package.json +1 -1
  62. package/platform/features/shadow-dom.d.ts +2 -0
  63. package/platform/index.metadata.json +1 -1
  64. package/schematics/ng-add/index.js +1 -1
  65. package/schematics/ng-add/index.mjs +1 -1
  66. package/schematics/ng-update/devkit-migration-rule.js +1 -1
  67. package/schematics/ng-update/devkit-migration-rule.mjs +1 -1
  68. package/schematics/ng-update/html-parsing/elements.js +3 -2
  69. package/schematics/ng-update/html-parsing/elements.mjs +3 -2
  70. package/schematics/ng-update/typescript/base-types.js +2 -2
  71. package/schematics/ng-update/typescript/base-types.mjs +2 -2
  72. package/schematics/tsconfig.json +1 -0
  73. package/schematics/update-tool/migration.d.ts +2 -2
  74. package/schematics/update-tool/migration.js +1 -1
  75. package/schematics/update-tool/migration.mjs +1 -1
  76. package/schematics/utils/build-component.js +7 -8
  77. package/schematics/utils/build-component.mjs +7 -8
  78. package/table/index.metadata.json +1 -1
  79. package/testing/protractor/protractor-element.d.ts +1 -1
  80. package/testing/selenium-webdriver/selenium-web-driver-element.d.ts +1 -1
  81. package/testing/test-element.d.ts +1 -1
  82. package/testing/testbed/unit-test-element.d.ts +1 -1
@@ -7,7 +7,7 @@ import * as i0 from '@angular/core';
7
7
  import { Injectable, NgZone, Inject, Optional, ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, InjectionToken, Directive, EventEmitter, TemplateRef, ViewContainerRef, Input, Output, NgModule } from '@angular/core';
8
8
  import { coerceCssPixelValue, coerceArray, coerceBooleanProperty } from '@angular/cdk/coercion';
9
9
  import * as i2 from '@angular/cdk/platform';
10
- import { supportsScrollBehavior, Platform } from '@angular/cdk/platform';
10
+ import { supportsScrollBehavior, _getEventTarget, Platform } from '@angular/cdk/platform';
11
11
  import { Directionality, BidiModule } from '@angular/cdk/bidi';
12
12
  import { DomPortalOutlet, TemplatePortal, PortalModule } from '@angular/cdk/portal';
13
13
  import { Subject, Subscription, merge } from 'rxjs';
@@ -598,8 +598,7 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
598
598
  this._cursorStyleIsSet = false;
599
599
  /** Click event listener that will be attached to the body propagate phase. */
600
600
  this._clickListener = (event) => {
601
- // Get the target through the `composedPath` if possible to account for shadow DOM.
602
- const target = event.composedPath ? event.composedPath()[0] : event.target;
601
+ const target = _getEventTarget(event);
603
602
  // We copy the array because the original may be modified asynchronously if the
604
603
  // outsidePointerEvents listener decides to detach overlays resulting in index errors inside
605
604
  // the for loop.