@angular/cdk-experimental 14.0.0-next.7 → 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.
- package/column-resize/index.d.ts +419 -6
- package/combobox/index.d.ts +123 -8
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-module.mjs +9 -9
- package/esm2020/column-resize/column-resize-notifier.mjs +7 -7
- package/esm2020/column-resize/column-resize.mjs +4 -4
- package/esm2020/column-resize/column-size-store.mjs +4 -4
- package/esm2020/column-resize/event-dispatcher.mjs +4 -4
- package/esm2020/column-resize/overlay-handle.mjs +4 -4
- package/esm2020/column-resize/resizable.mjs +4 -4
- package/esm2020/column-resize/resize-strategy.mjs +10 -10
- package/esm2020/combobox/combobox-module.mjs +6 -7
- package/esm2020/combobox/combobox-popup.mjs +12 -23
- package/esm2020/combobox/combobox.mjs +50 -34
- package/esm2020/combobox/public-api.mjs +1 -2
- package/esm2020/listbox/listbox-module.mjs +5 -5
- package/esm2020/listbox/listbox.mjs +26 -44
- package/esm2020/popover-edit/edit-event-dispatcher.mjs +7 -7
- package/esm2020/popover-edit/edit-ref.mjs +4 -4
- package/esm2020/popover-edit/edit-services.mjs +4 -4
- package/esm2020/popover-edit/focus-dispatcher.mjs +4 -4
- package/esm2020/popover-edit/focus-escape-notifier.mjs +6 -6
- package/esm2020/popover-edit/lens-directives.mjs +10 -10
- package/esm2020/popover-edit/popover-edit-module.mjs +6 -6
- package/esm2020/popover-edit/popover-edit-position-strategy-factory.mjs +7 -7
- package/esm2020/popover-edit/table-directives.mjs +19 -19
- package/esm2020/scrolling/auto-size-virtual-scroll.mjs +4 -4
- package/esm2020/scrolling/scrolling-module.mjs +5 -5
- package/esm2020/selection/row-selection.mjs +4 -4
- package/esm2020/selection/select-all.mjs +4 -4
- package/esm2020/selection/selection-column.mjs +10 -10
- package/esm2020/selection/selection-module.mjs +5 -5
- package/esm2020/selection/selection-toggle.mjs +4 -4
- package/esm2020/selection/selection.mjs +4 -4
- package/esm2020/table-scroll-container/table-scroll-container-module.mjs +5 -5
- package/esm2020/table-scroll-container/table-scroll-container.mjs +4 -4
- 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/column-resize.mjs.map +1 -1
- package/fesm2015/combobox.mjs +63 -106
- package/fesm2015/combobox.mjs.map +1 -1
- package/fesm2015/listbox.mjs +31 -47
- package/fesm2015/listbox.mjs.map +1 -1
- package/fesm2015/popover-edit.mjs +58 -58
- package/fesm2015/popover-edit.mjs.map +1 -1
- package/fesm2015/scrolling.mjs +7 -7
- package/fesm2015/scrolling.mjs.map +1 -1
- package/fesm2015/selection.mjs +23 -23
- package/fesm2015/selection.mjs.map +1 -1
- package/fesm2015/table-scroll-container.mjs +7 -7
- package/fesm2015/table-scroll-container.mjs.map +1 -1
- package/fesm2020/cdk-experimental.mjs +1 -1
- package/fesm2020/cdk-experimental.mjs.map +1 -1
- package/fesm2020/column-resize.mjs +50 -50
- package/fesm2020/column-resize.mjs.map +1 -1
- package/fesm2020/combobox.mjs +62 -103
- package/fesm2020/combobox.mjs.map +1 -1
- package/fesm2020/listbox.mjs +29 -46
- package/fesm2020/listbox.mjs.map +1 -1
- package/fesm2020/popover-edit.mjs +58 -58
- package/fesm2020/popover-edit.mjs.map +1 -1
- package/fesm2020/scrolling.mjs +7 -7
- package/fesm2020/scrolling.mjs.map +1 -1
- package/fesm2020/selection.mjs +23 -23
- package/fesm2020/selection.mjs.map +1 -1
- package/fesm2020/table-scroll-container.mjs +7 -7
- package/fesm2020/table-scroll-container.mjs.map +1 -1
- package/index.d.ts +6 -8
- package/listbox/index.d.ts +197 -8
- package/package.json +9 -25
- package/popover-edit/index.d.ts +532 -5
- package/scrolling/index.d.ts +173 -6
- package/selection/index.d.ts +273 -5
- package/table-scroll-container/index.d.ts +61 -5
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -28
- package/column-resize/column-resize-directives/column-resize.d.ts +0 -28
- package/column-resize/column-resize-directives/constants.d.ts +0 -10
- package/column-resize/column-resize-directives/default-enabled-column-resize-flex.d.ts +0 -28
- package/column-resize/column-resize-directives/default-enabled-column-resize.d.ts +0 -28
- package/column-resize/column-resize-module.d.ts +0 -23
- package/column-resize/column-resize-notifier.d.ts +0 -49
- package/column-resize/column-resize.d.ts +0 -39
- package/column-resize/column-resize_public_index.d.ts +0 -4
- package/column-resize/column-size-store.d.ts +0 -12
- package/column-resize/event-dispatcher.d.ts +0 -44
- package/column-resize/overlay-handle.d.ts +0 -43
- package/column-resize/package.json +0 -9
- package/column-resize/public-api.d.ts +0 -20
- package/column-resize/resizable.d.ts +0 -69
- package/column-resize/resize-ref.d.ts +0 -17
- package/column-resize/resize-strategy.d.ts +0 -83
- package/column-resize/selectors.d.ts +0 -10
- package/combobox/combobox-module.d.ts +0 -10
- package/combobox/combobox-panel.d.ts +0 -27
- package/combobox/combobox-popup.d.ts +0 -29
- package/combobox/combobox.d.ts +0 -71
- package/combobox/combobox_public_index.d.ts +0 -4
- package/combobox/package.json +0 -9
- package/combobox/public-api.d.ts +0 -11
- package/dialog/dialog-config.d.ts +0 -77
- package/dialog/dialog-container.d.ts +0 -99
- package/dialog/dialog-injectors.d.ts +0 -30
- package/dialog/dialog-module.d.ts +0 -10
- package/dialog/dialog-ref.d.ts +0 -57
- package/dialog/dialog.d.ts +0 -100
- 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/combobox/combobox-panel.mjs +0 -48
- package/esm2020/dialog/dialog-config.mjs +0 -43
- package/esm2020/dialog/dialog-container.mjs +0 -295
- package/esm2020/dialog/dialog-injectors.mjs +0 -30
- package/esm2020/dialog/dialog-module.mjs +0 -56
- package/esm2020/dialog/dialog-ref.mjs +0 -116
- package/esm2020/dialog/dialog.mjs +0 -252
- 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.mjs +0 -274
- package/esm2020/menu/index.mjs +0 -9
- package/esm2020/menu/menu-aim.mjs +0 -199
- package/esm2020/menu/menu-bar.mjs +0 -255
- package/esm2020/menu/menu-errors.mjs +0 -22
- package/esm2020/menu/menu-group.mjs +0 -68
- 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 -97
- package/esm2020/menu/menu-item-selectable.mjs +0 -57
- package/esm2020/menu/menu-item-trigger.mjs +0 -343
- package/esm2020/menu/menu-item.mjs +0 -245
- package/esm2020/menu/menu-module.mjs +0 -60
- package/esm2020/menu/menu-stack.mjs +0 -110
- package/esm2020/menu/menu-trigger.mjs +0 -43
- package/esm2020/menu/menu.mjs +0 -288
- package/esm2020/menu/menu_public_index.mjs +0 -5
- package/esm2020/menu/pointer-focus-tracker.mjs +0 -49
- package/esm2020/menu/public-api.mjs +0 -21
- package/fesm2015/dialog.mjs +0 -797
- package/fesm2015/dialog.mjs.map +0 -1
- package/fesm2015/menu.mjs +0 -2106
- package/fesm2015/menu.mjs.map +0 -1
- package/fesm2020/dialog.mjs +0 -792
- package/fesm2020/dialog.mjs.map +0 -1
- package/fesm2020/menu.mjs +0 -2076
- package/fesm2020/menu.mjs.map +0 -1
- package/listbox/listbox-module.d.ts +0 -7
- package/listbox/listbox.d.ts +0 -169
- package/listbox/listbox_public_index.d.ts +0 -4
- package/listbox/package.json +0 -9
- package/listbox/public-api.d.ts +0 -9
- package/menu/context-menu.d.ts +0 -117
- package/menu/index.d.ts +0 -8
- package/menu/menu-aim.d.ts +0 -96
- package/menu/menu-bar.d.ts +0 -88
- package/menu/menu-errors.d.ts +0 -17
- package/menu/menu-group.d.ts +0 -33
- package/menu/menu-interface.d.ts +0 -23
- package/menu/menu-item-checkbox.d.ts +0 -12
- package/menu/menu-item-radio.d.ts +0 -36
- package/menu/menu-item-selectable.d.ts +0 -31
- package/menu/menu-item-trigger.d.ts +0 -110
- package/menu/menu-item.d.ts +0 -100
- package/menu/menu-module.d.ts +0 -16
- package/menu/menu-stack.d.ts +0 -79
- package/menu/menu-trigger.d.ts +0 -24
- package/menu/menu.d.ts +0 -97
- package/menu/menu_public_index.d.ts +0 -4
- package/menu/package.json +0 -9
- package/menu/pointer-focus-tracker.d.ts +0 -44
- package/menu/public-api.d.ts +0 -20
- package/popover-edit/constants.d.ts +0 -19
- package/popover-edit/edit-event-dispatcher.d.ts +0 -99
- package/popover-edit/edit-ref.d.ts +0 -52
- package/popover-edit/edit-services.d.ts +0 -37
- package/popover-edit/focus-dispatcher.d.ts +0 -31
- package/popover-edit/focus-escape-notifier.d.ts +0 -40
- package/popover-edit/form-value-container.d.ts +0 -24
- package/popover-edit/lens-directives.d.ts +0 -82
- package/popover-edit/package.json +0 -9
- package/popover-edit/polyfill.d.ts +0 -9
- package/popover-edit/popover-edit-module.d.ts +0 -9
- package/popover-edit/popover-edit-position-strategy-factory.d.ts +0 -42
- package/popover-edit/popover-edit_public_index.d.ts +0 -4
- package/popover-edit/public-api.d.ts +0 -17
- package/popover-edit/table-directives.d.ts +0 -150
- package/public-api.d.ts +0 -8
- package/scrolling/auto-size-virtual-scroll.d.ts +0 -160
- package/scrolling/package.json +0 -9
- package/scrolling/public-api.d.ts +0 -9
- package/scrolling/scrolling-module.d.ts +0 -7
- package/scrolling/scrolling_public_index.d.ts +0 -4
- package/selection/package.json +0 -9
- package/selection/public-api.d.ts +0 -14
- package/selection/row-selection.d.ts +0 -27
- package/selection/select-all.d.ts +0 -52
- package/selection/selection-column.d.ts +0 -34
- package/selection/selection-module.d.ts +0 -13
- package/selection/selection-set.d.ts +0 -56
- package/selection/selection-toggle.d.ts +0 -46
- package/selection/selection.d.ts +0 -65
- package/selection/selection_public_index.d.ts +0 -4
- package/table-scroll-container/package.json +0 -9
- package/table-scroll-container/public-api.d.ts +0 -9
- package/table-scroll-container/table-scroll-container-module.d.ts +0 -7
- package/table-scroll-container/table-scroll-container.d.ts +0 -53
- package/table-scroll-container/table-scroll-container_public_index.d.ts +0 -4
- package/version.d.ts +0 -10
package/menu/menu-item.d.ts
DELETED
|
@@ -1,100 +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, EventEmitter, NgZone, OnDestroy } from '@angular/core';
|
|
9
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
10
|
-
import { FocusableOption } from '@angular/cdk/a11y';
|
|
11
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
12
|
-
import { CdkMenuItemTrigger } from './menu-item-trigger';
|
|
13
|
-
import { Menu } from './menu-interface';
|
|
14
|
-
import { MenuStack } from './menu-stack';
|
|
15
|
-
import { FocusableElement } from './pointer-focus-tracker';
|
|
16
|
-
import { MenuAim, Toggler } from './menu-aim';
|
|
17
|
-
import * as i0 from "@angular/core";
|
|
18
|
-
/**
|
|
19
|
-
* Directive which provides the ability for an element to be focused and navigated to using the
|
|
20
|
-
* keyboard when residing in a CdkMenu, CdkMenuBar, or CdkMenuGroup. It performs user defined
|
|
21
|
-
* behavior when clicked.
|
|
22
|
-
*/
|
|
23
|
-
export declare class CdkMenuItem implements FocusableOption, FocusableElement, Toggler, OnDestroy {
|
|
24
|
-
readonly _elementRef: ElementRef<HTMLElement>;
|
|
25
|
-
private readonly _ngZone;
|
|
26
|
-
private readonly _menuStack?;
|
|
27
|
-
private readonly _parentMenu?;
|
|
28
|
-
private readonly _menuAim?;
|
|
29
|
-
private readonly _dir?;
|
|
30
|
-
/** Reference to the CdkMenuItemTrigger directive if one is added to the same element */
|
|
31
|
-
private readonly _menuTrigger?;
|
|
32
|
-
/** Whether the CdkMenuItem is disabled - defaults to false */
|
|
33
|
-
get disabled(): boolean;
|
|
34
|
-
set disabled(value: BooleanInput);
|
|
35
|
-
private _disabled;
|
|
36
|
-
/**
|
|
37
|
-
* If this MenuItem is a regular MenuItem, outputs when it is triggered by a keyboard or mouse
|
|
38
|
-
* event.
|
|
39
|
-
*/
|
|
40
|
-
readonly triggered: EventEmitter<void>;
|
|
41
|
-
/**
|
|
42
|
-
* The tabindex for this menu item managed internally and used for implementing roving a
|
|
43
|
-
* tab index.
|
|
44
|
-
*/
|
|
45
|
-
_tabindex: 0 | -1;
|
|
46
|
-
/** Emits when the menu item is destroyed. */
|
|
47
|
-
private readonly _destroyed;
|
|
48
|
-
constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _menuStack?: MenuStack | undefined, _parentMenu?: Menu | undefined, _menuAim?: MenuAim | undefined, _dir?: Directionality | undefined,
|
|
49
|
-
/** Reference to the CdkMenuItemTrigger directive if one is added to the same element */
|
|
50
|
-
_menuTrigger?: CdkMenuItemTrigger | undefined);
|
|
51
|
-
/** Place focus on the element. */
|
|
52
|
-
focus(): void;
|
|
53
|
-
/** Reset the _tabindex to -1. */
|
|
54
|
-
_resetTabIndex(): void;
|
|
55
|
-
/**
|
|
56
|
-
* Set the tab index to 0 if not disabled and it's a focus event, or a mouse enter if this element
|
|
57
|
-
* is not in a menu bar.
|
|
58
|
-
*/
|
|
59
|
-
_setTabIndex(event?: MouseEvent): void;
|
|
60
|
-
/** Whether this menu item is standalone or within a menu or menu bar. */
|
|
61
|
-
_isStandaloneItem(): boolean;
|
|
62
|
-
/**
|
|
63
|
-
* If the menu item is not disabled and the element does not have a menu trigger attached, emit
|
|
64
|
-
* on the cdkMenuItemTriggered emitter and close all open menus.
|
|
65
|
-
*/
|
|
66
|
-
trigger(): void;
|
|
67
|
-
/** Whether the menu item opens a menu. */
|
|
68
|
-
hasMenu(): boolean;
|
|
69
|
-
/** Return true if this MenuItem has an attached menu and it is open. */
|
|
70
|
-
isMenuOpen(): boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Get a reference to the rendered Menu if the Menu is open and it is visible in the DOM.
|
|
73
|
-
* @return the menu if it is open, otherwise undefined.
|
|
74
|
-
*/
|
|
75
|
-
getMenu(): Menu | undefined;
|
|
76
|
-
/** Get the MenuItemTrigger associated with this element. */
|
|
77
|
-
getMenuTrigger(): CdkMenuItemTrigger | undefined;
|
|
78
|
-
/** Get the label for this element which is required by the FocusableOption interface. */
|
|
79
|
-
getLabel(): string;
|
|
80
|
-
/**
|
|
81
|
-
* Handles keyboard events for the menu item, specifically either triggering the user defined
|
|
82
|
-
* callback or opening/closing the current menu based on whether the left or right arrow key was
|
|
83
|
-
* pressed.
|
|
84
|
-
* @param event the keyboard event to handle
|
|
85
|
-
*/
|
|
86
|
-
_onKeydown(event: KeyboardEvent): void;
|
|
87
|
-
/**
|
|
88
|
-
* Subscribe to the mouseenter events and close any sibling menu items if this element is moused
|
|
89
|
-
* into.
|
|
90
|
-
*/
|
|
91
|
-
private _setupMouseEnter;
|
|
92
|
-
/**
|
|
93
|
-
* Return true if the enclosing parent menu is configured in a horizontal orientation, false
|
|
94
|
-
* otherwise or if no parent.
|
|
95
|
-
*/
|
|
96
|
-
private _isParentVertical;
|
|
97
|
-
ngOnDestroy(): void;
|
|
98
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItem, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
|
|
99
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItem, "[cdkMenuItem]", ["cdkMenuItem"], { "disabled": "disabled"; }, { "triggered": "cdkMenuItemTriggered"; }, never>;
|
|
100
|
-
}
|
package/menu/menu-module.d.ts
DELETED
|
@@ -1,16 +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-item-trigger";
|
|
8
|
-
import * as i7 from "./menu-group";
|
|
9
|
-
import * as i8 from "./context-menu";
|
|
10
|
-
import * as i9 from "./menu-aim";
|
|
11
|
-
import * as i10 from "@angular/cdk/overlay";
|
|
12
|
-
export declare class CdkMenuModule {
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkMenuModule, [typeof i1.CdkMenuBar, typeof i2.CdkMenu, typeof i3.CdkMenuItem, typeof i4.CdkMenuItemRadio, typeof i5.CdkMenuItemCheckbox, typeof i6.CdkMenuItemTrigger, 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.CdkMenuItemTrigger, typeof i7.CdkMenuGroup, typeof i8.CdkContextMenuTrigger, typeof i9.CdkTargetMenuAim]>;
|
|
15
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CdkMenuModule>;
|
|
16
|
-
}
|
package/menu/menu-stack.d.ts
DELETED
|
@@ -1,79 +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 } 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
|
-
/**
|
|
27
|
-
* MenuStack allows subscribers to listen for close events (when a MenuStackItem is popped off
|
|
28
|
-
* of the stack) in order to perform closing actions. Upon the MenuStack being empty it emits
|
|
29
|
-
* from the `empty` observable specifying the next focus action which the listener should perform
|
|
30
|
-
* as requested by the closer.
|
|
31
|
-
*/
|
|
32
|
-
export declare class MenuStack {
|
|
33
|
-
/** All MenuStackItems tracked by this MenuStack. */
|
|
34
|
-
private readonly _elements;
|
|
35
|
-
/** Emits the element which was popped off of the stack when requested by a closer. */
|
|
36
|
-
private readonly _close;
|
|
37
|
-
/** Emits once the MenuStack has become empty after popping off elements. */
|
|
38
|
-
private readonly _empty;
|
|
39
|
-
/** Observable which emits the MenuStackItem which has been requested to close. */
|
|
40
|
-
readonly closed: Observable<MenuStackItem | undefined>;
|
|
41
|
-
/**
|
|
42
|
-
* Observable which emits when the MenuStack is empty after popping off the last element. It
|
|
43
|
-
* emits a FocusNext event which specifies the action the closer has requested the listener
|
|
44
|
-
* perform.
|
|
45
|
-
*/
|
|
46
|
-
readonly emptied: Observable<FocusNext | undefined>;
|
|
47
|
-
/** @param menu the MenuStackItem to put on the stack. */
|
|
48
|
-
push(menu: MenuStackItem): void;
|
|
49
|
-
/**
|
|
50
|
-
* Pop items off of the stack up to and including `lastItem` and emit each on the close
|
|
51
|
-
* observable. If the stack is empty or `lastItem` is not on the stack it does nothing.
|
|
52
|
-
* @param lastItem the last item to pop off the stack.
|
|
53
|
-
* @param focusNext the event to emit on the `empty` observable if the method call resulted in an
|
|
54
|
-
* empty stack. Does not emit if the stack was initially empty or if `lastItem` was not on the
|
|
55
|
-
* stack.
|
|
56
|
-
*/
|
|
57
|
-
close(lastItem: MenuStackItem, focusNext?: FocusNext): void;
|
|
58
|
-
/**
|
|
59
|
-
* Pop items off of the stack up to but excluding `lastItem` and emit each on the close
|
|
60
|
-
* observable. If the stack is empty or `lastItem` is not on the stack it does nothing.
|
|
61
|
-
* @param lastItem the element which should be left on the stack
|
|
62
|
-
* @return whether or not an item was removed from the stack
|
|
63
|
-
*/
|
|
64
|
-
closeSubMenuOf(lastItem: MenuStackItem): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Pop off all MenuStackItems and emit each one on the `close` observable one by one.
|
|
67
|
-
* @param focusNext the event to emit on the `empty` observable once the stack is emptied. Does
|
|
68
|
-
* not emit if the stack was initially empty.
|
|
69
|
-
*/
|
|
70
|
-
closeAll(focusNext?: FocusNext): void;
|
|
71
|
-
/** Return true if this stack is empty. */
|
|
72
|
-
isEmpty(): boolean;
|
|
73
|
-
/** Return the length of the stack. */
|
|
74
|
-
length(): number;
|
|
75
|
-
/** Get the top most element on the stack. */
|
|
76
|
-
peek(): MenuStackItem | undefined;
|
|
77
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuStack, never>;
|
|
78
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MenuStack>;
|
|
79
|
-
}
|
package/menu/menu-trigger.d.ts
DELETED
|
@@ -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
|
-
import { InjectionToken, Injector } from '@angular/core';
|
|
9
|
-
import { Menu } from './menu-interface';
|
|
10
|
-
import { MenuStack } from './menu-stack';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/** Injection token used for an implementation of MenuStack. */
|
|
13
|
-
export declare const MENU_TRIGGER: InjectionToken<MenuTrigger>;
|
|
14
|
-
export declare class MenuTrigger {
|
|
15
|
-
protected injector: Injector;
|
|
16
|
-
protected menuStack: MenuStack;
|
|
17
|
-
private _childMenuInjector?;
|
|
18
|
-
protected childMenu?: Menu;
|
|
19
|
-
constructor(injector: Injector, menuStack: MenuStack);
|
|
20
|
-
protected getChildMenuInjector(): Injector;
|
|
21
|
-
registerChildMenu(child: Menu): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuTrigger, never>;
|
|
23
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MenuTrigger>;
|
|
24
|
-
}
|
package/menu/menu.d.ts
DELETED
|
@@ -1,97 +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, OnInit } from '@angular/core';
|
|
9
|
-
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
10
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
11
|
-
import { CdkMenuGroup } from './menu-group';
|
|
12
|
-
import { Menu } from './menu-interface';
|
|
13
|
-
import { MenuStack } from './menu-stack';
|
|
14
|
-
import { MenuAim } from './menu-aim';
|
|
15
|
-
import { MenuTrigger } from './menu-trigger';
|
|
16
|
-
import * as i0 from "@angular/core";
|
|
17
|
-
/**
|
|
18
|
-
* Directive which configures the element as a Menu which should contain child elements marked as
|
|
19
|
-
* CdkMenuItem or CdkMenuGroup. Sets the appropriate role and aria-attributes for a menu and
|
|
20
|
-
* contains accessible keyboard and mouse handling logic.
|
|
21
|
-
*
|
|
22
|
-
* It also acts as a RadioGroup for elements marked with role `menuitemradio`.
|
|
23
|
-
*/
|
|
24
|
-
export declare class CdkMenu extends CdkMenuGroup implements Menu, AfterContentInit, OnInit, OnDestroy {
|
|
25
|
-
private readonly _ngZone;
|
|
26
|
-
readonly _elementRef: ElementRef<HTMLElement>;
|
|
27
|
-
readonly _menuStack?: MenuStack | undefined;
|
|
28
|
-
private _parentTrigger?;
|
|
29
|
-
private readonly _menuAim?;
|
|
30
|
-
private readonly _dir?;
|
|
31
|
-
/**
|
|
32
|
-
* Sets the aria-orientation attribute and determines where menus will be opened.
|
|
33
|
-
* Does not affect styling/layout.
|
|
34
|
-
*/
|
|
35
|
-
orientation: 'horizontal' | 'vertical';
|
|
36
|
-
/** Event emitted when the menu is closed. */
|
|
37
|
-
readonly closed: EventEmitter<void | 'click' | 'tab' | 'escape'>;
|
|
38
|
-
/** Handles keyboard events for the menu. */
|
|
39
|
-
private _keyManager;
|
|
40
|
-
/** Manages items under mouse focus. */
|
|
41
|
-
private _pointerTracker?;
|
|
42
|
-
/** List of nested CdkMenuGroup elements */
|
|
43
|
-
private readonly _nestedGroups;
|
|
44
|
-
/** All child MenuItem elements nested in this Menu. */
|
|
45
|
-
private readonly _allItems;
|
|
46
|
-
/** The Menu Item which triggered the open submenu. */
|
|
47
|
-
private _openItem?;
|
|
48
|
-
constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _menuStack?: MenuStack | undefined, _parentTrigger?: MenuTrigger | undefined, _menuAim?: MenuAim | undefined, _dir?: Directionality | undefined);
|
|
49
|
-
ngOnInit(): void;
|
|
50
|
-
ngAfterContentInit(): void;
|
|
51
|
-
/** Place focus on the first MenuItem in the menu and set the focus origin. */
|
|
52
|
-
focusFirstItem(focusOrigin?: FocusOrigin): void;
|
|
53
|
-
/** Place focus on the last MenuItem in the menu and set the focus origin. */
|
|
54
|
-
focusLastItem(focusOrigin?: FocusOrigin): void;
|
|
55
|
-
/** Handle keyboard events for the Menu. */
|
|
56
|
-
_handleKeyEvent(event: KeyboardEvent): void;
|
|
57
|
-
/**
|
|
58
|
-
* Complete the change emitter if there are any nested MenuGroups or register to complete the
|
|
59
|
-
* change emitter if a MenuGroup is rendered at some point
|
|
60
|
-
*/
|
|
61
|
-
private _completeChangeEmitter;
|
|
62
|
-
/** Return true if there are nested CdkMenuGroup elements within the Menu */
|
|
63
|
-
private _hasNestedGroups;
|
|
64
|
-
/** Setup the FocusKeyManager with the correct orientation for the menu. */
|
|
65
|
-
private _setKeyManager;
|
|
66
|
-
/**
|
|
67
|
-
* Set the PointerFocusTracker and ensure that when mouse focus changes the key manager is updated
|
|
68
|
-
* with the latest menu item under mouse focus.
|
|
69
|
-
*/
|
|
70
|
-
private _subscribeToMouseManager;
|
|
71
|
-
/** Subscribe to the MenuStack close and empty observables. */
|
|
72
|
-
private _subscribeToMenuStack;
|
|
73
|
-
/**
|
|
74
|
-
* Close the open menu if the current active item opened the requested MenuStackItem.
|
|
75
|
-
* @param item the MenuStackItem requested to be closed.
|
|
76
|
-
*/
|
|
77
|
-
private _closeOpenMenu;
|
|
78
|
-
/** Set focus the either the current, previous or next item based on the FocusNext event. */
|
|
79
|
-
private _toggleMenuFocus;
|
|
80
|
-
/**
|
|
81
|
-
* Subscribe to the menu trigger's open events in order to track the trigger which opened the menu
|
|
82
|
-
* and stop tracking it when the menu is closed.
|
|
83
|
-
*/
|
|
84
|
-
private _subscribeToMenuOpen;
|
|
85
|
-
/** Return true if this menu has been configured in a horizontal orientation. */
|
|
86
|
-
private _isHorizontal;
|
|
87
|
-
/**
|
|
88
|
-
* Return true if this menu is an inline menu. That is, it does not exist in a pop-up and is
|
|
89
|
-
* always visible in the dom.
|
|
90
|
-
*/
|
|
91
|
-
_isInline(): boolean;
|
|
92
|
-
ngOnDestroy(): void;
|
|
93
|
-
/** Emit and complete the closed event emitter */
|
|
94
|
-
private _emitClosedEvent;
|
|
95
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenu, [null, null, { optional: true; }, { optional: true; }, { optional: true; self: true; }, { optional: true; }]>;
|
|
96
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenu, "[cdkMenu]", ["cdkMenu"], { "orientation": "cdkMenuOrientation"; }, { "closed": "closed"; }, ["_nestedGroups", "_allItems"]>;
|
|
97
|
-
}
|
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
|
-
}
|
package/menu/public-api.d.ts
DELETED
|
@@ -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
|
-
}
|