@angular/cdk-experimental 14.0.0-next.5 → 14.0.0-next.8

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 (117) hide show
  1. package/combobox/combobox-module.d.ts +3 -4
  2. package/combobox/combobox-popup.d.ts +6 -8
  3. package/combobox/combobox.d.ts +15 -18
  4. package/combobox/public-api.d.ts +0 -1
  5. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
  6. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +3 -3
  7. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +3 -3
  8. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +3 -3
  9. package/esm2020/column-resize/column-resize-module.mjs +8 -8
  10. package/esm2020/column-resize/column-resize-notifier.mjs +6 -6
  11. package/esm2020/column-resize/column-resize.mjs +3 -3
  12. package/esm2020/column-resize/column-size-store.mjs +3 -3
  13. package/esm2020/column-resize/event-dispatcher.mjs +3 -3
  14. package/esm2020/column-resize/overlay-handle.mjs +3 -3
  15. package/esm2020/column-resize/resizable.mjs +3 -3
  16. package/esm2020/column-resize/resize-strategy.mjs +9 -9
  17. package/esm2020/combobox/combobox-module.mjs +6 -7
  18. package/esm2020/combobox/combobox-popup.mjs +12 -23
  19. package/esm2020/combobox/combobox.mjs +50 -34
  20. package/esm2020/combobox/public-api.mjs +1 -2
  21. package/esm2020/dialog/dialog-container.mjs +28 -11
  22. package/esm2020/dialog/dialog-module.mjs +4 -4
  23. package/esm2020/dialog/dialog.mjs +3 -3
  24. package/esm2020/listbox/listbox-module.mjs +4 -4
  25. package/esm2020/listbox/listbox.mjs +26 -44
  26. package/esm2020/menu/context-menu.mjs +46 -82
  27. package/esm2020/menu/menu-aim.mjs +6 -6
  28. package/esm2020/menu/menu-bar.mjs +16 -13
  29. package/esm2020/menu/menu-errors.mjs +1 -9
  30. package/esm2020/menu/menu-group.mjs +3 -3
  31. package/esm2020/menu/menu-item-checkbox.mjs +3 -3
  32. package/esm2020/menu/menu-item-radio.mjs +15 -8
  33. package/esm2020/menu/menu-item-selectable.mjs +3 -3
  34. package/esm2020/menu/menu-item-trigger.mjs +63 -88
  35. package/esm2020/menu/menu-item.mjs +29 -37
  36. package/esm2020/menu/menu-module.mjs +5 -9
  37. package/esm2020/menu/menu-stack.mjs +10 -6
  38. package/esm2020/menu/menu-trigger.mjs +43 -0
  39. package/esm2020/menu/menu.mjs +32 -45
  40. package/esm2020/menu/public-api.mjs +3 -3
  41. package/esm2020/popover-edit/edit-event-dispatcher.mjs +3 -3
  42. package/esm2020/popover-edit/edit-ref.mjs +3 -3
  43. package/esm2020/popover-edit/edit-services.mjs +3 -3
  44. package/esm2020/popover-edit/focus-dispatcher.mjs +3 -3
  45. package/esm2020/popover-edit/focus-escape-notifier.mjs +3 -3
  46. package/esm2020/popover-edit/lens-directives.mjs +9 -9
  47. package/esm2020/popover-edit/popover-edit-module.mjs +4 -4
  48. package/esm2020/popover-edit/popover-edit-position-strategy-factory.mjs +6 -6
  49. package/esm2020/popover-edit/table-directives.mjs +15 -15
  50. package/esm2020/scrolling/auto-size-virtual-scroll.mjs +3 -3
  51. package/esm2020/scrolling/scrolling-module.mjs +4 -4
  52. package/esm2020/selection/row-selection.mjs +3 -3
  53. package/esm2020/selection/select-all.mjs +3 -3
  54. package/esm2020/selection/selection-column.mjs +3 -3
  55. package/esm2020/selection/selection-module.mjs +4 -4
  56. package/esm2020/selection/selection-toggle.mjs +3 -3
  57. package/esm2020/selection/selection.mjs +3 -3
  58. package/esm2020/table-scroll-container/table-scroll-container-module.mjs +4 -4
  59. package/esm2020/table-scroll-container/table-scroll-container.mjs +3 -3
  60. package/esm2020/version.mjs +1 -1
  61. package/fesm2015/cdk-experimental.mjs +1 -1
  62. package/fesm2015/cdk-experimental.mjs.map +1 -1
  63. package/fesm2015/column-resize.mjs +50 -50
  64. package/fesm2015/column-resize.mjs.map +1 -1
  65. package/fesm2015/combobox.mjs +63 -106
  66. package/fesm2015/combobox.mjs.map +1 -1
  67. package/fesm2015/dialog.mjs +34 -17
  68. package/fesm2015/dialog.mjs.map +1 -1
  69. package/fesm2015/listbox.mjs +31 -47
  70. package/fesm2015/listbox.mjs.map +1 -1
  71. package/fesm2015/menu.mjs +334 -421
  72. package/fesm2015/menu.mjs.map +1 -1
  73. package/fesm2015/popover-edit.mjs +49 -49
  74. package/fesm2015/popover-edit.mjs.map +1 -1
  75. package/fesm2015/scrolling.mjs +7 -7
  76. package/fesm2015/scrolling.mjs.map +1 -1
  77. package/fesm2015/selection.mjs +19 -19
  78. package/fesm2015/selection.mjs.map +1 -1
  79. package/fesm2015/table-scroll-container.mjs +7 -7
  80. package/fesm2015/table-scroll-container.mjs.map +1 -1
  81. package/fesm2020/cdk-experimental.mjs +1 -1
  82. package/fesm2020/cdk-experimental.mjs.map +1 -1
  83. package/fesm2020/column-resize.mjs +50 -50
  84. package/fesm2020/column-resize.mjs.map +1 -1
  85. package/fesm2020/combobox.mjs +62 -103
  86. package/fesm2020/combobox.mjs.map +1 -1
  87. package/fesm2020/dialog.mjs +34 -17
  88. package/fesm2020/dialog.mjs.map +1 -1
  89. package/fesm2020/listbox.mjs +29 -46
  90. package/fesm2020/listbox.mjs.map +1 -1
  91. package/fesm2020/menu.mjs +238 -321
  92. package/fesm2020/menu.mjs.map +1 -1
  93. package/fesm2020/popover-edit.mjs +49 -49
  94. package/fesm2020/popover-edit.mjs.map +1 -1
  95. package/fesm2020/scrolling.mjs +7 -7
  96. package/fesm2020/scrolling.mjs.map +1 -1
  97. package/fesm2020/selection.mjs +19 -19
  98. package/fesm2020/selection.mjs.map +1 -1
  99. package/fesm2020/table-scroll-container.mjs +7 -7
  100. package/fesm2020/table-scroll-container.mjs.map +1 -1
  101. package/listbox/listbox.d.ts +16 -13
  102. package/menu/context-menu.d.ts +12 -30
  103. package/menu/menu-bar.d.ts +2 -2
  104. package/menu/menu-errors.d.ts +0 -5
  105. package/menu/menu-item-radio.d.ts +4 -3
  106. package/menu/menu-item-trigger.d.ts +11 -18
  107. package/menu/menu-item.d.ts +11 -6
  108. package/menu/menu-module.d.ts +9 -10
  109. package/menu/menu-stack.d.ts +7 -6
  110. package/menu/menu-trigger.d.ts +24 -0
  111. package/menu/menu.d.ts +7 -23
  112. package/menu/public-api.d.ts +2 -2
  113. package/package.json +2 -2
  114. package/combobox/combobox-panel.d.ts +0 -27
  115. package/esm2020/combobox/combobox-panel.mjs +0 -48
  116. package/esm2020/menu/menu-panel.mjs +0 -37
  117. package/menu/menu-panel.d.ts +0 -30
