@angular/cdk 14.0.0-next.11 → 14.0.0-next.12

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 (227) hide show
  1. package/a11y/focus-monitor/focus-monitor.d.ts +1 -1
  2. package/a11y/focus-trap/focus-trap.d.ts +1 -1
  3. package/a11y/live-announcer/live-announcer.d.ts +1 -1
  4. package/accordion/accordion-item.d.ts +1 -1
  5. package/accordion/accordion.d.ts +1 -1
  6. package/bidi/dir.d.ts +1 -1
  7. package/clipboard/copy-to-clipboard.d.ts +1 -1
  8. package/dialog/dialog-config.d.ts +115 -0
  9. package/dialog/dialog-container.d.ts +95 -0
  10. package/dialog/dialog-injectors.d.ts +24 -0
  11. package/dialog/dialog-module.d.ts +10 -0
  12. package/dialog/dialog-ref.d.ts +64 -0
  13. package/dialog/dialog.d.ts +103 -0
  14. package/dialog/dialog_public_index.d.ts +4 -0
  15. package/dialog/index.d.ts +8 -0
  16. package/dialog/package.json +9 -0
  17. package/dialog/public-api.d.ts +13 -0
  18. package/drag-drop/directives/drag-handle.d.ts +1 -1
  19. package/drag-drop/directives/drag-placeholder.d.ts +1 -1
  20. package/drag-drop/directives/drag-preview.d.ts +1 -1
  21. package/drag-drop/directives/drag.d.ts +8 -9
  22. package/drag-drop/directives/drop-list-group.d.ts +1 -1
  23. package/drag-drop/directives/drop-list.d.ts +1 -1
  24. package/esm2020/a11y/a11y-module.mjs +4 -4
  25. package/esm2020/a11y/aria-describer/aria-describer.mjs +3 -3
  26. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +6 -6
  27. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +3 -3
  28. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +3 -3
  29. package/esm2020/a11y/focus-trap/focus-trap.mjs +6 -6
  30. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +3 -3
  31. package/esm2020/a11y/input-modality/input-modality-detector.mjs +3 -3
  32. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +3 -3
  33. package/esm2020/a11y/live-announcer/live-announcer.mjs +6 -6
  34. package/esm2020/accordion/accordion-item.mjs +3 -3
  35. package/esm2020/accordion/accordion-module.mjs +4 -4
  36. package/esm2020/accordion/accordion.mjs +3 -3
  37. package/esm2020/bidi/bidi-module.mjs +4 -4
  38. package/esm2020/bidi/dir.mjs +3 -3
  39. package/esm2020/bidi/directionality.mjs +3 -3
  40. package/esm2020/clipboard/clipboard-module.mjs +4 -4
  41. package/esm2020/clipboard/clipboard.mjs +3 -3
  42. package/esm2020/clipboard/copy-to-clipboard.mjs +3 -3
  43. package/esm2020/collections/unique-selection-dispatcher.mjs +3 -3
  44. package/esm2020/dialog/dialog-config.mjs +58 -0
  45. package/esm2020/dialog/dialog-container.mjs +265 -0
  46. package/esm2020/dialog/dialog-injectors.mjs +26 -0
  47. package/esm2020/dialog/dialog-module.mjs +42 -0
  48. package/esm2020/dialog/dialog-ref.mjs +76 -0
  49. package/esm2020/dialog/dialog.mjs +285 -0
  50. package/esm2020/dialog/dialog_public_index.mjs +5 -0
  51. package/esm2020/dialog/index.mjs +9 -0
  52. package/esm2020/dialog/public-api.mjs +14 -0
  53. package/esm2020/drag-drop/directives/drag-handle.mjs +3 -3
  54. package/esm2020/drag-drop/directives/drag-placeholder.mjs +3 -3
  55. package/esm2020/drag-drop/directives/drag-preview.mjs +3 -3
  56. package/esm2020/drag-drop/directives/drag.mjs +11 -4
  57. package/esm2020/drag-drop/directives/drop-list-group.mjs +3 -3
  58. package/esm2020/drag-drop/directives/drop-list.mjs +3 -3
  59. package/esm2020/drag-drop/drag-drop-module.mjs +4 -4
  60. package/esm2020/drag-drop/drag-drop-registry.mjs +3 -3
  61. package/esm2020/drag-drop/drag-drop.mjs +3 -3
  62. package/esm2020/layout/breakpoints-observer.mjs +3 -3
  63. package/esm2020/layout/layout-module.mjs +4 -4
  64. package/esm2020/layout/media-matcher.mjs +3 -3
  65. package/esm2020/menu/context-menu-trigger.mjs +227 -0
  66. package/esm2020/menu/index.mjs +9 -0
  67. package/esm2020/menu/menu-aim.mjs +204 -0
  68. package/esm2020/menu/menu-bar.mjs +159 -0
  69. package/esm2020/menu/menu-base.mjs +203 -0
  70. package/esm2020/menu/menu-errors.mjs +22 -0
  71. package/esm2020/menu/menu-group.mjs +30 -0
  72. package/esm2020/menu/menu-interface.mjs +11 -0
  73. package/esm2020/menu/menu-item-checkbox.mjs +48 -0
  74. package/esm2020/menu/menu-item-radio.mjs +114 -0
  75. package/esm2020/menu/menu-item-selectable.mjs +42 -0
  76. package/esm2020/menu/menu-item.mjs +289 -0
  77. package/esm2020/menu/menu-module.mjs +62 -0
  78. package/esm2020/menu/menu-stack.mjs +156 -0
  79. package/esm2020/menu/menu-trigger-base.mjs +114 -0
  80. package/esm2020/menu/menu-trigger.mjs +302 -0
  81. package/esm2020/menu/menu.mjs +168 -0
  82. package/esm2020/menu/menu_public_index.mjs +5 -0
  83. package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
  84. package/esm2020/menu/public-api.mjs +24 -0
  85. package/esm2020/observers/observe-content.mjs +13 -13
  86. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +3 -3
  87. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +3 -3
  88. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +3 -3
  89. package/esm2020/overlay/fullscreen-overlay-container.mjs +3 -3
  90. package/esm2020/overlay/overlay-container.mjs +3 -3
  91. package/esm2020/overlay/overlay-directives.mjs +6 -6
  92. package/esm2020/overlay/overlay-module.mjs +4 -4
  93. package/esm2020/overlay/overlay-ref.mjs +4 -3
  94. package/esm2020/overlay/overlay.mjs +3 -3
  95. package/esm2020/overlay/position/overlay-position-builder.mjs +3 -3
  96. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +3 -3
  97. package/esm2020/platform/platform-module.mjs +4 -4
  98. package/esm2020/platform/platform.mjs +3 -3
  99. package/esm2020/portal/portal-directives.mjs +16 -16
  100. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +3 -3
  101. package/esm2020/scrolling/scroll-dispatcher.mjs +3 -3
  102. package/esm2020/scrolling/scrollable.mjs +3 -3
  103. package/esm2020/scrolling/scrolling-module.mjs +8 -8
  104. package/esm2020/scrolling/viewport-ruler.mjs +3 -3
  105. package/esm2020/scrolling/virtual-for-of.mjs +3 -3
  106. package/esm2020/scrolling/virtual-scroll-viewport.mjs +3 -3
  107. package/esm2020/stepper/step-header.mjs +3 -3
  108. package/esm2020/stepper/step-label.mjs +3 -3
  109. package/esm2020/stepper/stepper-button.mjs +6 -6
  110. package/esm2020/stepper/stepper-module.mjs +4 -4
  111. package/esm2020/stepper/stepper.mjs +6 -6
  112. package/esm2020/table/cell.mjs +21 -21
  113. package/esm2020/table/coalesced-style-scheduler.mjs +3 -3
  114. package/esm2020/table/row.mjs +28 -28
  115. package/esm2020/table/table-module.mjs +4 -4
  116. package/esm2020/table/table.mjs +20 -20
  117. package/esm2020/table/text-column.mjs +4 -4
  118. package/esm2020/text-field/autofill.mjs +6 -6
  119. package/esm2020/text-field/autosize.mjs +3 -3
  120. package/esm2020/text-field/text-field-module.mjs +4 -4
  121. package/esm2020/tree/nested-node.mjs +3 -3
  122. package/esm2020/tree/node.mjs +3 -3
  123. package/esm2020/tree/outlet.mjs +3 -3
  124. package/esm2020/tree/padding.mjs +3 -3
  125. package/esm2020/tree/toggle.mjs +3 -3
  126. package/esm2020/tree/tree-module.mjs +4 -4
  127. package/esm2020/tree/tree.mjs +6 -6
  128. package/esm2020/version.mjs +1 -1
  129. package/fesm2015/a11y.mjs +40 -40
  130. package/fesm2015/accordion.mjs +10 -10
  131. package/fesm2015/bidi.mjs +10 -10
  132. package/fesm2015/cdk.mjs +1 -1
  133. package/fesm2015/cdk.mjs.map +1 -1
  134. package/fesm2015/clipboard.mjs +10 -10
  135. package/fesm2015/collections.mjs +3 -3
  136. package/fesm2015/dialog.mjs +749 -0
  137. package/fesm2015/dialog.mjs.map +1 -0
  138. package/fesm2015/drag-drop.mjs +35 -28
  139. package/fesm2015/drag-drop.mjs.map +1 -1
  140. package/fesm2015/layout.mjs +10 -10
  141. package/fesm2015/menu.mjs +2131 -0
  142. package/fesm2015/menu.mjs.map +1 -0
  143. package/fesm2015/observers.mjs +13 -13
  144. package/fesm2015/overlay.mjs +37 -36
  145. package/fesm2015/overlay.mjs.map +1 -1
  146. package/fesm2015/platform.mjs +7 -7
  147. package/fesm2015/portal.mjs +16 -16
  148. package/fesm2015/scrolling.mjs +26 -26
  149. package/fesm2015/stepper.mjs +22 -22
  150. package/fesm2015/table.mjs +78 -78
  151. package/fesm2015/table.mjs.map +1 -1
  152. package/fesm2015/text-field.mjs +13 -13
  153. package/fesm2015/tree.mjs +25 -25
  154. package/fesm2015/tree.mjs.map +1 -1
  155. package/fesm2020/a11y.mjs +40 -40
  156. package/fesm2020/accordion.mjs +10 -10
  157. package/fesm2020/bidi.mjs +10 -10
  158. package/fesm2020/cdk.mjs +1 -1
  159. package/fesm2020/cdk.mjs.map +1 -1
  160. package/fesm2020/clipboard.mjs +10 -10
  161. package/fesm2020/collections.mjs +3 -3
  162. package/fesm2020/dialog.mjs +753 -0
  163. package/fesm2020/dialog.mjs.map +1 -0
  164. package/fesm2020/drag-drop.mjs +35 -28
  165. package/fesm2020/drag-drop.mjs.map +1 -1
  166. package/fesm2020/layout.mjs +10 -10
  167. package/fesm2020/menu.mjs +2104 -0
  168. package/fesm2020/menu.mjs.map +1 -0
  169. package/fesm2020/observers.mjs +13 -13
  170. package/fesm2020/overlay.mjs +37 -36
  171. package/fesm2020/overlay.mjs.map +1 -1
  172. package/fesm2020/platform.mjs +7 -7
  173. package/fesm2020/portal.mjs +16 -16
  174. package/fesm2020/scrolling.mjs +26 -26
  175. package/fesm2020/stepper.mjs +22 -22
  176. package/fesm2020/table.mjs +78 -78
  177. package/fesm2020/table.mjs.map +1 -1
  178. package/fesm2020/text-field.mjs +13 -13
  179. package/fesm2020/tree.mjs +25 -25
  180. package/fesm2020/tree.mjs.map +1 -1
  181. package/menu/context-menu-trigger.d.ts +98 -0
  182. package/menu/index.d.ts +8 -0
  183. package/menu/menu-aim.d.ts +107 -0
  184. package/menu/menu-bar.d.ts +52 -0
  185. package/menu/menu-base.d.ts +104 -0
  186. package/menu/menu-errors.d.ts +17 -0
  187. package/menu/menu-group.d.ts +8 -0
  188. package/menu/menu-interface.d.ts +25 -0
  189. package/menu/menu-item-checkbox.d.ts +18 -0
  190. package/menu/menu-item-radio.d.ts +59 -0
  191. package/menu/menu-item-selectable.d.ts +21 -0
  192. package/menu/menu-item.d.ts +140 -0
  193. package/menu/menu-module.d.ts +17 -0
  194. package/menu/menu-stack.d.ts +122 -0
  195. package/menu/menu-trigger-base.d.ts +77 -0
  196. package/menu/menu-trigger.d.ts +104 -0
  197. package/menu/menu.d.ts +60 -0
  198. package/menu/menu_public_index.d.ts +4 -0
  199. package/menu/package.json +9 -0
  200. package/menu/pointer-focus-tracker.d.ts +47 -0
  201. package/menu/public-api.d.ts +23 -0
  202. package/observers/observe-content.d.ts +1 -1
  203. package/overlay/overlay-directives.d.ts +2 -2
  204. package/package.json +17 -1
  205. package/portal/portal-directives.d.ts +4 -4
  206. package/schematics/ng-add/index.js +1 -1
  207. package/schematics/ng-add/index.mjs +1 -1
  208. package/scrolling/fixed-size-virtual-scroll.d.ts +1 -1
  209. package/scrolling/scrollable.d.ts +1 -1
  210. package/scrolling/virtual-for-of.d.ts +1 -1
  211. package/scrolling/virtual-scroll-viewport.d.ts +1 -1
  212. package/stepper/step-header.d.ts +1 -1
  213. package/stepper/step-label.d.ts +1 -1
  214. package/stepper/stepper-button.d.ts +2 -2
  215. package/stepper/stepper.d.ts +2 -2
  216. package/table/cell.d.ts +7 -7
  217. package/table/row.d.ts +9 -9
  218. package/table/table.d.ts +6 -6
  219. package/table/text-column.d.ts +1 -1
  220. package/text-field/autofill.d.ts +1 -1
  221. package/text-field/autosize.d.ts +1 -1
  222. package/tree/nested-node.d.ts +1 -1
  223. package/tree/node.d.ts +1 -1
  224. package/tree/outlet.d.ts +1 -1
  225. package/tree/padding.d.ts +1 -1
  226. package/tree/toggle.d.ts +1 -1
  227. package/tree/tree.d.ts +2 -2
