@angular/cdk 13.2.2 → 13.2.5

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 (71) hide show
  1. package/a11y/a11y-module.d.ts +2 -3
  2. package/drag-drop/drag-ref.d.ts +3 -1
  3. package/drag-drop/parent-position-tracker.d.ts +11 -3
  4. package/esm2020/a11y/a11y-module.mjs +4 -5
  5. package/esm2020/drag-drop/drag-ref.mjs +27 -17
  6. package/esm2020/drag-drop/drop-list-ref.mjs +2 -2
  7. package/esm2020/drag-drop/parent-position-tracker.mjs +13 -5
  8. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +24 -6
  9. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +31 -10
  10. package/esm2020/scrolling/scrolling-module.mjs +4 -5
  11. package/esm2020/testing/protractor/protractor-element.mjs +8 -3
  12. package/esm2020/testing/public-api.mjs +2 -1
  13. package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +8 -3
  14. package/esm2020/testing/test-element-errors.mjs +15 -0
  15. package/esm2020/testing/test-element.mjs +1 -1
  16. package/esm2020/testing/testbed/fake-events/type-in-element.mjs +12 -3
  17. package/esm2020/testing/testbed/unit-test-element.mjs +19 -5
  18. package/esm2020/text-field/text-field-module.mjs +3 -5
  19. package/esm2020/version.mjs +1 -1
  20. package/fesm2015/a11y.mjs +4 -4
  21. package/fesm2015/a11y.mjs.map +1 -1
  22. package/fesm2015/cdk.mjs +1 -1
  23. package/fesm2015/cdk.mjs.map +1 -1
  24. package/fesm2015/drag-drop.mjs +40 -21
  25. package/fesm2015/drag-drop.mjs.map +1 -1
  26. package/fesm2015/overlay.mjs +52 -13
  27. package/fesm2015/overlay.mjs.map +1 -1
  28. package/fesm2015/scrolling.mjs +4 -4
  29. package/fesm2015/scrolling.mjs.map +1 -1
  30. package/fesm2015/testing/protractor.mjs +7 -2
  31. package/fesm2015/testing/protractor.mjs.map +1 -1
  32. package/fesm2015/testing/selenium-webdriver.mjs +7 -2
  33. package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
  34. package/fesm2015/testing/testbed.mjs +29 -7
  35. package/fesm2015/testing/testbed.mjs.map +1 -1
  36. package/fesm2015/testing.mjs +16 -1
  37. package/fesm2015/testing.mjs.map +1 -1
  38. package/fesm2015/text-field.mjs +3 -4
  39. package/fesm2015/text-field.mjs.map +1 -1
  40. package/fesm2020/a11y.mjs +4 -4
  41. package/fesm2020/a11y.mjs.map +1 -1
  42. package/fesm2020/cdk.mjs +1 -1
  43. package/fesm2020/cdk.mjs.map +1 -1
  44. package/fesm2020/drag-drop.mjs +39 -21
  45. package/fesm2020/drag-drop.mjs.map +1 -1
  46. package/fesm2020/overlay.mjs +52 -13
  47. package/fesm2020/overlay.mjs.map +1 -1
  48. package/fesm2020/scrolling.mjs +4 -4
  49. package/fesm2020/scrolling.mjs.map +1 -1
  50. package/fesm2020/testing/protractor.mjs +7 -2
  51. package/fesm2020/testing/protractor.mjs.map +1 -1
  52. package/fesm2020/testing/selenium-webdriver.mjs +7 -2
  53. package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
  54. package/fesm2020/testing/testbed.mjs +29 -7
  55. package/fesm2020/testing/testbed.mjs.map +1 -1
  56. package/fesm2020/testing.mjs +16 -1
  57. package/fesm2020/testing.mjs.map +1 -1
  58. package/fesm2020/text-field.mjs +3 -4
  59. package/fesm2020/text-field.mjs.map +1 -1
  60. package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +7 -2
  61. package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +8 -2
  62. package/package.json +1 -1
  63. package/schematics/ng-add/index.js +1 -1
  64. package/schematics/ng-add/index.mjs +1 -1
  65. package/scrolling/scrolling-module.d.ts +1 -2
  66. package/testing/public-api.d.ts +1 -0
  67. package/testing/test-element-errors.d.ts +12 -0
  68. package/testing/test-element.d.ts +4 -2
  69. package/testing/testbed/fake-events/type-in-element.d.ts +2 -2
  70. package/testing/testbed/unit-test-element.d.ts +4 -1
  71. package/text-field/text-field-module.d.ts +1 -2
@@ -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
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~13.2.2`);
31
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~13.2.5`);
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());
@@ -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
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~13.2.2`);
31
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~13.2.5`);
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());
@@ -4,7 +4,6 @@ import * as i2 from "./fixed-size-virtual-scroll";
4
4
  import * as i3 from "./virtual-for-of";
5
5
  import * as i4 from "./virtual-scroll-viewport";
6
6
  import * as i5 from "@angular/cdk/bidi";
