@angular/cdk-experimental 14.0.0-next.9 → 14.0.0-rc.0

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 +7 -7
  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 +6 -6
  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 +19 -19
  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 +58 -58
  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 +58 -58
  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.mjs +0 -222
  123. package/esm2020/menu/index.mjs +0 -9
  124. package/esm2020/menu/menu-aim.mjs +0 -199
  125. package/esm2020/menu/menu-bar.mjs +0 -164
  126. package/esm2020/menu/menu-base.mjs +0 -129
  127. package/esm2020/menu/menu-errors.mjs +0 -22
  128. package/esm2020/menu/menu-group.mjs +0 -68
  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 -95
  132. package/esm2020/menu/menu-item-selectable.mjs +0 -57
  133. package/esm2020/menu/menu-item-trigger.mjs +0 -276
  134. package/esm2020/menu/menu-item.mjs +0 -250
  135. package/esm2020/menu/menu-module.mjs +0 -60
  136. package/esm2020/menu/menu-stack.mjs +0 -131
  137. package/esm2020/menu/menu-trigger.mjs +0 -70
  138. package/esm2020/menu/menu.mjs +0 -204
  139. package/esm2020/menu/menu_public_index.mjs +0 -5
  140. package/esm2020/menu/pointer-focus-tracker.mjs +0 -49
  141. package/esm2020/menu/public-api.mjs +0 -21
  142. package/fesm2015/dialog.mjs +0 -803
  143. package/fesm2015/dialog.mjs.map +0 -1
  144. package/fesm2015/menu.mjs +0 -1983
  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 -1954
  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.d.ts +0 -84
  156. package/menu/index.d.ts +0 -8
  157. package/menu/menu-aim.d.ts +0 -96
  158. package/menu/menu-bar.d.ts +0 -47
  159. package/menu/menu-base.d.ts +0 -64
  160. package/menu/menu-errors.d.ts +0 -17
  161. package/menu/menu-group.d.ts +0 -33
  162. package/menu/menu-interface.d.ts +0 -23
  163. package/menu/menu-item-checkbox.d.ts +0 -12
  164. package/menu/menu-item-radio.d.ts +0 -36
  165. package/menu/menu-item-selectable.d.ts +0 -31
  166. package/menu/menu-item-trigger.d.ts +0 -89
  167. package/menu/menu-item.d.ts +0 -105
  168. package/menu/menu-module.d.ts +0 -16
  169. package/menu/menu-stack.d.ts +0 -94
  170. package/menu/menu-trigger.d.ts +0 -48
  171. package/menu/menu.d.ts +0 -57
  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 -44
  175. package/menu/public-api.d.ts +0 -20
  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,94 +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
