@angular/cdk-experimental 14.0.0-next.10 → 14.0.0-next.13

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 (212) hide show
  1. package/column-resize/index.d.ts +419 -6
  2. package/combobox/index.d.ts +123 -8
  3. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  4. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
  5. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
  6. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
  7. package/esm2020/column-resize/column-resize-module.mjs +9 -9
  8. package/esm2020/column-resize/column-resize-notifier.mjs +7 -7
  9. package/esm2020/column-resize/column-resize.mjs +4 -4
  10. package/esm2020/column-resize/column-size-store.mjs +4 -4
  11. package/esm2020/column-resize/event-dispatcher.mjs +4 -4
  12. package/esm2020/column-resize/overlay-handle.mjs +4 -4
  13. package/esm2020/column-resize/resizable.mjs +4 -4
  14. package/esm2020/column-resize/resize-strategy.mjs +10 -10
  15. package/esm2020/combobox/combobox-module.mjs +5 -5
  16. package/esm2020/combobox/combobox-popup.mjs +4 -4
  17. package/esm2020/combobox/combobox.mjs +4 -4
  18. package/esm2020/listbox/listbox-module.mjs +5 -5
  19. package/esm2020/listbox/listbox.mjs +7 -7
  20. package/esm2020/popover-edit/edit-event-dispatcher.mjs +4 -4
  21. package/esm2020/popover-edit/edit-ref.mjs +4 -4
  22. package/esm2020/popover-edit/edit-services.mjs +4 -4
  23. package/esm2020/popover-edit/focus-dispatcher.mjs +4 -4
  24. package/esm2020/popover-edit/focus-escape-notifier.mjs +4 -4
  25. package/esm2020/popover-edit/lens-directives.mjs +10 -10
  26. package/esm2020/popover-edit/popover-edit-module.mjs +6 -6
  27. package/esm2020/popover-edit/popover-edit-position-strategy-factory.mjs +7 -7
  28. package/esm2020/popover-edit/table-directives.mjs +16 -16
  29. package/esm2020/scrolling/auto-size-virtual-scroll.mjs +4 -4
  30. package/esm2020/scrolling/scrolling-module.mjs +5 -5
  31. package/esm2020/selection/row-selection.mjs +4 -4
  32. package/esm2020/selection/select-all.mjs +4 -4
  33. package/esm2020/selection/selection-column.mjs +10 -10
  34. package/esm2020/selection/selection-module.mjs +5 -5
  35. package/esm2020/selection/selection-toggle.mjs +4 -4
  36. package/esm2020/selection/selection.mjs +4 -4
  37. package/esm2020/table-scroll-container/table-scroll-container-module.mjs +5 -5
  38. package/esm2020/table-scroll-container/table-scroll-container.mjs +4 -4
  39. package/esm2020/version.mjs +1 -1
  40. package/fesm2015/cdk-experimental.mjs +1 -1
  41. package/fesm2015/cdk-experimental.mjs.map +1 -1
  42. package/fesm2015/column-resize.mjs +50 -50
  43. package/fesm2015/column-resize.mjs.map +1 -1
  44. package/fesm2015/combobox.mjs +10 -10
  45. package/fesm2015/combobox.mjs.map +1 -1
  46. package/fesm2015/listbox.mjs +10 -10
  47. package/fesm2015/listbox.mjs.map +1 -1
  48. package/fesm2015/popover-edit.mjs +50 -50
  49. package/fesm2015/popover-edit.mjs.map +1 -1
  50. package/fesm2015/scrolling.mjs +7 -7
  51. package/fesm2015/scrolling.mjs.map +1 -1
  52. package/fesm2015/selection.mjs +23 -23
  53. package/fesm2015/selection.mjs.map +1 -1
  54. package/fesm2015/table-scroll-container.mjs +7 -7
  55. package/fesm2015/table-scroll-container.mjs.map +1 -1
  56. package/fesm2020/cdk-experimental.mjs +1 -1
  57. package/fesm2020/cdk-experimental.mjs.map +1 -1
  58. package/fesm2020/column-resize.mjs +50 -50
  59. package/fesm2020/column-resize.mjs.map +1 -1
  60. package/fesm2020/combobox.mjs +10 -10
  61. package/fesm2020/combobox.mjs.map +1 -1
  62. package/fesm2020/listbox.mjs +10 -10
  63. package/fesm2020/listbox.mjs.map +1 -1
  64. package/fesm2020/popover-edit.mjs +50 -50
  65. package/fesm2020/popover-edit.mjs.map +1 -1
  66. package/fesm2020/scrolling.mjs +7 -7
  67. package/fesm2020/scrolling.mjs.map +1 -1
  68. package/fesm2020/selection.mjs +23 -23
  69. package/fesm2020/selection.mjs.map +1 -1
  70. package/fesm2020/table-scroll-container.mjs +7 -7
  71. package/fesm2020/table-scroll-container.mjs.map +1 -1
  72. package/index.d.ts +6 -8
  73. package/listbox/index.d.ts +197 -8
  74. package/package.json +9 -25
  75. package/popover-edit/index.d.ts +532 -5
  76. package/scrolling/index.d.ts +173 -6
  77. package/selection/index.d.ts +273 -5
  78. package/table-scroll-container/index.d.ts +61 -5
  79. package/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -28
  80. package/column-resize/column-resize-directives/column-resize.d.ts +0 -28
  81. package/column-resize/column-resize-directives/constants.d.ts +0 -10
  82. package/column-resize/column-resize-directives/default-enabled-column-resize-flex.d.ts +0 -28
  83. package/column-resize/column-resize-directives/default-enabled-column-resize.d.ts +0 -28
  84. package/column-resize/column-resize-module.d.ts +0 -23
  85. package/column-resize/column-resize-notifier.d.ts +0 -49
  86. package/column-resize/column-resize.d.ts +0 -39
  87. package/column-resize/column-resize_public_index.d.ts +0 -4
  88. package/column-resize/column-size-store.d.ts +0 -12
  89. package/column-resize/event-dispatcher.d.ts +0 -44
  90. package/column-resize/overlay-handle.d.ts +0 -43
  91. package/column-resize/package.json +0 -9
  92. package/column-resize/public-api.d.ts +0 -20
  93. package/column-resize/resizable.d.ts +0 -69
  94. package/column-resize/resize-ref.d.ts +0 -17
  95. package/column-resize/resize-strategy.d.ts +0 -83
  96. package/column-resize/selectors.d.ts +0 -10
  97. package/combobox/combobox-module.d.ts +0 -9
  98. package/combobox/combobox-popup.d.ts +0 -27
  99. package/combobox/combobox.d.ts +0 -68
  100. package/combobox/combobox_public_index.d.ts +0 -4
  101. package/combobox/package.json +0 -9
  102. package/combobox/public-api.d.ts +0 -10
  103. package/dialog/dialog-config.d.ts +0 -82
  104. package/dialog/dialog-container.d.ts +0 -99
  105. package/dialog/dialog-injectors.d.ts +0 -30
  106. package/dialog/dialog-module.d.ts +0 -10
  107. package/dialog/dialog-ref.d.ts +0 -57
  108. package/dialog/dialog.d.ts +0 -100
  109. package/dialog/dialog_public_index.d.ts +0 -4
  110. package/dialog/index.d.ts +0 -8
  111. package/dialog/package.json +0 -9
  112. package/dialog/public-api.d.ts +0 -13
  113. package/esm2020/dialog/dialog-config.mjs +0 -43
  114. package/esm2020/dialog/dialog-container.mjs +0 -300
  115. package/esm2020/dialog/dialog-injectors.mjs +0 -30
  116. package/esm2020/dialog/dialog-module.mjs +0 -56
  117. package/esm2020/dialog/dialog-ref.mjs +0 -116
  118. package/esm2020/dialog/dialog.mjs +0 -252
  119. package/esm2020/dialog/dialog_public_index.mjs +0 -5
  120. package/esm2020/dialog/index.mjs +0 -9
  121. package/esm2020/dialog/public-api.mjs +0 -14
  122. package/esm2020/menu/context-menu-trigger.mjs +0 -227
  123. package/esm2020/menu/index.mjs +0 -9
  124. package/esm2020/menu/menu-aim.mjs +0 -204
  125. package/esm2020/menu/menu-bar.mjs +0 -159
  126. package/esm2020/menu/menu-base.mjs +0 -203
  127. package/esm2020/menu/menu-errors.mjs +0 -22
  128. package/esm2020/menu/menu-group.mjs +0 -30
  129. package/esm2020/menu/menu-interface.mjs +0 -11
  130. package/esm2020/menu/menu-item-checkbox.mjs +0 -48
  131. package/esm2020/menu/menu-item-radio.mjs +0 -114
  132. package/esm2020/menu/menu-item-selectable.mjs +0 -42
  133. package/esm2020/menu/menu-item.mjs +0 -289
  134. package/esm2020/menu/menu-module.mjs +0 -62
  135. package/esm2020/menu/menu-stack.mjs +0 -156
  136. package/esm2020/menu/menu-trigger-base.mjs +0 -114
  137. package/esm2020/menu/menu-trigger.mjs +0 -302
  138. package/esm2020/menu/menu.mjs +0 -168
  139. package/esm2020/menu/menu_public_index.mjs +0 -5
  140. package/esm2020/menu/pointer-focus-tracker.mjs +0 -51
  141. package/esm2020/menu/public-api.mjs +0 -24
  142. package/fesm2015/dialog.mjs +0 -803
  143. package/fesm2015/dialog.mjs.map +0 -1
  144. package/fesm2015/menu.mjs +0 -2131
  145. package/fesm2015/menu.mjs.map +0 -1
  146. package/fesm2020/dialog.mjs +0 -797
  147. package/fesm2020/dialog.mjs.map +0 -1
  148. package/fesm2020/menu.mjs +0 -2104
  149. package/fesm2020/menu.mjs.map +0 -1
  150. package/listbox/listbox-module.d.ts +0 -7
  151. package/listbox/listbox.d.ts +0 -172
  152. package/listbox/listbox_public_index.d.ts +0 -4
  153. package/listbox/package.json +0 -9
  154. package/listbox/public-api.d.ts +0 -9
  155. package/menu/context-menu-trigger.d.ts +0 -98
  156. package/menu/index.d.ts +0 -8
  157. package/menu/menu-aim.d.ts +0 -107
  158. package/menu/menu-bar.d.ts +0 -52
  159. package/menu/menu-base.d.ts +0 -104
  160. package/menu/menu-errors.d.ts +0 -17
  161. package/menu/menu-group.d.ts +0 -8
  162. package/menu/menu-interface.d.ts +0 -25
  163. package/menu/menu-item-checkbox.d.ts +0 -18
  164. package/menu/menu-item-radio.d.ts +0 -59
  165. package/menu/menu-item-selectable.d.ts +0 -21
  166. package/menu/menu-item.d.ts +0 -140
  167. package/menu/menu-module.d.ts +0 -17
  168. package/menu/menu-stack.d.ts +0 -122
  169. package/menu/menu-trigger-base.d.ts +0 -77
  170. package/menu/menu-trigger.d.ts +0 -104
  171. package/menu/menu.d.ts +0 -60
  172. package/menu/menu_public_index.d.ts +0 -4
  173. package/menu/package.json +0 -9
  174. package/menu/pointer-focus-tracker.d.ts +0 -47
  175. package/menu/public-api.d.ts +0 -23
  176. package/popover-edit/constants.d.ts +0 -19
  177. package/popover-edit/edit-event-dispatcher.d.ts +0 -99
  178. package/popover-edit/edit-ref.d.ts +0 -52
  179. package/popover-edit/edit-services.d.ts +0 -37
  180. package/popover-edit/focus-dispatcher.d.ts +0 -31
  181. package/popover-edit/focus-escape-notifier.d.ts +0 -40
  182. package/popover-edit/form-value-container.d.ts +0 -24
  183. package/popover-edit/lens-directives.d.ts +0 -82
  184. package/popover-edit/package.json +0 -9
  185. package/popover-edit/polyfill.d.ts +0 -9
  186. package/popover-edit/popover-edit-module.d.ts +0 -9
  187. package/popover-edit/popover-edit-position-strategy-factory.d.ts +0 -42
  188. package/popover-edit/popover-edit_public_index.d.ts +0 -4
  189. package/popover-edit/public-api.d.ts +0 -17
  190. package/popover-edit/table-directives.d.ts +0 -150
  191. package/public-api.d.ts +0 -8
  192. package/scrolling/auto-size-virtual-scroll.d.ts +0 -160
  193. package/scrolling/package.json +0 -9
  194. package/scrolling/public-api.d.ts +0 -9
  195. package/scrolling/scrolling-module.d.ts +0 -7
  196. package/scrolling/scrolling_public_index.d.ts +0 -4
  197. package/selection/package.json +0 -9
  198. package/selection/public-api.d.ts +0 -14
  199. package/selection/row-selection.d.ts +0 -27
  200. package/selection/select-all.d.ts +0 -52
  201. package/selection/selection-column.d.ts +0 -34
  202. package/selection/selection-module.d.ts +0 -13
  203. package/selection/selection-set.d.ts +0 -56
  204. package/selection/selection-toggle.d.ts +0 -46
  205. package/selection/selection.d.ts +0 -65
  206. package/selection/selection_public_index.d.ts +0 -4
  207. package/table-scroll-container/package.json +0 -9
  208. package/table-scroll-container/public-api.d.ts +0 -9
  209. package/table-scroll-container/table-scroll-container-module.d.ts +0 -7
  210. package/table-scroll-container/table-scroll-container.d.ts +0 -53
  211. package/table-scroll-container/table-scroll-container_public_index.d.ts +0 -4
  212. package/version.d.ts +0 -10
