@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
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { NgZone } from '@angular/core';
|
|
9
|
-
import { FocusTrap, InteractivityChecker } from '@angular/cdk/a11y';
|
|
10
|
-
import { Observable } from 'rxjs';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/** Value indicating whether focus left the target area before or after the enclosed elements. */
|
|
13
|
-
export declare const enum FocusEscapeNotifierDirection {
|
|
14
|
-
START = 0,
|
|
15
|
-
END = 1
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Like FocusTrap, but rather than trapping focus within a dom region, notifies subscribers when
|
|
19
|
-
* focus leaves the region.
|
|
20
|
-
*/
|
|
21
|
-
export declare class FocusEscapeNotifier extends FocusTrap {
|
|
22
|
-
private readonly _escapeSubject;
|
|
23
|
-
constructor(element: HTMLElement, checker: InteractivityChecker, ngZone: NgZone, document: Document);
|
|
24
|
-
escapes(): Observable<FocusEscapeNotifierDirection>;
|
|
25
|
-
}
|
|
26
|
-
/** Factory that allows easy instantiation of focus escape notifiers. */
|
|
27
|
-
export declare class FocusEscapeNotifierFactory {
|
|
28
|
-
private _checker;
|
|
29
|
-
private _ngZone;
|
|
30
|
-
private _document;
|
|
31
|
-
constructor(_checker: InteractivityChecker, _ngZone: NgZone, _document: any);
|
|
32
|
-
/**
|
|
33
|
-
* Creates a focus escape notifier region around the given element.
|
|
34
|
-
* @param element The element around which focus will be monitored.
|
|
35
|
-
* @returns The created focus escape notifier instance.
|
|
36
|
-
*/
|
|
37
|
-
create(element: HTMLElement): FocusEscapeNotifier;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FocusEscapeNotifierFactory, never>;
|
|
39
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FocusEscapeNotifierFactory>;
|
|
40
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
export interface Entry<FormValue> {
|
|
9
|
-
value?: FormValue;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A convenience class for preserving unsaved form state while an edit lens is closed.
|
|
13
|
-
*
|
|
14
|
-
* Example usage:
|
|
15
|
-
* class MyComponent {
|
|
16
|
-
* readonly nameEditValues = new FormValueContainer<Item, {name: string}>();
|
|
17
|
-
* }
|
|
18
|
-
*
|
|
19
|
-
* <form cdkEditControl [(cdkEditControlPreservedFormValue)]="nameEditValues.for(item).value">
|
|
20
|
-
*/
|
|
21
|
-
export declare class FormValueContainer<Key extends object, FormValue> {
|
|
22
|
-
private _formValues;
|
|
23
|
-
for(key: Key): Entry<FormValue>;
|
|
24
|
-
}
|
|
@@ -1,82 +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 { Subject } from 'rxjs';
|
|
9
|
-
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
10
|
-
import { EditRef } from './edit-ref';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/** Options for what do to when the user clicks outside of an edit lens. */
|
|
13
|
-
export declare type PopoverEditClickOutBehavior = 'close' | 'submit' | 'noop';
|
|
14
|
-
/**
|
|
15
|
-
* A directive that attaches to a form within the edit lens.
|
|
16
|
-
* It coordinates the form state with the table-wide edit system and handles
|
|
17
|
-
* closing the edit lens when the form is submitted or the user clicks
|
|
18
|
-
* out.
|
|
19
|
-
*/
|
|
20
|
-
export declare class CdkEditControl<FormValue> implements OnDestroy, OnInit {
|
|
21
|
-
protected readonly elementRef: ElementRef;
|
|
22
|
-
readonly editRef: EditRef<FormValue>;
|
|
23
|
-
protected readonly destroyed: Subject<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Specifies what should happen when the user clicks outside of the edit lens.
|
|
26
|
-
* The default behavior is to close the lens without submitting the form.
|
|
27
|
-
*/
|
|
28
|
-
clickOutBehavior: PopoverEditClickOutBehavior;
|
|
29
|
-
/**
|
|
30
|
-
* A two-way binding for storing unsubmitted form state. If not provided
|
|
31
|
-
* then form state will be discarded on close. The PeristBy directive is offered
|
|
32
|
-
* as a convenient shortcut for these bindings.
|
|
33
|
-
*/
|
|
34
|
-
preservedFormValue?: FormValue;
|
|
35
|
-
readonly preservedFormValueChange: EventEmitter<FormValue>;
|
|
36
|
-
/**
|
|
37
|
-
* Determines whether the lens will close on form submit if the form is not in a valid
|
|
38
|
-
* state. By default the lens will remain open.
|
|
39
|
-
*/
|
|
40
|
-
ignoreSubmitUnlessValid: boolean;
|
|
41
|
-
constructor(elementRef: ElementRef, editRef: EditRef<FormValue>);
|
|
42
|
-
ngOnInit(): void;
|
|
43
|
-
ngOnDestroy(): void;
|
|
44
|
-
/**
|
|
45
|
-
* Called when the form submits. If ignoreSubmitUnlessValid is true, checks
|
|
46
|
-
* the form for validity before proceeding.
|
|
47
|
-
* Updates the revert state with the latest submitted value then closes the edit.
|
|
48
|
-
*/
|
|
49
|
-
handleFormSubmit(): void;
|
|
50
|
-
/** Called on Escape keyup. Closes the edit. */
|
|
51
|
-
close(): void;
|
|
52
|
-
/**
|
|
53
|
-
* Called on click anywhere in the document.
|
|
54
|
-
* If the click was outside of the lens, trigger the specified click out behavior.
|
|
55
|
-
*/
|
|
56
|
-
handlePossibleClickOut(evt: Event): void;
|
|
57
|
-
_handleKeydown(event: KeyboardEvent): void;
|
|
58
|
-
/** Triggers submit on tab out if clickOutBehavior is 'submit'. */
|
|
59
|
-
private _handleBlur;
|
|
60
|
-
private _triggerFormSubmit;
|
|
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>;
|
|
63
|
-
}
|
|
64
|
-
/** Reverts the form to its initial or previously submitted state on click. */
|
|
65
|
-
export declare class CdkEditRevert<FormValue> {
|
|
66
|
-
protected readonly editRef: EditRef<FormValue>;
|
|
67
|
-
/** Type of the button. Defaults to `button` to avoid accident form submits. */
|
|
68
|
-
type: string;
|
|
69
|
-
constructor(editRef: EditRef<FormValue>);
|
|
70
|
-
revertEdit(): void;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditRevert<any>, never>;
|
|
72
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditRevert<any>, "button[cdkEditRevert]", never, { "type": "type"; }, {}, never>;
|
|
73
|
-
}
|
|
74
|
-
/** Closes the lens on click. */
|
|
75
|
-
export declare class CdkEditClose<FormValue> {
|
|
76
|
-
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
77
|
-
protected readonly editRef: EditRef<FormValue>;
|
|
78
|
-
constructor(elementRef: ElementRef<HTMLElement>, editRef: EditRef<FormValue>);
|
|
79
|
-
closeEdit(): void;
|
|
80
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditClose<any>, never>;
|
|
81
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditClose<any>, "[cdkEditClose]", never, {}, {}, never>;
|
|
82
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk-experimental/popover-edit",
|
|
3
|
-
"fesm2020": "../fesm2020/popover-edit.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/popover-edit.mjs",
|
|
5
|
-
"esm2020": "../esm2020/popover-edit/popover-edit_public_index.mjs",
|
|
6
|
-
"typings": "./popover-edit_public_index.d.ts",
|
|
7
|
-
"module": "../fesm2015/popover-edit.mjs",
|
|
8
|
-
"es2020": "../fesm2020/popover-edit.mjs"
|
|
9
|
-
}
|
|
@@ -1,9 +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
|
-
/** closest implementation that is able to start from non-Element Nodes. */
|
|
9
|
-
export declare function closest(element: EventTarget | Element | null | undefined, selector: string): Element | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./table-directives";
|
|
3
|
-
import * as i2 from "./lens-directives";
|
|
4
|
-
import * as i3 from "@angular/cdk/overlay";
|
|
5
|
-
export declare class CdkPopoverEditModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkPopoverEditModule, [typeof i1.CdkPopoverEdit, typeof i1.CdkPopoverEditTabOut, typeof i1.CdkRowHoverContent, typeof i2.CdkEditControl, typeof i2.CdkEditRevert, typeof i2.CdkEditClose, typeof i1.CdkEditable, typeof i1.CdkEditOpen], [typeof i3.OverlayModule], [typeof i1.CdkPopoverEdit, typeof i1.CdkPopoverEditTabOut, typeof i1.CdkRowHoverContent, typeof i2.CdkEditControl, typeof i2.CdkEditRevert, typeof i2.CdkEditClose, typeof i1.CdkEditable, typeof i1.CdkEditOpen]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CdkPopoverEditModule>;
|
|
9
|
-
}
|
|
@@ -1,42 +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 { Overlay, OverlaySizeConfig, PositionStrategy } from '@angular/cdk/overlay';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* Overridable factory responsible for configuring how cdkPopoverEdit popovers are positioned
|
|
13
|
-
* and sized.
|
|
14
|
-
*/
|
|
15
|
-
export declare abstract class PopoverEditPositionStrategyFactory {
|
|
16
|
-
/**
|
|
17
|
-
* Creates a PositionStrategy based on the specified table cells.
|
|
18
|
-
* The cells will be provided in DOM order.
|
|
19
|
-
*/
|
|
20
|
-
abstract positionStrategyForCells(cells: HTMLElement[]): PositionStrategy;
|
|
21
|
-
/**
|
|
22
|
-
* Creates an OverlaySizeConfig based on the specified table cells.
|
|
23
|
-
* The cells will be provided in DOM order.
|
|
24
|
-
*/
|
|
25
|
-
abstract sizeConfigForCells(cells: HTMLElement[]): OverlaySizeConfig;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PopoverEditPositionStrategyFactory, never>;
|
|
27
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PopoverEditPositionStrategyFactory>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Default implementation of PopoverEditPositionStrategyFactory.
|
|
31
|
-
* Uses a FlexibleConnectedPositionStrategy anchored to the start + top of the cell.
|
|
32
|
-
* Note: This will change to CoverPositionStrategy once it implemented.
|
|
33
|
-
*/
|
|
34
|
-
export declare class DefaultPopoverEditPositionStrategyFactory extends PopoverEditPositionStrategyFactory {
|
|
35
|
-
protected readonly direction: Directionality;
|
|
36
|
-
protected readonly overlay: Overlay;
|
|
37
|
-
constructor(direction: Directionality, overlay: Overlay);
|
|
38
|
-
positionStrategyForCells(cells: HTMLElement[]): PositionStrategy;
|
|
39
|
-
sizeConfigForCells(cells: HTMLElement[]): OverlaySizeConfig;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultPopoverEditPositionStrategyFactory, never>;
|
|
41
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DefaultPopoverEditPositionStrategyFactory>;
|
|
42
|
-
}
|
|
@@ -1,17 +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 './edit-event-dispatcher';
|
|
9
|
-
export * from './edit-ref';
|
|
10
|
-
export * from './focus-dispatcher';
|
|
11
|
-
export * from './form-value-container';
|
|
12
|
-
export * from './lens-directives';
|
|
13
|
-
export * from './popover-edit-module';
|
|
14
|
-
export * from './popover-edit-position-strategy-factory';
|
|
15
|
-
export * from './table-directives';
|
|
16
|
-
export { CELL_SELECTOR as _CELL_SELECTOR } from './constants';
|
|
17
|
-
export { closest as _closest } from './polyfill';
|
|
@@ -1,150 +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 { FocusTrap } from '@angular/cdk/a11y';
|
|
9
|
-
import { OverlayRef } from '@angular/cdk/overlay';
|
|
10
|
-
import { AfterViewInit, ElementRef, EmbeddedViewRef, NgZone, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
11
|
-
import { Subject } from 'rxjs';
|
|
12
|
-
import { EditEventDispatcher } from './edit-event-dispatcher';
|
|
13
|
-
import { EditServices } from './edit-services';
|
|
14
|
-
import { FocusDispatcher } from './focus-dispatcher';
|
|
15
|
-
import { FocusEscapeNotifier, FocusEscapeNotifierFactory } from './focus-escape-notifier';
|
|
16
|
-
import { EditRef } from './edit-ref';
|
|
17
|
-
import * as i0 from "@angular/core";
|
|
18
|
-
/**
|
|
19
|
-
* Describes the number of columns before and after the originating cell that the
|
|
20
|
-
* edit popup should span. In left to right locales, before means left and after means
|
|
21
|
-
* right. In right to left locales before means right and after means left.
|
|
22
|
-
*/
|
|
23
|
-
export interface CdkPopoverEditColspan {
|
|
24
|
-
before?: number;
|
|
25
|
-
after?: number;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* A directive that must be attached to enable editability on a table.
|
|
29
|
-
* It is responsible for setting up delegated event handlers and providing the
|
|
30
|
-
* EditEventDispatcher service for use by the other edit directives.
|
|
31
|
-
*/
|
|
32
|
-
export declare class CdkEditable implements AfterViewInit, OnDestroy {
|
|
33
|
-
protected readonly elementRef: ElementRef;
|
|
34
|
-
protected readonly editEventDispatcher: EditEventDispatcher<EditRef<unknown>>;
|
|
35
|
-
protected readonly focusDispatcher: FocusDispatcher;
|
|
36
|
-
protected readonly ngZone: NgZone;
|
|
37
|
-
protected readonly destroyed: Subject<void>;
|
|
38
|
-
constructor(elementRef: ElementRef, editEventDispatcher: EditEventDispatcher<EditRef<unknown>>, focusDispatcher: FocusDispatcher, ngZone: NgZone);
|
|
39
|
-
ngAfterViewInit(): void;
|
|
40
|
-
ngOnDestroy(): void;
|
|
41
|
-
private _listenForTableEvents;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditable, never>;
|
|
43
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditable, "table[editable], cdk-table[editable], mat-table[editable]", never, {}, {}, never>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Attaches an ng-template to a cell and shows it when instructed to by the
|
|
47
|
-
* EditEventDispatcher service.
|
|
48
|
-
* Makes the cell focusable.
|
|
49
|
-
*/
|
|
50
|
-
export declare class CdkPopoverEdit<C> implements AfterViewInit, OnDestroy {
|
|
51
|
-
protected readonly services: EditServices;
|
|
52
|
-
protected readonly elementRef: ElementRef;
|
|
53
|
-
protected readonly viewContainerRef: ViewContainerRef;
|
|
54
|
-
/** The edit lens template shown over the cell on edit. */
|
|
55
|
-
template: TemplateRef<any> | null;
|
|
56
|
-
/**
|
|
57
|
-
* Implicit context to pass along to the template. Can be omitted if the template
|
|
58
|
-
* is defined within the cell.
|
|
59
|
-
*/
|
|
60
|
-
context?: C;
|
|
61
|
-
/**
|
|
62
|
-
* Specifies that the popup should cover additional table cells before and/or after
|
|
63
|
-
* this one.
|
|
64
|
-
*/
|
|
65
|
-
get colspan(): CdkPopoverEditColspan;
|
|
66
|
-
set colspan(value: CdkPopoverEditColspan);
|
|
67
|
-
private _colspan;
|
|
68
|
-
/** Whether popover edit is disabled for this cell. */
|
|
69
|
-
get disabled(): boolean;
|
|
70
|
-
set disabled(value: boolean);
|
|
71
|
-
private _disabled;
|
|
72
|
-
protected focusTrap?: FocusTrap;
|
|
73
|
-
protected overlayRef?: OverlayRef;
|
|
74
|
-
protected readonly destroyed: Subject<void>;
|
|
75
|
-
constructor(services: EditServices, elementRef: ElementRef, viewContainerRef: ViewContainerRef);
|
|
76
|
-
ngAfterViewInit(): void;
|
|
77
|
-
ngOnDestroy(): void;
|
|
78
|
-
protected initFocusTrap(): void;
|
|
79
|
-
protected closeEditOverlay(): void;
|
|
80
|
-
protected panelClass(): string;
|
|
81
|
-
private _startListeningToEditEvents;
|
|
82
|
-
private _createEditOverlay;
|
|
83
|
-
private _showEditOverlay;
|
|
84
|
-
private _getOverlayCells;
|
|
85
|
-
private _getPositionStrategy;
|
|
86
|
-
private _updateOverlaySize;
|
|
87
|
-
private _maybeReturnFocusToCell;
|
|
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>;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Attaches an ng-template to a cell and shows it when instructed to by the
|
|
93
|
-
* EditEventDispatcher service.
|
|
94
|
-
* Makes the cell focusable.
|
|
95
|
-
*/
|
|
96
|
-
export declare class CdkPopoverEditTabOut<C> extends CdkPopoverEdit<C> {
|
|
97
|
-
protected readonly focusEscapeNotifierFactory: FocusEscapeNotifierFactory;
|
|
98
|
-
protected focusTrap?: FocusEscapeNotifier;
|
|
99
|
-
constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef, services: EditServices, focusEscapeNotifierFactory: FocusEscapeNotifierFactory);
|
|
100
|
-
protected initFocusTrap(): void;
|
|
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>;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* A structural directive that shows its contents when the table row containing
|
|
106
|
-
* it is hovered or when an element in the row has focus.
|
|
107
|
-
*/
|
|
108
|
-
export declare class CdkRowHoverContent implements AfterViewInit, OnDestroy {
|
|
109
|
-
protected readonly services: EditServices;
|
|
110
|
-
protected readonly elementRef: ElementRef;
|
|
111
|
-
protected readonly templateRef: TemplateRef<any>;
|
|
112
|
-
protected readonly viewContainerRef: ViewContainerRef;
|
|
113
|
-
protected readonly destroyed: Subject<void>;
|
|
114
|
-
protected viewRef: EmbeddedViewRef<any> | null;
|
|
115
|
-
private _row?;
|
|
116
|
-
constructor(services: EditServices, elementRef: ElementRef, templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
|
|
117
|
-
ngAfterViewInit(): void;
|
|
118
|
-
ngOnDestroy(): void;
|
|
119
|
-
/**
|
|
120
|
-
* Called immediately after the hover content is created and added to the dom.
|
|
121
|
-
* In the CDK version, this is a noop but subclasses such as MatRowHoverContent use this
|
|
122
|
-
* to prepare/style the inserted element.
|
|
123
|
-
*/
|
|
124
|
-
protected initElement(_: HTMLElement): void;
|
|
125
|
-
/**
|
|
126
|
-
* Called when the hover content needs to be focusable to preserve a reasonable tab ordering
|
|
127
|
-
* but should not yet be shown.
|
|
128
|
-
*/
|
|
129
|
-
protected makeElementHiddenButFocusable(element: HTMLElement): void;
|
|
130
|
-
/**
|
|
131
|
-
* Called when the hover content needs to be focusable to preserve a reasonable tab ordering
|
|
132
|
-
* but should not yet be shown.
|
|
133
|
-
*/
|
|
134
|
-
protected makeElementVisible(element: HTMLElement): void;
|
|
135
|
-
private _listenForHoverAndFocusEvents;
|
|
136
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowHoverContent, never>;
|
|
137
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowHoverContent, "[cdkRowHoverContent]", never, {}, {}, never>;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Opens the closest edit popover to this element, whether it's associated with this exact
|
|
141
|
-
* element or an ancestor element.
|
|
142
|
-
*/
|
|
143
|
-
export declare class CdkEditOpen {
|
|
144
|
-
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
145
|
-
protected readonly editEventDispatcher: EditEventDispatcher<EditRef<unknown>>;
|
|
146
|
-
constructor(elementRef: ElementRef<HTMLElement>, editEventDispatcher: EditEventDispatcher<EditRef<unknown>>);
|
|
147
|
-
openEdit(evt: Event): void;
|
|
148
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditOpen, never>;
|
|
149
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditOpen, "[cdkEditOpen]", never, {}, {}, never>;
|
|
150
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,160 +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 { NumberInput } from '@angular/cdk/coercion';
|
|
9
|
-
import { ListRange } from '@angular/cdk/collections';
|
|
10
|
-
import { CdkVirtualScrollViewport, VirtualScrollStrategy } from '@angular/cdk/scrolling';
|
|
11
|
-
import { OnChanges } from '@angular/core';
|
|
12
|
-
import { Observable } from 'rxjs';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/**
|
|
15
|
-
* A class that tracks the size of items that have been seen and uses it to estimate the average
|
|
16
|
-
* item size.
|
|
17
|
-
*/
|
|
18
|
-
export declare class ItemSizeAverager {
|
|
19
|
-
/** The total amount of weight behind the current average. */
|
|
20
|
-
private _totalWeight;
|
|
21
|
-
/** The current average item size. */
|
|
22
|
-
private _averageItemSize;
|
|
23
|
-
/** The default size to use for items when no data is available. */
|
|
24
|
-
private _defaultItemSize;
|
|
25
|
-
/** @param defaultItemSize The default size to use for items when no data is available. */
|
|
26
|
-
constructor(defaultItemSize?: number);
|
|
27
|
-
/** Returns the average item size. */
|
|
28
|
-
getAverageItemSize(): number;
|
|
29
|
-
/**
|
|
30
|
-
* Adds a measurement sample for the estimator to consider.
|
|
31
|
-
* @param range The measured range.
|
|
32
|
-
* @param size The measured size of the given range in pixels.
|
|
33
|
-
*/
|
|
34
|
-
addSample(range: ListRange, size: number): void;
|
|
35
|
-
/** Resets the averager. */
|
|
36
|
-
reset(): void;
|
|
37
|
-
}
|
|
38
|
-
/** Virtual scrolling strategy for lists with items of unknown or dynamic size. */
|
|
39
|
-
export declare class AutoSizeVirtualScrollStrategy implements VirtualScrollStrategy {
|
|
40
|
-
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
41
|
-
scrolledIndexChange: Observable<number>;
|
|
42
|
-
/** The attached viewport. */
|
|
43
|
-
private _viewport;
|
|
44
|
-
/** The minimum amount of buffer rendered beyond the viewport (in pixels). */
|
|
45
|
-
private _minBufferPx;
|
|
46
|
-
/** The number of buffer items to render beyond the edge of the viewport (in pixels). */
|
|
47
|
-
private _maxBufferPx;
|
|
48
|
-
/** The estimator used to estimate the size of unseen items. */
|
|
49
|
-
private _averager;
|
|
50
|
-
/** The last measured scroll offset of the viewport. */
|
|
51
|
-
private _lastScrollOffset;
|
|
52
|
-
/** The last measured size of the rendered content in the viewport. */
|
|
53
|
-
private _lastRenderedContentSize;
|
|
54
|
-
/** The last measured size of the rendered content in the viewport. */
|
|
55
|
-
private _lastRenderedContentOffset;
|
|
56
|
-
/**
|
|
57
|
-
* The number of consecutive cycles where removing extra items has failed. Failure here means that
|
|
58
|
-
* we estimated how many items we could safely remove, but our estimate turned out to be too much
|
|
59
|
-
* and it wasn't safe to remove that many elements.
|
|
60
|
-
*/
|
|
61
|
-
private _removalFailures;
|
|
62
|
-
/**
|
|
63
|
-
* @param minBufferPx The minimum amount of buffer rendered beyond the viewport (in pixels).
|
|
64
|
-
* If the amount of buffer dips below this number, more items will be rendered.
|
|
65
|
-
* @param maxBufferPx The number of pixels worth of buffer to shoot for when rendering new items.
|
|
66
|
-
* If the actual amount turns out to be less it will not necessarily trigger an additional
|
|
67
|
-
* rendering cycle (as long as the amount of buffer is still greater than `minBufferPx`).
|
|
68
|
-
* @param averager The averager used to estimate the size of unseen items.
|
|
69
|
-
*/
|
|
70
|
-
constructor(minBufferPx: number, maxBufferPx: number, averager?: ItemSizeAverager);
|
|
71
|
-
/**
|
|
72
|
-
* Attaches this scroll strategy to a viewport.
|
|
73
|
-
* @param viewport The viewport to attach this strategy to.
|
|
74
|
-
*/
|
|
75
|
-
attach(viewport: CdkVirtualScrollViewport): void;
|
|
76
|
-
/** Detaches this scroll strategy from the currently attached viewport. */
|
|
77
|
-
detach(): void;
|
|
78
|
-
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
79
|
-
onContentScrolled(): void;
|
|
80
|
-
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
81
|
-
onDataLengthChanged(): void;
|
|
82
|
-
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
83
|
-
onContentRendered(): void;
|
|
84
|
-
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
85
|
-
onRenderedOffsetChanged(): void;
|
|
86
|
-
/** Scroll to the offset for the given index. */
|
|
87
|
-
scrollToIndex(): void;
|
|
88
|
-
/**
|
|
89
|
-
* Update the buffer parameters.
|
|
90
|
-
* @param minBufferPx The minimum amount of buffer rendered beyond the viewport (in pixels).
|
|
91
|
-
* @param maxBufferPx The number of buffer items to render beyond the edge of the viewport (in
|
|
92
|
-
* pixels).
|
|
93
|
-
*/
|
|
94
|
-
updateBufferSize(minBufferPx: number, maxBufferPx: number): void;
|
|
95
|
-
/** Update the rendered content after the user scrolls. */
|
|
96
|
-
private _updateRenderedContentAfterScroll;
|
|
97
|
-
/**
|
|
98
|
-
* Checks the size of the currently rendered content and uses it to update the estimated item size
|
|
99
|
-
* and estimated total content size.
|
|
100
|
-
*/
|
|
101
|
-
private _checkRenderedContentSize;
|
|
102
|
-
/** Checks the currently rendered content offset and saves the value for later use. */
|
|
103
|
-
private _checkRenderedContentOffset;
|
|
104
|
-
/**
|
|
105
|
-
* Recalculates the rendered content based on our estimate of what should be shown at the current
|
|
106
|
-
* scroll offset.
|
|
107
|
-
*/
|
|
108
|
-
private _renderContentForCurrentOffset;
|
|
109
|
-
/**
|
|
110
|
-
* Gets the visible range of data for the given start index. If the start index is too close to
|
|
111
|
-
* the end of the list it may be backed up to ensure the estimated size of the range is enough to
|
|
112
|
-
* fill the viewport.
|
|
113
|
-
* Note: must not be called if `this._viewport` is null
|
|
114
|
-
* @param startIndex The index to start the range at
|
|
115
|
-
* @return a range estimated to be large enough to fill the viewport when rendered.
|
|
116
|
-
*/
|
|
117
|
-
private _getVisibleRangeForIndex;
|
|
118
|
-
/**
|
|
119
|
-
* Expand the given range by the given amount in either direction.
|
|
120
|
-
* Note: must not be called if `this._viewport` is null
|
|
121
|
-
* @param range The range to expand
|
|
122
|
-
* @param expandStart The number of items to expand the start of the range by.
|
|
123
|
-
* @param expandEnd The number of items to expand the end of the range by.
|
|
124
|
-
* @return The expanded range.
|
|
125
|
-
*/
|
|
126
|
-
private _expandRange;
|
|
127
|
-
/** Update the viewport's total content size. */
|
|
128
|
-
private _updateTotalContentSize;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Provider factory for `AutoSizeVirtualScrollStrategy` that simply extracts the already created
|
|
132
|
-
* `AutoSizeVirtualScrollStrategy` from the given directive.
|
|
133
|
-
* @param autoSizeDir The instance of `CdkAutoSizeVirtualScroll` to extract the
|
|
134
|
-
* `AutoSizeVirtualScrollStrategy` from.
|
|
135
|
-
*/
|
|
136
|
-
export declare function _autoSizeVirtualScrollStrategyFactory(autoSizeDir: CdkAutoSizeVirtualScroll): AutoSizeVirtualScrollStrategy;
|
|
137
|
-
/** A virtual scroll strategy that supports unknown or dynamic size items. */
|
|
138
|
-
export declare class CdkAutoSizeVirtualScroll implements OnChanges {
|
|
139
|
-
/**
|
|
140
|
-
* The minimum amount of buffer rendered beyond the viewport (in pixels).
|
|
141
|
-
* If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px.
|
|
142
|
-
*/
|
|
143
|
-
get minBufferPx(): number;
|
|
144
|
-
set minBufferPx(value: NumberInput);
|
|
145
|
-
_minBufferPx: number;
|
|
146
|
-
/**
|
|
147
|
-
* The number of pixels worth of buffer to shoot for when rendering new items.
|
|
148
|
-
* If the actual amount turns out to be less it will not necessarily trigger an additional
|
|
149
|
-
* rendering cycle (as long as the amount of buffer is still greater than `minBufferPx`).
|
|
150
|
-
* Defaults to 200px.
|
|
151
|
-
*/
|
|
152
|
-
get maxBufferPx(): number;
|
|
153
|
-
set maxBufferPx(value: NumberInput);
|
|
154
|
-
_maxBufferPx: number;
|
|
155
|
-
/** The scroll strategy used by this directive. */
|
|
156
|
-
_scrollStrategy: AutoSizeVirtualScrollStrategy;
|
|
157
|
-
ngOnChanges(): void;
|
|
158
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkAutoSizeVirtualScroll, never>;
|
|
159
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAutoSizeVirtualScroll, "cdk-virtual-scroll-viewport[autosize]", never, { "minBufferPx": "minBufferPx"; "maxBufferPx": "maxBufferPx"; }, {}, never>;
|
|
160
|
-
}
|
package/scrolling/package.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk-experimental/scrolling",
|
|
3
|
-
"fesm2020": "../fesm2020/scrolling.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/scrolling.mjs",
|
|
5
|
-
"esm2020": "../esm2020/scrolling/scrolling_public_index.mjs",
|
|
6
|
-
"typings": "./scrolling_public_index.d.ts",
|
|
7
|
-
"module": "../fesm2015/scrolling.mjs",
|
|
8
|
-
"es2020": "../fesm2020/scrolling.mjs"
|
|
9
|
-
}
|
|
@@ -1,9 +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 './auto-size-virtual-scroll';
|
|
9
|
-
export * from './scrolling-module';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./auto-size-virtual-scroll";
|
|
3
|
-
export declare class ScrollingModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollingModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollingModule, [typeof i1.CdkAutoSizeVirtualScroll], never, [typeof i1.CdkAutoSizeVirtualScroll]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ScrollingModule>;
|
|
7
|
-
}
|
package/selection/package.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/cdk-experimental/selection",
|
|
3
|
-
"fesm2020": "../fesm2020/selection.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/selection.mjs",
|
|
5
|
-
"esm2020": "../esm2020/selection/selection_public_index.mjs",
|
|
6
|
-
"typings": "./selection_public_index.d.ts",
|
|
7
|
-
"module": "../fesm2015/selection.mjs",
|
|
8
|
-
"es2020": "../fesm2020/selection.mjs"
|
|
9
|
-
}
|
|
@@ -1,14 +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 './selection';
|
|
9
|
-
export * from './select-all';
|
|
10
|
-
export * from './selection-toggle';
|
|
11
|
-
export * from './selection-column';
|
|
12
|
-
export * from './row-selection';
|
|
13
|
-
export * from './selection-set';
|
|
14
|
-
export * from './selection-module';
|
|
@@ -1,27 +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 { NumberInput } from '@angular/cdk/coercion';
|
|
9
|
-
import { CdkSelection } from './selection';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* Applies `cdk-selected` class and `aria-selected` to an element.
|
|
13
|
-
*
|
|
14
|
-
* Must be used within a parent `CdkSelection` directive.
|
|
15
|
-
* Must be provided with the value. The index is required if `trackBy` is used on the `CdkSelection`
|
|
16
|
-
* directive.
|
|
17
|
-
*/
|
|
18
|
-
export declare class CdkRowSelection<T> {
|
|
19
|
-
readonly _selection: CdkSelection<T>;
|
|
20
|
-
value: T;
|
|
21
|
-
get index(): number | undefined;
|
|
22
|
-
set index(index: NumberInput);
|
|
23
|
-
protected _index?: number;
|
|
24
|
-
constructor(_selection: CdkSelection<T>);
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowSelection<any>, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowSelection<any>, "[cdkRowSelection]", never, { "value": "cdkRowSelectionValue"; "index": "cdkRowSelectionIndex"; }, {}, never>;
|
|
27
|
-
}
|