@angular/cdk 12.0.0-rc.2 → 12.0.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.
- package/a11y/focus-trap/focus-trap.d.ts +6 -2
- package/a11y/index.metadata.json +1 -1
- package/bundles/cdk-a11y.umd.js +7 -3
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +14 -12
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-platform.umd.js +19 -0
- package/bundles/cdk-platform.umd.js.map +1 -1
- package/bundles/cdk-testing.umd.js +48 -4
- package/bundles/cdk-testing.umd.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/esm2015/a11y/focus-trap/focus-trap.js +9 -4
- package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +15 -13
- package/esm2015/platform/features/shadow-dom.js +19 -1
- package/esm2015/testing/change-detection.js +8 -1
- package/esm2015/testing/component-harness.js +42 -4
- package/esm2015/version.js +1 -1
- package/fesm2015/a11y.js +8 -4
- 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/platform.js +19 -1
- package/fesm2015/platform.js.map +1 -1
- package/fesm2015/testing.js +48 -3
- package/fesm2015/testing.js.map +1 -1
- package/package.json +3 -3
- package/platform/features/shadow-dom.d.ts +5 -0
- package/platform/index.metadata.json +1 -1
- package/schematics/index.mjs +33 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +39 -0
- package/schematics/ng-add/package-config.mjs +47 -0
- package/schematics/ng-add/schema.mjs +10 -0
- package/schematics/ng-generate/drag-drop/index.mjs +39 -0
- package/schematics/ng-generate/drag-drop/schema.mjs +10 -0
- package/schematics/ng-update/data/attribute-selectors.mjs +21 -0
- package/schematics/ng-update/data/class-names.mjs +40 -0
- package/schematics/ng-update/data/constructor-checks.mjs +66 -0
- package/schematics/ng-update/data/css-selectors.mjs +15 -0
- package/schematics/ng-update/data/element-selectors.mjs +15 -0
- package/schematics/ng-update/data/index.mjs +29 -0
- package/schematics/ng-update/data/input-names.mjs +81 -0
- package/schematics/ng-update/data/method-call-checks.mjs +43 -0
- package/schematics/ng-update/data/output-names.mjs +27 -0
- package/schematics/ng-update/data/property-names.mjs +129 -0
- package/schematics/ng-update/devkit-file-system.mjs +81 -0
- package/schematics/ng-update/devkit-migration-rule.mjs +136 -0
- package/schematics/ng-update/devkit-migration.mjs +20 -0
- package/schematics/ng-update/find-stylesheets.d.ts +8 -2
- package/schematics/ng-update/find-stylesheets.js +16 -5
- package/schematics/ng-update/find-stylesheets.mjs +42 -0
- package/schematics/ng-update/html-parsing/angular.mjs +52 -0
- package/schematics/ng-update/html-parsing/elements.mjs +62 -0
- package/schematics/ng-update/index.mjs +59 -0
- package/schematics/ng-update/migrations/attribute-selectors.mjs +67 -0
- package/schematics/ng-update/migrations/class-inheritance.mjs +58 -0
- package/schematics/ng-update/migrations/class-names.mjs +90 -0
- package/schematics/ng-update/migrations/constructor-signature.mjs +135 -0
- package/schematics/ng-update/migrations/css-selectors.mjs +74 -0
- package/schematics/ng-update/migrations/element-selectors.mjs +65 -0
- package/schematics/ng-update/migrations/input-names.mjs +60 -0
- package/schematics/ng-update/migrations/method-call-arguments.mjs +61 -0
- package/schematics/ng-update/migrations/misc-template.mjs +38 -0
- package/schematics/ng-update/migrations/output-names.mjs +47 -0
- package/schematics/ng-update/migrations/property-names.mjs +59 -0
- package/schematics/ng-update/public-api.mjs +30 -0
- package/schematics/ng-update/typescript/base-types.mjs +24 -0
- package/schematics/ng-update/typescript/imports.mjs +54 -0
- package/schematics/ng-update/typescript/literal.mjs +33 -0
- package/schematics/ng-update/typescript/module-specifiers.mjs +35 -0
- package/schematics/ng-update/upgrade-data.mjs +35 -0
- package/schematics/paths.mjs +16 -0
- package/schematics/schematics.externs.js +0 -0
- package/schematics/update-tool/component-resource-collector.mjs +147 -0
- package/schematics/update-tool/file-system.mjs +18 -0
- package/schematics/update-tool/index.mjs +158 -0
- package/schematics/update-tool/logger.mjs +18 -0
- package/schematics/update-tool/migration.mjs +67 -0
- package/schematics/update-tool/public-api.mjs +28 -0
- package/schematics/update-tool/target-version.mjs +34 -0
- package/schematics/update-tool/update-recorder.mjs +10 -0
- package/schematics/update-tool/update-tool.externs.js +0 -0
- package/schematics/update-tool/utils/decorators.mjs +38 -0
- package/schematics/update-tool/utils/functions.mjs +21 -0
- package/schematics/update-tool/utils/imports.mjs +111 -0
- package/schematics/update-tool/utils/line-mappings.mjs +76 -0
- package/schematics/update-tool/utils/parse-tsconfig.mjs +19 -0
- package/schematics/update-tool/utils/property-name.mjs +28 -0
- package/schematics/update-tool/utils/virtual-host.mjs +62 -0
- package/schematics/update-tool/version-changes.mjs +39 -0
- package/schematics/utils/ast/ng-module-imports.mjs +81 -0
- package/schematics/utils/ast.mjs +79 -0
- package/schematics/utils/build-component.mjs +193 -0
- package/schematics/utils/get-project.mjs +24 -0
- package/schematics/utils/html-manipulation.mjs +89 -0
- package/schematics/utils/index.mjs +31 -0
- package/schematics/utils/parse5-element.mjs +32 -0
- package/schematics/utils/project-index-file.mjs +21 -0
- package/schematics/utils/project-main-file.mjs +23 -0
- package/schematics/utils/project-style-file.mjs +44 -0
- package/schematics/utils/project-targets.mjs +34 -0
- package/schematics/utils/project-tsconfig-paths.mjs +50 -0
- package/schematics/utils/schematic-options.mjs +55 -0
- package/schematics/utils/vendored-ast-utils/index.mjs +480 -0
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('12.0.
|
|
11
|
+
const VERSION = new Version('12.0.2');
|
|
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('12.0.
|
|
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('12.0.2');\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;;;;;;;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACXtD;;;;;;;;ACAA;;;;;;;;;;"}
|
package/fesm2015/overlay.js
CHANGED
|
@@ -625,22 +625,22 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
625
625
|
/** Add a new overlay to the list of attached overlay refs. */
|
|
626
626
|
add(overlayRef) {
|
|
627
627
|
super.add(overlayRef);
|
|
628
|
-
// tslint:disable: max-line-length
|
|
629
628
|
// Safari on iOS does not generate click events for non-interactive
|
|
630
629
|
// elements. However, we want to receive a click for any element outside
|
|
631
630
|
// the overlay. We can force a "clickable" state by setting
|
|
632
|
-
// `cursor: pointer` on the document body.
|
|
633
|
-
//
|
|
634
|
-
//
|
|
635
|
-
// tslint:enable: max-line-length
|
|
631
|
+
// `cursor: pointer` on the document body. See:
|
|
632
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#Safari_Mobile
|
|
633
|
+
// https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
|
|
636
634
|
if (!this._isAttached) {
|
|
637
|
-
this._document.body
|
|
638
|
-
|
|
635
|
+
const body = this._document.body;
|
|
636
|
+
body.addEventListener('click', this._clickListener, true);
|
|
637
|
+
body.addEventListener('auxclick', this._clickListener, true);
|
|
638
|
+
body.addEventListener('contextmenu', this._clickListener, true);
|
|
639
639
|
// click event is not fired on iOS. To make element "clickable" we are
|
|
640
640
|
// setting the cursor to pointer
|
|
641
641
|
if (this._platform.IOS && !this._cursorStyleIsSet) {
|
|
642
|
-
this._cursorOriginalValue =
|
|
643
|
-
|
|
642
|
+
this._cursorOriginalValue = body.style.cursor;
|
|
643
|
+
body.style.cursor = 'pointer';
|
|
644
644
|
this._cursorStyleIsSet = true;
|
|
645
645
|
}
|
|
646
646
|
this._isAttached = true;
|
|
@@ -649,10 +649,12 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
|
|
|
649
649
|
/** Detaches the global keyboard event listener. */
|
|
650
650
|
detach() {
|
|
651
651
|
if (this._isAttached) {
|
|
652
|
-
this._document.body
|
|
653
|
-
|
|
652
|
+
const body = this._document.body;
|
|
653
|
+
body.removeEventListener('click', this._clickListener, true);
|
|
654
|
+
body.removeEventListener('auxclick', this._clickListener, true);
|
|
655
|
+
body.removeEventListener('contextmenu', this._clickListener, true);
|
|
654
656
|
if (this._platform.IOS && this._cursorStyleIsSet) {
|
|
655
|
-
|
|
657
|
+
body.style.cursor = this._cursorOriginalValue;
|
|
656
658
|
this._cursorStyleIsSet = false;
|
|
657
659
|
}
|
|
658
660
|
this._isAttached = false;
|