@angular/cdk 19.1.0-next.3 → 19.1.0

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/LICENSE +1 -1
  2. package/a11y/index.d.ts +3 -4
  3. package/drag-drop/index.d.ts +0 -4
  4. package/fesm2022/a11y.mjs +81 -82
  5. package/fesm2022/a11y.mjs.map +1 -1
  6. package/fesm2022/accordion.mjs +10 -10
  7. package/fesm2022/accordion.mjs.map +1 -1
  8. package/fesm2022/bidi.mjs +10 -10
  9. package/fesm2022/bidi.mjs.map +1 -1
  10. package/fesm2022/cdk.mjs +1 -1
  11. package/fesm2022/cdk.mjs.map +1 -1
  12. package/fesm2022/clipboard.mjs +10 -10
  13. package/fesm2022/clipboard.mjs.map +1 -1
  14. package/fesm2022/collections.mjs +3 -3
  15. package/fesm2022/collections.mjs.map +1 -1
  16. package/fesm2022/dialog.mjs +10 -10
  17. package/fesm2022/dialog.mjs.map +1 -1
  18. package/fesm2022/drag-drop.mjs +93 -86
  19. package/fesm2022/drag-drop.mjs.map +1 -1
  20. package/fesm2022/layout.mjs +10 -10
  21. package/fesm2022/layout.mjs.map +1 -1
  22. package/fesm2022/listbox.mjs +10 -10
  23. package/fesm2022/listbox.mjs.map +1 -1
  24. package/fesm2022/menu.mjs +78 -52
  25. package/fesm2022/menu.mjs.map +1 -1
  26. package/fesm2022/observers/private.mjs +3 -3
  27. package/fesm2022/observers/private.mjs.map +1 -1
  28. package/fesm2022/observers.mjs +13 -13
  29. package/fesm2022/observers.mjs.map +1 -1
  30. package/fesm2022/overlay.mjs +58 -51
  31. package/fesm2022/overlay.mjs.map +1 -1
  32. package/fesm2022/platform.mjs +7 -7
  33. package/fesm2022/platform.mjs.map +1 -1
  34. package/fesm2022/portal.mjs +16 -16
  35. package/fesm2022/portal.mjs.map +1 -1
  36. package/fesm2022/private.mjs +6 -6
  37. package/fesm2022/private.mjs.map +1 -1
  38. package/fesm2022/scrolling.mjs +36 -35
  39. package/fesm2022/scrolling.mjs.map +1 -1
  40. package/fesm2022/stepper.mjs +22 -22
  41. package/fesm2022/stepper.mjs.map +1 -1
  42. package/fesm2022/table.mjs +226 -182
  43. package/fesm2022/table.mjs.map +1 -1
  44. package/fesm2022/text-field.mjs +33 -29
  45. package/fesm2022/text-field.mjs.map +1 -1
  46. package/fesm2022/tree.mjs +47 -29
  47. package/fesm2022/tree.mjs.map +1 -1
  48. package/menu/index.d.ts +7 -1
  49. package/overlay/index.d.ts +1 -2
  50. package/package.json +3 -3
  51. package/schematics/ng-add/index.js +1 -1
  52. package/schematics/ng-add/index.mjs +1 -1
  53. package/table/index.d.ts +12 -1
  54. package/text-field/index.d.ts +0 -1
  55. package/tree/index.d.ts +2 -0
package/menu/index.d.ts CHANGED
@@ -12,12 +12,14 @@ import { InjectionToken } from '@angular/core';
12
12
  import { Injector } from '@angular/core';
13
13
  import { NgZone } from '@angular/core';
14
14
  import { Observable } from 'rxjs';
15
+ import { OnChanges } from '@angular/core';
15
16
  import { OnDestroy } from '@angular/core';
16
17
  import { Optional } from '@angular/core';
17
18
  import { OverlayRef } from '@angular/cdk/overlay';
18
19
  import { QueryList } from '@angular/core';
19
20
  import { Renderer2 } from '@angular/core';
20
21
  import { ScrollStrategy } from '@angular/cdk/overlay';
22
+ import { SimpleChanges } from '@angular/core';
21
23
  import { Subject } from 'rxjs';
22
24
  import { TemplatePortal } from '@angular/cdk/portal';
