@angular/cdk 11.2.9 → 11.2.13

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/fesm2015/cdk.js CHANGED
@@ -8,7 +8,7 @@ import { Version } from '@angular/core';
8
8
  * found in the LICENSE file at https://angular.io/license
9
9
  */
10
10
  /** Current version of the Angular Component Development Kit. */
11
- const VERSION = new Version('11.2.9');
11
+ const VERSION = new Version('11.2.13');
12
12
 
13
13
  /**
14
14
  * @license
@@ -1 +1 @@
1
- {"version":3,"file":"cdk.js","sources":["../../../../../../src/cdk/version.ts","../../../../../../src/cdk/public-api.ts","../../../../../../src/cdk/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('11.2.9');\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './version';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;;;;;AAQA,AAEA;AACA,MAAa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB,CAAC;;ACXvD;;;;;;GAMG;;ACNH;;;;;;GAMG;;;;"}
1
+ {"version":3,"file":"cdk.js","sources":["../../../../../../src/cdk/version.ts","../../../../../../src/cdk/public-api.ts","../../../../../../src/cdk/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('11.2.13');\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './version';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;;;;;AAQA,AAEA;AACA,MAAa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB,CAAC;;ACXvD;;;;;;GAMG;;ACNH;;;;;;GAMG;;;;"}
@@ -621,22 +621,22 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
621
621
  /** Add a new overlay to the list of attached overlay refs. */
622
622
  add(overlayRef) {
623
623
  super.add(overlayRef);
624
- // tslint:disable: max-line-length
625
624
  // Safari on iOS does not generate click events for non-interactive
626
625
  // elements. However, we want to receive a click for any element outside
627
626
  // the overlay. We can force a "clickable" state by setting
628
- // `cursor: pointer` on the document body.
629
- // See https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#Safari_Mobile
630
- // and https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
631
- // tslint:enable: max-line-length
627
+ // `cursor: pointer` on the document body. See:
628
+ // https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#Safari_Mobile
629
+ // https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
632
630
  if (!this._isAttached) {
633
- this._document.body.addEventListener('click', this._clickListener, true);
634
- this._document.body.addEventListener('contextmenu', this._clickListener, true);
631
+ const body = this._document.body;
632
+ body.addEventListener('click', this._clickListener, true);
633
+ body.addEventListener('auxclick', this._clickListener, true);
634
+ body.addEventListener('contextmenu', this._clickListener, true);
635
635
  // click event is not fired on iOS. To make element "clickable" we are
636
636
  // setting the cursor to pointer
637
637
  if (this._platform.IOS && !this._cursorStyleIsSet) {
638
- this._cursorOriginalValue = this._document.body.style.cursor;
639
- this._document.body.style.cursor = 'pointer';
638
+ this._cursorOriginalValue = body.style.cursor;
639
+ body.style.cursor = 'pointer';
640
640
  this._cursorStyleIsSet = true;
641
641
  }
642
642
  this._isAttached = true;
@@ -645,10 +645,12 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
645
645
  /** Detaches the global keyboard event listener. */
646
646
  detach() {
647
647
  if (this._isAttached) {
648
- this._document.body.removeEventListener('click', this._clickListener, true);
649
- this._document.body.removeEventListener('contextmenu', this._clickListener, true);
648
+ const body = this._document.body;
649
+ body.removeEventListener('click', this._clickListener, true);
650
+ body.removeEventListener('auxclick', this._clickListener, true);
651
+ body.removeEventListener('contextmenu', this._clickListener, true);
650
652
  if (this._platform.IOS && this._cursorStyleIsSet) {
651
- this._document.body.style.cursor = this._cursorOriginalValue;
653
+ body.style.cursor = this._cursorOriginalValue;
652
654
  this._cursorStyleIsSet = false;
653
655
  }
654
656
  this._isAttached = false;