@angular/cdk 19.1.0 → 19.1.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.
Files changed (51) hide show
  1. package/a11y/index.d.ts +2 -4
  2. package/dialog/index.d.ts +5 -1
  3. package/fesm2022/a11y.mjs +43 -43
  4. package/fesm2022/a11y.mjs.map +1 -1
  5. package/fesm2022/accordion.mjs +10 -10
  6. package/fesm2022/accordion.mjs.map +1 -1
  7. package/fesm2022/bidi.mjs +10 -10
  8. package/fesm2022/bidi.mjs.map +1 -1
  9. package/fesm2022/cdk.mjs +1 -1
  10. package/fesm2022/cdk.mjs.map +1 -1
  11. package/fesm2022/clipboard.mjs +10 -10
  12. package/fesm2022/clipboard.mjs.map +1 -1
  13. package/fesm2022/collections.mjs +3 -3
  14. package/fesm2022/collections.mjs.map +1 -1
  15. package/fesm2022/dialog.mjs +16 -12
  16. package/fesm2022/dialog.mjs.map +1 -1
  17. package/fesm2022/drag-drop.mjs +31 -31
  18. package/fesm2022/drag-drop.mjs.map +1 -1
  19. package/fesm2022/layout.mjs +10 -10
  20. package/fesm2022/layout.mjs.map +1 -1
  21. package/fesm2022/listbox.mjs +10 -10
  22. package/fesm2022/listbox.mjs.map +1 -1
  23. package/fesm2022/menu.mjs +49 -49
  24. package/fesm2022/menu.mjs.map +1 -1
  25. package/fesm2022/observers/private.mjs +3 -3
  26. package/fesm2022/observers/private.mjs.map +1 -1
  27. package/fesm2022/observers.mjs +13 -13
  28. package/fesm2022/observers.mjs.map +1 -1
  29. package/fesm2022/overlay.mjs +37 -37
  30. package/fesm2022/overlay.mjs.map +1 -1
  31. package/fesm2022/platform.mjs +7 -7
  32. package/fesm2022/platform.mjs.map +1 -1
  33. package/fesm2022/portal.mjs +16 -16
  34. package/fesm2022/portal.mjs.map +1 -1
  35. package/fesm2022/private.mjs +6 -6
  36. package/fesm2022/private.mjs.map +1 -1
  37. package/fesm2022/scrolling.mjs +35 -35
  38. package/fesm2022/scrolling.mjs.map +1 -1
  39. package/fesm2022/stepper.mjs +22 -22
  40. package/fesm2022/stepper.mjs.map +1 -1
  41. package/fesm2022/table.mjs +77 -77
  42. package/fesm2022/table.mjs.map +1 -1
  43. package/fesm2022/text-field.mjs +34 -26
  44. package/fesm2022/text-field.mjs.map +1 -1
  45. package/fesm2022/tree.mjs +25 -25
  46. package/fesm2022/tree.mjs.map +1 -1
  47. package/package.json +1 -1
  48. package/platform/index.d.ts +8 -2
  49. package/schematics/ng-add/index.js +1 -1
  50. package/schematics/ng-add/index.mjs +1 -1
  51. package/text-field/index.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cdk",
3
- "version": "19.1.0",
3
+ "version": "19.1.2",
4
4
  "description": "Angular Material Component Development Kit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,4 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ListenerOptions } from '@angular/core';
3
2
  import { Renderer2 } from '@angular/core';
4
3
 
5
4
  /**
@@ -8,7 +7,7 @@ import { Renderer2 } from '@angular/core';
8
7
  * after 19.1 and during the v19 period we support any 19.x version.
9
8
  * @docs-private
10
9
  */
11
- export declare function _bindEventWithOptions(renderer: Renderer2, target: EventTarget, eventName: string, callback: (event: any) => boolean | void, options: ListenerOptions): () => void;
10
+ export declare function _bindEventWithOptions(renderer: Renderer2, target: EventTarget, eventName: string, callback: (event: any) => boolean | void, options: _ListenerOptions): () => void;
12
11
 
13
12
  /** Gets the target of an event while accounting for Shadow DOM. */
14
13
  export declare function _getEventTarget<T extends EventTarget>(event: Event): T | null;
@@ -36,6 +35,13 @@ export declare function getSupportedInputTypes(): Set<string>;
36
35
  /** Gets whether the code is currently running in a test environment. */
37
36
  export declare function _isTestEnvironment(): boolean;
38
37
 
38
+ /** Options when binding events manually. */
39
+ export declare interface _ListenerOptions {
40
+ capture?: boolean;
41
+ once?: boolean;
42
+ passive?: boolean;
43
+ }
44
+
39
45
  /**
40
46
  * Normalizes an `AddEventListener` object to something that can be passed
41
47
  * to `addEventListener` on any browser, no matter whether it supports the
@@ -29,7 +29,7 @@ function default_1() {
29
29
  // In order to align the CDK version with other Angular dependencies that are setup by
30
30
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
31
31
  // dependencies in new CLI projects.
32
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.1.0`);
32
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.1.2`);
33
33
  // Add a task to run the package manager. This is necessary because we updated the
34
34
  // workspace "package.json" file and we want lock files to reflect the new version range.
35
35
  context.addTask(new tasks_1.NodePackageInstallTask());
@@ -29,7 +29,7 @@ function default_1() {
29
29
  // In order to align the CDK version with other Angular dependencies that are setup by
30
30
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
31
31
  // dependencies in new CLI projects.
32
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.1.0`);
32
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.1.2`);
33
33
  // Add a task to run the package manager. This is necessary because we updated the
34
34
  // workspace "package.json" file and we want lock files to reflect the new version range.
35
35
  context.addTask(new tasks_1.NodePackageInstallTask());
@@ -101,7 +101,7 @@ export declare class CdkTextareaAutosize implements AfterViewInit, DoCheck, OnDe
101
101
  get placeholder(): string;
102
102
  set placeholder(value: string);
103
103
  /** Cached height of a textarea with a single row. */
104
- private _cachedLineHeight;
104
+ private _cachedLineHeight?;
105
105
  /** Cached height of a textarea with only the placeholder. */
106
106
  private _cachedPlaceholderHeight?;
107
107
  /** Used to reference correct document/window */