@angular/cdk 21.0.0-next.3 → 21.0.0-next.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.
package/fesm2022/cdk.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Version } from '@angular/core';
2
2
 
3
3
  /** Current version of the Angular Component Development Kit. */
4
- const VERSION = new Version('21.0.0-next.3');
4
+ const VERSION = new Version('21.0.0-next.5');
5
5
 
6
6
  export { VERSION };
7
7
  //# sourceMappingURL=cdk.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cdk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('21.0.0-next.3');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"cdk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/cdk/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('21.0.0-next.5');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
package/fesm2022/menu.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, InjectionToken, Optional, SkipSelf, Inject, inject, Injectable, Injector, ViewContainerRef, EventEmitter, NgZone, RendererFactory2, ElementRef, ChangeDetectorRef, Renderer2, booleanAttribute, Input, Output, QueryList, signal, computed, ContentChildren, NgModule } from '@angular/core';
2
+ import { Directive, InjectionToken, inject, Injectable, Injector, ViewContainerRef, EventEmitter, NgZone, RendererFactory2, ElementRef, ChangeDetectorRef, Renderer2, booleanAttribute, Input, Output, QueryList, signal, computed, ContentChildren, NgModule } from '@angular/core';
3
3
  import { startWith, debounceTime, distinctUntilChanged, takeUntil, mergeMap, mapTo, mergeAll, switchMap, skipWhile, skip } from 'rxjs/operators';
4
4
  import { UniqueSelectionDispatcher } from './unique-selection-dispatcher.mjs';
5
5
  import { Subject, merge, partition } from 'rxjs';
@@ -64,14 +64,12 @@ const MENU_STACK = new InjectionToken('cdk-menu-stack');
64
64
  /** Provider that provides the parent menu stack, or a new menu stack if there is no parent one. */
65
65
  const PARENT_OR_NEW_MENU_STACK_PROVIDER = {
66
66
  provide: MENU_STACK,
67
- deps: [[new Optional(), new SkipSelf(), new Inject(MENU_STACK)]],
68
- useFactory: (parentMenuStack) => parentMenuStack || new MenuStack(),
67
+ useFactory: () => inject(MENU_STACK, { optional: true, skipSelf: true }) || new MenuStack(),
69
68
  };
70
69
  /** Provider that provides the parent menu stack, or a new inline menu stack if there is no parent one. */
71
70
  const PARENT_OR_NEW_INLINE_MENU_STACK_PROVIDER = (orientation) => ({
72
71
  provide: MENU_STACK,
73
- deps: [[new Optional(), new SkipSelf(), new Inject(MENU_STACK)]],
74
- useFactory: (parentMenuStack) => parentMenuStack || MenuStack.inline(orientation),
72
+ useFactory: () => inject(MENU_STACK, { optional: true, skipSelf: true }) || MenuStack.inline(orientation),
75
73
  });
76
74
  /**
77
75
  * MenuStack allows subscribers to listen for close events (when a MenuStackItem is popped off