@angular/cdk-experimental 14.0.0-next.1 → 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-module.d.ts +3 -4
- package/combobox/combobox-popup.d.ts +6 -8
- package/combobox/combobox.d.ts +15 -18
- package/combobox/public-api.d.ts +0 -1
- 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 +6 -5
- 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 +4 -4
- 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 +4 -4
- package/esm2020/popover-edit/lens-directives.mjs +10 -10
- package/esm2020/popover-edit/popover-edit-module.mjs +5 -5
- package/esm2020/popover-edit/popover-edit-position-strategy-factory.mjs +7 -7
- package/esm2020/popover-edit/table-directives.mjs +16 -16
- 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 +52 -51
- 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 +49 -49
- 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 +52 -51
- 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 +49 -49
- 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/listbox/listbox.d.ts +16 -13
- package/package.json +3 -19
- 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/combobox/combobox-panel.d.ts +0 -27
- 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 -283
- 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 -294
- package/esm2020/menu/index.mjs +0 -9
- package/esm2020/menu/menu-aim.mjs +0 -199
- package/esm2020/menu/menu-bar.mjs +0 -252
- package/esm2020/menu/menu-errors.mjs +0 -30
- 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 -90
- package/esm2020/menu/menu-item-selectable.mjs +0 -57
- package/esm2020/menu/menu-item-trigger.mjs +0 -361
- package/esm2020/menu/menu-item.mjs +0 -244
- package/esm2020/menu/menu-module.mjs +0 -64
- package/esm2020/menu/menu-panel.mjs +0 -37
- package/esm2020/menu/menu-stack.mjs +0 -106
- package/esm2020/menu/menu.mjs +0 -301
- 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 -785
- package/fesm2015/dialog.mjs.map +0 -1
- package/fesm2015/menu.mjs +0 -2162
- package/fesm2015/menu.mjs.map +0 -1
- package/fesm2020/dialog.mjs +0 -780
- package/fesm2020/dialog.mjs.map +0 -1
- package/fesm2020/menu.mjs +0 -2127
- package/fesm2020/menu.mjs.map +0 -1
- package/menu/context-menu.d.ts +0 -123
- 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 -22
- 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 -35
- package/menu/menu-item-selectable.d.ts +0 -31
- package/menu/menu-item-trigger.d.ts +0 -119
- package/menu/menu-item.d.ts +0 -100
- package/menu/menu-module.d.ts +0 -17
- package/menu/menu-panel.d.ts +0 -30
- package/menu/menu-stack.d.ts +0 -78
- package/menu/menu.d.ts +0 -113
- 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/listbox/listbox.d.ts
CHANGED
|
@@ -5,17 +5,20 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import { AfterContentInit, ElementRef, EventEmitter,
|
|
8
|
+
import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
9
9
|
import { ActiveDescendantKeyManager, Highlightable, ListKeyManagerOption } from '@angular/cdk/a11y';
|
|
10
10
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
11
11
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
12
12
|
import { Observable } from 'rxjs';
|
|
13
13
|
import { ControlValueAccessor } from '@angular/forms';
|
|
14
|
-
import { CdkComboboxPanel } from '@angular/cdk-experimental/combobox';
|
|
15
14
|
import { Directionality } from '@angular/cdk/bidi';
|
|
15
|
+
import { CdkCombobox } from '@angular/cdk-experimental/combobox';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
|
-
export declare const CDK_LISTBOX_VALUE_ACCESSOR:
|
|
18
|
-
|
|
17
|
+
export declare const CDK_LISTBOX_VALUE_ACCESSOR: {
|
|
18
|
+
provide: import("@angular/core").InjectionToken<readonly ControlValueAccessor[]>;
|
|
19
|
+
useExisting: import("@angular/core").Type<any>;
|
|
20
|
+
multi: boolean;
|
|
21
|
+
};
|
|
19
22
|
export declare class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightable {
|
|
20
23
|
private readonly _elementRef;
|
|
21
24
|
readonly listbox: CdkListbox<T>;
|
|
@@ -32,6 +35,11 @@ export declare class CdkOption<T = unknown> implements ListKeyManagerOption, Hig
|
|
|
32
35
|
/** The form value of the option. */
|
|
33
36
|
get value(): T;
|
|
34
37
|
set value(value: T);
|
|
38
|
+
/**
|
|
39
|
+
* The text used to locate this item during menu typeahead. If not specified,
|
|
40
|
+
* the `textContent` of the item will be used.
|
|
41
|
+
*/
|
|
42
|
+
typeahead: string;
|
|
35
43
|
readonly selectionChange: EventEmitter<OptionSelectionChangeEvent<T>>;
|
|
36
44
|
constructor(_elementRef: ElementRef, listbox: CdkListbox<T>);
|
|
37
45
|
/** Toggles the selected state, emits a change event through the injected listbox. */
|
|
@@ -54,18 +62,15 @@ export declare class CdkOption<T = unknown> implements ListKeyManagerOption, Hig
|
|
|
54
62
|
_getTabIndex(): string | null;
|
|
55
63
|
/** Get the label for this element which is required by the FocusableOption interface. */
|
|
56
64
|
getLabel(): string;
|
|
57
|
-
/** Remove any child from the given element which can be identified as an icon. */
|
|
58
|
-
private _removeIcons;
|
|
59
|
-
getElementRef(): ElementRef<any>;
|
|
60
65
|
/** Sets the active property to true to enable the active css class. */
|
|
61
66
|
setActiveStyles(): void;
|
|
62
67
|
/** Sets the active property to false to disable the active css class. */
|
|
63
68
|
setInactiveStyles(): void;
|
|
64
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkOption<any>, never>;
|
|
65
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkOption<any>, "[cdkOption]", ["cdkOption"], { "id": "id"; "selected": "selected"; "disabled": "disabled"; "value": "value"; }, { "selectionChange": "selectionChange"; }, never>;
|
|
70
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkOption<any>, "[cdkOption]", ["cdkOption"], { "id": "id"; "selected": "selected"; "disabled": "disabled"; "value": "value"; "typeahead": "typeahead"; }, { "selectionChange": "selectionChange"; }, never, never, false>;
|
|
66
71
|
}
|
|
67
72
|
export declare class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, ControlValueAccessor {
|
|
68
|
-
readonly
|
|
73
|
+
private readonly _combobox;
|
|
69
74
|
private readonly _dir?;
|
|
70
75
|
_listKeyManager: ActiveDescendantKeyManager<CdkOption<T>>;
|
|
71
76
|
_selectionModel: SelectionModel<CdkOption<T>>;
|
|
@@ -101,12 +106,10 @@ export declare class CdkListbox<T> implements AfterContentInit, OnDestroy, OnIni
|
|
|
101
106
|
/** Determines the orientation for the list key manager. Affects keyboard interaction. */
|
|
102
107
|
orientation: 'horizontal' | 'vertical';
|
|
103
108
|
compareWith: (o1: T, o2: T) => boolean;
|
|
104
|
-
|
|
105
|
-
constructor(_parentPanel?: CdkComboboxPanel<T> | undefined, _dir?: Directionality | undefined);
|
|
109
|
+
constructor(_combobox: CdkCombobox, _dir?: Directionality | undefined);
|
|
106
110
|
ngOnInit(): void;
|
|
107
111
|
ngAfterContentInit(): void;
|
|
108
112
|
ngOnDestroy(): void;
|
|
109
|
-
private _registerWithPanel;
|
|
110
113
|
private _initKeyManager;
|
|
111
114
|
private _initSelectionModel;
|
|
112
115
|
_keydown(event: KeyboardEvent): void;
|
|
@@ -151,7 +154,7 @@ export declare class CdkListbox<T> implements AfterContentInit, OnDestroy, OnIni
|
|
|
151
154
|
/** Selects an option that has the corresponding given value. */
|
|
152
155
|
private _setSelectionByValue;
|
|
153
156
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkListbox<any>, [{ optional: true; }, { optional: true; }]>;
|
|
154
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkListbox<any>, "[cdkListbox]", ["cdkListbox"], { "id": "id"; "multiple": "multiple"; "disabled": "disabled"; "useActiveDescendant": "useActiveDescendant"; "autoFocus": "autoFocus"; "orientation": "listboxOrientation"; "compareWith": "compareWith";
|
|
157
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkListbox<any>, "[cdkListbox]", ["cdkListbox"], { "id": "id"; "multiple": "multiple"; "disabled": "disabled"; "useActiveDescendant": "useActiveDescendant"; "autoFocus": "autoFocus"; "orientation": "listboxOrientation"; "compareWith": "compareWith"; }, { "selectionChange": "selectionChange"; }, ["_options"], never, false>;
|
|
155
158
|
}
|
|
156
159
|
/** Change event that is being fired whenever the selected state of an option changes. */
|
|
157
160
|
export interface ListboxSelectionChangeEvent<T> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cdk-experimental",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.12",
|
|
4
4
|
"description": "Experimental components for Angular CDK",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"homepage": "https://github.com/angular/components#readme",
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@angular/cdk": "14.0.0-next.
|
|
16
|
-
"@angular/core": "^
|
|
15
|
+
"@angular/cdk": "14.0.0-next.12",
|
|
16
|
+
"@angular/core": "^14.0.0-0 || ^15.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"tslib": "^2.3.0"
|
|
@@ -54,14 +54,6 @@
|
|
|
54
54
|
"node": "./fesm2015/combobox.mjs",
|
|
55
55
|
"default": "./fesm2020/combobox.mjs"
|
|
56
56
|
},
|
|
57
|
-
"./dialog": {
|
|
58
|
-
"types": "./dialog/dialog_public_index.d.ts",
|
|
59
|
-
"esm2020": "./esm2020/dialog/dialog_public_index.mjs",
|
|
60
|
-
"es2020": "./fesm2020/dialog.mjs",
|
|
61
|
-
"es2015": "./fesm2015/dialog.mjs",
|
|
62
|
-
"node": "./fesm2015/dialog.mjs",
|
|
63
|
-
"default": "./fesm2020/dialog.mjs"
|
|
64
|
-
},
|
|
65
57
|
"./listbox": {
|
|
66
58
|
"types": "./listbox/listbox_public_index.d.ts",
|
|
67
59
|
"esm2020": "./esm2020/listbox/listbox_public_index.mjs",
|
|
@@ -70,14 +62,6 @@
|
|
|
70
62
|
"node": "./fesm2015/listbox.mjs",
|
|
71
63
|
"default": "./fesm2020/listbox.mjs"
|
|
72
64
|
},
|
|
73
|
-
"./menu": {
|
|
74
|
-
"types": "./menu/menu_public_index.d.ts",
|
|
75
|
-
"esm2020": "./esm2020/menu/menu_public_index.mjs",
|
|
76
|
-
"es2020": "./fesm2020/menu.mjs",
|
|
77
|
-
"es2015": "./fesm2015/menu.mjs",
|
|
78
|
-
"node": "./fesm2015/menu.mjs",
|
|
79
|
-
"default": "./fesm2020/menu.mjs"
|
|
80
|
-
},
|
|
81
65
|
"./popover-edit": {
|
|
82
66
|
"types": "./popover-edit/popover-edit_public_index.d.ts",
|
|
83
67
|
"esm2020": "./esm2020/popover-edit/popover-edit_public_index.mjs",
|
|
@@ -59,7 +59,7 @@ export declare class CdkEditControl<FormValue> implements OnDestroy, OnInit {
|
|
|
59
59
|
private _handleBlur;
|
|
60
60
|
private _triggerFormSubmit;
|
|
61
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditControl<any>, never>;
|
|
62
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditControl<any>, "form[cdkEditControl]", never, { "clickOutBehavior": "cdkEditControlClickOutBehavior"; "preservedFormValue": "cdkEditControlPreservedFormValue"; "ignoreSubmitUnlessValid": "cdkEditControlIgnoreSubmitUnlessValid"; }, { "preservedFormValueChange": "cdkEditControlPreservedFormValueChange"; }, never>;
|
|
62
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditControl<any>, "form[cdkEditControl]", never, { "clickOutBehavior": "cdkEditControlClickOutBehavior"; "preservedFormValue": "cdkEditControlPreservedFormValue"; "ignoreSubmitUnlessValid": "cdkEditControlIgnoreSubmitUnlessValid"; }, { "preservedFormValueChange": "cdkEditControlPreservedFormValueChange"; }, never, never, false>;
|
|
63
63
|
}
|
|
64
64
|
/** Reverts the form to its initial or previously submitted state on click. */
|
|
65
65
|
export declare class CdkEditRevert<FormValue> {
|
|
@@ -69,7 +69,7 @@ export declare class CdkEditRevert<FormValue> {
|
|
|
69
69
|
constructor(editRef: EditRef<FormValue>);
|
|
70
70
|
revertEdit(): void;
|
|
71
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditRevert<any>, never>;
|
|
72
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditRevert<any>, "button[cdkEditRevert]", never, { "type": "type"; }, {}, never>;
|
|
72
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditRevert<any>, "button[cdkEditRevert]", never, { "type": "type"; }, {}, never, never, false>;
|
|
73
73
|
}
|
|
74
74
|
/** Closes the lens on click. */
|
|
75
75
|
export declare class CdkEditClose<FormValue> {
|
|
@@ -78,5 +78,5 @@ export declare class CdkEditClose<FormValue> {
|
|
|
78
78
|
constructor(elementRef: ElementRef<HTMLElement>, editRef: EditRef<FormValue>);
|
|
79
79
|
closeEdit(): void;
|
|
80
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditClose<any>, never>;
|
|
81
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditClose<any>, "[cdkEditClose]", never, {}, {}, never>;
|
|
81
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditClose<any>, "[cdkEditClose]", never, {}, {}, never, never, false>;
|
|
82
82
|
}
|
|
@@ -40,7 +40,7 @@ export declare class CdkEditable implements AfterViewInit, OnDestroy {
|
|
|
40
40
|
ngOnDestroy(): void;
|
|
41
41
|
private _listenForTableEvents;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditable, never>;
|
|
43
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditable, "table[editable], cdk-table[editable], mat-table[editable]", never, {}, {}, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditable, "table[editable], cdk-table[editable], mat-table[editable]", never, {}, {}, never, never, false>;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Attaches an ng-template to a cell and shows it when instructed to by the
|
|
@@ -86,7 +86,7 @@ export declare class CdkPopoverEdit<C> implements AfterViewInit, OnDestroy {
|
|
|
86
86
|
private _updateOverlaySize;
|
|
87
87
|
private _maybeReturnFocusToCell;
|
|
88
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEdit<any>, never>;
|
|
89
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPopoverEdit<any>, "[cdkPopoverEdit]:not([cdkPopoverEditTabOut])", never, { "template": "cdkPopoverEdit"; "context": "cdkPopoverEditContext"; "colspan": "cdkPopoverEditColspan"; "disabled": "cdkPopoverEditDisabled"; }, {}, never>;
|
|
89
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPopoverEdit<any>, "[cdkPopoverEdit]:not([cdkPopoverEditTabOut])", never, { "template": "cdkPopoverEdit"; "context": "cdkPopoverEditContext"; "colspan": "cdkPopoverEditColspan"; "disabled": "cdkPopoverEditDisabled"; }, {}, never, never, false>;
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Attaches an ng-template to a cell and shows it when instructed to by the
|
|
@@ -99,7 +99,7 @@ export declare class CdkPopoverEditTabOut<C> extends CdkPopoverEdit<C> {
|
|
|
99
99
|
constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef, services: EditServices, focusEscapeNotifierFactory: FocusEscapeNotifierFactory);
|
|
100
100
|
protected initFocusTrap(): void;
|
|
101
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditTabOut<any>, never>;
|
|
102
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPopoverEditTabOut<any>, "[cdkPopoverEdit][cdkPopoverEditTabOut]", never, { "template": "cdkPopoverEdit"; "context": "cdkPopoverEditContext"; "colspan": "cdkPopoverEditColspan"; "disabled": "cdkPopoverEditDisabled"; }, {}, never>;
|
|
102
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPopoverEditTabOut<any>, "[cdkPopoverEdit][cdkPopoverEditTabOut]", never, { "template": "cdkPopoverEdit"; "context": "cdkPopoverEditContext"; "colspan": "cdkPopoverEditColspan"; "disabled": "cdkPopoverEditDisabled"; }, {}, never, never, false>;
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* A structural directive that shows its contents when the table row containing
|
|
@@ -134,7 +134,7 @@ export declare class CdkRowHoverContent implements AfterViewInit, OnDestroy {
|
|
|
134
134
|
protected makeElementVisible(element: HTMLElement): void;
|
|
135
135
|
private _listenForHoverAndFocusEvents;
|
|
136
136
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowHoverContent, never>;
|
|
137
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowHoverContent, "[cdkRowHoverContent]", never, {}, {}, never>;
|
|
137
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowHoverContent, "[cdkRowHoverContent]", never, {}, {}, never, never, false>;
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
140
|
* Opens the closest edit popover to this element, whether it's associated with this exact
|
|
@@ -146,5 +146,5 @@ export declare class CdkEditOpen {
|
|
|
146
146
|
constructor(elementRef: ElementRef<HTMLElement>, editEventDispatcher: EditEventDispatcher<EditRef<unknown>>);
|
|
147
147
|
openEdit(evt: Event): void;
|
|
148
148
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditOpen, never>;
|
|
149
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditOpen, "[cdkEditOpen]", never, {}, {}, never>;
|
|
149
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditOpen, "[cdkEditOpen]", never, {}, {}, never, never, false>;
|
|
150
150
|
}
|
|
@@ -156,5 +156,5 @@ export declare class CdkAutoSizeVirtualScroll implements OnChanges {
|
|
|
156
156
|
_scrollStrategy: AutoSizeVirtualScrollStrategy;
|
|
157
157
|
ngOnChanges(): void;
|
|
158
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAutoSizeVirtualScroll, never>;
|
|
159
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAutoSizeVirtualScroll, "cdk-virtual-scroll-viewport[autosize]", never, { "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; }, {}, never>;
|
|
159
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAutoSizeVirtualScroll, "cdk-virtual-scroll-viewport[autosize]", never, { "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; }, {}, never, never, false>;
|
|
160
160
|
}
|
|
@@ -23,5 +23,5 @@ export declare class CdkRowSelection<T> {
|
|
|
23
23
|
protected _index?: number;
|
|
24
24
|
constructor(_selection: CdkSelection<T>);
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowSelection<any>, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowSelection<any>, "[cdkRowSelection]", never, { "value": "cdkRowSelectionValue"; "index": "cdkRowSelectionIndex"; }, {}, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowSelection<any>, "[cdkRowSelection]", never, { "value": "cdkRowSelectionValue"; "index": "cdkRowSelectionIndex"; }, {}, never, never, false>;
|
|
27
27
|
}
|
|
@@ -48,5 +48,5 @@ export declare class CdkSelectAll<T> implements OnDestroy, OnInit {
|
|
|
48
48
|
private _assertValidParentSelection;
|
|
49
49
|
ngOnDestroy(): void;
|
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectAll<any>, [{ optional: true; }, { optional: true; self: true; }]>;
|
|
51
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelectAll<any>, "[cdkSelectAll]", ["cdkSelectAll"], {}, {}, never>;
|
|
51
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelectAll<any>, "[cdkSelectAll]", ["cdkSelectAll"], {}, {}, never, never, false>;
|
|
52
52
|
}
|
|
@@ -30,5 +30,5 @@ export declare class CdkSelectionColumn<T> implements OnInit, OnDestroy {
|
|
|
30
30
|
ngOnDestroy(): void;
|
|
31
31
|
private _syncColumnDefName;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectionColumn<any>, [{ optional: true; }, { optional: true; }]>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkSelectionColumn<any>, "cdk-selection-column", never, { "name": "cdkSelectionColumnName"; }, {}, never, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CdkSelectionColumn<any>, "cdk-selection-column", never, { "name": "cdkSelectionColumnName"; }, {}, never, never, false>;
|
|
34
34
|
}
|
|
@@ -42,5 +42,5 @@ export declare class CdkSelectionToggle<T> implements OnDestroy, OnInit {
|
|
|
42
42
|
private _configureControlValueAccessor;
|
|
43
43
|
private _isSelected;
|
|
44
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectionToggle<any>, [{ optional: true; }, { optional: true; self: true; }]>;
|
|
45
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelectionToggle<any>, "[cdkSelectionToggle]", ["cdkSelectionToggle"], { "value": "cdkSelectionToggleValue"; "index": "cdkSelectionToggleIndex"; }, {}, never>;
|
|
45
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelectionToggle<any>, "[cdkSelectionToggle]", ["cdkSelectionToggle"], { "value": "cdkSelectionToggleValue"; "index": "cdkSelectionToggleIndex"; }, {}, never, never, false>;
|
|
46
46
|
}
|
package/selection/selection.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare class CdkSelection<T> implements OnInit, AfterContentChecked, Col
|
|
|
58
58
|
private _updateSelectAllState;
|
|
59
59
|
selectAllState: SelectAllState;
|
|
60
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelection<any>, never>;
|
|
61
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelection<any>, "[cdkSelection]", ["cdkSelection"], { "dataSource": "dataSource"; "trackByFn": "trackBy"; "multiple": "cdkSelectionMultiple"; }, { "change": "cdkSelectionChange"; }, never>;
|
|
61
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelection<any>, "[cdkSelection]", ["cdkSelection"], { "dataSource": "dataSource"; "trackByFn": "trackBy"; "multiple": "cdkSelectionMultiple"; }, { "change": "cdkSelectionChange"; }, never, never, false>;
|
|
62
62
|
}
|
|
63
63
|
declare type SelectAllState = 'all' | 'none' | 'partial';
|
|
64
64
|
declare type TableDataSource<T> = DataSource<T> | Observable<readonly T[]> | readonly T[];
|
|
@@ -49,5 +49,5 @@ export declare class CdkTableScrollContainer implements StickyPositioningListene
|
|
|
49
49
|
private _applyCss;
|
|
50
50
|
private _clearCss;
|
|
51
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTableScrollContainer, [null, null, { optional: true; }]>;
|
|
52
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTableScrollContainer, "[cdkTableScrollContainer]", never, {}, {}, never>;
|
|
52
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTableScrollContainer, "[cdkTableScrollContainer]", never, {}, {}, never, never, false>;
|
|
53
53
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright Google LLC All Rights Reserved.
|
|
7
|
-
*
|
|
8
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
9
|
-
* found in the LICENSE file at https://angular.io/license
|
|
10
|
-
*/
|
|
11
|
-
export declare type AriaHasPopupValue = 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
12
|
-
export declare class CdkComboboxPanel<T = unknown> {
|
|
13
|
-
readonly _templateRef: TemplateRef<unknown>;
|
|
14
|
-
valueUpdated: Subject<T | T[]>;
|
|
15
|
-
contentIdUpdated: Subject<string>;
|
|
16
|
-
contentTypeUpdated: Subject<AriaHasPopupValue>;
|
|
17
|
-
contentId: string;
|
|
18
|
-
contentType: AriaHasPopupValue;
|
|
19
|
-
constructor(_templateRef: TemplateRef<unknown>);
|
|
20
|
-
/** Tells the parent combobox to close the panel and sends back the content value. */
|
|
21
|
-
closePanel(data?: T | T[]): void;
|
|
22
|
-
focusContent(): void;
|
|
23
|
-
/** Registers the content's id and the content type with the panel. */
|
|
24
|
-
_registerContent(contentId: string, contentType: AriaHasPopupValue): void;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkComboboxPanel<any>, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkComboboxPanel<any>, "ng-template[cdkComboboxPanel]", ["cdkComboboxPanel"], {}, {}, never>;
|
|
27
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { ViewContainerRef } from '@angular/core';
|
|
9
|
-
import { Direction } from '@angular/cdk/bidi';
|
|
10
|
-
import { ComponentType } from '@angular/cdk/overlay';
|
|
11
|
-
import { CdkDialogContainer } from './dialog-container';
|
|
12
|
-
/** Options for where to set focus to automatically on dialog open */
|
|
13
|
-
export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
14
|
-
/** Valid ARIA roles for a dialog element. */
|
|
15
|
-
export declare type DialogRole = 'dialog' | 'alertdialog';
|
|
16
|
-
/** Possible overrides for a dialog's position. */
|
|
17
|
-
export interface DialogPosition {
|
|
18
|
-
top?: string;
|
|
19
|
-
bottom?: string;
|
|
20
|
-
left?: string;
|
|
21
|
-
right?: string;
|
|
22
|
-
}
|
|
23
|
-
export declare class DialogConfig<D = any> {
|
|
24
|
-
/** Component to use as the container for the dialog. */
|
|
25
|
-
containerComponent?: ComponentType<CdkDialogContainer>;
|
|
26
|
-
/**
|
|
27
|
-
* Where the attached component should live in Angular's *logical* component tree.
|
|
28
|
-
* This affects what is available for injection and the change detection order for the
|
|
29
|
-
* component instantiated inside of the dialog. This does not affect where the dialog
|
|
30
|
-
* content will be rendered.
|
|
31
|
-
*/
|
|
32
|
-
viewContainerRef?: ViewContainerRef;
|
|
33
|
-
/** The id of the dialog. */
|
|
34
|
-
id?: string;
|
|
35
|
-
/** The ARIA role of the dialog. */
|
|
36
|
-
role?: DialogRole;
|
|
37
|
-
/** Custom class(es) for the overlay panel. */
|
|
38
|
-
panelClass?: string | string[];
|
|
39
|
-
/** Whether the dialog has a background. */
|
|
40
|
-
hasBackdrop?: boolean;
|
|
41
|
-
/** Custom class(es) for the backdrop. */
|
|
42
|
-
backdropClass?: string | undefined;
|
|
43
|
-
/** Whether the dialog can be closed by user interaction. */
|
|
44
|
-
disableClose?: boolean;
|
|
45
|
-
/** The width of the dialog. */
|
|
46
|
-
width?: string;
|
|
47
|
-
/** The height of the dialog. */
|
|
48
|
-
height?: string;
|
|
49
|
-
/** The minimum width of the dialog. */
|
|
50
|
-
minWidth?: string | number;
|
|
51
|
-
/** The minimum height of the dialog. */
|
|
52
|
-
minHeight?: string | number;
|
|
53
|
-
/** The maximum width of the dialog. */
|
|
54
|
-
maxWidth?: string | number;
|
|
55
|
-
/** The maximum height of the dialog. */
|
|
56
|
-
maxHeight?: string | number;
|
|
57
|
-
/** The position of the dialog. */
|
|
58
|
-
position?: DialogPosition;
|
|
59
|
-
/** Data to be injected into the dialog content. */
|
|
60
|
-
data?: D | null;
|
|
61
|
-
/** The layout direction for the dialog content. */
|
|
62
|
-
direction?: Direction;
|
|
63
|
-
/** ID of the element that describes the dialog. */
|
|
64
|
-
ariaDescribedBy?: string | null;
|
|
65
|
-
/** Aria label to assign to the dialog element */
|
|
66
|
-
ariaLabel?: string | null;
|
|
67
|
-
/**
|
|
68
|
-
* Where the dialog should focus on open.
|
|
69
|
-
* @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
|
|
70
|
-
* AutoFocusTarget instead.
|
|
71
|
-
*/
|
|
72
|
-
autoFocus?: AutoFocusTarget | string | boolean;
|
|
73
|
-
/** Duration of the enter animation. Has to be a valid CSS value (e.g. 100ms). */
|
|
74
|
-
enterAnimationDuration?: string;
|
|
75
|
-
/** Duration of the exit animation. Has to be a valid CSS value (e.g. 50ms). */
|
|
76
|
-
exitAnimationDuration?: string;
|
|
77
|
-
}
|
|
@@ -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 { AnimationEvent } from '@angular/animations';
|
|
9
|
-
import { FocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y';
|
|
10
|
-
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, DomPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
11
|
-
import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, NgZone, OnDestroy } from '@angular/core';
|
|
12
|
-
import { Subject } from 'rxjs';
|
|
13
|
-
import { DialogConfig } from './dialog-config';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
export declare function throwDialogContentAlreadyAttachedError(): void;
|
|
16
|
-
/**
|
|
17
|
-
* Internal component that wraps user-provided dialog content.
|
|
18
|
-
* @docs-private
|
|
19
|
-
*/
|
|
20
|
-
export declare class CdkDialogContainer extends BasePortalOutlet implements OnDestroy {
|
|
21
|
-
private _elementRef;
|
|
22
|
-
private _focusTrapFactory;
|
|
23
|
-
private _changeDetectorRef;
|
|
24
|
-
private readonly _interactivityChecker;
|
|
25
|
-
private readonly _ngZone;
|
|
26
|
-
/** The dialog configuration. */
|
|
27
|
-
_config: DialogConfig;
|
|
28
|
-
private readonly _document;
|
|
29
|
-
/** State of the dialog animation. */
|
|
30
|
-
_state: 'void' | 'enter' | 'exit';
|
|
31
|
-
/** Element that was focused before the dialog was opened. Save this to restore upon close. */
|
|
32
|
-
private _elementFocusedBeforeDialogWasOpened;
|
|
33
|
-
/** The class that traps and manages focus within the dialog. */
|
|
34
|
-
private _focusTrap;
|
|
35
|
-
/** The portal host inside of this container into which the dialog content will be loaded. */
|
|
36
|
-
_portalHost: CdkPortalOutlet;
|
|
37
|
-
/** A subject emitting before the dialog enters the view. */
|
|
38
|
-
readonly _beforeEnter: Subject<void>;
|
|
39
|
-
/** A subject emitting after the dialog enters the view. */
|
|
40
|
-
readonly _afterEnter: Subject<void>;
|
|
41
|
-
/** A subject emitting before the dialog exits the view. */
|
|
42
|
-
readonly _beforeExit: Subject<void>;
|
|
43
|
-
/** A subject emitting after the dialog exits the view. */
|
|
44
|
-
readonly _afterExit: Subject<void>;
|
|
45
|
-
/** Stream of animation `done` events. */
|
|
46
|
-
readonly _animationDone: Subject<AnimationEvent>;
|
|
47
|
-
constructor(_elementRef: ElementRef<HTMLElement>, _focusTrapFactory: FocusTrapFactory, _changeDetectorRef: ChangeDetectorRef, _interactivityChecker: InteractivityChecker, _ngZone: NgZone, _document: any,
|
|
48
|
-
/** The dialog configuration. */
|
|
49
|
-
_config: DialogConfig);
|
|
50
|
-
/** Initializes the dialog container with the attached content. */
|
|
51
|
-
_initializeWithAttachedContent(): void;
|
|
52
|
-
/** Destroy focus trap to place focus back to the element focused before the dialog opened. */
|
|
53
|
-
ngOnDestroy(): void;
|
|
54
|
-
/**
|
|
55
|
-
* Attach a ComponentPortal as content to this dialog container.
|
|
56
|
-
* @param portal Portal to be attached as the dialog content.
|
|
57
|
-
*/
|
|
58
|
-
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
|
59
|
-
/**
|
|
60
|
-
* Attach a TemplatePortal as content to this dialog container.
|
|
61
|
-
* @param portal Portal to be attached as the dialog content.
|
|
62
|
-
*/
|
|
63
|
-
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
|
64
|
-
/**
|
|
65
|
-
* Attaches a DOM portal to the dialog container.
|
|
66
|
-
* @param portal Portal to be attached.
|
|
67
|
-
* @deprecated To be turned into a method.
|
|
68
|
-
* @breaking-change 10.0.0
|
|
69
|
-
*/
|
|
70
|
-
attachDomPortal: (portal: DomPortal) => void;
|
|
71
|
-
/** Emit lifecycle events based on animation `start` callback. */
|
|
72
|
-
_onAnimationStart(event: AnimationEvent): void;
|
|
73
|
-
/** Starts the dialog exit animation. */
|
|
74
|
-
_startExiting(): void;
|
|
75
|
-
/** Saves a reference to the element that was focused before the dialog was opened. */
|
|
76
|
-
private _savePreviouslyFocusedElement;
|
|
77
|
-
/** Focuses the dialog container. */
|
|
78
|
-
private _focusDialogContainer;
|
|
79
|
-
/**
|
|
80
|
-
* Focuses the provided element. If the element is not focusable, it will add a tabIndex
|
|
81
|
-
* attribute to forcefully focus it. The attribute is removed after focus is moved.
|
|
82
|
-
* @param element The element to focus.
|
|
83
|
-
*/
|
|
84
|
-
private _forceFocus;
|
|
85
|
-
/**
|
|
86
|
-
* Focuses the first element that matches the given selector within the focus trap.
|
|
87
|
-
* @param selector The CSS selector for the element to set focus to.
|
|
88
|
-
*/
|
|
89
|
-
private _focusByCssSelector;
|
|
90
|
-
/**
|
|
91
|
-
* Autofocus the element specified by the autoFocus field. When autoFocus is not 'dialog', if
|
|
92
|
-
* for some reason the element cannot be focused, the dialog container will be focused.
|
|
93
|
-
*/
|
|
94
|
-
private _autoFocus;
|
|
95
|
-
/** Returns the focus to the element focused before the dialog was open. */
|
|
96
|
-
private _returnFocusAfterDialog;
|
|
97
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkDialogContainer, [null, null, null, null, null, { optional: true; }, null]>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkDialogContainer, "cdk-dialog-container", never, {}, {}, never, never>;
|
|
99
|
-
}
|
|
@@ -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 { InjectionToken } from '@angular/core';
|
|
9
|
-
import { ComponentType, Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
10
|
-
import { DialogRef } from './dialog-ref';
|
|
11
|
-
import { CdkDialogContainer } from './dialog-container';
|
|
12
|
-
import { DialogConfig } from './dialog-config';
|
|
13
|
-
/** Injection token for the Dialog's ScrollStrategy. */
|
|
14
|
-
export declare const DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
15
|
-
/** Injection token for the Dialog's Data. */
|
|
16
|
-
export declare const DIALOG_DATA: InjectionToken<any>;
|
|
17
|
-
/** Injection token for the DialogRef constructor. */
|
|
18
|
-
export declare const DIALOG_REF: InjectionToken<DialogRef<any, any>>;
|
|
19
|
-
/** Injection token for the DialogConfig. */
|
|
20
|
-
export declare const DIALOG_CONFIG: InjectionToken<DialogConfig<any>>;
|
|
21
|
-
/** Injection token for the Dialog's DialogContainer component. */
|
|
22
|
-
export declare const DIALOG_CONTAINER: InjectionToken<ComponentType<CdkDialogContainer>>;
|
|
23
|
-
/** @docs-private */
|
|
24
|
-
export declare function MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
25
|
-
/** @docs-private */
|
|
26
|
-
export declare const MAT_DIALOG_SCROLL_STRATEGY_PROVIDER: {
|
|
27
|
-
provide: InjectionToken<() => ScrollStrategy>;
|
|
28
|
-
deps: (typeof Overlay)[];
|
|
29
|
-
useFactory: typeof MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
|
|
30
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./dialog-container";
|
|
3
|
-
import * as i2 from "@angular/cdk/overlay";
|
|
4
|
-
import * as i3 from "@angular/cdk/portal";
|
|
5
|
-
import * as i4 from "@angular/cdk/a11y";
|
|
6
|
-
export declare class DialogModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, [typeof i1.CdkDialogContainer], [typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.A11yModule], [typeof i3.PortalModule, typeof i1.CdkDialogContainer]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
|
|
10
|
-
}
|
package/dialog/dialog-ref.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 { OverlayRef, OverlaySizeConfig } from '@angular/cdk/overlay';
|
|
9
|
-
import { Observable } from 'rxjs';
|
|
10
|
-
import { DialogPosition } from './dialog-config';
|
|
11
|
-
import { CdkDialogContainer } from './dialog-container';
|
|
12
|
-
/**
|
|
13
|
-
* Reference to a dialog opened via the Dialog service.
|
|
14
|
-
*/
|
|
15
|
-
export declare class DialogRef<T, R = any> {
|
|
16
|
-
_overlayRef: OverlayRef;
|
|
17
|
-
protected _containerInstance: CdkDialogContainer;
|
|
18
|
-
readonly id: string;
|
|
19
|
-
/** The instance of the component in the dialog. */
|
|
20
|
-
componentInstance: T;
|
|
21
|
-
/** Whether the user is allowed to close the dialog. */
|
|
22
|
-
disableClose: boolean | undefined;
|
|
23
|
-
/** Result to be passed to afterClosed. */
|
|
24
|
-
private _result;
|
|
25
|
-
constructor(_overlayRef: OverlayRef, _containerInstance: CdkDialogContainer, id?: string);
|
|
26
|
-
/** Gets an observable that emits when the overlay's backdrop has been clicked. */
|
|
27
|
-
backdropClick(): Observable<MouseEvent>;
|
|
28
|
-
/**
|
|
29
|
-
* Close the dialog.
|
|
30
|
-
* @param dialogResult Optional result to return to the dialog opener.
|
|
31
|
-
*/
|
|
32
|
-
close(dialogResult?: R): void;
|
|
33
|
-
/**
|
|
34
|
-
* Updates the dialog's position.
|
|
35
|
-
* @param position New dialog position.
|
|
36
|
-
*/
|
|
37
|
-
updatePosition(position?: DialogPosition): this;
|
|
38
|
-
/**
|
|
39
|
-
* Gets an observable that emits when keydown events are targeted on the overlay.
|
|
40
|
-
*/
|
|
41
|
-
keydownEvents(): Observable<KeyboardEvent>;
|
|
42
|
-
/**
|
|
43
|
-
* Updates the dialog's width and height, defined, min and max.
|
|
44
|
-
* @param size New size for the overlay.
|
|
45
|
-
*/
|
|
46
|
-
updateSize(size: OverlaySizeConfig): this;
|
|
47
|
-
/** Fetches the position strategy object from the overlay ref. */
|
|
48
|
-
private _getPositionStrategy;
|
|
49
|
-
/** Gets an observable that emits when dialog begins opening. */
|
|
50
|
-
beforeOpened(): Observable<void>;
|
|
51
|
-
/** Gets an observable that emits when dialog is finished opening. */
|
|
52
|
-
afterOpened(): Observable<void>;
|
|
53
|
-
/** Gets an observable that emits when dialog begins closing. */
|
|
54
|
-
beforeClosed(): Observable<R | undefined>;
|
|
55
|
-
/** Gets an observable that emits when dialog is finished closing. */
|
|
56
|
-
afterClosed(): Observable<R | undefined>;
|
|
57
|
-
}
|