23
25
  import { TemplateRef } from '@angular/core';
@@ -150,6 +152,7 @@ export declare class CdkMenuBar extends CdkMenuBase implements AfterContentInit
150
152
  * This class can be extended to create custom menu types.
151
153
  */
152
154
  export declare abstract class CdkMenuBase extends CdkMenuGroup implements Menu, AfterContentInit, OnDestroy {
155
+ private _focusMonitor;
153
156
  protected ngZone: NgZone;
154
157
  private _renderer;
155
158
  /** The menu's native DOM host element. */
@@ -221,6 +224,8 @@ export declare abstract class CdkMenuBase extends CdkMenuGroup implements Menu,
221
224
  * with the latest menu item under mouse focus.
222
225
  */
223
226
  private _setUpPointerTracker;
227
+ /** Handles focus landing on the host element of the menu. */
228
+ private _handleFocus;
224
229
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuBase, never>;
225
230
  static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuBase, never, never, { "id": { "alias": "id"; "required": false; }; }, {}, ["items"], never, true, never>;
226
231
  }
@@ -413,7 +418,7 @@ export declare class CdkMenuModule {
413
418
  * If it is inside of a Menu it will open the attached Submenu on hover regardless of its sibling
414
419
  * state.
415
420
  */
416
- export declare class CdkMenuTrigger extends CdkMenuTriggerBase implements OnDestroy {
421
+ export declare class CdkMenuTrigger extends CdkMenuTriggerBase implements OnChanges, OnDestroy {
417
422
  private readonly _elementRef;
418
423
  private readonly _overlay;
419
424
  private readonly _ngZone;
@@ -437,6 +442,7 @@ export declare class CdkMenuTrigger extends CdkMenuTriggerBase implements OnDest
437
442
  * Get a reference to the rendered Menu if the Menu is open and rendered in the DOM.
438
443
  */
439
444
  getMenu(): Menu | undefined;
445
+ ngOnChanges(changes: SimpleChanges): void;
440
446
  ngOnDestroy(): void;
441
447
  /**
442
448
  * Handles keyboard events for the menu item.
@@ -854,15 +854,14 @@ export declare class OverlayModule {
854
854
  export declare class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
855
855
  private _platform;
856
856
  private _ngZone;
857
- private _renderer;
858
857
  private _cursorOriginalValue;
859
858
  private _cursorStyleIsSet;
860
859
  private _pointerDownEventTarget;
861
- private _cleanups;
862
860
  /** Add a new overlay to the list of attached overlay refs. */
863
861
  add(overlayRef: OverlayRef): void;
864
862
  /** Detaches the global keyboard event listener. */
865
863
  protected detach(): void;
864
+ private _addEventListeners;
866
865
  /** Store pointerdown event target to track origin of click. */
867
866
  private _pointerDownListener;
868
867
  /** Click event listener that will be attached to the body propagate phase. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cdk",
3
- "version": "19.1.0-next.3",
3
+ "version": "19.1.0",
4
4
  "description": "Angular Material Component Development Kit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -158,8 +158,8 @@
158
158
  }
159
159
  },
160
160
  "peerDependencies": {
161
- "@angular/core": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
162
- "@angular/common": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
161
+ "@angular/core": "^19.0.0 || ^20.0.0",
162
+ "@angular/common": "^19.0.0 || ^20.0.0",
163
163
  "rxjs": "^6.5.3 || ^7.4.0"
164
164
  },
165
165
  "dependencies": {
@@ -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-next.3`);
32
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.1.0`);
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-next.3`);
32
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.1.0`);
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());
package/table/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import { EventEmitter } from '@angular/core';
11
11
  import * as i0 from '@angular/core';
12
12
  import * as i1 from '@angular/cdk/scrolling';
13
13
  import { InjectionToken } from '@angular/core';
14
+ import { Injector } from '@angular/core';
14
15
  import { IterableChanges } from '@angular/core';
15
16
  import { IterableDiffer } from '@angular/core';
16
17
  import { IterableDiffers } from '@angular/core';
@@ -1063,12 +1064,14 @@ export declare class StickyStyler {
1063
1064
  private _isBrowser;
1064
1065
  private readonly _needsPositionStickyOnElement;
1065
1066
  private readonly _positionListener?;
1067
+ private readonly _tableInjector?;
1066
1068
  private _elemSizeCache;
1067
1069
  private _resizeObserver;
1068
1070
  private _updatedStickyColumnsParamsToReplay;
1069
1071
  private _stickyColumnsReplayTimeout;
1070
1072
  private _cachedCellWidths;
1071
1073
  private readonly _borderCellCss;
1074
+ private _destroyed;
1072
1075
  /**
1073
1076
  * @param _isNativeHtmlTable Whether the sticky logic should be based on a table
1074
1077
  * that uses the native `<table>` element.
@@ -1082,8 +1085,9 @@ export declare class StickyStyler {
1082
1085
  * the component stylesheet for _stickCellCss.
1083
1086
  * @param _positionListener A listener that is notified of changes to sticky rows/columns
1084
1087
  * and their dimensions.
1088
+ * @param _tableInjector The table's Injector.
1085
1089
  */
1086
- constructor(_isNativeHtmlTable: boolean, _stickCellCss: string, direction: Direction, _coalescedStyleScheduler: _CoalescedStyleScheduler, _isBrowser?: boolean, _needsPositionStickyOnElement?: boolean, _positionListener?: StickyPositioningListener | undefined);
1090
+ constructor(_isNativeHtmlTable: boolean, _stickCellCss: string, direction: Direction, _coalescedStyleScheduler: _CoalescedStyleScheduler, _isBrowser?: boolean, _needsPositionStickyOnElement?: boolean, _positionListener?: StickyPositioningListener | undefined, _tableInjector?: Injector | undefined);
1087
1091
  /**
1088
1092
  * Clears the sticky positioning styles from the row and its cells by resetting the `position`
1089
1093
  * style, setting the zIndex to 0, and unsetting each provided sticky direction.
@@ -1123,6 +1127,8 @@ export declare class StickyStyler {
1123
1127
  * the tfoot element.
1124
1128
  */
1125
1129
  updateStickyFooterContainer(tableElement: Element, stickyStates: boolean[]): void;
1130
+ /** Triggered by the table's OnDestroy hook. */
1131
+ destroy(): void;
1126
1132
  /**
1127
1133
  * Removes the sticky style on the element by removing the sticky cell CSS class, re-evaluating
1128
1134
  * the zIndex, removing each of the provided sticky directions, and removing the
@@ -1175,6 +1181,11 @@ export declare class StickyStyler {
1175
1181
  private _removeFromStickyColumnReplayQueue;
1176
1182
  /** Update _elemSizeCache with the observed sizes. */
1177
1183
  private _updateCachedSizes;
1184
+ /**
1185
+ * Invoke afterNextRender with the table's injector, falling back to CoalescedStyleScheduler
1186
+ * if the injector was not provided.
1187
+ */
1188
+ private _afterNextRender;
1178
1189
  }
1179
1190
 
1180
1191
  export declare interface StickyUpdate {
@@ -24,7 +24,6 @@ export declare type AutofillEvent = {
24
24
  export declare class AutofillMonitor implements OnDestroy {
25
25
  private _platform;
26
26
  private _ngZone;
27
- private _renderer;
28
27
  private _styleLoader;
29
28
  private _monitoredElements;
30
29
  constructor(...args: unknown[]);
package/tree/index.d.ts CHANGED
@@ -363,6 +363,8 @@ export declare class CdkTree<T, K = T> implements AfterContentChecked, AfterCont
363
363
  private _updateKeyManagerItems;
364
364
  /** Traverse the flattened node data and compute parents, levels, and group data. */
365
365
  private _calculateParents;
366
+ /** Invokes a callback with all node expansion keys. */
367
+ private _forEachExpansionKey;
366
368
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkTree<any, any>, never>;
367
369
  static ɵcmp: i0.ɵɵComponentDeclaration<CdkTree<any, any>, "cdk-tree", ["cdkTree"], { "dataSource": { "alias": "dataSource"; "required": false; }; "treeControl": { "alias": "treeControl"; "required": false; }; "levelAccessor": { "alias": "levelAccessor"; "required": false; }; "childrenAccessor": { "alias": "childrenAccessor"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "expansionKey": { "alias": "expansionKey"; "required": false; }; }, {}, ["_nodeDefs"], never, true, never>;
368
370
  }