@angular/cdk 11.2.12 → 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/bundles/cdk-a11y.umd.js +6 -1
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +5 -5
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +14 -12
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.min.js +4 -4
- package/bundles/cdk-overlay.umd.min.js.map +1 -1
- package/bundles/cdk-testing.umd.js +41 -4
- package/bundles/cdk-testing.umd.js.map +1 -1
- package/bundles/cdk-testing.umd.min.js +4 -4
- package/bundles/cdk-testing.umd.min.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/bundles/cdk.umd.min.js +1 -1
- package/bundles/cdk.umd.min.js.map +1 -1
- package/esm2015/a11y/focus-trap/focus-trap.js +7 -2
- package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +15 -13
- package/esm2015/testing/component-harness.js +42 -4
- package/esm2015/version.js +1 -1
- package/fesm2015/a11y.js +6 -1
- package/fesm2015/a11y.js.map +1 -1
- package/fesm2015/cdk.js +1 -1
- package/fesm2015/cdk.js.map +1 -1
- package/fesm2015/overlay.js +14 -12
- package/fesm2015/overlay.js.map +1 -1
- package/fesm2015/testing.js +41 -3
- package/fesm2015/testing.js.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
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.
|
|
11
|
+
const VERSION = new Version('11.2.13');
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
package/fesm2015/cdk.js.map
CHANGED
|
@@ -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.
|
|
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;;;;"}
|
package/fesm2015/overlay.js
CHANGED
|
@@ -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
|
-
//
|
|
630
|
-
//
|
|
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
|
|
634
|
-
|
|
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 =
|
|
639
|
-
|
|
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
|
|
649
|
-
|
|
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
|
-
|
|
653
|
+
body.style.cursor = this._cursorOriginalValue;
|
|
652
654
|
this._cursorStyleIsSet = false;
|
|
653
655
|
}
|
|
654
656
|
this._isAttached = false;
|