@angular/cdk 11.2.2 → 11.2.6

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 (55) hide show
  1. package/_a11y.scss +2 -0
  2. package/_overlay.scss +6 -7
  3. package/a11y/_a11y.scss +2 -0
  4. package/a11y/fake-event-detection.d.ts +11 -0
  5. package/a11y/focus-trap/focus-trap.d.ts +4 -4
  6. package/a11y/index.metadata.json +1 -1
  7. package/a11y/public-api.d.ts +1 -1
  8. package/accordion/accordion.d.ts +0 -1
  9. package/accordion/index.metadata.json +1 -1
  10. package/bundles/cdk-a11y.umd.js +35 -18
  11. package/bundles/cdk-a11y.umd.js.map +1 -1
  12. package/bundles/cdk-a11y.umd.min.js +6 -6
  13. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  14. package/bundles/cdk-accordion.umd.js +5 -7
  15. package/bundles/cdk-accordion.umd.js.map +1 -1
  16. package/bundles/cdk-accordion.umd.min.js +1 -1
  17. package/bundles/cdk-accordion.umd.min.js.map +1 -1
  18. package/bundles/cdk-platform.umd.js +3 -2
  19. package/bundles/cdk-platform.umd.js.map +1 -1
  20. package/bundles/cdk-platform.umd.min.js +3 -3
  21. package/bundles/cdk-platform.umd.min.js.map +1 -1
  22. package/bundles/cdk-table.umd.js +2 -2
  23. package/bundles/cdk-table.umd.js.map +1 -1
  24. package/bundles/cdk-table.umd.min.js.map +1 -1
  25. package/bundles/cdk.umd.js +1 -1
  26. package/bundles/cdk.umd.js.map +1 -1
  27. package/bundles/cdk.umd.min.js +1 -1
  28. package/bundles/cdk.umd.min.js.map +1 -1
  29. package/esm2015/a11y/fake-event-detection.js +27 -0
  30. package/esm2015/a11y/focus-monitor/focus-monitor.js +16 -9
  31. package/esm2015/a11y/focus-trap/focus-trap.js +5 -5
  32. package/esm2015/a11y/public-api.js +2 -2
  33. package/esm2015/accordion/accordion.js +6 -8
  34. package/esm2015/platform/features/scrolling.js +4 -3
  35. package/esm2015/table/cell.js +3 -3
  36. package/esm2015/version.js +1 -1
  37. package/fesm2015/a11y.js +35 -19
  38. package/fesm2015/a11y.js.map +1 -1
  39. package/fesm2015/accordion.js +5 -7
  40. package/fesm2015/accordion.js.map +1 -1
  41. package/fesm2015/cdk.js +1 -1
  42. package/fesm2015/cdk.js.map +1 -1
  43. package/fesm2015/platform.js +3 -2
  44. package/fesm2015/platform.js.map +1 -1
  45. package/fesm2015/table.js +2 -2
  46. package/fesm2015/table.js.map +1 -1
  47. package/overlay/_overlay.scss +6 -7
  48. package/package.json +1 -1
  49. package/schematics/ng-add/index.js +1 -1
  50. package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +1 -1
  51. package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +1 -1
  52. package/schematics/paths.d.ts +11 -0
  53. package/schematics/paths.js +16 -0
  54. package/a11y/fake-mousedown.d.ts +0 -15
  55. package/esm2015/a11y/fake-mousedown.js +0 -18
@@ -1,5 +1,3 @@
1
- @import '../a11y/a11y';
2
-
3
1
  // We want overlays to always appear over user content, so set a baseline
4
2
  // very high z-index for the overlay container, which is where we create the new
5
3
  // stacking context for all overlays.