@@ -0,0 +1,122 @@
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, Optional } from '@angular/core';
9
+ import { Observable } from 'rxjs';
10
+ import * as i0 from "@angular/core";
11
+ /** The relative item in the inline menu to focus after closing all popup menus. */
12
+ export declare const enum FocusNext {
13
+ nextItem = 0,
14
+ previousItem = 1,
15
+ currentItem = 2
16
+ }
17
+ /** A single item (menu) in the menu stack. */
18
+ export interface MenuStackItem {
19
+ /** A reference to the menu stack this menu stack item belongs to. */
20
+ menuStack?: MenuStack;
21
+ }
22
+ /** Injection token used for an implementation of MenuStack. */
23
+ export declare const MENU_STACK: InjectionToken<MenuStack>;
24
+ /** Provider that provides the parent menu stack, or a new menu stack if there is no parent one. */
25
+ export declare const PARENT_OR_NEW_MENU_STACK_PROVIDER: {
26
+ provide: InjectionToken<MenuStack>;
27
+ deps: Optional[][];
28
+ useFactory: (parentMenuStack?: MenuStack | undefined) => MenuStack;
29
+ };
30
+ /** Provider that provides the parent menu stack, or a new inline menu stack if there is no parent one. */
31
+ export declare const PARENT_OR_NEW_INLINE_MENU_STACK_PROVIDER: (orientation: 'vertical' | 'horizontal') => {
32
+ provide: InjectionToken<MenuStack>;
33
+ deps: Optional[][];
34
+ useFactory: (parentMenuStack?: MenuStack | undefined) => MenuStack;
35
+ };
36
+ /** Options that can be provided to the close or closeAll methods. */
37
+ export interface CloseOptions {
38
+ /** The element to focus next if the close operation causes the menu stack to become empty. */
39
+ focusNextOnEmpty?: FocusNext;
40
+ /** Whether to focus the parent trigger after closing the menu. */
41
+ focusParentTrigger?: boolean;
42
+ }
43
+ /** Event dispatched when a menu is closed. */
44
+ export interface MenuStackCloseEvent {
45
+ /** The menu being closed. */
46
+ item: MenuStackItem;
47
+ /** Whether to focus the parent trigger after closing the menu. */
48
+ focusParentTrigger?: boolean;
49
+ }
50
+ /**
51
+ * MenuStack allows subscribers to listen for close events (when a MenuStackItem is popped off
52
+ * of the stack) in order to perform closing actions. Upon the MenuStack being empty it emits
53
+ * from the `empty` observable specifying the next focus action which the listener should perform
54
+ * as requested by the closer.
55
+ */
56
+ export declare class MenuStack {
57
+ /** The ID of this menu stack. */
58
+ readonly id: string;
59
+ /** All MenuStackItems tracked by this MenuStack. */
60
+ private readonly _elements;
61
+ /** Emits the element which was popped off of the stack when requested by a closer. */
62
+ private readonly _close;
63
+ /** Emits once the MenuStack has become empty after popping off elements. */
64
+ private readonly _empty;
65
+ /** Emits whether any menu in the menu stack has focus. */
66
+ private readonly _hasFocus;
67
+ /** Observable which emits the MenuStackItem which has been requested to close. */
68
+ readonly closed: Observable<MenuStackCloseEvent>;
69
+ /** Observable which emits whether any menu in the menu stack has focus. */
70
+ readonly hasFocus: Observable<boolean>;
71
+ /**
72
+ * Observable which emits when the MenuStack is empty after popping off the last element. It
73
+ * emits a FocusNext event which specifies the action the closer has requested the listener
74
+ * perform.
75
+ */
76
+ readonly emptied: Observable<FocusNext | undefined>;
77
+ /**
78
+ * Whether the inline menu associated with this menu stack is vertical or horizontal.
79
+ * `null` indicates there is no inline menu associated with this menu stack.
80
+ */
81
+ private _inlineMenuOrientation;
82
+ /** Creates a menu stack that originates from an inline menu. */
83
+ static inline(orientation: 'vertical' | 'horizontal'): MenuStack;
84
+ /**
85
+ * Adds an item to the menu stack.
86
+ * @param menu the MenuStackItem to put on the stack.
87
+ */
88
+ push(menu: MenuStackItem): void;
89
+ /**
90
+ * Pop items off of the stack up to and including `lastItem` and emit each on the close
91
+ * observable. If the stack is empty or `lastItem` is not on the stack it does nothing.
92
+ * @param lastItem the last item to pop off the stack.
93
+ * @param options Options that configure behavior on close.
94
+ */
95
+ close(lastItem: MenuStackItem, options?: CloseOptions): void;
96
+ /**
97
+ * Pop items off of the stack up to but excluding `lastItem` and emit each on the close
98
+ * observable. If the stack is empty or `lastItem` is not on the stack it does nothing.
99
+ * @param lastItem the element which should be left on the stack
100
+ * @return whether or not an item was removed from the stack
101
+ */
102
+ closeSubMenuOf(lastItem: MenuStackItem): boolean;
103
+ /**
104
+ * Pop off all MenuStackItems and emit each one on the `close` observable one by one.
105
+ * @param options Options that configure behavior on close.
106
+ */
107
+ closeAll(options?: CloseOptions): void;
108
+ /** Return true if this stack is empty. */
109
+ isEmpty(): boolean;
110
+ /** Return the length of the stack. */
111
+ length(): number;
112
+ /** Get the top most element on the stack. */
113
+ peek(): MenuStackItem | undefined;
114
+ /** Whether the menu stack is associated with an inline menu. */
115
+ hasInlineMenu(): boolean;
116
+ /** The orientation of the associated inline menu. */
117
+ inlineMenuOrientation(): "vertical" | "horizontal" | null;
118
+ /** Sets whether the menu stack contains the focused element. */
119
+ setHasFocus(hasFocus: boolean): void;
120
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuStack, never>;
121
+ static ɵprov: i0.ɵɵInjectableDeclaration<MenuStack>;
122
+ }
@@ -0,0 +1,77 @@
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, InjectionToken, Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
9
+ import { Menu } from './menu-interface';
10
+ import { MenuStack } from './menu-stack';
11
+ import { ConnectedPosition, OverlayRef } from '@angular/cdk/overlay';
12
+ import { TemplatePortal } from '@angular/cdk/portal';
13
+ import { Subject } from 'rxjs';
14
+ import * as i0 from "@angular/core";
15
+ /** Injection token used for an implementation of MenuStack. */
16
+ export declare const MENU_TRIGGER: InjectionToken<CdkMenuTriggerBase>;
17
+ /**
18
+ * Abstract directive that implements shared logic common to all menu triggers.
19
+ * This class can be extended to create custom menu trigger types.
20
+ */
21
+ export declare abstract class CdkMenuTriggerBase implements OnDestroy {
22
+ /** The DI injector for this component */
23
+ protected readonly injector: Injector;
24
+ /** The view container ref for this component */
25
+ protected readonly viewContainerRef: ViewContainerRef;
26
+ /** The menu stack this menu is part of. */
27
+ protected readonly menuStack: MenuStack;
28
+ /** A list of preferred menu positions to be used when constructing the `FlexibleConnectedPositionStrategy` for this trigger's menu. */
29
+ menuPosition: ConnectedPosition[];
30
+ /** Emits when the attached menu is requested to open */
31
+ readonly opened: EventEmitter<void>;
32
+ /** Emits when the attached menu is requested to close */
33
+ readonly closed: EventEmitter<void>;
34
+ /** Template reference variable to the menu this trigger opens */
35
+ menuTemplateRef: TemplateRef<unknown>;
36
+ /** A reference to the overlay which manages the triggered menu */
37
+ protected overlayRef: OverlayRef | null;
38
+ /** Emits when this trigger is destroyed. */
39
+ protected readonly destroyed: Subject<void>;
40
+ /** Emits when the outside pointer events listener on the overlay should be stopped. */
41
+ protected readonly stopOutsideClicksListener: import("rxjs").Observable<void>;
42
+ /** The child menu opened by this trigger. */
43
+ protected childMenu?: Menu;
44
+ /** The content of the menu panel opened by this trigger. */
45
+ private _menuPortal;
46
+ /** The injector to use for the child menu opened by this trigger. */
47
+ private _childMenuInjector?;
48
+ protected constructor(
49
+ /** The DI injector for this component */
50
+ injector: Injector,
51
+ /** The view container ref for this component */
52
+ viewContainerRef: ViewContainerRef,
53
+ /** The menu stack this menu is part of. */
54
+ menuStack: MenuStack);
55
+ ngOnDestroy(): void;
56
+ /** Whether the attached menu is open. */
57
+ isOpen(): boolean;
58
+ /** Registers a child menu as having been opened by this trigger. */
59
+ registerChildMenu(child: Menu): void;
60
+ /**
61
+ * Get the portal to be attached to the overlay which contains the menu. Allows for the menu
62
+ * content to change dynamically and be reflected in the application.
63
+ */
64
+ protected getMenuContentPortal(): TemplatePortal<any>;
65
+ /**
66
+ * Whether the given element is inside the scope of this trigger's menu stack.
67
+ * @param element The element to check.
68
+ * @return Whether the element is inside the scope of this trigger's menu stack.
69
+ */
70
+ protected isElementInsideMenuStack(element: Element): boolean;
71
+ /** Destroy and unset the overlay reference it if exists */
72
+ private _destroyOverlay;
73
+ /** Gets the injector to use when creating a child menu. */
74
+ private _getChildMenuInjector;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuTriggerBase, never>;
76
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuTriggerBase, never, never, {}, {}, never, never, false>;
77
+ }
@@ -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 { ElementRef, Injector, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
9
+ import { Directionality } from '@angular/cdk/bidi';
10
+ import { Overlay } from '@angular/cdk/overlay';
11
+ import { Menu } from './menu-interface';
12
+ import { MenuStack } from './menu-stack';
13
+ import { MenuAim } from './menu-aim';
14
+ import { CdkMenuTriggerBase } from './menu-trigger-base';
15
+ import * as i0 from "@angular/core";
16
+ /**
17
+ * A directive that turns its host element into a trigger for a popup menu.
18
+ * It can be combined with cdkMenuItem to create sub-menus. If the element is in a top level
19
+ * MenuBar it will open the menu on click, or if a sibling is already opened it will open on hover.
20
+ * If it is inside of a Menu it will open the attached Submenu on hover regardless of its sibling
21
+ * state.
22
+ */
23
+ export declare class CdkMenuTrigger extends CdkMenuTriggerBase implements OnDestroy {
24
+ /** The host element. */
25
+ private readonly _elementRef;
26
+ /** The CDK overlay service. */
27
+ private readonly _overlay;
28
+ /** The Angular zone. */
29
+ private readonly _ngZone;
30
+ /** The parent menu this trigger belongs to. */
31
+ private readonly _parentMenu?;
32
+ /** The menu aim service used by this menu. */
33
+ private readonly _menuAim?;
34
+ /** The directionality of the page. */
35
+ private readonly _directionality?;
36
+ constructor(
37
+ /** The DI injector for this component. */
38
+ injector: Injector,
39
+ /** The host element. */
40
+ _elementRef: ElementRef<HTMLElement>,
41
+ /** The view container ref for this component. */
42
+ viewContainerRef: ViewContainerRef,
43
+ /** The CDK overlay service. */
44
+ _overlay: Overlay,
45
+ /** The Angular zone. */
46
+ _ngZone: NgZone,
47
+ /** The menu stack this trigger belongs to. */
48
+ menuStack: MenuStack,
49
+ /** The parent menu this trigger belongs to. */
50
+ _parentMenu?: Menu | undefined,
51
+ /** The menu aim service used by this menu. */
52
+ _menuAim?: MenuAim | undefined,
53
+ /** The directionality of the page. */
54
+ _directionality?: Directionality | undefined);
55
+ /** Toggle the attached menu. */
56
+ toggle(): void;
57
+ /** Open the attached menu. */
58
+ open(): void;
59
+ /** Close the opened menu. */
60
+ close(): void;
61
+ /**
62
+ * Get a reference to the rendered Menu if the Menu is open and rendered in the DOM.
63
+ */
64
+ getMenu(): Menu | undefined;
65
+ /**
66
+ * Handles keyboard events for the menu item.
67
+ * @param event The keyboard event to handle
68
+ */
69
+ _toggleOnKeydown(event: KeyboardEvent): void;
70
+ /**
71
+ * Sets whether the trigger's menu stack has focus.
72
+ * @param hasFocus Whether the menu stack has focus.
73
+ */
74
+ _setHasFocus(hasFocus: boolean): void;
75
+ /**
76
+ * Subscribe to the mouseenter events and close any sibling menu items if this element is moused
77
+ * into.
78
+ */
79
+ private _subscribeToMouseEnter;
80
+ /** Close out any sibling menu trigger menus. */
81
+ private _closeSiblingTriggers;
82
+ /** Get the configuration object used to create the overlay. */
83
+ private _getOverlayConfig;
84
+ /** Build the position strategy for the overlay which specifies where to place the menu. */
85
+ private _getOverlayPositionStrategy;
86
+ /** Get the preferred positions for the opened menu relative to the menu item. */
87
+ private _getOverlayPositions;
88
+ /**
89
+ * Subscribe to the MenuStack close events if this is a standalone trigger and close out the menu
90
+ * this triggers when requested.
91
+ */
92
+ private _registerCloseHandler;
93
+ /**
94
+ * Subscribe to the overlays outside pointer events stream and handle closing out the stack if a
95
+ * click occurs outside the menus.
96
+ */
97
+ private _subscribeToOutsideClicks;
98
+ /** Subscribe to the MenuStack hasFocus events. */
99
+ private _subscribeToMenuStackHasFocus;
100
+ /** Subscribe to the MenuStack closed events. */
101
+ private _subscribeToMenuStackClosed;
102
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuTrigger, [null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
103
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuTrigger, "[cdkMenuTriggerFor]", ["cdkMenuTriggerFor"], { "menuTemplateRef": "cdkMenuTriggerFor"; "menuPosition": "cdkMenuPosition"; }, { "opened": "cdkMenuOpened"; "closed": "cdkMenuClosed"; }, never, never, false>;
104
+ }
package/menu/menu.d.ts ADDED
@@ -0,0 +1,60 @@
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 { AfterContentInit, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
9
+ import { Directionality } from '@angular/cdk/bidi';
10
+ import { MenuStack } from './menu-stack';
11
+ import { MenuAim } from './menu-aim';
12
+ import { CdkMenuTriggerBase } from './menu-trigger-base';
13
+ import { CdkMenuBase } from './menu-base';
14
+ import * as i0 from "@angular/core";
15
+ /**
16
+ * Directive which configures the element as a Menu which should contain child elements marked as
17
+ * CdkMenuItem or CdkMenuGroup. Sets the appropriate role and aria-attributes for a menu and
18
+ * contains accessible keyboard and mouse handling logic.
19
+ *
20
+ * It also acts as a RadioGroup for elements marked with role `menuitemradio`.
21
+ */
22
+ export declare class CdkMenu extends CdkMenuBase implements AfterContentInit, OnDestroy {
23
+ /** The trigger that opened this menu. */
24
+ private _parentTrigger?;
25
+ /** Event emitted when the menu is closed. */
26
+ readonly closed: EventEmitter<void>;
27
+ /** The direction items in the menu flow. */
28
+ readonly orientation = "vertical";
29
+ /** Whether the menu is displayed inline (i.e. always present vs a conditional popup that the user triggers with a trigger element). */
30
+ readonly isInline: boolean;
31
+ constructor(
32
+ /** The host element. */
33
+ elementRef: ElementRef<HTMLElement>,
34
+ /** The Angular zone. */
35
+ ngZone: NgZone,
36
+ /** The menu stack this menu is part of. */
37
+ menuStack: MenuStack,
38
+ /** The trigger that opened this menu. */
39
+ _parentTrigger?: CdkMenuTriggerBase | undefined,
40
+ /** The menu aim service used by this menu. */
41
+ menuAim?: MenuAim,
42
+ /** The directionality of the page. */
43
+ dir?: Directionality);
44
+ ngAfterContentInit(): void;
45
+ ngOnDestroy(): void;
46
+ /**
47
+ * Handle keyboard events for the Menu.
48
+ * @param event The keyboard event to be handled.
49
+ */
50
+ _handleKeyEvent(event: KeyboardEvent): void;
51
+ /**
52
+ * Set focus the either the current, previous or next item based on the FocusNext event.
53
+ * @param focusNext The element to focus.
54
+ */
55
+ private _toggleMenuFocus;
56
+ /** Subscribe to the MenuStack emptied events. */
57
+ private _subscribeToMenuStackEmptied;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenu, [null, null, null, { optional: true; }, { optional: true; self: true; }, { optional: true; }]>;
59
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenu, "[cdkMenu]", ["cdkMenu"], {}, { "closed": "closed"; }, never, never, false>;
60
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@angular/cdk/menu",
3
+ "fesm2020": "../fesm2020/menu.mjs",
4
+ "fesm2015": "../fesm2015/menu.mjs",
5
+ "esm2020": "../esm2020/menu/menu_public_index.mjs",
6
+ "typings": "./menu_public_index.d.ts",
7
+ "module": "../fesm2015/menu.mjs",
8
+ "es2020": "../fesm2020/menu.mjs"
9
+ }
@@ -0,0 +1,47 @@
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 { ElementRef, QueryList } from '@angular/core';
9
+ import { Observable } from 'rxjs';
10
+ /** Item to track for mouse focus events. */
11
+ export interface FocusableElement {
12
+ /** A reference to the element to be tracked. */
13
+ _elementRef: ElementRef<HTMLElement>;
14
+ }
15
+ /**
16
+ * PointerFocusTracker keeps track of the currently active item under mouse focus. It also has
17
+ * observables which emit when the users mouse enters and leaves a tracked element.
18
+ */
19
+ export declare class PointerFocusTracker<T extends FocusableElement> {
20
+ /** The list of items being tracked. */
21
+ private readonly _items;
22
+ /** Emits when an element is moused into. */
23
+ readonly entered: Observable<T>;
24
+ /** Emits when an element is moused out. */
25
+ readonly exited: Observable<T>;
26
+ /** The element currently under mouse focus. */
27
+ activeElement?: T;
28
+ /** The element previously under mouse focus. */
29
+ previousElement?: T;
30
+ /** Emits when this is destroyed. */
31
+ private readonly _destroyed;
32
+ constructor(
33
+ /** The list of items being tracked. */
34
+ _items: QueryList<T>);
35
+ /** Stop the managers listeners. */
36
+ destroy(): void;
37
+ /**
38
+ * Gets a stream of pointer (mouse) entries into the given items.
39
+ * This should typically run outside the Angular zone.
40
+ */
41
+ private _getItemPointerEntries;
42
+ /**
43
+ * Gets a stream of pointer (mouse) exits out of the given items.
44
+ * This should typically run outside the Angular zone.
45
+ */
46
+ private _getItemPointerExits;
47
+ }
@@ -0,0 +1,23 @@
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
+ export * from './menu-module';
9
+ export * from './menu-bar';
10
+ export * from './menu';
11
+ export * from './menu-base';
12
+ export * from './menu-item';
13
+ export * from './menu-item-checkbox';
14
+ export * from './menu-item-radio';
15
+ export * from './menu-trigger';
16
+ export * from './menu-group';
17
+ export * from './menu-item-selectable';
18
+ export * from './context-menu-trigger';
19
+ export * from './menu-trigger-base';
20
+ export * from './pointer-focus-tracker';
21
+ export * from './menu-stack';
22
+ export * from './menu-interface';
23
+ export * from './menu-aim';
@@ -78,7 +78,7 @@ export declare class CdkObserveContent implements AfterContentInit, OnDestroy {
78
78
  private _subscribe;
79
79
  private _unsubscribe;
80
80
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkObserveContent, never>;
81
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkObserveContent, "[cdkObserveContent]", ["cdkObserveContent"], { "disabled": "cdkObserveContentDisabled"; "debounce": "debounce"; }, { "event": "cdkObserveContent"; }, never>;
81
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkObserveContent, "[cdkObserveContent]", ["cdkObserveContent"], { "disabled": "cdkObserveContentDisabled"; "debounce": "debounce"; }, { "event": "cdkObserveContent"; }, never, never, false>;
82
82
  }
83
83
  export declare class ObserversModule {
84
84
  static ɵfac: i0.ɵɵFactoryDeclaration<ObserversModule, never>;
@@ -27,7 +27,7 @@ export declare class CdkOverlayOrigin {
27
27
  /** Reference to the element on which the directive is applied. */
28
28
  elementRef: ElementRef);
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkOverlayOrigin, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkOverlayOrigin, "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", ["cdkOverlayOrigin"], {}, {}, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkOverlayOrigin, "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", ["cdkOverlayOrigin"], {}, {}, never, never, false>;
31
31
  }
32
32
  /**
33
33
  * Directive to facilitate declarative creation of an
@@ -136,7 +136,7 @@ export declare class CdkConnectedOverlay implements OnDestroy, OnChanges {
136
136
  /** Detaches the overlay and unsubscribes to backdrop clicks if backdrop exists */
137
137
  private _detachOverlay;
138
138
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkConnectedOverlay, [null, null, null, null, { optional: true; }]>;
139
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkConnectedOverlay, "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", ["cdkConnectedOverlay"], { "origin": "cdkConnectedOverlayOrigin"; "positions": "cdkConnectedOverlayPositions"; "positionStrategy": "cdkConnectedOverlayPositionStrategy"; "offsetX": "cdkConnectedOverlayOffsetX"; "offsetY": "cdkConnectedOverlayOffsetY"; "width": "cdkConnectedOverlayWidth"; "height": "cdkConnectedOverlayHeight"; "minWidth": "cdkConnectedOverlayMinWidth"; "minHeight": "cdkConnectedOverlayMinHeight"; "backdropClass": "cdkConnectedOverlayBackdropClass"; "panelClass": "cdkConnectedOverlayPanelClass"; "viewportMargin": "cdkConnectedOverlayViewportMargin"; "scrollStrategy": "cdkConnectedOverlayScrollStrategy"; "open": "cdkConnectedOverlayOpen"; "disableClose": "cdkConnectedOverlayDisableClose"; "transformOriginSelector": "cdkConnectedOverlayTransformOriginOn"; "hasBackdrop": "cdkConnectedOverlayHasBackdrop"; "lockPosition": "cdkConnectedOverlayLockPosition"; "flexibleDimensions": "cdkConnectedOverlayFlexibleDimensions"; "growAfterOpen": "cdkConnectedOverlayGrowAfterOpen"; "push": "cdkConnectedOverlayPush"; }, { "backdropClick": "backdropClick"; "positionChange": "positionChange"; "attach": "attach"; "detach": "detach"; "overlayKeydown": "overlayKeydown"; "overlayOutsideClick": "overlayOutsideClick"; }, never>;
139
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkConnectedOverlay, "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", ["cdkConnectedOverlay"], { "origin": "cdkConnectedOverlayOrigin"; "positions": "cdkConnectedOverlayPositions"; "positionStrategy": "cdkConnectedOverlayPositionStrategy"; "offsetX": "cdkConnectedOverlayOffsetX"; "offsetY": "cdkConnectedOverlayOffsetY"; "width": "cdkConnectedOverlayWidth"; "height": "cdkConnectedOverlayHeight"; "minWidth": "cdkConnectedOverlayMinWidth"; "minHeight": "cdkConnectedOverlayMinHeight"; "backdropClass": "cdkConnectedOverlayBackdropClass"; "panelClass": "cdkConnectedOverlayPanelClass"; "viewportMargin": "cdkConnectedOverlayViewportMargin"; "scrollStrategy": "cdkConnectedOverlayScrollStrategy"; "open": "cdkConnectedOverlayOpen"; "disableClose": "cdkConnectedOverlayDisableClose"; "transformOriginSelector": "cdkConnectedOverlayTransformOriginOn"; "hasBackdrop": "cdkConnectedOverlayHasBackdrop"; "lockPosition": "cdkConnectedOverlayLockPosition"; "flexibleDimensions": "cdkConnectedOverlayFlexibleDimensions"; "growAfterOpen": "cdkConnectedOverlayGrowAfterOpen"; "push": "cdkConnectedOverlayPush"; }, { "backdropClick": "backdropClick"; "positionChange": "positionChange"; "attach": "attach"; "detach": "detach"; "overlayKeydown": "overlayKeydown"; "overlayOutsideClick": "overlayOutsideClick"; }, never, never, false>;
140
140
  }
141
141
  /** @docs-private */
142
142
  export declare function CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => RepositionScrollStrategy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cdk",
3
- "version": "14.0.0-next.11",
3
+ "version": "14.0.0-next.12",
4
4
  "description": "Angular Material Component Development Kit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -100,6 +100,14 @@
100
100
  "node": "./fesm2015/collections.mjs",
101
101
  "default": "./fesm2020/collections.mjs"
102
102
  },
103
+ "./dialog": {
104
+ "types": "./dialog/dialog_public_index.d.ts",
105
+ "esm2020": "./esm2020/dialog/dialog_public_index.mjs",
106
+ "es2020": "./fesm2020/dialog.mjs",
107
+ "es2015": "./fesm2015/dialog.mjs",
108
+ "node": "./fesm2015/dialog.mjs",
109
+ "default": "./fesm2020/dialog.mjs"
110
+ },
103
111
  "./drag-drop": {
104
112
  "types": "./drag-drop/drag-drop_public_index.d.ts",
105
113
  "esm2020": "./esm2020/drag-drop/drag-drop_public_index.mjs",
@@ -124,6 +132,14 @@
124
132
  "node": "./fesm2015/layout.mjs",
125
133
  "default": "./fesm2020/layout.mjs"
126
134
  },
135
+ "./menu": {
136
+ "types": "./menu/menu_public_index.d.ts",
137
+ "esm2020": "./esm2020/menu/menu_public_index.mjs",
138
+ "es2020": "./fesm2020/menu.mjs",
139
+ "es2015": "./fesm2015/menu.mjs",
140
+ "node": "./fesm2015/menu.mjs",
141
+ "default": "./fesm2020/menu.mjs"
142
+ },
127
143
  "./observers": {
128
144
  "types": "./observers/observers_public_index.d.ts",
129
145
  "esm2020": "./esm2020/observers/observers_public_index.mjs",
@@ -15,7 +15,7 @@ import * as i0 from "@angular/core";
15
15
  export declare class CdkPortal extends TemplatePortal {
16
16
  constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortal, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never, never, false>;
19
19
  }
20
20
  /**
21
21
  * @deprecated Use `CdkPortal` instead.
@@ -23,7 +23,7 @@ export declare class CdkPortal extends TemplatePortal {
23
23
  */
24
24
  export declare class TemplatePortalDirective extends CdkPortal {
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePortalDirective, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never, never, false>;
27
27
  }
28
28
  /**
29
29
  * Possible attached references to the CdkPortalOutlet.
@@ -82,7 +82,7 @@ export declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit,
82
82
  /** Gets the root node of the portal outlet. */
83
83
  private _getRootNode;
84
84
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortalOutlet, never>;
85
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": "cdkPortalOutlet"; }, { "attached": "attached"; }, never>;
85
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": "cdkPortalOutlet"; }, { "attached": "attached"; }, never, never, false>;
86
86
  }
87
87
  /**
88
88
  * @deprecated Use `CdkPortalOutlet` instead.
@@ -90,7 +90,7 @@ export declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit,
90
90
  */
91
91
  export declare class PortalHostDirective extends CdkPortalOutlet {
92
92
  static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
93
- static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": "cdkPortalHost"; }, {}, never>;
93
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": "cdkPortalHost"; }, {}, never, never, false>;
94
94
  }
95
95
  export declare class PortalModule {
96
96
  static ɵfac: i0.ɵɵFactoryDeclaration<PortalModule, never>;
@@ -28,7 +28,7 @@ function default_1() {
28
28
  // In order to align the CDK version with other Angular dependencies that are setup by
29
29
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
30
30
  // dependencies in new CLI projects.
31
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.0.0-next.11`);
31
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.0.0-next.12`);
32
32
  // Add a task to run the package manager. This is necessary because we updated the
33
33
  // workspace "package.json" file and we want lock files to reflect the new version range.
34
34
  context.addTask(new tasks_1.NodePackageInstallTask());
@@ -28,7 +28,7 @@ function default_1() {
28
28
  // In order to align the CDK version with other Angular dependencies that are setup by
29
29
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
30
30
  // dependencies in new CLI projects.
31
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.0.0-next.11`);
31
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~14.0.0-next.12`);
32
32
  // Add a task to run the package manager. This is necessary because we updated the
33
33
  // workspace "package.json" file and we want lock files to reflect the new version range.
34
34
  context.addTask(new tasks_1.NodePackageInstallTask());
@@ -93,5 +93,5 @@ export declare class CdkFixedSizeVirtualScroll implements OnChanges {
93
93
  _scrollStrategy: FixedSizeVirtualScrollStrategy;
94
94
  ngOnChanges(): void;
95
95
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkFixedSizeVirtualScroll, never>;
96
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFixedSizeVirtualScroll, "cdk-virtual-scroll-viewport[itemSize]", never, { "itemSize": "itemSize"; "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; }, {}, never>;
96
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkFixedSizeVirtualScroll, "cdk-virtual-scroll-viewport[itemSize]", never, { "itemSize": "itemSize"; "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; }, {}, never, never, false>;
97
97
  }
@@ -81,5 +81,5 @@ export declare class CdkScrollable implements OnInit, OnDestroy {
81
81
  */
82
82
  measureScrollOffset(from: 'top' | 'left' | 'right' | 'bottom' | 'start' | 'end'): number;
83
83
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkScrollable, [null, null, null, { optional: true; }]>;
84
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkScrollable, "[cdk-scrollable], [cdkScrollable]", never, {}, {}, never>;
84
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkScrollable, "[cdk-scrollable], [cdkScrollable]", never, {}, {}, never, never, false>;
85
85
  }
@@ -113,5 +113,5 @@ export declare class CdkVirtualForOf<T> implements CdkVirtualScrollRepeater<T>,
113
113
  private _updateComputedContextProperties;
114
114
  private _getEmbeddedViewArgs;
115
115
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkVirtualForOf<any>, [null, null, null, null, { skipSelf: true; }, null]>;
116
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkVirtualForOf<any>, "[cdkVirtualFor][cdkVirtualForOf]", never, { "cdkVirtualForOf": "cdkVirtualForOf"; "cdkVirtualForTrackBy": "cdkVirtualForTrackBy"; "cdkVirtualForTemplate": "cdkVirtualForTemplate"; "cdkVirtualForTemplateCacheSize": "cdkVirtualForTemplateCacheSize"; }, {}, never>;
116
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkVirtualForOf<any>, "[cdkVirtualFor][cdkVirtualForOf]", never, { "cdkVirtualForOf": "cdkVirtualForOf"; "cdkVirtualForTrackBy": "cdkVirtualForTrackBy"; "cdkVirtualForTemplate": "cdkVirtualForTemplate"; "cdkVirtualForTemplateCacheSize": "cdkVirtualForTemplateCacheSize"; }, {}, never, never, false>;
117
117
  }
@@ -143,5 +143,5 @@ export declare class CdkVirtualScrollViewport extends CdkScrollable implements O
143
143
  /** Calculates the `style.width` and `style.height` for the spacer element. */
144
144
  private _calculateSpacerSize;
145
145
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkVirtualScrollViewport, [null, null, null, { optional: true; }, { optional: true; }, null, null]>;
146
- static ɵcmp: i0.ɵɵComponentDeclaration<CdkVirtualScrollViewport, "cdk-virtual-scroll-viewport", never, { "orientation": "orientation"; "appendOnly": "appendOnly"; }, { "scrolledIndexChange": "scrolledIndexChange"; }, never, ["*"]>;
146
+ static ɵcmp: i0.ɵɵComponentDeclaration<CdkVirtualScrollViewport, "cdk-virtual-scroll-viewport", never, { "orientation": "orientation"; "appendOnly": "appendOnly"; }, { "scrolledIndexChange": "scrolledIndexChange"; }, never, ["*"], false>;
147
147
  }
@@ -14,5 +14,5 @@ export declare class CdkStepHeader implements FocusableOption {
14
14
  /** Focuses the step header. */
15
15
  focus(): void;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepHeader, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepHeader, "[cdkStepHeader]", never, {}, {}, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepHeader, "[cdkStepHeader]", never, {}, {}, never, never, false>;
18
18
  }
@@ -11,5 +11,5 @@ export declare class CdkStepLabel {
11
11
  template: TemplateRef<any>;
12
12
  constructor(/** @docs-private */ template: TemplateRef<any>);
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepLabel, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepLabel, "[cdkStepLabel]", never, {}, {}, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepLabel, "[cdkStepLabel]", never, {}, {}, never, never, false>;
15
15
  }