@angular/cdk-experimental 13.3.3 → 14.0.0-next.10
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/combobox/combobox-module.d.ts +3 -4
- package/combobox/combobox-popup.d.ts +6 -8
- package/combobox/combobox.d.ts +15 -18
- package/combobox/public-api.d.ts +0 -1
- package/dialog/dialog-config.d.ts +6 -1
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-module.mjs +9 -9
- package/esm2020/column-resize/column-resize-notifier.mjs +7 -7
- package/esm2020/column-resize/column-resize.mjs +4 -4
- package/esm2020/column-resize/column-size-store.mjs +4 -4
- package/esm2020/column-resize/event-dispatcher.mjs +4 -4
- package/esm2020/column-resize/overlay-handle.mjs +4 -4
- package/esm2020/column-resize/resizable.mjs +4 -4
- package/esm2020/column-resize/resize-strategy.mjs +10 -10
- package/esm2020/combobox/combobox-module.mjs +6 -7
- package/esm2020/combobox/combobox-popup.mjs +12 -23
- package/esm2020/combobox/combobox.mjs +50 -34
- package/esm2020/combobox/public-api.mjs +1 -2
- package/esm2020/dialog/dialog-config.mjs +1 -1
- package/esm2020/dialog/dialog-container.mjs +5 -5
- package/esm2020/dialog/dialog-module.mjs +5 -5
- package/esm2020/dialog/dialog.mjs +5 -5
- package/esm2020/listbox/listbox-module.mjs +5 -5
- package/esm2020/listbox/listbox.mjs +26 -44
- package/esm2020/menu/context-menu-trigger.mjs +227 -0
- package/esm2020/menu/menu-aim.mjs +24 -19
- package/esm2020/menu/menu-bar.mjs +72 -165
- package/esm2020/menu/menu-base.mjs +203 -0
- package/esm2020/menu/menu-errors.mjs +1 -9
- package/esm2020/menu/menu-group.mjs +7 -45
- package/esm2020/menu/menu-interface.mjs +1 -1
- package/esm2020/menu/menu-item-checkbox.mjs +11 -11
- package/esm2020/menu/menu-item-radio.mjs +50 -26
- package/esm2020/menu/menu-item-selectable.mjs +18 -33
- package/esm2020/menu/menu-item.mjs +133 -88
- package/esm2020/menu/menu-module.mjs +12 -14
- package/esm2020/menu/menu-stack.mjs +69 -19
- package/esm2020/menu/menu-trigger-base.mjs +114 -0
- package/esm2020/menu/menu-trigger.mjs +302 -0
- package/esm2020/menu/menu.mjs +75 -208
- package/esm2020/menu/pointer-focus-tracker.mjs +11 -9
- package/esm2020/menu/public-api.mjs +10 -7
- package/esm2020/popover-edit/edit-event-dispatcher.mjs +4 -4
- package/esm2020/popover-edit/edit-ref.mjs +4 -4
- package/esm2020/popover-edit/edit-services.mjs +4 -4
- package/esm2020/popover-edit/focus-dispatcher.mjs +4 -4
- package/esm2020/popover-edit/focus-escape-notifier.mjs +4 -4
- package/esm2020/popover-edit/lens-directives.mjs +10 -10
- package/esm2020/popover-edit/popover-edit-module.mjs +5 -5
- package/esm2020/popover-edit/popover-edit-position-strategy-factory.mjs +7 -7
- package/esm2020/popover-edit/table-directives.mjs +16 -16
- package/esm2020/scrolling/auto-size-virtual-scroll.mjs +4 -4
- package/esm2020/scrolling/scrolling-module.mjs +5 -5
- package/esm2020/selection/row-selection.mjs +4 -4
- package/esm2020/selection/select-all.mjs +4 -4
- package/esm2020/selection/selection-column.mjs +4 -4
- package/esm2020/selection/selection-module.mjs +5 -5
- package/esm2020/selection/selection-toggle.mjs +4 -4
- package/esm2020/selection/selection.mjs +4 -4
- package/esm2020/table-scroll-container/table-scroll-container-module.mjs +5 -5
- package/esm2020/table-scroll-container/table-scroll-container.mjs +4 -4
- package/esm2020/version.mjs +1 -1
- package/fesm2015/cdk-experimental.mjs +1 -1
- package/fesm2015/cdk-experimental.mjs.map +1 -1
- package/fesm2015/column-resize.mjs +50 -50
- package/fesm2015/column-resize.mjs.map +1 -1
- package/fesm2015/combobox.mjs +63 -106
- package/fesm2015/combobox.mjs.map +1 -1
- package/fesm2015/dialog.mjs +13 -12
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/listbox.mjs +31 -47
- package/fesm2015/listbox.mjs.map +1 -1
- package/fesm2015/menu.mjs +1109 -1140
- package/fesm2015/menu.mjs.map +1 -1
- package/fesm2015/popover-edit.mjs +49 -49
- package/fesm2015/popover-edit.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +7 -7
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/selection.mjs +19 -19
- package/fesm2015/selection.mjs.map +1 -1
- package/fesm2015/table-scroll-container.mjs +7 -7
- package/fesm2015/table-scroll-container.mjs.map +1 -1
- package/fesm2020/cdk-experimental.mjs +1 -1
- package/fesm2020/cdk-experimental.mjs.map +1 -1
- package/fesm2020/column-resize.mjs +50 -50
- package/fesm2020/column-resize.mjs.map +1 -1
- package/fesm2020/combobox.mjs +62 -103
- package/fesm2020/combobox.mjs.map +1 -1
- package/fesm2020/dialog.mjs +12 -12
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/listbox.mjs +29 -46
- package/fesm2020/listbox.mjs.map +1 -1
- package/fesm2020/menu.mjs +1031 -1054
- package/fesm2020/menu.mjs.map +1 -1
- package/fesm2020/popover-edit.mjs +49 -49
- package/fesm2020/popover-edit.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +7 -7
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/selection.mjs +19 -19
- package/fesm2020/selection.mjs.map +1 -1
- package/fesm2020/table-scroll-container.mjs +7 -7
- package/fesm2020/table-scroll-container.mjs.map +1 -1
- package/listbox/listbox.d.ts +16 -13
- package/menu/context-menu-trigger.d.ts +98 -0
- package/menu/menu-aim.d.ts +20 -9
- package/menu/menu-bar.d.ts +24 -60
- package/menu/menu-base.d.ts +104 -0
- package/menu/menu-errors.d.ts +0 -5
- package/menu/menu-group.d.ts +3 -28
- package/menu/menu-interface.d.ts +7 -5
- package/menu/menu-item-checkbox.d.ts +8 -2
- package/menu/menu-item-radio.d.ts +32 -8
- package/menu/menu-item-selectable.d.ts +4 -14
- package/menu/menu-item.d.ts +64 -24
- package/menu/menu-module.d.ts +10 -10
- package/menu/menu-stack.d.ts +64 -20
- package/menu/menu-trigger-base.d.ts +77 -0
- package/menu/menu-trigger.d.ts +104 -0
- package/menu/menu.d.ts +34 -87
- package/menu/pointer-focus-tracker.d.ts +7 -4
- package/menu/public-api.d.ts +9 -6
- package/package.json +3 -3
- package/combobox/combobox-panel.d.ts +0 -27
- package/esm2020/combobox/combobox-panel.mjs +0 -48
- package/esm2020/menu/context-menu.mjs +0 -294
- package/esm2020/menu/menu-item-trigger.mjs +0 -361
- package/esm2020/menu/menu-panel.mjs +0 -37
- package/menu/context-menu.d.ts +0 -123
- package/menu/menu-item-trigger.d.ts +0 -119
- package/menu/menu-panel.d.ts +0 -30
package/listbox/listbox.d.ts
CHANGED
|
@@ -5,17 +5,20 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import { AfterContentInit, ElementRef, EventEmitter,
|
|
8
|
+
import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
9
9
|
import { ActiveDescendantKeyManager, Highlightable, ListKeyManagerOption } from '@angular/cdk/a11y';
|
|
10
10
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
11
11
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
12
12
|
import { Observable } from 'rxjs';
|
|
13
13
|
import { ControlValueAccessor } from '@angular/forms';
|
|
14
|
-
import { CdkComboboxPanel } from '@angular/cdk-experimental/combobox';
|
|
15
14
|
import { Directionality } from '@angular/cdk/bidi';
|
|
15
|
+
import { CdkCombobox } from '@angular/cdk-experimental/combobox';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
|
-
export declare const CDK_LISTBOX_VALUE_ACCESSOR:
|
|
18
|
-
|
|
17
|
+
export declare const CDK_LISTBOX_VALUE_ACCESSOR: {
|
|
18
|
+
provide: import("@angular/core").InjectionToken<readonly ControlValueAccessor[]>;
|
|
19
|
+
useExisting: import("@angular/core").Type<any>;
|
|
20
|
+
multi: boolean;
|
|
21
|
+
};
|
|
19
22
|
export declare class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightable {
|
|
20
23
|
private readonly _elementRef;
|
|
21
24
|
readonly listbox: CdkListbox<T>;
|
|
@@ -32,6 +35,11 @@ export declare class CdkOption<T = unknown> implements ListKeyManagerOption, Hig
|
|
|
32
35
|
/** The form value of the option. */
|
|
33
36
|
get value(): T;
|
|
34
37
|
set value(value: T);
|
|
38
|
+
/**
|
|
39
|
+
* The text used to locate this item during menu typeahead. If not specified,
|
|
40
|
+
* the `textContent` of the item will be used.
|
|
41
|
+
*/
|
|
42
|
+
typeahead: string;
|
|
35
43
|
readonly selectionChange: EventEmitter<OptionSelectionChangeEvent<T>>;
|
|
36
44
|
constructor(_elementRef: ElementRef, listbox: CdkListbox<T>);
|
|
37
45
|
/** Toggles the selected state, emits a change event through the injected listbox. */
|
|
@@ -54,18 +62,15 @@ export declare class CdkOption<T = unknown> implements ListKeyManagerOption, Hig
|
|
|
54
62
|
_getTabIndex(): string | null;
|
|
55
63
|
/** Get the label for this element which is required by the FocusableOption interface. */
|
|
56
64
|
getLabel(): string;
|
|
57
|
-
/** Remove any child from the given element which can be identified as an icon. */
|
|
58
|
-
private _removeIcons;
|
|
59
|
-
getElementRef(): ElementRef<any>;
|
|
60
65
|
/** Sets the active property to true to enable the active css class. */
|
|
61
66
|
setActiveStyles(): void;
|
|
62
67
|
/** Sets the active property to false to disable the active css class. */
|
|
63
68
|
setInactiveStyles(): void;
|
|
64
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkOption<any>, never>;
|
|
65
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkOption<any>, "[cdkOption]", ["cdkOption"], { "id": "id"; "selected": "selected"; "disabled": "disabled"; "value": "value"; }, { "selectionChange": "selectionChange"; }, never>;
|
|
70
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkOption<any>, "[cdkOption]", ["cdkOption"], { "id": "id"; "selected": "selected"; "disabled": "disabled"; "value": "value"; "typeahead": "typeahead"; }, { "selectionChange": "selectionChange"; }, never>;
|
|
66
71
|
}
|
|
67
72
|
export declare class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, ControlValueAccessor {
|
|
68
|
-
readonly
|
|
73
|
+
private readonly _combobox;
|
|
69
74
|
private readonly _dir?;
|
|
70
75
|
_listKeyManager: ActiveDescendantKeyManager<CdkOption<T>>;
|
|
71
76
|
_selectionModel: SelectionModel<CdkOption<T>>;
|
|
@@ -101,12 +106,10 @@ export declare class CdkListbox<T> implements AfterContentInit, OnDestroy, OnIni
|
|
|
101
106
|
/** Determines the orientation for the list key manager. Affects keyboard interaction. */
|
|
102
107
|
orientation: 'horizontal' | 'vertical';
|
|
103
108
|
compareWith: (o1: T, o2: T) => boolean;
|
|
104
|
-
|
|
105
|
-
constructor(_parentPanel?: CdkComboboxPanel<T> | undefined, _dir?: Directionality | undefined);
|
|
109
|
+
constructor(_combobox: CdkCombobox, _dir?: Directionality | undefined);
|
|
106
110
|
ngOnInit(): void;
|
|
107
111
|
ngAfterContentInit(): void;
|
|
108
112
|
ngOnDestroy(): void;
|
|
109
|
-
private _registerWithPanel;
|
|
110
113
|
private _initKeyManager;
|
|
111
114
|
private _initSelectionModel;
|
|
112
115
|
_keydown(event: KeyboardEvent): void;
|
|
@@ -151,7 +154,7 @@ export declare class CdkListbox<T> implements AfterContentInit, OnDestroy, OnIni
|
|
|
151
154
|
/** Selects an option that has the corresponding given value. */
|
|
152
155
|
private _setSelectionByValue;
|
|
153
156
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkListbox<any>, [{ optional: true; }, { optional: true; }]>;
|
|
154
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkListbox<any>, "[cdkListbox]", ["cdkListbox"], { "id": "id"; "multiple": "multiple"; "disabled": "disabled"; "useActiveDescendant": "useActiveDescendant"; "autoFocus": "autoFocus"; "orientation": "listboxOrientation"; "compareWith": "compareWith";
|
|
157
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkListbox<any>, "[cdkListbox]", ["cdkListbox"], { "id": "id"; "multiple": "multiple"; "disabled": "disabled"; "useActiveDescendant": "useActiveDescendant"; "autoFocus": "autoFocus"; "orientation": "listboxOrientation"; "compareWith": "compareWith"; }, { "selectionChange": "selectionChange"; }, ["_options"]>;
|
|
155
158
|
}
|
|
156
159
|
/** Change event that is being fired whenever the selected state of an option changes. */
|
|
157
160
|
export interface ListboxSelectionChangeEvent<T> {
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
import { Injector, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
9
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
10
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
11
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
12
|
+
import { MenuStack } from './menu-stack';
|
|
13
|
+
import { CdkMenuTriggerBase } from './menu-trigger-base';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
/** Tracks the last open context menu trigger across the entire application. */
|
|
16
|
+
export declare class ContextMenuTracker {
|
|
17
|
+
/** The last open context menu trigger. */
|
|
18
|
+
private static _openContextMenuTrigger?;
|
|
19
|
+
/**
|
|
20
|
+
* Close the previous open context menu and set the given one as being open.
|
|
21
|
+
* @param trigger The trigger for the currently open Context Menu.
|
|
22
|
+
*/
|
|
23
|
+
update(trigger: CdkContextMenuTrigger): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuTracker, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContextMenuTracker>;
|
|
26
|
+
}
|
|
27
|
+
/** The coordinates where the context menu should open. */
|
|
28
|
+
export declare type ContextMenuCoordinates = {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* A directive that opens a menu when a user right-clicks within its host element.
|
|
34
|
+
* It is aware of nested context menus and will trigger only the lowest level non-disabled context menu.
|
|
35
|
+
*/
|
|
36
|
+
export declare class CdkContextMenuTrigger extends CdkMenuTriggerBase implements OnDestroy {
|
|
37
|
+
/** The CDK overlay service */
|
|
38
|
+
private readonly _overlay;
|
|
39
|
+
/** The app's context menu tracking registry */
|
|
40
|
+
private readonly _contextMenuTracker;
|
|
41
|
+
/** The directionality of the current page */
|
|
42
|
+
private readonly _directionality?;
|
|
43
|
+
/** Whether the context menu is disabled. */
|
|
44
|
+
get disabled(): boolean;
|
|
45
|
+
set disabled(value: BooleanInput);
|
|
46
|
+
private _disabled;
|
|
47
|
+
constructor(
|
|
48
|
+
/** The DI injector for this component */
|
|
49
|
+
injector: Injector,
|
|
50
|
+
/** The view container ref for this component */
|
|
51
|
+
viewContainerRef: ViewContainerRef,
|
|
52
|
+
/** The CDK overlay service */
|
|
53
|
+
_overlay: Overlay,
|
|
54
|
+
/** The app's context menu tracking registry */
|
|
55
|
+
_contextMenuTracker: ContextMenuTracker,
|
|
56
|
+
/** The menu stack this menu is part of. */
|
|
57
|
+
menuStack: MenuStack,
|
|
58
|
+
/** The directionality of the current page */
|
|
59
|
+
_directionality?: Directionality | undefined);
|
|
60
|
+
/**
|
|
61
|
+
* Open the attached menu at the specified location.
|
|
62
|
+
* @param coordinates where to open the context menu
|
|
63
|
+
*/
|
|
64
|
+
open(coordinates: ContextMenuCoordinates): void;
|
|
65
|
+
/** Close the currently opened context menu. */
|
|
66
|
+
close(): void;
|
|
67
|
+
/**
|
|
68
|
+
* Open the context menu and closes any previously open menus.
|
|
69
|
+
* @param event the mouse event which opens the context menu.
|
|
70
|
+
*/
|
|
71
|
+
_openOnContextMenu(event: MouseEvent): void;
|
|
72
|
+
/**
|
|
73
|
+
* Get the configuration object used to create the overlay.
|
|
74
|
+
* @param coordinates the location to place the opened menu
|
|
75
|
+
*/
|
|
76
|
+
private _getOverlayConfig;
|
|
77
|
+
/**
|
|
78
|
+
* Get the position strategy for the overlay which specifies where to place the menu.
|
|
79
|
+
* @param coordinates the location to place the opened menu
|
|
80
|
+
*/
|
|
81
|
+
private _getOverlayPositionStrategy;
|
|
82
|
+
/** Subscribe to the menu stack close events and close this menu when requested. */
|
|
83
|
+
private _setMenuStackCloseListener;
|
|
84
|
+
/**
|
|
85
|
+
* Subscribe to the overlays outside pointer events stream and handle closing out the stack if a
|
|
86
|
+
* click occurs outside the menus.
|
|
87
|
+
* @param ignoreFirstAuxClick Whether to ignore the first auxclick event outside the menu.
|
|
88
|
+
*/
|
|
89
|
+
private _subscribeToOutsideClicks;
|
|
90
|
+
/**
|
|
91
|
+
* Open the attached menu at the specified location.
|
|
92
|
+
* @param coordinates where to open the context menu
|
|
93
|
+
* @param ignoreFirstOutsideAuxClick Whether to ignore the first auxclick outside the menu after opening.
|
|
94
|
+
*/
|
|
95
|
+
private _open;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkContextMenuTrigger, [null, null, null, null, null, { optional: true; }]>;
|
|
97
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkContextMenuTrigger, "[cdkContextMenuTriggerFor]", ["cdkContextMenuTriggerFor"], { "menuTemplateRef": "cdkContextMenuTriggerFor"; "menuPosition": "cdkContextMenuPosition"; "disabled": "cdkContextMenuDisabled"; }, { "opened": "cdkContextMenuOpened"; "closed": "cdkContextMenuClosed"; }, never>;
|
|
98
|
+
}
|
package/menu/menu-aim.d.ts
CHANGED
|
@@ -15,7 +15,11 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* order to determine if it may perform its close actions.
|
|
16
16
|
*/
|
|
17
17
|
export interface MenuAim {
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Set the Menu and its PointerFocusTracker.
|
|
20
|
+
* @param menu The menu that this menu aim service controls.
|
|
21
|
+
* @param pointerTracker The `PointerFocusTracker` for the given menu.
|
|
22
|
+
*/
|
|
19
23
|
initialize(menu: Menu, pointerTracker: PointerFocusTracker<FocusableElement & Toggler>): void;
|
|
20
24
|
/**
|
|
21
25
|
* Calls the `doToggle` callback when it is deemed that the user is not moving towards
|
|
@@ -26,11 +30,9 @@ export interface MenuAim {
|
|
|
26
30
|
}
|
|
27
31
|
/** Injection token used for an implementation of MenuAim. */
|
|
28
32
|
export declare const MENU_AIM: InjectionToken<MenuAim>;
|
|
29
|
-
/**
|
|
30
|
-
* An element which when hovered over may perform closing actions on the open submenu and
|
|
31
|
-
* potentially open its own menu.
|
|
32
|
-
*/
|
|
33
|
+
/** An element which when hovered over may open or close a menu. */
|
|
33
34
|
export interface Toggler {
|
|
35
|
+
/** Gets the open menu, or undefined if no menu is open. */
|
|
34
36
|
getMenu(): Menu | undefined;
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
@@ -44,6 +46,7 @@ export interface Toggler {
|
|
|
44
46
|
* to submenu.
|
|
45
47
|
*/
|
|
46
48
|
export declare class TargetMenuAim implements MenuAim, OnDestroy {
|
|
49
|
+
/** The Angular zone. */
|
|
47
50
|
private readonly _ngZone;
|
|
48
51
|
/** The last NUM_POINTS mouse move events. */
|
|
49
52
|
private readonly _points;
|
|
@@ -55,8 +58,15 @@ export declare class TargetMenuAim implements MenuAim, OnDestroy {
|
|
|
55
58
|
private _timeoutId;
|
|
56
59
|
/** Emits when this service is destroyed. */
|
|
57
60
|
private readonly _destroyed;
|
|
58
|
-
constructor(
|
|
59
|
-
/**
|
|
61
|
+
constructor(
|
|
62
|
+
/** The Angular zone. */
|
|
63
|
+
_ngZone: NgZone);
|
|
64
|
+
ngOnDestroy(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Set the Menu and its PointerFocusTracker.
|
|
67
|
+
* @param menu The menu that this menu aim service controls.
|
|
68
|
+
* @param pointerTracker The `PointerFocusTracker` for the given menu.
|
|
69
|
+
*/
|
|
60
70
|
initialize(menu: Menu, pointerTracker: PointerFocusTracker<FocusableElement & Toggler>): void;
|
|
61
71
|
/**
|
|
62
72
|
* Calls the `doToggle` callback when it is deemed that the user is not moving towards
|
|
@@ -69,6 +79,8 @@ export declare class TargetMenuAim implements MenuAim, OnDestroy {
|
|
|
69
79
|
*
|
|
70
80
|
* The delayed toggle handler executes the `doToggle` callback after some period of time iff the
|
|
71
81
|
* users mouse is on an item in the current menu.
|
|
82
|
+
*
|
|
83
|
+
* @param doToggle the function called when the user is not moving towards the submenu.
|
|
72
84
|
*/
|
|
73
85
|
private _startTimeout;
|
|
74
86
|
/** Whether the user is heading towards the open submenu. */
|
|
@@ -82,12 +94,11 @@ export declare class TargetMenuAim implements MenuAim, OnDestroy {
|
|
|
82
94
|
private _checkConfigured;
|
|
83
95
|
/** Subscribe to the root menus mouse move events and update the tracked mouse points. */
|
|
84
96
|
private _subscribeToMouseMoves;
|
|
85
|
-
ngOnDestroy(): void;
|
|
86
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<TargetMenuAim, never>;
|
|
87
98
|
static ɵprov: i0.ɵɵInjectableDeclaration<TargetMenuAim>;
|
|
88
99
|
}
|
|
89
100
|
/**
|
|
90
|
-
* CdkTargetMenuAim is a provider for the TargetMenuAim service. It
|
|
101
|
+
* CdkTargetMenuAim is a provider for the TargetMenuAim service. It can be added to an
|
|
91
102
|
* element with either the `cdkMenu` or `cdkMenuBar` directive and child menu items.
|
|
92
103
|
*/
|
|
93
104
|
export declare class CdkTargetMenuAim {
|
package/menu/menu-bar.d.ts
CHANGED
|
@@ -5,13 +5,11 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import { AfterContentInit,
|
|
8
|
+
import { AfterContentInit, ElementRef, NgZone } from '@angular/core';
|
|
9
9
|
import { Directionality } from '@angular/cdk/bidi';
|
|
10
|
-
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
11
|
-
import { CdkMenuGroup } from './menu-group';
|
|
12
|
-
import { Menu } from './menu-interface';
|
|
13
10
|
import { MenuStack } from './menu-stack';
|
|
14
11
|
import { MenuAim } from './menu-aim';
|
|
12
|
+
import { CdkMenuBase } from './menu-base';
|
|
15
13
|
import * as i0 from "@angular/core";
|
|
16
14
|
/**
|
|
17
15
|
* Directive applied to an element which configures it as a MenuBar by setting the appropriate
|
|
@@ -19,70 +17,36 @@ import * as i0 from "@angular/core";
|
|
|
19
17
|
* this directive is applied to should contain components marked with CdkMenuItem.
|
|
20
18
|
*
|
|
21
19
|
*/
|
|
22
|
-
export declare class CdkMenuBar extends
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
private readonly _destroyed;
|
|
39
|
-
/** All child MenuItem elements nested in this MenuBar. */
|
|
40
|
-
private readonly _allItems;
|
|
41
|
-
/** The Menu Item which triggered the open submenu. */
|
|
42
|
-
private _openItem?;
|
|
43
|
-
constructor(_menuStack: MenuStack, _ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _menuAim?: MenuAim | undefined, _dir?: Directionality | undefined);
|
|
20
|
+
export declare class CdkMenuBar extends CdkMenuBase implements AfterContentInit {
|
|
21
|
+
/** The direction items in the menu flow. */
|
|
22
|
+
readonly orientation = "horizontal";
|
|
23
|
+
/** Whether the menu is displayed inline (i.e. always present vs a conditional popup that the user triggers with a trigger element). */
|
|
24
|
+
readonly isInline = true;
|
|
25
|
+
constructor(
|
|
26
|
+
/** The host element. */
|
|
27
|
+
elementRef: ElementRef<HTMLElement>,
|
|
28
|
+
/** The Angular zone. */
|
|
29
|
+
ngZone: NgZone,
|
|
30
|
+
/** The menu stack this menu is part of. */
|
|
31
|
+
menuStack: MenuStack,
|
|
32
|
+
/** The menu aim service used by this menu. */
|
|
33
|
+
menuAim?: MenuAim,
|
|
34
|
+
/** The directionality of the page. */
|
|
35
|
+
dir?: Directionality);
|
|
44
36
|
ngAfterContentInit(): void;
|
|
45
|
-
/** Place focus on the first MenuItem in the menu and set the focus origin. */
|
|
46
|
-
focusFirstItem(focusOrigin?: FocusOrigin): void;
|
|
47
|
-
/** Place focus on the last MenuItem in the menu and set the focus origin. */
|
|
48
|
-
focusLastItem(focusOrigin?: FocusOrigin): void;
|
|
49
37
|
/**
|
|
50
|
-
* Handle keyboard events
|
|
51
|
-
*
|
|
52
|
-
* @param event the KeyboardEvent to handle.
|
|
38
|
+
* Handle keyboard events for the Menu.
|
|
39
|
+
* @param event The keyboard event to be handled.
|
|
53
40
|
*/
|
|
54
41
|
_handleKeyEvent(event: KeyboardEvent): void;
|
|
55
|
-
/** Setup the FocusKeyManager with the correct orientation for the menu bar. */
|
|
56
|
-
private _setKeyManager;
|
|
57
|
-
/**
|
|
58
|
-
* Set the PointerFocusTracker and ensure that when mouse focus changes the key manager is updated
|
|
59
|
-
* with the latest menu item under mouse focus.
|
|
60
|
-
*/
|
|
61
|
-
private _subscribeToMouseManager;
|
|
62
|
-
/** Subscribe to the MenuStack close and empty observables. */
|
|
63
|
-
private _subscribeToMenuStack;
|
|
64
|
-
/**
|
|
65
|
-
* Close the open menu if the current active item opened the requested MenuStackItem.
|
|
66
|
-
* @param item the MenuStackItem requested to be closed.
|
|
67
|
-
*/
|
|
68
|
-
private _closeOpenMenu;
|
|
69
42
|
/**
|
|
70
43
|
* Set focus to either the current, previous or next item based on the FocusNext event, then
|
|
71
44
|
* open the previous or next item.
|
|
45
|
+
* @param focusNext The element to focus.
|
|
72
46
|
*/
|
|
73
47
|
private _toggleOpenMenu;
|
|
74
|
-
/**
|
|
75
|
-
|
|
76
|
-
*/
|
|
77
|
-
private _isHorizontal;
|
|
78
|
-
/**
|
|
79
|
-
* Subscribe to the menu trigger's open events in order to track the trigger which opened the menu
|
|
80
|
-
* and stop tracking it when the menu is closed.
|
|
81
|
-
*/
|
|
82
|
-
private _subscribeToMenuOpen;
|
|
83
|
-
/** Return true if the MenuBar has an open submenu. */
|
|
84
|
-
private _hasOpenSubmenu;
|
|
85
|
-
ngOnDestroy(): void;
|
|
48
|
+
/** Subscribe to the MenuStack emptied events. */
|
|
49
|
+
private _subscribeToMenuStackEmptied;
|
|
86
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuBar, [null, null, null, { optional: true; self: true; }, { optional: true; }]>;
|
|
87
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuBar, "[cdkMenuBar]", ["cdkMenuBar"], {
|
|
51
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuBar, "[cdkMenuBar]", ["cdkMenuBar"], {}, {}, never>;
|
|
88
52
|
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
import { CdkMenuGroup } from './menu-group';
|
|
9
|
+
import { AfterContentInit, ElementRef, NgZone, OnDestroy, QueryList } from '@angular/core';
|
|
10
|
+
import { FocusKeyManager, FocusOrigin } from '@angular/cdk/a11y';
|
|
11
|
+
import { CdkMenuItem } from './menu-item';
|
|
12
|
+
import { Subject } from 'rxjs';
|
|
13
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
14
|
+
import { MenuStack, MenuStackItem } from './menu-stack';
|
|
15
|
+
import { Menu } from './menu-interface';
|
|
16
|
+
import { PointerFocusTracker } from './pointer-focus-tracker';
|
|
17
|
+
import { MenuAim } from './menu-aim';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
/**
|
|
20
|
+
* Abstract directive that implements shared logic common to all menus.
|
|
21
|
+
* This class can be extended to create custom menu types.
|
|
22
|
+
*/
|
|
23
|
+
export declare abstract class CdkMenuBase extends CdkMenuGroup implements Menu, AfterContentInit, OnDestroy {
|
|
24
|
+
/** The Angular zone. */
|
|
25
|
+
protected ngZone: NgZone;
|
|
26
|
+
/** The stack of menus this menu belongs to. */
|
|
27
|
+
readonly menuStack: MenuStack;
|
|
28
|
+
/** The menu aim service used by this menu. */
|
|
29
|
+
protected readonly menuAim?: MenuAim | undefined;
|
|
30
|
+
/** The directionality of the current page. */
|
|
31
|
+
protected readonly dir?: Directionality | undefined;
|
|
32
|
+
/** The id of the menu's host element. */
|
|
33
|
+
id: string;
|
|
34
|
+
/** All child MenuItem elements nested in this Menu. */
|
|
35
|
+
readonly items: QueryList<CdkMenuItem>;
|
|
36
|
+
/** The direction items in the menu flow. */
|
|
37
|
+
orientation: 'horizontal' | 'vertical';
|
|
38
|
+
/** Whether the menu is displayed inline (i.e. always present vs a conditional popup that the user triggers with a trigger element). */
|
|
39
|
+
isInline: boolean;
|
|
40
|
+
/** The menu's native DOM host element. */
|
|
41
|
+
readonly nativeElement: HTMLElement;
|
|
42
|
+
/** Handles keyboard events for the menu. */
|
|
43
|
+
protected keyManager: FocusKeyManager<CdkMenuItem>;
|
|
44
|
+
/** Emits when the MenuBar is destroyed. */
|
|
45
|
+
protected readonly destroyed: Subject<void>;
|
|
46
|
+
/** The Menu Item which triggered the open submenu. */
|
|
47
|
+
protected triggerItem?: CdkMenuItem;
|
|
48
|
+
/** Tracks the users mouse movements over the menu. */
|
|
49
|
+
protected pointerTracker?: PointerFocusTracker<CdkMenuItem>;
|
|
50
|
+
/** Whether this menu's menu stack has focus. */
|
|
51
|
+
private _menuStackHasFocus;
|
|
52
|
+
protected constructor(
|
|
53
|
+
/** The host element. */
|
|
54
|
+
elementRef: ElementRef<HTMLElement>,
|
|
55
|
+
/** The Angular zone. */
|
|
56
|
+
ngZone: NgZone,
|
|
57
|
+
/** The stack of menus this menu belongs to. */
|
|
58
|
+
menuStack: MenuStack,
|
|
59
|
+
/** The menu aim service used by this menu. */
|
|
60
|
+
menuAim?: MenuAim | undefined,
|
|
61
|
+
/** The directionality of the current page. */
|
|
62
|
+
dir?: Directionality | undefined);
|
|
63
|
+
ngAfterContentInit(): void;
|
|
64
|
+
ngOnDestroy(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Place focus on the first MenuItem in the menu and set the focus origin.
|
|
67
|
+
* @param focusOrigin The origin input mode of the focus event.
|
|
68
|
+
*/
|
|
69
|
+
focusFirstItem(focusOrigin?: FocusOrigin): void;
|
|
70
|
+
/**
|
|
71
|
+
* Place focus on the last MenuItem in the menu and set the focus origin.
|
|
72
|
+
* @param focusOrigin The origin input mode of the focus event.
|
|
73
|
+
*/
|
|
74
|
+
focusLastItem(focusOrigin?: FocusOrigin): void;
|
|
75
|
+
/** Gets the tabindex for this menu. */
|
|
76
|
+
_getTabIndex(): 0 | -1 | null;
|
|
77
|
+
/**
|
|
78
|
+
* Close the open menu if the current active item opened the requested MenuStackItem.
|
|
79
|
+
* @param menu The menu requested to be closed.
|
|
80
|
+
* @param options Options to configure the behavior on close.
|
|
81
|
+
* - `focusParentTrigger` Whether to focus the parent trigger after closing the menu.
|
|
82
|
+
*/
|
|
83
|
+
protected closeOpenMenu(menu: MenuStackItem, options?: {
|
|
84
|
+
focusParentTrigger?: boolean;
|
|
85
|
+
}): void;
|
|
86
|
+
/** Setup the FocusKeyManager with the correct orientation for the menu. */
|
|
87
|
+
private _setKeyManager;
|
|
88
|
+
/**
|
|
89
|
+
* Subscribe to the menu trigger's open events in order to track the trigger which opened the menu
|
|
90
|
+
* and stop tracking it when the menu is closed.
|
|
91
|
+
*/
|
|
92
|
+
private _subscribeToMenuOpen;
|
|
93
|
+
/** Subscribe to the MenuStack close events. */
|
|
94
|
+
private _subscribeToMenuStackClosed;
|
|
95
|
+
/** Subscribe to the MenuStack hasFocus events. */
|
|
96
|
+
private _subscribeToMenuStackHasFocus;
|
|
97
|
+
/**
|
|
98
|
+
* Set the PointerFocusTracker and ensure that when mouse focus changes the key manager is updated
|
|
99
|
+
* with the latest menu item under mouse focus.
|
|
100
|
+
*/
|
|
101
|
+
private _setUpPointerTracker;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuBase, [null, null, null, { optional: true; self: true; }, { optional: true; }]>;
|
|
103
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuBase, never, never, { "id": "id"; }, {}, ["items"]>;
|
|
104
|
+
}
|
package/menu/menu-errors.d.ts
CHANGED
|
@@ -5,11 +5,6 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
/**
|
|
9
|
-
* Throws an exception when a menu panel already has a menu stack.
|
|
10
|
-
* @docs-private
|
|
11
|
-
*/
|
|
12
|
-
export declare function throwExistingMenuStackError(): void;
|
|
13
8
|
/**
|
|
14
9
|
* Throws an exception when an instance of the PointerFocusTracker is not provided.
|
|
15
10
|
* @docs-private
|
package/menu/menu-group.d.ts
CHANGED
|
@@ -1,33 +1,8 @@
|
|
|
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
|
-
import { EventEmitter, AfterContentInit, OnDestroy } from '@angular/core';
|
|
9
|
-
import { CdkMenuItem } from './menu-item';
|
|
10
1
|
import * as i0 from "@angular/core";
|
|
11
2
|
/**
|
|
12
|
-
*
|
|
13
|
-
* `role="menuitemradio"`, similar to a `role="radiogroup"` element.
|
|
3
|
+
* A grouping container for `CdkMenuItemRadio` instances, similar to a `role="radiogroup"` element.
|
|
14
4
|
*/
|
|
15
|
-
export declare class CdkMenuGroup
|
|
16
|
-
/** Emits the element when checkbox or radiobutton state changed */
|
|
17
|
-
readonly change: EventEmitter<CdkMenuItem>;
|
|
18
|
-
/** List of menuitemcheckbox or menuitemradio elements which reside in this group */
|
|
19
|
-
private readonly _selectableItems;
|
|
20
|
-
/** Emits when the _selectableItems QueryList triggers a change */
|
|
21
|
-
private readonly _selectableChanges;
|
|
22
|
-
ngAfterContentInit(): void;
|
|
23
|
-
/**
|
|
24
|
-
* Register the child selectable elements with the change emitter and ensure any new child
|
|
25
|
-
* elements do so as well.
|
|
26
|
-
*/
|
|
27
|
-
private _registerMenuSelectionListeners;
|
|
28
|
-
/** Register each selectable to emit on the change Emitter when clicked */
|
|
29
|
-
private _registerClickListener;
|
|
30
|
-
ngOnDestroy(): void;
|
|
5
|
+
export declare class CdkMenuGroup {
|
|
31
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuGroup, never>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuGroup, "[cdkMenuGroup]", ["cdkMenuGroup"], {}, {
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuGroup, "[cdkMenuGroup]", ["cdkMenuGroup"], {}, {}, never>;
|
|
33
8
|
}
|
package/menu/menu-interface.d.ts
CHANGED
|
@@ -5,17 +5,19 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import { InjectionToken
|
|
8
|
+
import { InjectionToken } from '@angular/core';
|
|
9
9
|
import { MenuStackItem } from './menu-stack';
|
|
10
10
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
11
11
|
/** Injection token used to return classes implementing the Menu interface */
|
|
12
12
|
export declare const CDK_MENU: InjectionToken<Menu>;
|
|
13
13
|
/** Interface which specifies Menu operations and used to break circular dependency issues */
|
|
14
14
|
export interface Menu extends MenuStackItem {
|
|
15
|
-
/** The
|
|
16
|
-
|
|
17
|
-
/** The
|
|
18
|
-
|
|
15
|
+
/** The id of the menu's host element. */
|
|
16
|
+
id: string;
|
|
17
|
+
/** The menu's native DOM host element. */
|
|
18
|
+
nativeElement: HTMLElement;
|
|
19
|
+
/** The direction items in the menu flow. */
|
|
20
|
+
readonly orientation: 'horizontal' | 'vertical';
|
|
19
21
|
/** Place focus on the first MenuItem in the menu. */
|
|
20
22
|
focusFirstItem(focusOrigin: FocusOrigin): void;
|
|
21
23
|
/** Place focus on the last MenuItem in the menu. */
|
|
@@ -5,8 +5,14 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* conventional checkbox.
|
|
6
6
|
*/
|
|
7
7
|
export declare class CdkMenuItemCheckbox extends CdkMenuItemSelectable {
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Toggle the checked state of the checkbox.
|
|
10
|
+
* @param options Options the configure how the item is triggered
|
|
11
|
+
* - keepOpen: specifies that the menu should be kept open after triggering the item.
|
|
12
|
+
*/
|
|
13
|
+
trigger(options?: {
|
|
14
|
+
keepOpen: boolean;
|
|
15
|
+
}): void;
|
|
10
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItemCheckbox, never>;
|
|
11
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItemCheckbox, "[cdkMenuItemCheckbox]", ["cdkMenuItemCheckbox"], {}, {}, never>;
|
|
12
18
|
}
|
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
|
|
9
|
-
import {
|
|
9
|
+
import { ElementRef, NgZone, OnDestroy } from '@angular/core';
|
|
10
10
|
import { Directionality } from '@angular/cdk/bidi';
|
|
11
11
|
import { CdkMenuItemSelectable } from './menu-item-selectable';
|
|
12
|
-
import {
|
|
12
|
+
import { CdkMenuTrigger } from './menu-trigger';
|
|
13
13
|
import { Menu } from './menu-interface';
|
|
14
14
|
import { MenuAim } from './menu-aim';
|
|
15
|
+
import { MenuStack } from './menu-stack';
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
/**
|
|
17
18
|
* A directive providing behavior for the "menuitemradio" ARIA role, which behaves similarly to
|
|
@@ -19,17 +20,40 @@ import * as i0 from "@angular/core";
|
|
|
19
20
|
* or `CdkMenuGroup` comprise a radio group with unique selection enforced.
|
|
20
21
|
*/
|
|
21
22
|
export declare class CdkMenuItemRadio extends CdkMenuItemSelectable implements OnDestroy {
|
|
23
|
+
/** The unique selection dispatcher for this radio's `CdkMenuGroup`. */
|
|
22
24
|
private readonly _selectionDispatcher;
|
|
25
|
+
/** An ID to identify this radio item to the `UniqueSelectionDisptcher`. */
|
|
26
|
+
private _id;
|
|
23
27
|
/** Function to unregister the selection dispatcher */
|
|
24
28
|
private _removeDispatcherListener;
|
|
25
|
-
constructor(
|
|
29
|
+
constructor(
|
|
30
|
+
/** The host element for this radio item. */
|
|
31
|
+
element: ElementRef<HTMLElement>,
|
|
32
|
+
/** The Angular zone. */
|
|
33
|
+
ngZone: NgZone,
|
|
34
|
+
/** The unique selection dispatcher for this radio's `CdkMenuGroup`. */
|
|
35
|
+
_selectionDispatcher: UniqueSelectionDispatcher,
|
|
36
|
+
/** The menu stack this item belongs to. */
|
|
37
|
+
menuStack: MenuStack,
|
|
38
|
+
/** The parent menu for this item. */
|
|
39
|
+
parentMenu?: Menu,
|
|
40
|
+
/** The menu aim used for this item. */
|
|
41
|
+
menuAim?: MenuAim,
|
|
42
|
+
/** The directionality of the page. */
|
|
43
|
+
dir?: Directionality,
|
|
26
44
|
/** Reference to the CdkMenuItemTrigger directive if one is added to the same element */
|
|
27
|
-
menuTrigger?:
|
|
45
|
+
menuTrigger?: CdkMenuTrigger);
|
|
46
|
+
ngOnDestroy(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Toggles the checked state of the radio-button.
|
|
49
|
+
* @param options Options the configure how the item is triggered
|
|
50
|
+
* - keepOpen: specifies that the menu should be kept open after triggering the item.
|
|
51
|
+
*/
|
|
52
|
+
trigger(options?: {
|
|
53
|
+
keepOpen: boolean;
|
|
54
|
+
}): void;
|
|
28
55
|
/** Configure the unique selection dispatcher listener in order to toggle the checked state */
|
|
29
56
|
private _registerDispatcherListener;
|
|
30
|
-
|
|
31
|
-
trigger(): void;
|
|
32
|
-
ngOnDestroy(): void;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItemRadio, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItemRadio, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
|
|
34
58
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItemRadio, "[cdkMenuItemRadio]", ["cdkMenuItemRadio"], {}, {}, never>;
|
|
35
59
|
}
|