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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/combobox/combobox-module.d.ts +3 -4
  2. package/combobox/combobox-popup.d.ts +6 -8
  3. package/combobox/combobox.d.ts +15 -18
  4. package/combobox/public-api.d.ts +0 -1
  5. package/dialog/dialog-config.d.ts +6 -1
  6. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  7. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
  8. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
  9. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
  10. package/esm2020/column-resize/column-resize-module.mjs +9 -9
  11. package/esm2020/column-resize/column-resize-notifier.mjs +7 -7
  12. package/esm2020/column-resize/column-resize.mjs +4 -4
  13. package/esm2020/column-resize/column-size-store.mjs +4 -4
  14. package/esm2020/column-resize/event-dispatcher.mjs +4 -4
  15. package/esm2020/column-resize/overlay-handle.mjs +4 -4
  16. package/esm2020/column-resize/resizable.mjs +4 -4
  17. package/esm2020/column-resize/resize-strategy.mjs +10 -10
  18. package/esm2020/combobox/combobox-module.mjs +6 -7
  19. package/esm2020/combobox/combobox-popup.mjs +12 -23
  20. package/esm2020/combobox/combobox.mjs +50 -34
  21. package/esm2020/combobox/public-api.mjs +1 -2
  22. package/esm2020/dialog/dialog-config.mjs +1 -1
  23. package/esm2020/dialog/dialog-container.mjs +5 -5
  24. package/esm2020/dialog/dialog-module.mjs +5 -5
  25. package/esm2020/dialog/dialog.mjs +5 -5
  26. package/esm2020/listbox/listbox-module.mjs +5 -5
  27. package/esm2020/listbox/listbox.mjs +26 -44
  28. package/esm2020/menu/context-menu-trigger.mjs +227 -0
  29. package/esm2020/menu/menu-aim.mjs +24 -19
  30. package/esm2020/menu/menu-bar.mjs +72 -165
  31. package/esm2020/menu/menu-base.mjs +203 -0
  32. package/esm2020/menu/menu-errors.mjs +1 -9
  33. package/esm2020/menu/menu-group.mjs +7 -45
  34. package/esm2020/menu/menu-interface.mjs +1 -1
  35. package/esm2020/menu/menu-item-checkbox.mjs +11 -11
  36. package/esm2020/menu/menu-item-radio.mjs +50 -26
  37. package/esm2020/menu/menu-item-selectable.mjs +18 -33
  38. package/esm2020/menu/menu-item.mjs +133 -88
  39. package/esm2020/menu/menu-module.mjs +12 -14
  40. package/esm2020/menu/menu-stack.mjs +69 -19
  41. package/esm2020/menu/menu-trigger-base.mjs +114 -0
  42. package/esm2020/menu/menu-trigger.mjs +302 -0
  43. package/esm2020/menu/menu.mjs +75 -208
  44. package/esm2020/menu/pointer-focus-tracker.mjs +11 -9
  45. package/esm2020/menu/public-api.mjs +10 -7
  46. package/esm2020/popover-edit/edit-event-dispatcher.mjs +4 -4
  47. package/esm2020/popover-edit/edit-ref.mjs +4 -4
  48. package/esm2020/popover-edit/edit-services.mjs +4 -4
  49. package/esm2020/popover-edit/focus-dispatcher.mjs +4 -4
  50. package/esm2020/popover-edit/focus-escape-notifier.mjs +4 -4
  51. package/esm2020/popover-edit/lens-directives.mjs +10 -10
  52. package/esm2020/popover-edit/popover-edit-module.mjs +5 -5
  53. package/esm2020/popover-edit/popover-edit-position-strategy-factory.mjs +7 -7
  54. package/esm2020/popover-edit/table-directives.mjs +16 -16
  55. package/esm2020/scrolling/auto-size-virtual-scroll.mjs +4 -4
  56. package/esm2020/scrolling/scrolling-module.mjs +5 -5
  57. package/esm2020/selection/row-selection.mjs +4 -4
  58. package/esm2020/selection/select-all.mjs +4 -4
  59. package/esm2020/selection/selection-column.mjs +4 -4
  60. package/esm2020/selection/selection-module.mjs +5 -5
  61. package/esm2020/selection/selection-toggle.mjs +4 -4
  62. package/esm2020/selection/selection.mjs +4 -4
  63. package/esm2020/table-scroll-container/table-scroll-container-module.mjs +5 -5
  64. package/esm2020/table-scroll-container/table-scroll-container.mjs +4 -4
  65. package/esm2020/version.mjs +1 -1
  66. package/fesm2015/cdk-experimental.mjs +1 -1
  67. package/fesm2015/cdk-experimental.mjs.map +1 -1
  68. package/fesm2015/column-resize.mjs +50 -50
  69. package/fesm2015/column-resize.mjs.map +1 -1
  70. package/fesm2015/combobox.mjs +63 -106
  71. package/fesm2015/combobox.mjs.map +1 -1
  72. package/fesm2015/dialog.mjs +13 -12
  73. package/fesm2015/dialog.mjs.map +1 -1
  74. package/fesm2015/listbox.mjs +31 -47
  75. package/fesm2015/listbox.mjs.map +1 -1
  76. package/fesm2015/menu.mjs +1109 -1140
  77. package/fesm2015/menu.mjs.map +1 -1
  78. package/fesm2015/popover-edit.mjs +49 -49
  79. package/fesm2015/popover-edit.mjs.map +1 -1
  80. package/fesm2015/scrolling.mjs +7 -7
  81. package/fesm2015/scrolling.mjs.map +1 -1
  82. package/fesm2015/selection.mjs +19 -19
  83. package/fesm2015/selection.mjs.map +1 -1
  84. package/fesm2015/table-scroll-container.mjs +7 -7
  85. package/fesm2015/table-scroll-container.mjs.map +1 -1
  86. package/fesm2020/cdk-experimental.mjs +1 -1
  87. package/fesm2020/cdk-experimental.mjs.map +1 -1
  88. package/fesm2020/column-resize.mjs +50 -50
  89. package/fesm2020/column-resize.mjs.map +1 -1
  90. package/fesm2020/combobox.mjs +62 -103
  91. package/fesm2020/combobox.mjs.map +1 -1
  92. package/fesm2020/dialog.mjs +12 -12
  93. package/fesm2020/dialog.mjs.map +1 -1
  94. package/fesm2020/listbox.mjs +29 -46
  95. package/fesm2020/listbox.mjs.map +1 -1
  96. package/fesm2020/menu.mjs +1031 -1054
  97. package/fesm2020/menu.mjs.map +1 -1
  98. package/fesm2020/popover-edit.mjs +49 -49
  99. package/fesm2020/popover-edit.mjs.map +1 -1
  100. package/fesm2020/scrolling.mjs +7 -7
  101. package/fesm2020/scrolling.mjs.map +1 -1
  102. package/fesm2020/selection.mjs +19 -19
  103. package/fesm2020/selection.mjs.map +1 -1
  104. package/fesm2020/table-scroll-container.mjs +7 -7
  105. package/fesm2020/table-scroll-container.mjs.map +1 -1
  106. package/listbox/listbox.d.ts +16 -13
  107. package/menu/context-menu-trigger.d.ts +98 -0
  108. package/menu/menu-aim.d.ts +20 -9
  109. package/menu/menu-bar.d.ts +24 -60
  110. package/menu/menu-base.d.ts +104 -0
  111. package/menu/menu-errors.d.ts +0 -5
  112. package/menu/menu-group.d.ts +3 -28
  113. package/menu/menu-interface.d.ts +7 -5
  114. package/menu/menu-item-checkbox.d.ts +8 -2
  115. package/menu/menu-item-radio.d.ts +32 -8
  116. package/menu/menu-item-selectable.d.ts +4 -14
  117. package/menu/menu-item.d.ts +64 -24
  118. package/menu/menu-module.d.ts +10 -10
  119. package/menu/menu-stack.d.ts +64 -20
  120. package/menu/menu-trigger-base.d.ts +77 -0
  121. package/menu/menu-trigger.d.ts +104 -0
  122. package/menu/menu.d.ts +34 -87
  123. package/menu/pointer-focus-tracker.d.ts +7 -4
  124. package/menu/public-api.d.ts +9 -6
  125. package/package.json +3 -3
  126. package/combobox/combobox-panel.d.ts +0 -27
  127. package/esm2020/combobox/combobox-panel.mjs +0 -48
  128. package/esm2020/menu/context-menu.mjs +0 -294
  129. package/esm2020/menu/menu-item-trigger.mjs +0 -361
  130. package/esm2020/menu/menu-panel.mjs +0 -37
  131. package/menu/context-menu.d.ts +0 -123
  132. package/menu/menu-item-trigger.d.ts +0 -119
  133. package/menu/menu-panel.d.ts +0 -30