@@ -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, InjectionToken, OnDestroy, OnInit, QueryList } from '@angular/core';
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: any;
18
- export declare const PANEL: InjectionToken<CdkComboboxPanel<unknown>>;
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 _parentPanel?: CdkComboboxPanel<T> | undefined;
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
- private readonly _explicitPanel;
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"; "_explicitPanel": "parentPanel"; }, { "selectionChange": "selectionChange"; }, ["_options"]>;
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> {
@@ -5,11 +5,12 @@
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 { EventEmitter, InjectionToken, OnDestroy, ViewContainerRef } from '@angular/core';
8
+ import { EventEmitter, Injector, OnDestroy, ViewContainerRef } from '@angular/core';
9
9
  import { Directionality } from '@angular/cdk/bidi';
10
- import { Overlay } from '@angular/cdk/overlay';
10
+ import { ConnectedPosition, Overlay } from '@angular/cdk/overlay';
11
11
  import { BooleanInput } from '@angular/cdk/coercion';
12
- import { CdkMenuPanel } from './menu-panel';
12
+ import { MenuStack } from './menu-stack';
13
+ import { MenuTrigger } from './menu-trigger';
13
14
  import * as i0 from "@angular/core";
14
15
  /** Tracks the last open context menu trigger across the entire application. */
15
16
  export declare class ContextMenuTracker {
@@ -23,15 +24,6 @@ export declare class ContextMenuTracker {
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuTracker, never>;
24
25
  static ɵprov: i0.ɵɵInjectableDeclaration<ContextMenuTracker>;
25
26
  }
26
- /** Configuration options passed to the context menu. */
27
- export declare type ContextMenuOptions = {
28
- /** The opened menus X coordinate offset from the triggering position. */
29
- offsetX: number;
30
- /** The opened menus Y coordinate offset from the triggering position. */
31
- offsetY: number;
32
- };
33
- /** Injection token for the ContextMenu options object. */
34
- export declare const CDK_CONTEXT_MENU_DEFAULT_OPTIONS: InjectionToken<ContextMenuOptions>;
35
27
  /** The coordinates of where the context menu should open. */
36
28
  export declare type ContextMenuCoordinates = {
37
29
  x: number;
@@ -42,17 +34,15 @@ export declare type ContextMenuCoordinates = {
42
34
  * right-clicks within that element. It is aware of nested Context Menus and the lowest level
43
35
  * non-disabled context menu will trigger.
44
36
  */
45
- export declare class CdkContextMenuTrigger implements OnDestroy {
37
+ export declare class CdkContextMenuTrigger extends MenuTrigger implements OnDestroy {
46
38
  protected readonly _viewContainerRef: ViewContainerRef;
47
39
  private readonly _overlay;
48
40
  private readonly _contextMenuTracker;
49
- private readonly _options;
50
41
  private readonly _directionality?;
51
42
  /** Template reference variable to the menu to open on right click. */
52
- get menuPanel(): CdkMenuPanel;
53
- set menuPanel(panel: CdkMenuPanel);
54
- /** Reference to the MenuPanel this trigger toggles. */
55
- private _menuPanel;
43
+ private _menuTemplateRef;
44
+ /** A list of preferred menu positions to be used when constructing the `FlexibleConnectedPositionStrategy` for this trigger's menu. */
45
+ menuPosition: ConnectedPosition[];
56
46
  /** Emits when the attached menu is requested to open. */
57
47
  readonly opened: EventEmitter<void>;
58
48
  /** Emits when the attached menu is requested to close. */
@@ -64,14 +54,12 @@ export declare class CdkContextMenuTrigger implements OnDestroy {
64
54
  /** A reference to the overlay which manages the triggered menu. */
65
55
  private _overlayRef;
66
56
  /** The content of the menu panel opened by this trigger. */
67
- private _panelContent;
57
+ private _menuPortal;
68
58
  /** Emits when the element is destroyed. */
69
59
  private readonly _destroyed;
70
- /** The menu stack for this trigger and its associated menus. */
71
- private readonly _menuStack;
72
60
  /** Emits when the outside pointer events listener on the overlay should be stopped. */
73
61
  private readonly _stopOutsideClicksListener;
74
- constructor(_viewContainerRef: ViewContainerRef, _overlay: Overlay, _contextMenuTracker: ContextMenuTracker, _options: ContextMenuOptions, _directionality?: Directionality | undefined);
62
+ constructor(injector: Injector, _viewContainerRef: ViewContainerRef, _overlay: Overlay, _contextMenuTracker: ContextMenuTracker, menuStack: MenuStack, _directionality?: Directionality | undefined);
75
63
  /**
76
64
  * Open the attached menu at the specified location.
77
65
  * @param coordinates where to open the context menu
@@ -97,10 +85,6 @@ export declare class CdkContextMenuTrigger implements OnDestroy {
97
85
  * @param coordinates the location to place the opened menu
98
86
  */
99
87
  private _getOverlayPositionStrategy;
100
- /**
101
- * Determine and return where to position the opened menu relative to the mouse location.
102
- */
103
- private _getOverlayPositions;
104
88
  /**
105
89
  * Get the portal to be attached to the overlay which contains the menu. Allows for the menu
106
90
  * content to change dynamically and be reflected in the application.
@@ -116,8 +100,6 @@ export declare class CdkContextMenuTrigger implements OnDestroy {
116
100
  ngOnDestroy(): void;
117
101
  /** Destroy and unset the overlay reference it if exists. */
118
102
  private _destroyOverlay;
119
- /** Set the menu panels menu stack back to null. */
120
- private _resetPanelMenuStack;
121
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkContextMenuTrigger, [null, null, null, null, { optional: true; }]>;
122
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkContextMenuTrigger, "[cdkContextMenuTriggerFor]", ["cdkContextMenuTriggerFor"], { "menuPanel": "cdkContextMenuTriggerFor"; "disabled": "cdkContextMenuDisabled"; }, { "opened": "cdkContextMenuOpened"; "closed": "cdkContextMenuClosed"; }, never>;
103
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkContextMenuTrigger, [null, null, null, null, null, { optional: true; }]>;
104
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkContextMenuTrigger, "[cdkContextMenuTriggerFor]", ["cdkContextMenuTriggerFor"], { "_menuTemplateRef": "cdkContextMenuTriggerFor"; "menuPosition": "cdkMenuPosition"; "disabled": "cdkContextMenuDisabled"; }, { "opened": "cdkContextMenuOpened"; "closed": "cdkContextMenuClosed"; }, never>;
123
105
  }
@@ -20,9 +20,9 @@ import * as i0 from "@angular/core";
20
20
  *
21
21
  */
22
22
  export declare class CdkMenuBar extends CdkMenuGroup implements Menu, AfterContentInit, OnDestroy {
23
- readonly _menuStack: MenuStack;
24
23
  private readonly _ngZone;
25
24
  readonly _elementRef: ElementRef<HTMLElement>;
25
+ readonly _menuStack: MenuStack;
26
26
  private readonly _menuAim?;
27
27
  private readonly _dir?;
28
28
  /**
@@ -40,7 +40,7 @@ export declare class CdkMenuBar extends CdkMenuGroup implements Menu, AfterConte
40
40
  private readonly _allItems;
41
41
  /** The Menu Item which triggered the open submenu. */
42
42
  private _openItem?;
43
- constructor(_menuStack: MenuStack, _ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _menuAim?: MenuAim | undefined, _dir?: Directionality | undefined);
43
+ constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _menuStack: MenuStack, _menuAim?: MenuAim | undefined, _dir?: Directionality | undefined);
44
44
  ngAfterContentInit(): void;
45
45
  /** Place focus on the first MenuItem in the menu and set the focus origin. */
46
46
  focusFirstItem(focusOrigin?: FocusOrigin): void;
@@ -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
@@ -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 { OnDestroy, ElementRef, NgZone } from '@angular/core';
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
12
  import { CdkMenuItemTrigger } from './menu-item-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
@@ -22,7 +23,7 @@ export declare class CdkMenuItemRadio extends CdkMenuItemSelectable implements O
22
23
  private readonly _selectionDispatcher;
23
24
  /** Function to unregister the selection dispatcher */
24
25
  private _removeDispatcherListener;
25
- constructor(_selectionDispatcher: UniqueSelectionDispatcher, element: ElementRef<HTMLElement>, ngZone: NgZone, parentMenu?: Menu, menuAim?: MenuAim, dir?: Directionality,
26
+ constructor(_selectionDispatcher: UniqueSelectionDispatcher, element: ElementRef<HTMLElement>, ngZone: NgZone, menuStack?: MenuStack, parentMenu?: Menu, menuAim?: MenuAim, dir?: Directionality,
26
27
  /** Reference to the CdkMenuItemTrigger directive if one is added to the same element */
27
28
  menuTrigger?: CdkMenuItemTrigger);
28
29
  /** Configure the unique selection dispatcher listener in order to toggle the checked state */
@@ -30,6 +31,6 @@ export declare class CdkMenuItemRadio extends CdkMenuItemSelectable implements O
30
31
  /** Toggles the checked state of the radio-button. */
31
32
  trigger(): void;
32
33
  ngOnDestroy(): void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItemRadio, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItemRadio, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
34
35
  static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItemRadio, "[cdkMenuItemRadio]", ["cdkMenuItemRadio"], {}, {}, never>;
35
36
  }
@@ -5,13 +5,13 @@
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 { EventEmitter, ElementRef, ViewContainerRef, OnDestroy, NgZone } from '@angular/core';
8
+ import { ElementRef, EventEmitter, Injector, NgZone, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
9
9
  import { Directionality } from '@angular/cdk/bidi';
10
- import { Overlay } from '@angular/cdk/overlay';
11
- import { CdkMenuPanel } from './menu-panel';
10
+ import { ConnectedPosition, Overlay } from '@angular/cdk/overlay';
12
11
  import { Menu } from './menu-interface';
13
12
  import { MenuStack } from './menu-stack';
14
13
  import { MenuAim } from './menu-aim';
14
+ import { MenuTrigger } from './menu-trigger';
15
15
  import * as i0 from "@angular/core";
16
16
  /**
17
17
  * Whether the target element is a menu item to be ignored by the overlay background click handler.
@@ -26,7 +26,7 @@ export declare function isClickInsideMenuOverlay(target: Element): boolean;
26
26
  * The directive must be placed along with the `cdkMenuItem` directive in order to enable full
27
27
  * functionality.
28
28
  */
29
- export declare class CdkMenuItemTrigger implements OnDestroy {
29
+ export declare class CdkMenuItemTrigger extends MenuTrigger implements OnDestroy {
30
30
  private readonly _elementRef;
31
31
  protected readonly _viewContainerRef: ViewContainerRef;
32
32
  private readonly _overlay;
@@ -35,25 +35,22 @@ export declare class CdkMenuItemTrigger implements OnDestroy {
35
35
  private readonly _menuAim?;
36
36
  private readonly _directionality?;
37
37
  /** Template reference variable to the menu this trigger opens */
38
- get menuPanel(): CdkMenuPanel | undefined;
39
- set menuPanel(panel: CdkMenuPanel | undefined);
40
- /** Reference to the MenuPanel this trigger toggles. */
41
- private _menuPanel?;
38
+ _menuTemplateRef?: TemplateRef<unknown>;
39
+ /** A list of preferred menu positions to be used when constructing the `FlexibleConnectedPositionStrategy` for this trigger's menu. */
40
+ menuPosition: ConnectedPosition[];
42
41
  /** Emits when the attached menu is requested to open */
43
42
  readonly opened: EventEmitter<void>;
44
43
  /** Emits when the attached menu is requested to close */
45
44
  readonly closed: EventEmitter<void>;
46
- /** The menu stack for this trigger and its sub-menus. */
47
- _menuStack: MenuStack;
48
45
  /** A reference to the overlay which manages the triggered menu */
49
46
  private _overlayRef;
50
47
  /** The content of the menu panel opened by this trigger. */
51
- private _panelContent;
48
+ private _menuPortal;
52
49
  /** Emits when this trigger is destroyed. */
53
50
  private readonly _destroyed;
54
51
  /** Emits when the outside pointer events listener on the overlay should be stopped. */
55
52
  private readonly _stopOutsideClicksListener;
56
- constructor(_elementRef: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _overlay: Overlay, _ngZone: NgZone, _parentMenu?: Menu | undefined, _menuAim?: MenuAim | undefined, _directionality?: Directionality | undefined);
53
+ constructor(injector: Injector, _elementRef: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _overlay: Overlay, _ngZone: NgZone, menuStack: MenuStack, _parentMenu?: Menu | undefined, _menuAim?: MenuAim | undefined, _directionality?: Directionality | undefined);
57
54
  /** Open/close the attached menu if the trigger has been configured with one */
58
55
  toggle(): void;
59
56
  /** Open the attached menu. */
@@ -102,11 +99,7 @@ export declare class CdkMenuItemTrigger implements OnDestroy {
102
99
  * this triggers when requested.
103
100
  */
104
101
  private _registerCloseHandler;
105
- /** Get the menu stack for this trigger - either from the parent or this trigger. */
106
- private _getMenuStack;
107
102
  ngOnDestroy(): void;
108
- /** Set the menu panels menu stack back to null. */
109
- private _resetPanelMenuStack;
110
103
  /**
111
104
  * Subscribe to the overlays outside pointer events stream and handle closing out the stack if a
112
105
  * click occurs outside the menus.
@@ -114,6 +107,6 @@ export declare class CdkMenuItemTrigger implements OnDestroy {
114
107
  private _subscribeToOutsideClicks;
115
108
  /** Destroy and unset the overlay reference it if exists */
116
109
  private _destroyOverlay;
117
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItemTrigger, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
118
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItemTrigger, "[cdkMenuTriggerFor]", ["cdkMenuTriggerFor"], { "menuPanel": "cdkMenuTriggerFor"; }, { "opened": "cdkMenuOpened"; "closed": "cdkMenuClosed"; }, never>;
110
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItemTrigger, [null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
111
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItemTrigger, "[cdkMenuTriggerFor]", ["cdkMenuTriggerFor"], { "_menuTemplateRef": "cdkMenuTriggerFor"; "menuPosition": "cdkMenuPosition"; }, { "opened": "cdkMenuOpened"; "closed": "cdkMenuClosed"; }, never>;
119
112
  }
@@ -11,8 +11,9 @@ import { FocusableOption } from '@angular/cdk/a11y';
11
11
  import { Directionality } from '@angular/cdk/bidi';
12
12
  import { CdkMenuItemTrigger } from './menu-item-trigger';
13
13
  import { Menu } from './menu-interface';
14
+ import { MenuStack } from './menu-stack';
14
15
  import { FocusableElement } from './pointer-focus-tracker';
15
- import { Toggler, MenuAim } from './menu-aim';
16
+ import { MenuAim, Toggler } from './menu-aim';
16
17
  import * as i0 from "@angular/core";
17
18
  /**
18
19
  * Directive which provides the ability for an element to be focused and navigated to using the
@@ -22,6 +23,7 @@ import * as i0 from "@angular/core";
22
23
  export declare class CdkMenuItem implements FocusableOption, FocusableElement, Toggler, OnDestroy {
23
24
  readonly _elementRef: ElementRef<HTMLElement>;
24
25
  private readonly _ngZone;
26
+ private readonly _menuStack?;
25
27
  private readonly _parentMenu?;
26
28
  private readonly _menuAim?;
27
29
  private readonly _dir?;
@@ -31,6 +33,11 @@ export declare class CdkMenuItem implements FocusableOption, FocusableElement, T
31
33
  get disabled(): boolean;
32
34
  set disabled(value: BooleanInput);
33
35
  private _disabled;
36
+ /**
37
+ * The text used to locate this item during menu typeahead. If not specified,
38
+ * the `textContent` of the item will be used.
39
+ */
40
+ typeahead: string;
34
41
  /**
35
42
  * If this MenuItem is a regular MenuItem, outputs when it is triggered by a keyboard or mouse
36
43
  * event.
@@ -43,7 +50,7 @@ export declare class CdkMenuItem implements FocusableOption, FocusableElement, T
43
50
  _tabindex: 0 | -1;
44
51
  /** Emits when the menu item is destroyed. */
45
52
  private readonly _destroyed;
46
- constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _parentMenu?: Menu | undefined, _menuAim?: MenuAim | undefined, _dir?: Directionality | undefined,
53
+ constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _menuStack?: MenuStack | undefined, _parentMenu?: Menu | undefined, _menuAim?: MenuAim | undefined, _dir?: Directionality | undefined,
47
54
  /** Reference to the CdkMenuItemTrigger directive if one is added to the same element */
48
55
  _menuTrigger?: CdkMenuItemTrigger | undefined);
49
56
  /** Place focus on the element. */
@@ -92,9 +99,7 @@ export declare class CdkMenuItem implements FocusableOption, FocusableElement, T
92
99
  * otherwise or if no parent.
93
100
  */
94
101
  private _isParentVertical;
95
- /** Get the MenuStack from the parent menu. */
96
- private _getMenuStack;
97
102
  ngOnDestroy(): void;
98
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItem, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
99
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItem, "[cdkMenuItem]", ["cdkMenuItem"], { "disabled": "disabled"; }, { "triggered": "cdkMenuItemTriggered"; }, never>;
103
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItem, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
104
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItem, "[cdkMenuItem]", ["cdkMenuItem"], { "disabled": "disabled"; "typeahead": "typeahead"; }, { "triggered": "cdkMenuItemTriggered"; }, never>;
100
105
  }
@@ -1,17 +1,16 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./menu-bar";
3
3
  import * as i2 from "./menu";
4
- import * as i3 from "./menu-panel";
5
- import * as i4 from "./menu-item";
6
- import * as i5 from "./menu-item-radio";
7
- import * as i6 from "./menu-item-checkbox";
8
- import * as i7 from "./menu-item-trigger";
9
- import * as i8 from "./menu-group";
10
- import * as i9 from "./context-menu";
11
- import * as i10 from "./menu-aim";
12
- import * as i11 from "@angular/cdk/overlay";
4
+ import * as i3 from "./menu-item";
5
+ import * as i4 from "./menu-item-radio";
6
+ import * as i5 from "./menu-item-checkbox";
7
+ import * as i6 from "./menu-item-trigger";
8
+ import * as i7 from "./menu-group";
9
+ import * as i8 from "./context-menu";
10
+ import * as i9 from "./menu-aim";
11
+ import * as i10 from "@angular/cdk/overlay";
13
12
  export declare class CdkMenuModule {
14
13
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<CdkMenuModule, [typeof i1.CdkMenuBar, typeof i2.CdkMenu, typeof i3.CdkMenuPanel, typeof i4.CdkMenuItem, typeof i5.CdkMenuItemRadio, typeof i6.CdkMenuItemCheckbox, typeof i7.CdkMenuItemTrigger, typeof i8.CdkMenuGroup, typeof i9.CdkContextMenuTrigger, typeof i10.CdkTargetMenuAim], [typeof i11.OverlayModule], [typeof i1.CdkMenuBar, typeof i2.CdkMenu, typeof i3.CdkMenuPanel, typeof i4.CdkMenuItem, typeof i5.CdkMenuItemRadio, typeof i6.CdkMenuItemCheckbox, typeof i7.CdkMenuItemTrigger, typeof i8.CdkMenuGroup, typeof i9.CdkContextMenuTrigger, typeof i10.CdkTargetMenuAim]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CdkMenuModule, [typeof i1.CdkMenuBar, typeof i2.CdkMenu, typeof i3.CdkMenuItem, typeof i4.CdkMenuItemRadio, typeof i5.CdkMenuItemCheckbox, typeof i6.CdkMenuItemTrigger, typeof i7.CdkMenuGroup, typeof i8.CdkContextMenuTrigger, typeof i9.CdkTargetMenuAim], [typeof i10.OverlayModule], [typeof i1.CdkMenuBar, typeof i2.CdkMenu, typeof i3.CdkMenuItem, typeof i4.CdkMenuItemRadio, typeof i5.CdkMenuItemCheckbox, typeof i6.CdkMenuItemTrigger, typeof i7.CdkMenuGroup, typeof i8.CdkContextMenuTrigger, typeof i9.CdkTargetMenuAim]>;
16
15
  static ɵinj: i0.ɵɵInjectorDeclaration<CdkMenuModule>;
17
16
  }
@@ -5,7 +5,9 @@
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 } from '@angular/core';
8
9
  import { Observable } from 'rxjs';
10
+ import * as i0 from "@angular/core";
9
11
  /** Events to emit as specified by the caller once the MenuStack is empty. */
10
12
  export declare const enum FocusNext {
11
13
  nextItem = 0,
@@ -17,8 +19,10 @@ export declare const enum FocusNext {
17
19
  */
18
20
  export interface MenuStackItem {
19
21
  /** A reference to the previous Menus MenuStack instance. */
20
- _menuStack: MenuStack | null;
22
+ _menuStack?: MenuStack;
21
23
  }
24
+ /** Injection token used for an implementation of MenuStack. */
25
+ export declare const MENU_STACK: InjectionToken<MenuStack>;
22
26
  /**
23
27
  * MenuStack allows subscribers to listen for close events (when a MenuStackItem is popped off
24
28
  * of the stack) in order to perform closing actions. Upon the MenuStack being empty it emits
@@ -70,9 +74,6 @@ export declare class MenuStack {
70
74
  length(): number;
71
75
  /** Get the top most element on the stack. */
72
76
  peek(): MenuStackItem | undefined;
73
- }
74
- /** NoopMenuStack is a placeholder MenuStack used for inline menus. */
75
- export declare class NoopMenuStack extends MenuStack {
76
- /** Noop push - does not add elements to the MenuStack. */
77
- push(_: MenuStackItem): void;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuStack, never>;
78
+ static ɵprov: i0.ɵɵInjectableDeclaration<MenuStack>;
78
79
  }
@@ -0,0 +1,24 @@
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 { InjectionToken, Injector } from '@angular/core';
9
+ import { Menu } from './menu-interface';
10
+ import { MenuStack } from './menu-stack';
11
+ import * as i0 from "@angular/core";
12
+ /** Injection token used for an implementation of MenuStack. */
13
+ export declare const MENU_TRIGGER: InjectionToken<MenuTrigger>;
14
+ export declare class MenuTrigger {
15
+ protected injector: Injector;
16
+ protected menuStack: MenuStack;
17
+ private _childMenuInjector?;
18
+ protected childMenu?: Menu;
19
+ constructor(injector: Injector, menuStack: MenuStack);
20
+ protected getChildMenuInjector(): Injector;
21
+ registerChildMenu(child: Menu): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuTrigger, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<MenuTrigger>;
24
+ }
package/menu/menu.d.ts CHANGED
@@ -5,14 +5,14 @@
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 { EventEmitter, AfterContentInit, OnDestroy, OnInit, NgZone, ElementRef } from '@angular/core';
8
+ import { AfterContentInit, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
9
9
  import { FocusOrigin } from '@angular/cdk/a11y';
10
10
  import { Directionality } from '@angular/cdk/bidi';
11
11
  import { CdkMenuGroup } from './menu-group';
12
- import { CdkMenuPanel } from './menu-panel';
13
12
  import { Menu } from './menu-interface';
14
13
  import { MenuStack } from './menu-stack';
15
14
  import { MenuAim } from './menu-aim';
15
+ import { MenuTrigger } from './menu-trigger';
16
16
  import * as i0 from "@angular/core";
17
17
  /**
18
18
  * Directive which configures the element as a Menu which should contain child elements marked as
@@ -24,9 +24,10 @@ import * as i0 from "@angular/core";
24
24
  export declare class CdkMenu extends CdkMenuGroup implements Menu, AfterContentInit, OnInit, OnDestroy {
25
25
  private readonly _ngZone;
26
26
  readonly _elementRef: ElementRef<HTMLElement>;
27
+ readonly _menuStack?: MenuStack | undefined;
28
+ private _parentTrigger?;
27
29
  private readonly _menuAim?;
28
30
  private readonly _dir?;
29
- private readonly _menuPanel?;
30
31
  /**
31
32
  * Sets the aria-orientation attribute and determines where menus will be opened.
32
33
  * Does not affect styling/layout.
@@ -34,8 +35,6 @@ export declare class CdkMenu extends CdkMenuGroup implements Menu, AfterContentI
34
35
  orientation: 'horizontal' | 'vertical';
35
36
  /** Event emitted when the menu is closed. */
36
37
  readonly closed: EventEmitter<void | 'click' | 'tab' | 'escape'>;
37
- /** Track the Menus making up the open menu stack. */
38
- _menuStack: MenuStack;
39
38
  /** Handles keyboard events for the menu. */
40
39
  private _keyManager;
41
40
  /** Manages items under mouse focus. */
@@ -46,15 +45,7 @@ export declare class CdkMenu extends CdkMenuGroup implements Menu, AfterContentI
46
45
  private readonly _allItems;
47
46
  /** The Menu Item which triggered the open submenu. */
48
47
  private _openItem?;
49
- /**
50
- * A reference to the enclosing parent menu panel.
51
- *
52
- * Required to be set when using ViewEngine since ViewEngine does support injecting a reference to
53
- * the parent directive if the parent directive is placed on an `ng-template`. If using Ivy, the
54
- * injected value will be used over this one.
55
- */
56
- private readonly _explicitPanel?;
57
- constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _menuAim?: MenuAim | undefined, _dir?: Directionality | undefined, _menuPanel?: CdkMenuPanel | undefined);
48
+ constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _menuStack?: MenuStack | undefined, _parentTrigger?: MenuTrigger | undefined, _menuAim?: MenuAim | undefined, _dir?: Directionality | undefined);
58
49
  ngOnInit(): void;
59
50
  ngAfterContentInit(): void;
60
51
  /** Place focus on the first MenuItem in the menu and set the focus origin. */
@@ -63,13 +54,6 @@ export declare class CdkMenu extends CdkMenuGroup implements Menu, AfterContentI
63
54
  focusLastItem(focusOrigin?: FocusOrigin): void;
64
55
  /** Handle keyboard events for the Menu. */
65
56
  _handleKeyEvent(event: KeyboardEvent): void;
66
- /** Register this menu with its enclosing parent menu panel */
67
- private _registerWithParentPanel;
68
- /**
69
- * Get the enclosing CdkMenuPanel defaulting to the injected reference over the developer
70
- * provided reference.
71
- */
72
- private _getMenuPanel;
73
57
  /**
74
58
  * Complete the change emitter if there are any nested MenuGroups or register to complete the
75
59
  * change emitter if a MenuGroup is rendered at some point
@@ -108,6 +92,6 @@ export declare class CdkMenu extends CdkMenuGroup implements Menu, AfterContentI
108
92
  ngOnDestroy(): void;
109
93
  /** Emit and complete the closed event emitter */
110
94
  private _emitClosedEvent;
111
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenu, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
112
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenu, "[cdkMenu]", ["cdkMenu"], { "orientation": "cdkMenuOrientation"; "_explicitPanel": "cdkMenuPanel"; }, { "closed": "closed"; }, ["_nestedGroups", "_allItems"]>;
95
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenu, [null, null, { optional: true; }, { optional: true; }, { optional: true; self: true; }, { optional: true; }]>;
96
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenu, "[cdkMenu]", ["cdkMenu"], { "orientation": "cdkMenuOrientation"; }, { "closed": "closed"; }, ["_nestedGroups", "_allItems"]>;
113
97
  }
@@ -12,9 +12,9 @@ export * from './menu-item';
12
12
  export * from './menu-item-checkbox';
13
13
  export * from './menu-item-radio';
14
14
  export * from './menu-item-trigger';
15
- export * from './menu-panel';
16
15
  export * from './menu-group';
17
16
  export * from './context-menu';
18
- export { MenuStack, MenuStackItem } from './menu-stack';
17
+ export * from './menu-trigger';
18
+ export { MenuStack, MenuStackItem, MENU_STACK } from './menu-stack';
19
19
  export { CDK_MENU } from './menu-interface';
20
20
  export { TargetMenuAim, MenuAim, MENU_AIM, CdkTargetMenuAim } from './menu-aim';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cdk-experimental",
3
- "version": "14.0.0-next.5",
3
+ "version": "14.0.0-next.8",
4
4
  "description": "Experimental components for Angular CDK",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "homepage": "https://github.com/angular/components#readme",
14
14
  "peerDependencies": {
15
- "@angular/cdk": "14.0.0-next.5",
15
+ "@angular/cdk": "14.0.0-next.8",
16
16
  "@angular/core": "^14.0.0-0 || ^15.0.0"
17
17
  },
18
18
  "dependencies": {
@@ -1,27 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @license
6
- * Copyright Google LLC All Rights Reserved.
7
- *
8
- * Use of this source code is governed by an MIT-style license that can be
9
- * found in the LICENSE file at https://angular.io/license
10
- */
11
- export declare type AriaHasPopupValue = 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
12
- export declare class CdkComboboxPanel<T = unknown> {
13
- readonly _templateRef: TemplateRef<unknown>;
14
- valueUpdated: Subject<T | T[]>;
15
- contentIdUpdated: Subject<string>;
16
- contentTypeUpdated: Subject<AriaHasPopupValue>;
17
- contentId: string;
18
- contentType: AriaHasPopupValue;
19
- constructor(_templateRef: TemplateRef<unknown>);
20
- /** Tells the parent combobox to close the panel and sends back the content value. */
21
- closePanel(data?: T | T[]): void;
22
- focusContent(): void;
23
- /** Registers the content's id and the content type with the panel. */
24
- _registerContent(contentId: string, contentType: AriaHasPopupValue): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkComboboxPanel<any>, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkComboboxPanel<any>, "ng-template[cdkComboboxPanel]", ["cdkComboboxPanel"], {}, {}, never>;
27
- }