@angular/cdk-experimental 14.0.0-next.11 → 14.0.0-next.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +1 -1
- package/column-resize/column-resize-directives/column-resize.d.ts +1 -1
- package/column-resize/column-resize-directives/default-enabled-column-resize-flex.d.ts +1 -1
- package/column-resize/column-resize-directives/default-enabled-column-resize.d.ts +1 -1
- package/column-resize/column-resize.d.ts +1 -1
- package/column-resize/overlay-handle.d.ts +1 -1
- package/column-resize/resizable.d.ts +1 -1
- package/combobox/combobox-popup.d.ts +1 -1
- package/combobox/combobox.d.ts +1 -1
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +3 -3
- package/esm2020/column-resize/column-resize-module.mjs +8 -8
- package/esm2020/column-resize/column-resize-notifier.mjs +6 -6
- package/esm2020/column-resize/column-resize.mjs +3 -3
- package/esm2020/column-resize/column-size-store.mjs +3 -3
- package/esm2020/column-resize/event-dispatcher.mjs +3 -3
- package/esm2020/column-resize/overlay-handle.mjs +3 -3
- package/esm2020/column-resize/resizable.mjs +3 -3
- package/esm2020/column-resize/resize-strategy.mjs +9 -9
- package/esm2020/combobox/combobox-module.mjs +4 -4
- package/esm2020/combobox/combobox-popup.mjs +3 -3
- package/esm2020/combobox/combobox.mjs +3 -3
- package/esm2020/listbox/listbox-module.mjs +4 -4
- package/esm2020/listbox/listbox.mjs +6 -6
- package/esm2020/popover-edit/edit-event-dispatcher.mjs +3 -3
- package/esm2020/popover-edit/edit-ref.mjs +3 -3
- package/esm2020/popover-edit/edit-services.mjs +3 -3
- package/esm2020/popover-edit/focus-dispatcher.mjs +3 -3
- package/esm2020/popover-edit/focus-escape-notifier.mjs +3 -3
- package/esm2020/popover-edit/lens-directives.mjs +9 -9
- package/esm2020/popover-edit/popover-edit-module.mjs +4 -4
- package/esm2020/popover-edit/popover-edit-position-strategy-factory.mjs +6 -6
- package/esm2020/popover-edit/table-directives.mjs +15 -15
- package/esm2020/scrolling/auto-size-virtual-scroll.mjs +3 -3
- package/esm2020/scrolling/scrolling-module.mjs +4 -4
- package/esm2020/selection/row-selection.mjs +3 -3
- package/esm2020/selection/select-all.mjs +3 -3
- package/esm2020/selection/selection-column.mjs +9 -9
- package/esm2020/selection/selection-module.mjs +4 -4
- package/esm2020/selection/selection-toggle.mjs +3 -3
- package/esm2020/selection/selection.mjs +3 -3
- package/esm2020/table-scroll-container/table-scroll-container-module.mjs +4 -4
- package/esm2020/table-scroll-container/table-scroll-container.mjs +3 -3
- package/esm2020/version.mjs +1 -1
- package/fesm2015/cdk-experimental.mjs +1 -1
- package/fesm2015/cdk-experimental.mjs.map +1 -1
- package/fesm2015/column-resize.mjs +50 -50
- package/fesm2015/combobox.mjs +10 -10
- package/fesm2015/listbox.mjs +10 -10
- package/fesm2015/popover-edit.mjs +49 -49
- package/fesm2015/scrolling.mjs +7 -7
- package/fesm2015/selection.mjs +23 -23
- package/fesm2015/selection.mjs.map +1 -1
- package/fesm2015/table-scroll-container.mjs +7 -7
- package/fesm2020/cdk-experimental.mjs +1 -1
- package/fesm2020/cdk-experimental.mjs.map +1 -1
- package/fesm2020/column-resize.mjs +50 -50
- package/fesm2020/combobox.mjs +10 -10
- package/fesm2020/listbox.mjs +10 -10
- package/fesm2020/popover-edit.mjs +49 -49
- package/fesm2020/scrolling.mjs +7 -7
- package/fesm2020/selection.mjs +23 -23
- package/fesm2020/selection.mjs.map +1 -1
- package/fesm2020/table-scroll-container.mjs +7 -7
- package/listbox/listbox.d.ts +2 -2
- package/package.json +2 -18
- package/popover-edit/lens-directives.d.ts +3 -3
- package/popover-edit/table-directives.d.ts +5 -5
- package/scrolling/auto-size-virtual-scroll.d.ts +1 -1
- package/selection/row-selection.d.ts +1 -1
- package/selection/select-all.d.ts +1 -1
- package/selection/selection-column.d.ts +1 -1
- package/selection/selection-toggle.d.ts +1 -1
- package/selection/selection.d.ts +1 -1
- package/table-scroll-container/table-scroll-container.d.ts +1 -1
- package/dialog/dialog-config.d.ts +0 -111
- package/dialog/dialog-container.d.ts +0 -95
- package/dialog/dialog-injectors.d.ts +0 -24
- package/dialog/dialog-module.d.ts +0 -10
- package/dialog/dialog-ref.d.ts +0 -64
- package/dialog/dialog.d.ts +0 -103
- package/dialog/dialog_public_index.d.ts +0 -4
- package/dialog/index.d.ts +0 -8
- package/dialog/package.json +0 -9
- package/dialog/public-api.d.ts +0 -13
- package/esm2020/dialog/dialog-config.mjs +0 -54
- package/esm2020/dialog/dialog-container.mjs +0 -255
- package/esm2020/dialog/dialog-injectors.mjs +0 -26
- package/esm2020/dialog/dialog-module.mjs +0 -42
- package/esm2020/dialog/dialog-ref.mjs +0 -77
- package/esm2020/dialog/dialog.mjs +0 -285
- package/esm2020/dialog/dialog_public_index.mjs +0 -5
- package/esm2020/dialog/index.mjs +0 -9
- package/esm2020/dialog/public-api.mjs +0 -14
- package/esm2020/menu/context-menu-trigger.mjs +0 -227
- package/esm2020/menu/index.mjs +0 -9
- package/esm2020/menu/menu-aim.mjs +0 -204
- package/esm2020/menu/menu-bar.mjs +0 -159
- package/esm2020/menu/menu-base.mjs +0 -203
- package/esm2020/menu/menu-errors.mjs +0 -22
- package/esm2020/menu/menu-group.mjs +0 -30
- package/esm2020/menu/menu-interface.mjs +0 -11
- package/esm2020/menu/menu-item-checkbox.mjs +0 -48
- package/esm2020/menu/menu-item-radio.mjs +0 -114
- package/esm2020/menu/menu-item-selectable.mjs +0 -42
- package/esm2020/menu/menu-item.mjs +0 -289
- package/esm2020/menu/menu-module.mjs +0 -62
- package/esm2020/menu/menu-stack.mjs +0 -156
- package/esm2020/menu/menu-trigger-base.mjs +0 -114
- package/esm2020/menu/menu-trigger.mjs +0 -302
- package/esm2020/menu/menu.mjs +0 -168
- package/esm2020/menu/menu_public_index.mjs +0 -5
- package/esm2020/menu/pointer-focus-tracker.mjs +0 -51
- package/esm2020/menu/public-api.mjs +0 -24
- package/fesm2015/dialog.mjs +0 -736
- package/fesm2015/dialog.mjs.map +0 -1
- package/fesm2015/menu.mjs +0 -2131
- package/fesm2015/menu.mjs.map +0 -1
- package/fesm2020/dialog.mjs +0 -740
- package/fesm2020/dialog.mjs.map +0 -1
- package/fesm2020/menu.mjs +0 -2104
- package/fesm2020/menu.mjs.map +0 -1
- package/menu/context-menu-trigger.d.ts +0 -98
- package/menu/index.d.ts +0 -8
- package/menu/menu-aim.d.ts +0 -107
- package/menu/menu-bar.d.ts +0 -52
- package/menu/menu-base.d.ts +0 -104
- package/menu/menu-errors.d.ts +0 -17
- package/menu/menu-group.d.ts +0 -8
- package/menu/menu-interface.d.ts +0 -25
- package/menu/menu-item-checkbox.d.ts +0 -18
- package/menu/menu-item-radio.d.ts +0 -59
- package/menu/menu-item-selectable.d.ts +0 -21
- package/menu/menu-item.d.ts +0 -140
- package/menu/menu-module.d.ts +0 -17
- package/menu/menu-stack.d.ts +0 -122
- package/menu/menu-trigger-base.d.ts +0 -77
- package/menu/menu-trigger.d.ts +0 -104
- package/menu/menu.d.ts +0 -60
- package/menu/menu_public_index.d.ts +0 -4
- package/menu/package.json +0 -9
- package/menu/pointer-focus-tracker.d.ts +0 -47
- package/menu/public-api.d.ts +0 -23
package/menu/menu-trigger.d.ts
DELETED
|
@@ -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
|
-
}
|
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
|
-
}
|
package/menu/public-api.d.ts
DELETED
|
@@ -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';
|