@@ -1,119 +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, ElementRef, ViewContainerRef, OnDestroy, NgZone } from '@angular/core';
9
- import { Directionality } from '@angular/cdk/bidi';
10
- import { Overlay } from '@angular/cdk/overlay';
11
- import { CdkMenuPanel } from './menu-panel';
12
- import { Menu } from './menu-interface';
13
- import { MenuStack } from './menu-stack';
14
- import { MenuAim } from './menu-aim';
15
- import * as i0 from "@angular/core";
16
- /**
17
- * Whether the target element is a menu item to be ignored by the overlay background click handler.
18
- */
19
- export declare function isClickInsideMenuOverlay(target: Element): boolean;
20
- /**
21
- * A directive to be combined with CdkMenuItem which opens the Menu it is bound to. If the
22
- * element is in a top level MenuBar it will open the menu on click, or if a sibling is already
23
- * opened it will open on hover. If it is inside of a Menu it will open the attached Submenu on
24
- * hover regardless of its sibling state.
25
- *
26
- * The directive must be placed along with the `cdkMenuItem` directive in order to enable full
27
- * functionality.
28
- */
29
- export declare class CdkMenuItemTrigger implements OnDestroy {
30
- private readonly _elementRef;
31
- protected readonly _viewContainerRef: ViewContainerRef;
32
- private readonly _overlay;
33
- private readonly _ngZone;
34
- private readonly _parentMenu?;
35
- private readonly _menuAim?;
36
- private readonly _directionality?;
37
- /** Template reference variable to the menu this trigger opens */
38
- get menuPanel(): CdkMenuPanel | undefined;
39
- set menuPanel(panel: CdkMenuPanel | undefined);
40
- /** Reference to the MenuPanel this trigger toggles. */
41
- private _menuPanel?;
42
- /** Emits when the attached menu is requested to open */
43
- readonly opened: EventEmitter<void>;
44
- /** Emits when the attached menu is requested to close */
45
- readonly closed: EventEmitter<void>;
46
- /** The menu stack for this trigger and its sub-menus. */
47
- _menuStack: MenuStack;
48
- /** A reference to the overlay which manages the triggered menu */
49
- private _overlayRef;
50
- /** The content of the menu panel opened by this trigger. */
51
- private _panelContent;
52
- /** Emits when this trigger is destroyed. */
53
- private readonly _destroyed;
54
- /** Emits when the outside pointer events listener on the overlay should be stopped. */
55
- private readonly _stopOutsideClicksListener;
56
- constructor(_elementRef: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _overlay: Overlay, _ngZone: NgZone, _parentMenu?: Menu | undefined, _menuAim?: MenuAim | undefined, _directionality?: Directionality | undefined);
57
- /** Open/close the attached menu if the trigger has been configured with one */
58
- toggle(): void;
59
- /** Open the attached menu. */
60
- openMenu(): void;
61
- /** Close the opened menu. */
62
- closeMenu(): void;
63
- /** Return true if the trigger has an attached menu */
64
- hasMenu(): boolean;
65
- /** Whether the menu this button is a trigger for is open */
66
- isMenuOpen(): boolean;
67
- /**
68
- * Get a reference to the rendered Menu if the Menu is open and it is visible in the DOM.
69
- * @return the menu if it is open, otherwise undefined.
70
- */
71
- getMenu(): Menu | undefined;
72
- /**
73
- * Subscribe to the mouseenter events and close any sibling menu items if this element is moused
74
- * into.
75
- */
76
- private _subscribeToMouseEnter;
77
- /**
78
- * Handles keyboard events for the menu item, specifically opening/closing the attached menu and
79
- * focusing the appropriate submenu item.
80
- * @param event the keyboard event to handle
81
- */
82
- _toggleOnKeydown(event: KeyboardEvent): void;
83
- /** Close out any sibling menu trigger menus. */
84
- private _closeSiblingTriggers;
85
- /** Get the configuration object used to create the overlay */
86
- private _getOverlayConfig;
87
- /** Build the position strategy for the overlay which specifies where to place the menu */
88
- private _getOverlayPositionStrategy;
89
- /** Determine and return where to position the opened menu relative to the menu item */
90
- private _getOverlayPositions;
91
- /**
92
- * Get the portal to be attached to the overlay which contains the menu. Allows for the menu
93
- * content to change dynamically and be reflected in the application.
94
- */
95
- private _getPortal;
96
- /**
97
- * @return true if if the enclosing parent menu is configured in a vertical orientation.
98
- */
99
- private _isParentVertical;
100
- /**
101
- * Subscribe to the MenuStack close events if this is a standalone trigger and close out the menu
102
- * this triggers when requested.
103
- */
104
- private _registerCloseHandler;
105
- /** Get the menu stack for this trigger - either from the parent or this trigger. */
106
- private _getMenuStack;
107
- ngOnDestroy(): void;
108
- /** Set the menu panels menu stack back to null. */
109
- private _resetPanelMenuStack;
110
- /**
111
- * Subscribe to the overlays outside pointer events stream and handle closing out the stack if a
112
- * click occurs outside the menus.
113
- */
114
- private _subscribeToOutsideClicks;
115
- /** Destroy and unset the overlay reference it if exists */
116
- private _destroyOverlay;
117
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItemTrigger, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
118
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItemTrigger, "[cdkMenuTriggerFor]", ["cdkMenuTriggerFor"], { "menuPanel": "cdkMenuTriggerFor"; }, { "opened": "cdkMenuOpened"; "closed": "cdkMenuClosed"; }, never>;
119
- }
@@ -1,30 +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 { TemplateRef } from '@angular/core';
9
- import { Menu } from './menu-interface';
10
- import { MenuStack } from './menu-stack';
11
- import * as i0 from "@angular/core";
12
- /**
13
- * Directive applied to an ng-template which wraps a CdkMenu and provides a reference to the
14
- * child element it wraps which allows for opening of the CdkMenu in an overlay.
15
- */
16
- export declare class CdkMenuPanel {
17
- readonly _templateRef: TemplateRef<unknown>;
18
- /** Reference to the child menu component */
19
- _menu?: Menu;
20
- /** Keep track of open Menus. */
21
- _menuStack: MenuStack | null;
22
- constructor(_templateRef: TemplateRef<unknown>);
23
- /**
24
- * Set the Menu component on the menu panel. Since we cannot use ContentChild to fetch the
25
- * child Menu component, the child Menu must register its self with the parent MenuPanel.
26
- */
27
- _registerMenu(child: Menu): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuPanel, never>;
29
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuPanel, "ng-template[cdkMenuPanel]", ["cdkMenuPanel"], {}, {}, never>;
30
- }