7
- import * as i6 from "@angular/cdk/platform";
8
7
  export declare class CdkScrollableModule {
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkScrollableModule, never>;
10
9
  static ɵmod: i0.ɵɵNgModuleDeclaration<CdkScrollableModule, [typeof i1.CdkScrollable], never, [typeof i1.CdkScrollable]>;
@@ -15,6 +14,6 @@ export declare class CdkScrollableModule {
15
14
  */
16
15
  export declare class ScrollingModule {
17
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ScrollingModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollingModule, [typeof i2.CdkFixedSizeVirtualScroll, typeof i3.CdkVirtualForOf, typeof i4.CdkVirtualScrollViewport], [typeof i5.BidiModule, typeof i6.PlatformModule, typeof CdkScrollableModule], [typeof i5.BidiModule, typeof CdkScrollableModule, typeof i2.CdkFixedSizeVirtualScroll, typeof i3.CdkVirtualForOf, typeof i4.CdkVirtualScrollViewport]>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollingModule, [typeof i2.CdkFixedSizeVirtualScroll, typeof i3.CdkVirtualForOf, typeof i4.CdkVirtualScrollViewport], [typeof i5.BidiModule, typeof CdkScrollableModule], [typeof i5.BidiModule, typeof CdkScrollableModule, typeof i2.CdkFixedSizeVirtualScroll, typeof i3.CdkVirtualForOf, typeof i4.CdkVirtualScrollViewport]>;
19
18
  static ɵinj: i0.ɵɵInjectorDeclaration<ScrollingModule>;
20
19
  }
@@ -8,6 +8,7 @@
8
8
  export * from './component-harness';
9
9
  export * from './harness-environment';
10
10
  export * from './test-element';
11
+ export * from './test-element-errors';
11
12
  export * from './element-dimensions';
12
13
  export * from './text-filtering';
13
14
  export * from './change-detection';
@@ -0,0 +1,12 @@
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
+ * Returns an error which reports that no keys have been specified.
10
+ * @docs-private
11
+ */
12
+ export declare function getNoKeysSpecifiedError(): Error;
@@ -93,11 +93,13 @@ export interface TestElement {
93
93
  * Sends the given string to the input as a series of key presses. Also fires input events
94
94
  * and attempts to add the string to the Element's value. Note that some environments cannot
95
95
  * reproduce native browser behavior for keyboard shortcuts such as Tab, Ctrl + A, etc.
96
+ * @throws An error if no keys have been specified.
96
97
  */
97
98
  sendKeys(...keys: (string | TestKey)[]): Promise<void>;
98
99
  /**
99
- * Sends the given string to the input as a series of key presses. Also fires input events
100
- * and attempts to add the string to the Element's value.
100
+ * Sends the given string to the input as a series of key presses. Also fires input
101
+ * events and attempts to add the string to the Element's value.
102
+ * @throws An error if no keys have been specified.
101
103
  */
102
104
  sendKeys(modifiers: ModifierKeys, ...keys: (string | TestKey)[]): Promise<void>;
103
105
  /**
@@ -12,7 +12,7 @@ import { ModifierKeys } from '@angular/cdk/testing';
12
12
  */
13
13
  export declare function isTextInput(element: Element): element is HTMLInputElement | HTMLTextAreaElement;
14
14
  /**
15
- * Focuses an input, sets its value and dispatches
15
+ * If keys have been specified, focuses an input, sets its value and dispatches
16
16
  * the `input` event, simulating the user typing.
17
17
  * @param element Element onto which to set the value.
18
18
  * @param keys The keys to send to the element.
@@ -23,7 +23,7 @@ export declare function typeInElement(element: HTMLElement, ...keys: (string | {
23
23
  key?: string;
24
24
  })[]): void;
25
25
  /**
26
- * Focuses an input, sets its value and dispatches
26
+ * If keys have been specified, focuses an input, sets its value and dispatches
27
27
  * the `input` event, simulating the user typing.
28
28
  * @param element Element onto which to set the value.
29
29
  * @param modifiers Modifier keys that are held while typing.
@@ -90,6 +90,9 @@ export declare class UnitTestElement implements TestElement {
90
90
  * @param button Mouse button that should be pressed when dispatching the event.
91
91
  */
92
92
  private _dispatchPointerEventIfSupported;
93
- /** Dispatches all the events that are part of a mouse event sequence. */
93
+ /**
94
+ * Dispatches all the events that are part of a mouse event sequence
95
+ * and then emits a given primary event at the end, if speciifed.
96
+ */
94
97
  private _dispatchMouseEventSequence;
95
98
  }
@@ -1,9 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./autofill";
3
3
  import * as i2 from "./autosize";
4
- import * as i3 from "@angular/cdk/platform";
5
4
  export declare class TextFieldModule {
6
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<TextFieldModule, [typeof i1.CdkAutofill, typeof i2.CdkTextareaAutosize], [typeof i3.PlatformModule], [typeof i1.CdkAutofill, typeof i2.CdkTextareaAutosize]>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TextFieldModule, [typeof i1.CdkAutofill, typeof i2.CdkTextareaAutosize], never, [typeof i1.CdkAutofill, typeof i2.CdkTextareaAutosize]>;
8
7
  static ɵinj: i0.ɵɵInjectorDeclaration<TextFieldModule>;
9
8
  }