@angular/cdk 21.0.0-next.4 → 21.0.0-next.6
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/{a11y-module.mjs → _a11y-module-chunk.mjs} +6 -6
- package/fesm2022/_a11y-module-chunk.mjs.map +1 -0
- package/fesm2022/{activedescendant-key-manager.mjs → _activedescendant-key-manager-chunk.mjs} +2 -2
- package/fesm2022/_activedescendant-key-manager-chunk.mjs.map +1 -0
- package/fesm2022/{array.mjs → _array-chunk.mjs} +1 -1
- package/fesm2022/_array-chunk.mjs.map +1 -0
- package/fesm2022/{breakpoints-observer.mjs → _breakpoints-observer-chunk.mjs} +3 -3
- package/fesm2022/_breakpoints-observer-chunk.mjs.map +1 -0
- package/fesm2022/{css-pixel-value.mjs → _css-pixel-value-chunk.mjs} +1 -1
- package/fesm2022/_css-pixel-value-chunk.mjs.map +1 -0
- package/fesm2022/{data-source.mjs → _data-source-chunk.mjs} +1 -1
- package/fesm2022/_data-source-chunk.mjs.map +1 -0
- package/fesm2022/{directionality.mjs → _directionality-chunk.mjs} +1 -1
- package/fesm2022/_directionality-chunk.mjs.map +1 -0
- package/fesm2022/{dispose-view-repeater-strategy.mjs → _dispose-view-repeater-strategy-chunk.mjs} +2 -2
- package/fesm2022/_dispose-view-repeater-strategy-chunk.mjs.map +1 -0
- package/fesm2022/{element.mjs → _element-chunk.mjs} +1 -1
- package/fesm2022/_element-chunk.mjs.map +1 -0
- package/fesm2022/{fake-event-detection.mjs → _fake-event-detection-chunk.mjs} +1 -1
- package/fesm2022/_fake-event-detection-chunk.mjs.map +1 -0
- package/fesm2022/{focus-key-manager.mjs → _focus-key-manager-chunk.mjs} +2 -2
- package/fesm2022/_focus-key-manager-chunk.mjs.map +1 -0
- package/fesm2022/{focus-monitor.mjs → _focus-monitor-chunk.mjs} +7 -7
- package/fesm2022/_focus-monitor-chunk.mjs.map +1 -0
- package/fesm2022/{id-generator.mjs → _id-generator-chunk.mjs} +1 -1
- package/fesm2022/_id-generator-chunk.mjs.map +1 -0
- package/fesm2022/{keycodes2.mjs → _keycodes-chunk.mjs} +1 -1
- package/fesm2022/_keycodes-chunk.mjs.map +1 -0
- package/fesm2022/{list-key-manager.mjs → _list-key-manager-chunk.mjs} +3 -3
- package/fesm2022/_list-key-manager-chunk.mjs.map +1 -0
- package/fesm2022/{overlay-module.mjs → _overlay-module-chunk.mjs} +11 -11
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -0
- package/fesm2022/{passive-listeners.mjs → _passive-listeners-chunk.mjs} +1 -1
- package/fesm2022/_passive-listeners-chunk.mjs.map +1 -0
- package/fesm2022/{platform2.mjs → _platform-chunk.mjs} +1 -1
- package/fesm2022/_platform-chunk.mjs.map +1 -0
- package/fesm2022/{recycle-view-repeater-strategy.mjs → _recycle-view-repeater-strategy-chunk.mjs} +2 -2
- package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs.map +1 -0
- package/fesm2022/{scrolling2.mjs → _scrolling-chunk.mjs} +2 -2
- package/fesm2022/_scrolling-chunk.mjs.map +1 -0
- package/fesm2022/{selection-model.mjs → _selection-model-chunk.mjs} +1 -1
- package/fesm2022/_selection-model-chunk.mjs.map +1 -0
- package/fesm2022/{shadow-dom.mjs → _shadow-dom-chunk.mjs} +1 -1
- package/fesm2022/_shadow-dom-chunk.mjs.map +1 -0
- package/fesm2022/{style-loader.mjs → _style-loader-chunk.mjs} +1 -1
- package/fesm2022/_style-loader-chunk.mjs.map +1 -0
- package/fesm2022/{test-environment.mjs → _test-environment-chunk.mjs} +1 -1
- package/fesm2022/_test-environment-chunk.mjs.map +1 -0
- package/fesm2022/{tree-key-manager.mjs → _tree-key-manager-chunk.mjs} +3 -3
- package/fesm2022/_tree-key-manager-chunk.mjs.map +1 -0
- package/fesm2022/{typeahead.mjs → _typeahead-chunk.mjs} +2 -2
- package/fesm2022/_typeahead-chunk.mjs.map +1 -0
- package/fesm2022/{unique-selection-dispatcher.mjs → _unique-selection-dispatcher-chunk.mjs} +1 -1
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs.map +1 -0
- package/fesm2022/a11y.mjs +20 -20
- package/fesm2022/accordion.mjs +2 -2
- package/fesm2022/bidi.mjs +2 -2
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/{coercion/private.mjs → coercion-private.mjs} +1 -1
- package/fesm2022/coercion-private.mjs.map +1 -0
- package/fesm2022/coercion.mjs +3 -3
- package/fesm2022/collections.mjs +5 -5
- package/fesm2022/dialog.mjs +19 -19
- package/fesm2022/drag-drop.mjs +11 -11
- package/fesm2022/keycodes.mjs +1 -1
- package/fesm2022/layout.mjs +3 -3
- package/fesm2022/listbox.mjs +9 -9
- package/fesm2022/menu.mjs +24 -26
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{observers/private.mjs → observers-private.mjs} +1 -1
- package/fesm2022/observers-private.mjs.map +1 -0
- package/fesm2022/observers.mjs +1 -1
- package/fesm2022/overlay.mjs +15 -15
- package/fesm2022/platform.mjs +5 -5
- package/fesm2022/private.mjs +1 -1
- package/fesm2022/scrolling.mjs +10 -12
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +7 -7
- package/fesm2022/table.mjs +16 -10
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/{testing/selenium-webdriver.mjs → testing-selenium-webdriver.mjs} +2 -2
- package/fesm2022/testing-selenium-webdriver.mjs.map +1 -0
- package/fesm2022/{testing/testbed.mjs → testing-testbed.mjs} +3 -3
- package/fesm2022/testing-testbed.mjs.map +1 -0
- package/fesm2022/text-field.mjs +3 -7
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +7 -7
- package/package.json +34 -34
- package/schematics/ng-add/index.js +1 -1
- package/{a11y-module.d.d.ts → types/_a11y-module-chunk.d.ts} +2 -2
- package/{activedescendant-key-manager.d.d.ts → types/_activedescendant-key-manager-chunk.d.ts} +1 -1
- package/{focus-key-manager.d.d.ts → types/_focus-key-manager-chunk.d.ts} +2 -2
- package/{overlay-module.d.d.ts → types/_overlay-module-chunk.d.ts} +6 -6
- package/{scrolling-module.d.d.ts → types/_scrolling-module-chunk.d.ts} +3 -3
- package/{a11y/index.d.ts → types/a11y.d.ts} +9 -9
- package/{accordion/index.d.ts → types/accordion.d.ts} +1 -1
- package/{bidi/index.d.ts → types/bidi.d.ts} +1 -1
- package/{coercion/index.d.ts → types/coercion.d.ts} +1 -1
- package/{collections/index.d.ts → types/collections.d.ts} +7 -7
- package/{dialog/index.d.ts → types/dialog.d.ts} +13 -13
- package/{drag-drop/index.d.ts → types/drag-drop.d.ts} +6 -6
- package/{listbox/index.d.ts → types/listbox.d.ts} +3 -3
- package/{menu/index.d.ts → types/menu.d.ts} +15 -17
- package/{observers/index.d.ts → types/observers.d.ts} +1 -1
- package/{overlay/index.d.ts → types/overlay.d.ts} +11 -11
- package/{platform/index.d.ts → types/platform.d.ts} +1 -1
- package/{portal/index.d.ts → types/portal.d.ts} +2 -2
- package/{private/index.d.ts → types/private.d.ts} +1 -1
- package/{scrolling/index.d.ts → types/scrolling.d.ts} +4 -4
- package/{stepper/index.d.ts → types/stepper.d.ts} +4 -4
- package/{table/index.d.ts → types/table.d.ts} +8 -6
- package/{testing/selenium-webdriver/index.d.ts → types/testing-selenium-webdriver.d.ts} +1 -1
- package/{testing/testbed/index.d.ts → types/testing-testbed.d.ts} +1 -1
- package/{testing/index.d.ts → types/testing.d.ts} +1 -1
- package/{text-field/index.d.ts → types/text-field.d.ts} +1 -3
- package/{tree/index.d.ts → types/tree.d.ts} +3 -3
- package/fesm2022/a11y-module.mjs.map +0 -1
- package/fesm2022/activedescendant-key-manager.mjs.map +0 -1
- package/fesm2022/array.mjs.map +0 -1
- package/fesm2022/breakpoints-observer.mjs.map +0 -1
- package/fesm2022/coercion/private.mjs.map +0 -1
- package/fesm2022/css-pixel-value.mjs.map +0 -1
- package/fesm2022/data-source.mjs.map +0 -1
- package/fesm2022/directionality.mjs.map +0 -1
- package/fesm2022/dispose-view-repeater-strategy.mjs.map +0 -1
- package/fesm2022/element.mjs.map +0 -1
- package/fesm2022/fake-event-detection.mjs.map +0 -1
- package/fesm2022/focus-key-manager.mjs.map +0 -1
- package/fesm2022/focus-monitor.mjs.map +0 -1
- package/fesm2022/id-generator.mjs.map +0 -1
- package/fesm2022/keycodes2.mjs.map +0 -1
- package/fesm2022/list-key-manager.mjs.map +0 -1
- package/fesm2022/observers/private.mjs.map +0 -1
- package/fesm2022/overlay-module.mjs.map +0 -1
- package/fesm2022/passive-listeners.mjs.map +0 -1
- package/fesm2022/platform2.mjs.map +0 -1
- package/fesm2022/recycle-view-repeater-strategy.mjs.map +0 -1
- package/fesm2022/scrolling2.mjs.map +0 -1
- package/fesm2022/selection-model.mjs.map +0 -1
- package/fesm2022/shadow-dom.mjs.map +0 -1
- package/fesm2022/style-loader.mjs.map +0 -1
- package/fesm2022/test-environment.mjs.map +0 -1
- package/fesm2022/testing/selenium-webdriver.mjs.map +0 -1
- package/fesm2022/testing/testbed.mjs.map +0 -1
- package/fesm2022/tree-key-manager.mjs.map +0 -1
- package/fesm2022/typeahead.mjs.map +0 -1
- package/fesm2022/unique-selection-dispatcher.mjs.map +0 -1
- package/overlay/_index-deprecated.scss +0 -13
- /package/{bidi-module.d.d.ts → types/_bidi-module-chunk.d.ts} +0 -0
- /package/{data-source.d.d.ts → types/_data-source-chunk.d.ts} +0 -0
- /package/{focus-monitor.d.d.ts → types/_focus-monitor-chunk.d.ts} +0 -0
- /package/{harness-environment.d.d.ts → types/_harness-environment-chunk.d.ts} +0 -0
- /package/{list-key-manager.d.d.ts → types/_list-key-manager-chunk.d.ts} +0 -0
- /package/{number-property.d.d.ts → types/_number-property-chunk.d.ts} +0 -0
- /package/{platform.d.d.ts → types/_platform-chunk.d.ts} +0 -0
- /package/{portal-directives.d.d.ts → types/_portal-directives-chunk.d.ts} +0 -0
- /package/{selection-model.d.d.ts → types/_selection-model-chunk.d.ts} +0 -0
- /package/{style-loader.d.d.ts → types/_style-loader-chunk.d.ts} +0 -0
- /package/{tree-key-manager-strategy.d.d.ts → types/_tree-key-manager-strategy-chunk.d.ts} +0 -0
- /package/{unique-selection-dispatcher.d.d.ts → types/_unique-selection-dispatcher-chunk.d.ts} +0 -0
- /package/{view-repeater.d.d.ts → types/_view-repeater-chunk.d.ts} +0 -0
- /package/{index.d.ts → types/cdk.d.ts} +0 -0
- /package/{clipboard/index.d.ts → types/clipboard.d.ts} +0 -0
- /package/{coercion/private/index.d.ts → types/coercion-private.d.ts} +0 -0
- /package/{keycodes/index.d.ts → types/keycodes.d.ts} +0 -0
- /package/{layout/index.d.ts → types/layout.d.ts} +0 -0
- /package/{observers/private/index.d.ts → types/observers-private.d.ts} +0 -0
package/fesm2022/menu.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, InjectionToken,
|
|
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
|
-
import { UniqueSelectionDispatcher } from './
|
|
4
|
+
import { UniqueSelectionDispatcher } from './_unique-selection-dispatcher-chunk.mjs';
|
|
5
5
|
import { Subject, merge, partition } from 'rxjs';
|
|
6
|
-
import { _IdGenerator } from './
|
|
7
|
-
import { createRepositionScrollStrategy, createOverlayRef, OverlayConfig, createFlexibleConnectedPositionStrategy, STANDARD_DROPDOWN_BELOW_POSITIONS, STANDARD_DROPDOWN_ADJACENT_POSITIONS, OverlayModule } from './
|
|
6
|
+
import { _IdGenerator } from './_id-generator-chunk.mjs';
|
|
7
|
+
import { createRepositionScrollStrategy, createOverlayRef, OverlayConfig, createFlexibleConnectedPositionStrategy, STANDARD_DROPDOWN_BELOW_POSITIONS, STANDARD_DROPDOWN_ADJACENT_POSITIONS, OverlayModule } from './_overlay-module-chunk.mjs';
|
|
8
8
|
import { TemplatePortal } from './portal.mjs';
|
|
9
|
-
import { ENTER, SPACE, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW, TAB, ESCAPE } from './
|
|
10
|
-
import { InputModalityDetector, FocusMonitor } from './
|
|
11
|
-
import { Directionality } from './
|
|
9
|
+
import { ENTER, SPACE, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW, TAB, ESCAPE } from './_keycodes-chunk.mjs';
|
|
10
|
+
import { InputModalityDetector, FocusMonitor } from './_focus-monitor-chunk.mjs';
|
|
11
|
+
import { Directionality } from './_directionality-chunk.mjs';
|
|
12
12
|
import { hasModifierKey } from './keycodes.mjs';
|
|
13
|
-
import { _getEventTarget } from './
|
|
14
|
-
import { FocusKeyManager } from './
|
|
13
|
+
import { _getEventTarget } from './_shadow-dom-chunk.mjs';
|
|
14
|
+
import { FocusKeyManager } from './_focus-key-manager-chunk.mjs';
|
|
15
15
|
import '@angular/common';
|
|
16
|
-
import './
|
|
17
|
-
import './
|
|
18
|
-
import './
|
|
19
|
-
import './
|
|
20
|
-
import './
|
|
16
|
+
import './_platform-chunk.mjs';
|
|
17
|
+
import './_test-environment-chunk.mjs';
|
|
18
|
+
import './_style-loader-chunk.mjs';
|
|
19
|
+
import './_css-pixel-value-chunk.mjs';
|
|
20
|
+
import './_array-chunk.mjs';
|
|
21
21
|
import './scrolling.mjs';
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
22
|
+
import './_element-chunk.mjs';
|
|
23
|
+
import './_scrolling-chunk.mjs';
|
|
24
24
|
import './bidi.mjs';
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
27
|
-
import './
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
30
|
-
import './
|
|
25
|
+
import './_recycle-view-repeater-strategy-chunk.mjs';
|
|
26
|
+
import './_data-source-chunk.mjs';
|
|
27
|
+
import './_fake-event-detection-chunk.mjs';
|
|
28
|
+
import './_passive-listeners-chunk.mjs';
|
|
29
|
+
import './_list-key-manager-chunk.mjs';
|
|
30
|
+
import './_typeahead-chunk.mjs';
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* A grouping container for `CdkMenuItemRadio` instances, similar to a `role="radiogroup"` element.
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|