@angular/cdk 11.2.0 → 11.2.4
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.scss +2 -0
- package/_overlay.scss +6 -5
- package/a11y/_a11y.import.scss +1 -0
- package/a11y/_a11y.scss +2 -0
- package/a11y/fake-event-detection.d.ts +11 -0
- package/a11y/index.metadata.json +1 -1
- package/a11y/public-api.d.ts +1 -1
- package/accordion/accordion.d.ts +0 -1
- package/accordion/index.metadata.json +1 -1
- package/bundles/cdk-a11y.umd.js +31 -14
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +6 -6
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-accordion.umd.js +5 -7
- package/bundles/cdk-accordion.umd.js.map +1 -1
- package/bundles/cdk-accordion.umd.min.js +1 -1
- package/bundles/cdk-accordion.umd.min.js.map +1 -1
- package/bundles/cdk-clipboard.umd.js +7 -1
- package/bundles/cdk-clipboard.umd.js.map +1 -1
- package/bundles/cdk-clipboard.umd.min.js +2 -2
- package/bundles/cdk-clipboard.umd.min.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.js +1 -1
- package/bundles/cdk-drag-drop.umd.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.min.js +1 -1
- package/bundles/cdk-drag-drop.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/clipboard/copy-to-clipboard.d.ts +5 -0
- package/clipboard/index.metadata.json +1 -1
- package/esm2015/a11y/fake-event-detection.js +27 -0
- package/esm2015/a11y/focus-monitor/focus-monitor.js +16 -9
- package/esm2015/a11y/public-api.js +2 -2
- package/esm2015/accordion/accordion.js +6 -8
- package/esm2015/clipboard/copy-to-clipboard.js +7 -2
- package/esm2015/drag-drop/directives/drag.js +2 -2
- package/esm2015/version.js +1 -1
- package/fesm2015/a11y.js +31 -15
- package/fesm2015/a11y.js.map +1 -1
- package/fesm2015/accordion.js +5 -7
- package/fesm2015/accordion.js.map +1 -1
- package/fesm2015/cdk.js +1 -1
- package/fesm2015/cdk.js.map +1 -1
- package/fesm2015/clipboard.js +7 -2
- package/fesm2015/clipboard.js.map +1 -1
- package/fesm2015/drag-drop.js +1 -1
- package/fesm2015/drag-drop.js.map +1 -1
- package/overlay/_overlay.import.scss +1 -0
- package/overlay/_overlay.scss +6 -5
- package/overlay-prebuilt.css +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +1 -1
- package/text-field/_text-field.import.scss +1 -0
- package/a11y/fake-mousedown.d.ts +0 -15
- package/esm2015/a11y/fake-mousedown.js +0 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward 'overlay';
|
package/overlay/_overlay.scss
CHANGED
|
@@ -80,11 +80,12 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
|
80
80
|
&.cdk-overlay-backdrop-showing {
|
|
81
81
|
opacity: 1;
|
|
82
82
|
|
|
83
|
-
//
|
|
84
|
-
//
|
|
85
|
-
//
|
|
86
|
-
|
|
87
|
-
|
|
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`.
|
|
88
89
|
opacity: 0.6;
|
|
89
90
|
}
|
|
90
91
|
}
|
package/overlay-prebuilt.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}
|
|
1
|
+
.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
|
package/package.json
CHANGED
|
@@ -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.
|
|
31
|
+
package_config_1.addPackageToPackageJson(host, '@angular/cdk', `~11.2.3-sha-48e14315f`);
|
|
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());
|
|
@@ -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 @@
|
|
|
1
|
+
@forward 'text-field';
|
package/a11y/fake-mousedown.d.ts
DELETED
|
@@ -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
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFrZS1tb3VzZWRvd24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL2ExMXkvZmFrZS1tb3VzZWRvd24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUg7Ozs7OztHQU1HO0FBQ0gsTUFBTSxVQUFVLCtCQUErQixDQUFDLEtBQWlCO0lBQy9ELE9BQU8sS0FBSyxDQUFDLE9BQU8sS0FBSyxDQUFDLENBQUM7QUFDN0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG4vKipcbiAqIFNjcmVlbnJlYWRlcnMgd2lsb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