- /** Events to emit as specified by the caller once the MenuStack is empty. */
12
- export declare const enum FocusNext {
13
- nextItem = 0,
14
- previousItem = 1,
15
- currentItem = 2
16
- }
17
- /**
18
- * Interface for the elements tracked in the MenuStack.
19
- */
20
- export interface MenuStackItem {
21
- /** A reference to the previous Menus MenuStack instance. */
22
- menuStack?: MenuStack;
23
- }
24
- /** Injection token used for an implementation of MenuStack. */
25
- export declare const MENU_STACK: InjectionToken<MenuStack>;
26
- /** A provider that provides the parent menu stack, or a new menu stack if there is no parent one. */
27
- export declare const PARENT_OR_NEW_MENU_STACK_PROVIDER: {
28
- provide: InjectionToken<MenuStack>;
29
- deps: Optional[][];
30
- useFactory: (parentMenuStack?: MenuStack | undefined) => MenuStack;
31
- };
32
- /** A provider that provides the parent menu stack, or a new menu stack if there is no parent one. */
33
- export declare const PARENT_OR_NEW_INLINE_MENU_STACK_PROVIDER: {
34
- provide: InjectionToken<MenuStack>;
35
- deps: Optional[][];
36
- useFactory: (parentMenuStack?: MenuStack | undefined) => MenuStack;
37
- };
38
- /**
39
- * MenuStack allows subscribers to listen for close events (when a MenuStackItem is popped off
40
- * of the stack) in order to perform closing actions. Upon the MenuStack being empty it emits
41
- * from the `empty` observable specifying the next focus action which the listener should perform
42
- * as requested by the closer.
43
- */
44
- export declare class MenuStack {
45
- /** All MenuStackItems tracked by this MenuStack. */
46
- private readonly _elements;
47
- /** Emits the element which was popped off of the stack when requested by a closer. */
48
- private readonly _close;
49
- /** Emits once the MenuStack has become empty after popping off elements. */
50
- private readonly _empty;
51
- /** Observable which emits the MenuStackItem which has been requested to close. */
52
- readonly closed: Observable<MenuStackItem | undefined>;
53
- /**
54
- * Observable which emits when the MenuStack is empty after popping off the last element. It
55
- * emits a FocusNext event which specifies the action the closer has requested the listener
56
- * perform.
57
- */
58
- readonly emptied: Observable<FocusNext | undefined>;
59
- private _hasInlineMenu;
60
- static inline(): MenuStack;
61
- /** @param menu the MenuStackItem to put on the stack. */
62
- push(menu: MenuStackItem): void;
63
- /**
64
- * Pop items off of the stack up to and including `lastItem` and emit each on the close
65
- * observable. If the stack is empty or `lastItem` is not on the stack it does nothing.
66
- * @param lastItem the last item to pop off the stack.
67
- * @param focusNext the event to emit on the `empty` observable if the method call resulted in an
68
- * empty stack. Does not emit if the stack was initially empty or if `lastItem` was not on the
69
- * stack.
70
- */
71
- close(lastItem: MenuStackItem, focusNext?: FocusNext): void;
72
- /**
73
- * Pop items off of the stack up to but excluding `lastItem` and emit each on the close
74
- * observable. If the stack is empty or `lastItem` is not on the stack it does nothing.
75
- * @param lastItem the element which should be left on the stack
76
- * @return whether or not an item was removed from the stack
77
- */
78
- closeSubMenuOf(lastItem: MenuStackItem): boolean;
79
- /**
80
- * Pop off all MenuStackItems and emit each one on the `close` observable one by one.
81
- * @param focusNext the event to emit on the `empty` observable once the stack is emptied. Does
82
- * not emit if the stack was initially empty.
83
- */
84
- closeAll(focusNext?: FocusNext): void;
85
- /** Return true if this stack is empty. */
86
- isEmpty(): boolean;
87
- /** Return the length of the stack. */
88
- length(): number;
89
- /** Get the top most element on the stack. */
90
- peek(): MenuStackItem | undefined;
91
- hasInlineMenu(): boolean;
92
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuStack, never>;
93
- static ɵprov: i0.ɵɵInjectableDeclaration<MenuStack>;
94
- }
@@ -1,48 +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 } 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<MenuTrigger>;
17
- export declare abstract class MenuTrigger implements OnDestroy {
18
- protected injector: Injector;
19
- protected menuStack: MenuStack;
20
- /** A list of preferred menu positions to be used when constructing the `FlexibleConnectedPositionStrategy` for this trigger's menu. */
21
- menuPosition: ConnectedPosition[];
22
- /** Emits when the attached menu is requested to open */
23
- readonly opened: EventEmitter<void>;
24
- /** Emits when the attached menu is requested to close */
25
- readonly closed: EventEmitter<void>;
26
- /** Template reference variable to the menu this trigger opens */
27
- protected _menuTemplateRef: TemplateRef<unknown>;
28
- /** A reference to the overlay which manages the triggered menu */
29
- protected _overlayRef: OverlayRef | null;
30
- /** The content of the menu panel opened by this trigger. */
31
- protected _menuPortal: TemplatePortal;
32
- /** Emits when this trigger is destroyed. */
33
- protected readonly _destroyed: Subject<void>;
34
- /** Emits when the outside pointer events listener on the overlay should be stopped. */
35
- protected readonly _stopOutsideClicksListener: import("rxjs").Observable<void>;
36
- private _childMenuInjector?;
37
- protected childMenu?: Menu;
38
- protected constructor(injector: Injector, menuStack: MenuStack);
39
- ngOnDestroy(): void;
40
- /** Whether the attached menu is open. */
41
- isOpen(): boolean;
42
- registerChildMenu(child: Menu): void;
43
- protected getChildMenuInjector(): Injector;
44
- /** Destroy and unset the overlay reference it if exists */
45
- private _destroyOverlay;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuTrigger, never>;
47
- static ɵdir: i0.ɵɵDirectiveDeclaration<MenuTrigger, never, never, {}, {}, never>;
48
- }
package/menu/menu.d.ts DELETED
@@ -1,57 +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 { MenuTrigger } from './menu-trigger';
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
- private readonly _ngZone;
24
- private _parentTrigger?;
25
- private readonly _menuAim?;
26
- /** Event emitted when the menu is closed. */
27
- readonly closed: EventEmitter<void>;
28
- /** List of nested CdkMenuGroup elements */
29
- private readonly _nestedGroups;
30
- constructor(_ngZone: NgZone, elementRef: ElementRef<HTMLElement>, menuStack: MenuStack, _parentTrigger?: MenuTrigger | undefined, _menuAim?: MenuAim | undefined, dir?: Directionality);
31
- ngAfterContentInit(): void;
32
- ngOnDestroy(): void;
33
- /** Handle keyboard events for the Menu. */
34
- _handleKeyEvent(event: KeyboardEvent): void;
35
- /**
36
- * Complete the change emitter if there are any nested MenuGroups or register to complete the
37
- * change emitter if a MenuGroup is rendered at some point
38
- */
39
- private _completeChangeEmitter;
40
- /** Return true if there are nested CdkMenuGroup elements within the Menu */
41
- private _hasNestedGroups;
42
- /**
43
- * Set the PointerFocusTracker and ensure that when mouse focus changes the key manager is updated
44
- * with the latest menu item under mouse focus.
45
- */
46
- private _subscribeToMouseManager;
47
- /** Set focus the either the current, previous or next item based on the FocusNext event. */
48
- private _toggleMenuFocus;
49
- /**
50
- * Return true if this menu is an inline menu. That is, it does not exist in a pop-up and is
51
- * always visible in the dom.
52
- */
53
- _isInline(): boolean;
54
- private _subscribeToMenuStackEmptied;
55
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenu, [null, null, null, { optional: true; }, { optional: true; self: true; }, { optional: true; }]>;
56
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenu, "[cdkMenu]", ["cdkMenu"], {}, { "closed": "closed"; }, ["_nestedGroups"]>;
57
- }
@@ -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,44 +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 { QueryList, ElementRef } 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
- private readonly _items;
21
- /** Emits when an element is moused into. */
22
- readonly entered: Observable<T>;
23
- /** Emits when an element is moused out. */
24
- readonly exited: Observable<T>;
25
- /** The element currently under mouse focus. */
26
- activeElement?: T;
27
- /** The element previously under mouse focus. */
28
- previousElement?: T;
29
- /** Emits when this is destroyed. */
30
- private readonly _destroyed;
31
- constructor(_items: QueryList<T>);
32
- /**
33
- * Gets a stream of pointer (mouse) entries into the given items.
34
- * This should typically run outside the Angular zone.
35
- */
36
- private _getItemPointerEntries;
37
- /**
38
- * Gets a stream of pointer (mouse) exits out of the given items.
39
- * This should typically run outside the Angular zone.
40
- */
41
- private _getItemPointerExits;
42
- /** Stop the managers listeners. */
43
- destroy(): void;
44
- }
@@ -1,20 +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-item';
12
- export * from './menu-item-checkbox';
13
- export * from './menu-item-radio';
14
- export * from './menu-item-trigger';
15
- export * from './menu-group';
16
- export * from './context-menu';
17
- export * from './menu-trigger';
18
- export { MenuStack, MenuStackItem, MENU_STACK } from './menu-stack';
19
- export { CDK_MENU } from './menu-interface';
20
- export { TargetMenuAim, MenuAim, MENU_AIM, CdkTargetMenuAim } 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
- }
@@ -1,37 +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 { FocusTrapFactory } from '@angular/cdk/a11y';
10
- import { Directionality } from '@angular/cdk/bidi';
11
- import { Overlay } from '@angular/cdk/overlay';
12
- import { ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';
13
- import { EditEventDispatcher } from './edit-event-dispatcher';
14
- import { FocusDispatcher } from './focus-dispatcher';
15
- import { PopoverEditPositionStrategyFactory } from './popover-edit-position-strategy-factory';
16
- import { EditRef } from './edit-ref';
17
- import * as i0 from "@angular/core";
18
- /**
19
- * Optimization
20
- * Collects multiple Injectables into a singleton shared across the table. By reducing the
21
- * number of services injected into each CdkPopoverEdit, this saves about 0.023ms of cpu time
22
- * and 56 bytes of memory per instance.
23
- */
24
- export declare class EditServices {
25
- readonly directionality: Directionality;
26
- readonly editEventDispatcher: EditEventDispatcher<EditRef<unknown>>;
27
- readonly focusDispatcher: FocusDispatcher;
28
- readonly focusTrapFactory: FocusTrapFactory;
29
- readonly ngZone: NgZone;
30
- readonly overlay: Overlay;
31
- readonly positionFactory: PopoverEditPositionStrategyFactory;
32
- readonly scrollDispatcher: ScrollDispatcher;
33
- readonly viewportRuler: ViewportRuler;
34
- constructor(directionality: Directionality, editEventDispatcher: EditEventDispatcher<EditRef<unknown>>, focusDispatcher: FocusDispatcher, focusTrapFactory: FocusTrapFactory, ngZone: NgZone, overlay: Overlay, positionFactory: PopoverEditPositionStrategyFactory, scrollDispatcher: ScrollDispatcher, viewportRuler: ViewportRuler);
35
- static ɵfac: i0.ɵɵFactoryDeclaration<EditServices, never>;
36
- static ɵprov: i0.ɵɵInjectableDeclaration<EditServices>;
37
- }
@@ -1,31 +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 { Directionality } from '@angular/cdk/bidi';
9
- import { PartialObserver } from 'rxjs';
10
- import * as i0 from "@angular/core";
11
- /**
12
- * Service responsible for moving cell focus around in response to keyboard events.
13
- * May be overridden to customize the keyboard behavior of popover edit.
14
- */
15
- export declare class FocusDispatcher {
16
- protected readonly directionality: Directionality;
17
- /** Observes keydown events triggered from the table. */
18
- readonly keyObserver: PartialObserver<KeyboardEvent>;
19
- constructor(directionality: Directionality);
20
- /**
21
- * Moves focus to earlier or later cells (in dom order) by offset cells relative to
22
- * currentCell.
23
- */
24
- moveFocusHorizontally(currentCell: HTMLElement, offset: number): void;
25
- /** Moves focus to up or down by row by offset cells relative to currentCell. */
26
- moveFocusVertically(currentCell: HTMLElement, offset: number): void;
27
- /** Translates arrow keydown events into focus move operations. */
28
- protected handleKeyboardEvent(event: KeyboardEvent): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<FocusDispatcher, never>;
30
- static ɵprov: i0.ɵɵInjectableDeclaration<FocusDispatcher>;
31
- }
@@ -1,40 +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 { FocusTrap, InteractivityChecker } from '@angular/cdk/a11y';
10
- import { Observable } from 'rxjs';
11
- import * as i0 from "@angular/core";
12
- /** Value indicating whether focus left the target area before or after the enclosed elements. */
13
- export declare const enum FocusEscapeNotifierDirection {
14
- START = 0,
15
- END = 1
16
- }
17
- /**
18
- * Like FocusTrap, but rather than trapping focus within a dom region, notifies subscribers when
19
- * focus leaves the region.
20
- */
21
- export declare class FocusEscapeNotifier extends FocusTrap {
22
- private readonly _escapeSubject;
23
- constructor(element: HTMLElement, checker: InteractivityChecker, ngZone: NgZone, document: Document);
24
- escapes(): Observable<FocusEscapeNotifierDirection>;
25
- }
26
- /** Factory that allows easy instantiation of focus escape notifiers. */
27
- export declare class FocusEscapeNotifierFactory {
28
- private _checker;
29
- private _ngZone;
30
- private _document;
31
- constructor(_checker: InteractivityChecker, _ngZone: NgZone, _document: any);
32
- /**
33
- * Creates a focus escape notifier region around the given element.
34
- * @param element The element around which focus will be monitored.
35
- * @returns The created focus escape notifier instance.
36
- */
37
- create(element: HTMLElement): FocusEscapeNotifier;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<FocusEscapeNotifierFactory, never>;
39
- static ɵprov: i0.ɵɵInjectableDeclaration<FocusEscapeNotifierFactory>;
40
- }
@@ -1,24 +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 interface Entry<FormValue> {
9
- value?: FormValue;
10
- }
11
- /**
12
- * A convenience class for preserving unsaved form state while an edit lens is closed.
13
- *
14
- * Example usage:
15
- * class MyComponent {
16
- * readonly nameEditValues = new FormValueContainer&lt;Item, {name: string}&gt;();
17
- * }
18
- *
19
- * &lt;form cdkEditControl [(cdkEditControlPreservedFormValue)]="nameEditValues.for(item).value"&gt;
20
- */
21
- export declare class FormValueContainer<Key extends object, FormValue> {
22
- private _formValues;
23
- for(key: Key): Entry<FormValue>;
24
- }