@@ -82,11 +80,12 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
82
80
  &.cdk-overlay-backdrop-showing {
83
81
  opacity: 1;
84
82
 
85
- // In high contrast mode the rgba background will become solid so we need to fall back
86
- // to making it opaque using `opacity`. Note that we can't use the `cdk-high-contrast`
87
- // mixin, because we can't normalize the import path to the _a11y.scss both for the
88
- // source and when this file is distributed. See #10908.
89
- @include cdk-high-contrast(active, off) {
83
+ // Note that we can't import and use the `high-contrast` mixin from `_a11y.scss`, because
84
+ // this file will be copied to the top-level `cdk` package when putting together the files
85
+ // for npm. Any relative import paths we use here will become invalid once the file is copied.
86
+ .cdk-high-contrast-active & {
87
+ // In high contrast mode the rgba background will become solid
88
+ // so we need to fall back to making it opaque using `opacity`.
90
89
  opacity: 0.6;
91
90
  }
92
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cdk",
3
- "version": "11.2.2",
3
+ "version": "11.2.6",
4
4
  "description": "Angular Material Component Development Kit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,7 @@ function default_1() {
28
28
  // In order to align the CDK version with other Angular dependencies that are setup by
29
29
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
30
30
  // dependencies in new CLI projects.
31
- package_config_1.addPackageToPackageJson(host, '@angular/cdk', `~11.2.1-sha-5b30c4cfc`);
31
+ package_config_1.addPackageToPackageJson(host, '@angular/cdk', `~11.2.5-sha-b79a2d53a`);
32
32
  // Add a task to run the package manager. This is necessary because we updated the
33
33
  // workspace "package.json" file and we want lock files to reflect the new version range.
34
34
  context.addTask(new tasks_1.NodePackageInstallTask());
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  /* Animate items as they're being sorted. */
41
- .cdk-drop-dragging .cdk-drag {
41
+ .cdk-drop-list-dragging .cdk-drag {
42
42
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
43
43
  }
44
44
 
@@ -30,7 +30,7 @@ export class <%= classify(name) %>Component {
30
30
  'Walk dog'
31
31
  ];
32
32
 
33
- drop(event: CdkDragDrop<string[]>) {
33
+ drop(event: CdkDragDrop<string[]>): void {
34
34
  if (event.previousContainer === event.container) {
35
35
  moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);
36
36
  } else {
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ /** Path to the schematic collection for non-migration schematics. */
9
+ export declare const COLLECTION_PATH: string;
10
+ /** Path to the schematic collection that includes the migrations. */
11
+ export declare const MIGRATION_PATH: string;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.io/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.MIGRATION_PATH = exports.COLLECTION_PATH = void 0;
11
+ const path_1 = require("path");
12
+ /** Path to the schematic collection for non-migration schematics. */
13
+ exports.COLLECTION_PATH = path_1.join(__dirname, 'collection.json');
14
+ /** Path to the schematic collection that includes the migrations. */
15
+ exports.MIGRATION_PATH = path_1.join(__dirname, 'migration.json');
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0aHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL3NjaGVtYXRpY3MvcGF0aHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7O0FBRUgsK0JBQTBCO0FBRTFCLHFFQUFxRTtBQUN4RCxRQUFBLGVBQWUsR0FBRyxXQUFJLENBQUMsU0FBUyxFQUFFLGlCQUFpQixDQUFDLENBQUM7QUFFbEUscUVBQXFFO0FBQ3hELFFBQUEsY0FBYyxHQUFHLFdBQUksQ0FBQyxTQUFTLEVBQUUsZ0JBQWdCLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge2pvaW59IGZyb20gJ3BhdGgnO1xuXG4vKiogUGF0aCB0byB0aGUgc2NoZW1hdGljIGNvbGxlY3Rpb24gZm9yIG5vbi1taWdyYXRpb24gc2NoZW1hdGljcy4gKi9cbmV4cG9ydCBjb25zdCBDT0xMRUNUSU9OX1BBVEggPSBqb2luKF9fZGlybmFtZSwgJ2NvbGxlY3Rpb24uanNvbicpO1xuXG4vKiogUGF0aCB0byB0aGUgc2NoZW1hdGljIGNvbGxlY3Rpb24gdGhhdCBpbmNsdWRlcyB0aGUgbWlncmF0aW9ucy4gKi9cbmV4cG9ydCBjb25zdCBNSUdSQVRJT05fUEFUSCA9IGpvaW4oX19kaXJuYW1lLCAnbWlncmF0aW9uLmpzb24nKTtcbiJdfQ==
@@ -1,15 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /**
9
- * Screenreaders will often fire fake mousedown events when a focusable element
10
- * is activated using the keyboard. We can typically distinguish between these faked
11
- * mousedown events and real mousedown events using the "buttons" property. While
12
- * real mousedowns will indicate the mouse button that was pressed (e.g. "1" for
13
- * the left mouse button), faked mousedowns will usually set the property value to 0.
14
- */
15
- export declare function isFakeMousedownFromScreenReader(event: MouseEvent): boolean;
@@ -1,18 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /**
9
- * Screenreaders will often fire fake mousedown events when a focusable element
10
- * is activated using the keyboard. We can typically distinguish between these faked
11
- * mousedown events and real mousedown events using the "buttons" property. While
12
- * real mousedowns will indicate the mouse button that was pressed (e.g. "1" for
13
- * the left mouse button), faked mousedowns will usually set the property value to 0.
14
- */
15
- export function isFakeMousedownFromScreenReader(event) {
16
- return event.buttons === 0;
17
- }
18
- //# sour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