@@ -1,17 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./menu-bar";
3
- import * as i2 from "./menu";
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-trigger";
8
- import * as i7 from "./menu-group";
9
- import * as i8 from "./context-menu-trigger";
10
- import * as i9 from "./menu-aim";
11
- import * as i10 from "@angular/cdk/overlay";
12
- /** Module that declares components and directives for the CDK menu. */
13
- export declare class CdkMenuModule {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<CdkMenuModule, [typeof i1.CdkMenuBar, typeof i2.CdkMenu, typeof i3.CdkMenuItem, typeof i4.CdkMenuItemRadio, typeof i5.CdkMenuItemCheckbox, typeof i6.CdkMenuTrigger, 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.CdkMenuTrigger, typeof i7.CdkMenuGroup, typeof i8.CdkContextMenuTrigger, typeof i9.CdkTargetMenuAim]>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<CdkMenuModule>;
17
- }
@@ -1,122 +0,0 @@
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
- }
@@ -1,77 +0,0 @@
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>;
77
- }
@@ -1,104 +0,0 @@
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>;
104
- }
package/menu/menu.d.ts DELETED
@@ -1,60 +0,0 @@
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>;
60
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
package/menu/package.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "name": "@angular/cdk-experimental/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
- }
@@ -1,47 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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';
@@ -1,19 +0,0 @@
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
- /** Selector for finding table cells. */
9
- export declare const CELL_SELECTOR = ".cdk-cell, .mat-cell, td";
10
- /** Selector for finding editable table cells. */
11
- export declare const EDITABLE_CELL_SELECTOR = ".cdk-popover-edit-cell, .mat-popover-edit-cell";
12
- /** Selector for finding table rows. */
13
- export declare const ROW_SELECTOR = ".cdk-row, .mat-row, tr";
14
- /** Selector for finding the table element. */
15
- export declare const TABLE_SELECTOR = "table, cdk-table, mat-table";
16
- /** CSS class added to the edit lens pane. */
17
- export declare const EDIT_PANE_CLASS = "cdk-edit-pane";
18
- /** Selector for finding the edit lens pane. */
19
- export declare const EDIT_PANE_SELECTOR: string;
@@ -1,99 +0,0 @@
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 { NgZone } from '@angular/core';
9
- import { Observable, Subject } from 'rxjs';
10
- import * as i0 from "@angular/core";
11
- /**
12
- * The possible states for hover content:
13
- * OFF - Not rendered.
14
- * FOCUSABLE - Rendered in the dom and styled for its contents to be focusable but invisible.
15
- * ON - Rendered and fully visible.
16
- */
17
- export declare const enum HoverContentState {
18
- OFF = 0,
19
- FOCUSABLE = 1,
20
- ON = 2
21
- }
22
- /**
23
- * Service for sharing delegated events and state for triggering table edits.
24
- */
25
- export declare class EditEventDispatcher<R> {
26
- private readonly _ngZone;
27
- /** A subject that indicates which table cell is currently editing (unless it is disabled). */
28
- readonly editing: Subject<Element | null>;
29
- /** A subject that indicates which table row is currently hovered. */
30
- readonly hovering: Subject<Element | null>;
31
- /** A subject that indicates which table row currently contains focus. */
32
- readonly focused: Subject<Element | null>;
33
- /** A subject that indicates all elements in the table matching ROW_SELECTOR. */
34
- readonly allRows: Subject<NodeList>;
35
- /** A subject that emits mouse move events from the table indicating the targeted row. */
36
- readonly mouseMove: Subject<Element | null>;
37
- /**
38
- * Tracks the currently disabled editable cells - edit calls will be ignored
39
- * for these cells.
40
- */
41
- readonly disabledCells: WeakMap<Element, boolean>;
42
- /** The EditRef for the currently active edit lens (if any). */
43
- get editRef(): R | null;
44
- private _editRef;
45
- private readonly _distinctUntilChanged;
46
- private readonly _startWithNull;
47
- private readonly _distinctShare;
48
- private readonly _startWithNullDistinct;
49
- readonly editingAndEnabled: Observable<Element | null>;
50
- /** An observable that emits the row containing focus or an active edit. */
51
- readonly editingOrFocused: Observable<Element | null>;
52
- /** Tracks rows that contain hover content with a reference count. */
53
- private _rowsWithHoverContent;
54
- /** The table cell that has an active edit lens (or null). */
55
- private _currentlyEditing;
56
- /** The combined set of row hover content states organized by row. */
57
- private readonly _hoveredContentStateDistinct;
58
- private readonly _editingAndEnabledDistinct;
59
- private _lastSeenRow;
60
- private _lastSeenRowHoverOrFocus;
61
- constructor(_ngZone: NgZone);
62
- /**
63
- * Gets an Observable that emits true when the specified element's cell
64
- * is editing and false when not.
65
- */
66
- editingCell(element: Element | EventTarget): Observable<boolean>;
67
- /**
68
- * Stops editing for the specified cell. If the specified cell is not the current
69
- * edit cell, does nothing.
70
- */
71
- doneEditingCell(element: Element | EventTarget): void;
72
- /** Sets the currently active EditRef. */
73
- setActiveEditRef(ref: R): void;
74
- /** Unsets the currently active EditRef, if the specified editRef is active. */
75
- unsetActiveEditRef(ref: R): void;
76
- /** Adds the specified table row to be tracked for first/last row comparisons. */
77
- registerRowWithHoverContent(row: Element): void;
78
- /**
79
- * Reference decrements and ultimately removes the specified table row from first/last row
80
- * comparisons.
81
- */
82
- deregisterRowWithHoverContent(row: Element): void;
83
- /**
84
- * Gets an Observable that emits true when the specified element's row
85
- * contains the focused element or is being hovered over and false when not.
86
- * Hovering is defined as when the mouse has momentarily stopped moving over the cell.
87
- */
88
- hoverOrFocusOnRow(row: Element): Observable<HoverContentState>;
89
- /**
90
- * RxJS operator that enters the Angular zone, used to reduce boilerplate in
91
- * re-entering the zone for stream pipelines.
92
- */
93
- private _enterZone;
94
- private _getFirstRowWithHoverContent;
95
- private _getLastRowWithHoverContent;
96
- private _mapAllRowsToSingleRow;
97
- static ɵfac: i0.ɵɵFactoryDeclaration<EditEventDispatcher<any>, never>;
98
- static ɵprov: i0.ɵɵInjectableDeclaration<EditEventDispatcher<any>>;
99
- }
@@ -1,52 +0,0 @@
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 { OnDestroy, NgZone } from '@angular/core';
9
- import { ControlContainer } from '@angular/forms';
10
- import { Observable } from 'rxjs';
11
- import { EditEventDispatcher } from './edit-event-dispatcher';
12
- import * as i0 from "@angular/core";
13
- /**
14
- * Used for communication between the form within the edit lens and the
15
- * table that launched it. Provided by CdkEditControl within the lens.
16
- */
17
- export declare class EditRef<FormValue> implements OnDestroy {
18
- private readonly _form;
19
- private readonly _editEventDispatcher;
20
- private readonly _ngZone;
21
- /** Emits the final value of this edit instance before closing. */
22
- private readonly _finalValueSubject;
23
- readonly finalValue: Observable<FormValue>;
24
- /** Emits when the user tabs out of this edit lens before closing. */
25
- private readonly _blurredSubject;
26
- readonly blurred: Observable<void>;
27
- /** The value to set the form back to on revert. */
28
- private _revertFormValue;
29
- constructor(_form: ControlContainer, _editEventDispatcher: EditEventDispatcher<EditRef<FormValue>>, _ngZone: NgZone);
30
- /**
31
- * Called by the host directive's OnInit hook. Reads the initial state of the
32
- * form and overrides it with persisted state from previous openings, if
33
- * applicable.
34
- */
35
- init(previousFormValue: FormValue | undefined): void;
36
- ngOnDestroy(): void;
37
- /** Whether the attached form is in a valid state. */
38
- isValid(): boolean | null;
39
- /** Set the form's current value as what it will be set to on revert/reset. */
40
- updateRevertValue(): void;
41
- /** Tells the table to close the edit popup. */
42
- close(): void;
43
- /** Notifies the active edit that the user has moved focus out of the lens. */
44
- blur(): void;
45
- /**
46
- * Resets the form value to the specified value or the previously set
47
- * revert value.
48
- */
49
- reset(value?: FormValue): void;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<EditRef<any>, [{ self: true; }, null, null]>;
51
- static ɵprov: i0.ɵɵInjectableDeclaration<EditRef<any>>;
52
- }