@angular/cdk-experimental 19.2.2 → 19.2.4
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 +247 -295
- package/combobox/index.d.ts +13 -38
- package/fesm2022/cdk-experimental.mjs +1 -1
- package/fesm2022/cdk-experimental.mjs.map +1 -1
- package/fesm2022/column-resize.mjs +6 -10
- package/fesm2022/column-resize.mjs.map +1 -1
- package/fesm2022/combobox.mjs +0 -4
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/polyfill-ae40ec6f.mjs +14 -0
- package/fesm2022/polyfill-ae40ec6f.mjs.map +1 -0
- package/fesm2022/popover-edit.mjs +4 -20
- package/fesm2022/popover-edit.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +0 -4
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/selection.mjs +0 -8
- package/fesm2022/selection.mjs.map +1 -1
- package/fesm2022/table-scroll-container.mjs +0 -4
- package/fesm2022/table-scroll-container.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/package.json +2 -2
- package/popover-edit/index.d.ts +268 -316
- package/scrolling/index.d.ts +34 -47
- package/selection/index.d.ts +118 -161
- package/table-scroll-container/index.d.ts +6 -14
package/scrolling/index.d.ts
CHANGED
|
@@ -1,13 +1,36 @@
|
|
|
1
|
-
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { ListRange } from '@angular/cdk/collections';
|
|
4
1
|
import { NumberInput } from '@angular/cdk/coercion';
|
|
5
|
-
import {
|
|
2
|
+
import { ListRange } from '@angular/cdk/collections';
|
|
3
|
+
import { VirtualScrollStrategy, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
6
5
|
import { OnChanges } from '@angular/core';
|
|
7
|
-
import {
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
8
7
|
|
|
8
|
+
/**
|
|
9
|
+
* A class that tracks the size of items that have been seen and uses it to estimate the average
|
|
10
|
+
* item size.
|
|
11
|
+
*/
|
|
12
|
+
declare class ItemSizeAverager {
|
|
13
|
+
/** The total amount of weight behind the current average. */
|
|
14
|
+
private _totalWeight;
|
|
15
|
+
/** The current average item size. */
|
|
16
|
+
private _averageItemSize;
|
|
17
|
+
/** The default size to use for items when no data is available. */
|
|
18
|
+
private _defaultItemSize;
|
|
19
|
+
/** @param defaultItemSize The default size to use for items when no data is available. */
|
|
20
|
+
constructor(defaultItemSize?: number);
|
|
21
|
+
/** Returns the average item size. */
|
|
22
|
+
getAverageItemSize(): number;
|
|
23
|
+
/**
|
|
24
|
+
* Adds a measurement sample for the estimator to consider.
|
|
25
|
+
* @param range The measured range.
|
|
26
|
+
* @param size The measured size of the given range in pixels.
|
|
27
|
+
*/
|
|
28
|
+
addSample(range: ListRange, size: number): void;
|
|
29
|
+
/** Resets the averager. */
|
|
30
|
+
reset(): void;
|
|
31
|
+
}
|
|
9
32
|
/** Virtual scrolling strategy for lists with items of unknown or dynamic size. */
|
|
10
|
-
|
|
33
|
+
declare class AutoSizeVirtualScrollStrategy implements VirtualScrollStrategy {
|
|
11
34
|
/** @docs-private Implemented as part of VirtualScrollStrategy. */
|
|
12
35
|
scrolledIndexChange: Observable<number>;
|
|
13
36
|
/** The attached viewport. */
|
|
@@ -98,17 +121,15 @@ export declare class AutoSizeVirtualScrollStrategy implements VirtualScrollStrat
|
|
|
98
121
|
/** Update the viewport's total content size. */
|
|
99
122
|
private _updateTotalContentSize;
|
|
100
123
|
}
|
|
101
|
-
|
|
102
124
|
/**
|
|
103
125
|
* Provider factory for `AutoSizeVirtualScrollStrategy` that simply extracts the already created
|
|
104
126
|
* `AutoSizeVirtualScrollStrategy` from the given directive.
|
|
105
127
|
* @param autoSizeDir The instance of `CdkAutoSizeVirtualScroll` to extract the
|
|
106
128
|
* `AutoSizeVirtualScrollStrategy` from.
|
|
107
129
|
*/
|
|
108
|
-
|
|
109
|
-
|
|
130
|
+
declare function _autoSizeVirtualScrollStrategyFactory(autoSizeDir: CdkAutoSizeVirtualScroll): AutoSizeVirtualScrollStrategy;
|
|
110
131
|
/** A virtual scroll strategy that supports unknown or dynamic size items. */
|
|
111
|
-
|
|
132
|
+
declare class CdkAutoSizeVirtualScroll implements OnChanges {
|
|
112
133
|
/**
|
|
113
134
|
* The minimum amount of buffer rendered beyond the viewport (in pixels).
|
|
114
135
|
* If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px.
|
|
@@ -132,44 +153,10 @@ export declare class CdkAutoSizeVirtualScroll implements OnChanges {
|
|
|
132
153
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAutoSizeVirtualScroll, "cdk-virtual-scroll-viewport[autosize]", never, { "minBufferPx": { "alias": "minBufferPx"; "required": false; }; "maxBufferPx": { "alias": "maxBufferPx"; "required": false; }; }, {}, never, never, true, never>;
|
|
133
154
|
}
|
|
134
155
|
|
|
135
|
-
declare
|
|
136
|
-
export {
|
|
137
|
-
_autoSizeVirtualScrollStrategyFactory,
|
|
138
|
-
ItemSizeAverager,
|
|
139
|
-
AutoSizeVirtualScrollStrategy,
|
|
140
|
-
CdkAutoSizeVirtualScroll
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* A class that tracks the size of items that have been seen and uses it to estimate the average
|
|
146
|
-
* item size.
|
|
147
|
-
*/
|
|
148
|
-
export declare class ItemSizeAverager {
|
|
149
|
-
/** The total amount of weight behind the current average. */
|
|
150
|
-
private _totalWeight;
|
|
151
|
-
/** The current average item size. */
|
|
152
|
-
private _averageItemSize;
|
|
153
|
-
/** The default size to use for items when no data is available. */
|
|
154
|
-
private _defaultItemSize;
|
|
155
|
-
/** @param defaultItemSize The default size to use for items when no data is available. */
|
|
156
|
-
constructor(defaultItemSize?: number);
|
|
157
|
-
/** Returns the average item size. */
|
|
158
|
-
getAverageItemSize(): number;
|
|
159
|
-
/**
|
|
160
|
-
* Adds a measurement sample for the estimator to consider.
|
|
161
|
-
* @param range The measured range.
|
|
162
|
-
* @param size The measured size of the given range in pixels.
|
|
163
|
-
*/
|
|
164
|
-
addSample(range: ListRange, size: number): void;
|
|
165
|
-
/** Resets the averager. */
|
|
166
|
-
reset(): void;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export declare class ScrollingModule {
|
|
156
|
+
declare class ScrollingModule {
|
|
170
157
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollingModule, never>;
|
|
171
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollingModule, never, [typeof
|
|
158
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScrollingModule, never, [typeof CdkAutoSizeVirtualScroll], [typeof CdkAutoSizeVirtualScroll]>;
|
|
172
159
|
static ɵinj: i0.ɵɵInjectorDeclaration<ScrollingModule>;
|
|
173
160
|
}
|
|
174
161
|
|
|
175
|
-
export { }
|
|
162
|
+
export { AutoSizeVirtualScrollStrategy, CdkAutoSizeVirtualScroll, ItemSizeAverager, ScrollingModule, _autoSizeVirtualScrollStrategyFactory };
|
package/selection/index.d.ts
CHANGED
|
@@ -1,74 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { CollectionViewer } from '@angular/cdk/collections';
|
|
4
|
-
import { DataSource } from '@angular/cdk/collections';
|
|
5
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { CollectionViewer, ListRange, DataSource } from '@angular/cdk/collections';
|
|
6
3
|
import * as i0 from '@angular/core';
|
|
4
|
+
import { TrackByFunction, OnInit, AfterContentChecked, OnDestroy, EventEmitter } from '@angular/core';
|
|
5
|
+
import { Subject, Observable } from 'rxjs';
|
|
7
6
|
import * as i1 from '@angular/cdk/table';
|
|
8
|
-
import { ListRange } from '@angular/cdk/collections';
|
|
9
|
-
import { NumberInput } from '@angular/cdk/coercion';
|
|
10
|
-
import { Observable } from 'rxjs';
|
|
11
|
-
import { OnDestroy } from '@angular/core';
|
|
12
|
-
import { OnInit } from '@angular/core';
|
|
13
|
-
import { Subject } from 'rxjs';
|
|
14
|
-
import { TrackByFunction } from '@angular/core';
|
|
15
7
|
|
|
16
8
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* Must be used within a parent `CdkSelection` directive.
|
|
20
|
-
* Must be provided with the value. The index is required if `trackBy` is used on the `CdkSelection`
|
|
21
|
-
* directive.
|
|
9
|
+
* Maintains a set of selected values. One or more values can be added to or removed from the
|
|
10
|
+
* selection.
|
|
22
11
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
interface TrackBySelection<T> {
|
|
13
|
+
isSelected(value: SelectableWithIndex<T>): boolean;
|
|
14
|
+
select(...values: SelectableWithIndex<T>[]): void;
|
|
15
|
+
deselect(...values: SelectableWithIndex<T>[]): void;
|
|
16
|
+
changed: Subject<SelectionChange<T>>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A selectable value with an optional index. The index is required when the selection is used with
|
|
20
|
+
* `trackBy`.
|
|
21
|
+
*/
|
|
22
|
+
interface SelectableWithIndex<T> {
|
|
25
23
|
value: T;
|
|
26
|
-
|
|
27
|
-
set index(index: NumberInput);
|
|
28
|
-
protected _index?: number;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowSelection<any>, never>;
|
|
30
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowSelection<any>, "[cdkRowSelection]", never, { "value": { "alias": "cdkRowSelectionValue"; "required": false; }; "index": { "alias": "cdkRowSelectionIndex"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
+
index?: number;
|
|
31
25
|
}
|
|
32
|
-
|
|
33
26
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* Must be used within a parent `CdkSelection` directive. It toggles the selection states
|
|
37
|
-
* of all the selection toggles connected with the `CdkSelection` directive.
|
|
38
|
-
* If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive
|
|
39
|
-
* automatically connects it with the select-all state provided by the `CdkSelection` directive. If
|
|
40
|
-
* not, use `checked$` to get the checked state, `indeterminate$` to get the indeterminate state,
|
|
41
|
-
* and `toggle()` to change the selection state.
|
|
27
|
+
* Represents the change in the selection set.
|
|
42
28
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
private
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
private _configureControlValueAccessor;
|
|
68
|
-
private _assertValidParentSelection;
|
|
69
|
-
ngOnDestroy(): void;
|
|
70
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectAll<any>, never>;
|
|
71
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelectAll<any>, "[cdkSelectAll]", ["cdkSelectAll"], {}, {}, never, never, true, never>;
|
|
29
|
+
interface SelectionChange<T> {
|
|
30
|
+
before: SelectableWithIndex<T>[];
|
|
31
|
+
after: SelectableWithIndex<T>[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Maintains a set of selected items. Support selecting and deselecting items, and checking if a
|
|
35
|
+
* value is selected.
|
|
36
|
+
* When constructed with a `trackByFn`, all the items will be identified by applying the `trackByFn`
|
|
37
|
+
* on them. Because `trackByFn` requires the index of the item to be passed in, the `index` field is
|
|
38
|
+
* expected to be set when calling `isSelected`, `select` and `deselect`.
|
|
39
|
+
*/
|
|
40
|
+
declare class SelectionSet<T> implements TrackBySelection<T> {
|
|
41
|
+
private _multiple;
|
|
42
|
+
private _trackByFn?;
|
|
43
|
+
private _selectionMap;
|
|
44
|
+
changed: Subject<SelectionChange<T>>;
|
|
45
|
+
constructor(_multiple?: boolean, _trackByFn?: TrackByFunction<T> | undefined);
|
|
46
|
+
isSelected(value: SelectableWithIndex<T>): boolean;
|
|
47
|
+
select(...selects: SelectableWithIndex<T>[]): void;
|
|
48
|
+
deselect(...selects: SelectableWithIndex<T>[]): void;
|
|
49
|
+
private _markSelected;
|
|
50
|
+
private _markDeselected;
|
|
51
|
+
private _getTrackedByValue;
|
|
52
|
+
private _getCurrentSelection;
|
|
72
53
|
}
|
|
73
54
|
|
|
74
55
|
/**
|
|
@@ -77,7 +58,7 @@ export declare class CdkSelectAll<T> implements OnDestroy, OnInit {
|
|
|
77
58
|
* It must be applied to the parent element if `cdkSelectionToggle`, `cdkSelectAll`,
|
|
78
59
|
* `cdkRowSelection` and `cdkSelectionColumn` are applied.
|
|
79
60
|
*/
|
|
80
|
-
|
|
61
|
+
declare class CdkSelection<T> implements OnInit, AfterContentChecked, CollectionViewer, OnDestroy {
|
|
81
62
|
viewChange: Observable<ListRange>;
|
|
82
63
|
get dataSource(): TableDataSource<T>;
|
|
83
64
|
set dataSource(dataSource: TableDataSource<T>);
|
|
@@ -120,34 +101,48 @@ export declare class CdkSelection<T> implements OnInit, AfterContentChecked, Col
|
|
|
120
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelection<any>, never>;
|
|
121
102
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelection<any>, "[cdkSelection]", ["cdkSelection"], { "dataSource": { "alias": "dataSource"; "required": false; }; "trackByFn": { "alias": "trackBy"; "required": false; }; "multiple": { "alias": "cdkSelectionMultiple"; "required": false; }; }, { "change": "cdkSelectionChange"; }, never, never, true, never>;
|
|
122
103
|
}
|
|
104
|
+
type SelectAllState = 'all' | 'none' | 'partial';
|
|
105
|
+
type TableDataSource<T> = DataSource<T> | Observable<readonly T[]> | readonly T[];
|
|
123
106
|
|
|
124
107
|
/**
|
|
125
|
-
*
|
|
126
|
-
* `true`.
|
|
108
|
+
* Makes the element a select-all toggle.
|
|
127
109
|
*
|
|
128
|
-
* Must be used within a parent `CdkSelection` directive.
|
|
110
|
+
* Must be used within a parent `CdkSelection` directive. It toggles the selection states
|
|
111
|
+
* of all the selection toggles connected with the `CdkSelection` directive.
|
|
112
|
+
* If the element implements `ControlValueAccessor`, e.g. `MatCheckbox`, the directive
|
|
113
|
+
* automatically connects it with the select-all state provided by the `CdkSelection` directive. If
|
|
114
|
+
* not, use `checked$` to get the checked state, `indeterminate$` to get the indeterminate state,
|
|
115
|
+
* and `toggle()` to change the selection state.
|
|
129
116
|
*/
|
|
130
|
-
|
|
131
|
-
private
|
|
132
|
-
readonly
|
|
133
|
-
/**
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
117
|
+
declare class CdkSelectAll<T> implements OnDestroy, OnInit {
|
|
118
|
+
private readonly _selection;
|
|
119
|
+
private readonly _controlValueAccessor;
|
|
120
|
+
/**
|
|
121
|
+
* The checked state of the toggle.
|
|
122
|
+
* Resolves to `true` if all the values are selected, `false` if no value is selected.
|
|
123
|
+
*/
|
|
124
|
+
readonly checked: Observable<boolean>;
|
|
125
|
+
/**
|
|
126
|
+
* The indeterminate state of the toggle.
|
|
127
|
+
* Resolves to `true` if part (not all) of the values are selected, `false` if all values or no
|
|
128
|
+
* value at all are selected.
|
|
129
|
+
*/
|
|
130
|
+
readonly indeterminate: Observable<boolean>;
|
|
131
|
+
/**
|
|
132
|
+
* Toggles the select-all state.
|
|
133
|
+
* @param event The click event if the toggle is triggered by a (mouse or keyboard) click. If
|
|
134
|
+
* using with a native `<input type="checkbox">`, the parameter is required for the
|
|
135
|
+
* indeterminate state to work properly.
|
|
136
|
+
*/
|
|
137
|
+
toggle(event?: MouseEvent): void;
|
|
138
|
+
private readonly _destroyed;
|
|
139
|
+
constructor();
|
|
140
140
|
ngOnInit(): void;
|
|
141
|
+
private _configureControlValueAccessor;
|
|
142
|
+
private _assertValidParentSelection;
|
|
141
143
|
ngOnDestroy(): void;
|
|
142
|
-
|
|
143
|
-
static
|
|
144
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CdkSelectionColumn<any>, "cdk-selection-column", never, { "name": { "alias": "cdkSelectionColumnName"; "required": false; }; }, {}, never, never, true, never>;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export declare class CdkSelectionModule {
|
|
148
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectionModule, never>;
|
|
149
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkSelectionModule, never, [typeof i1.CdkTableModule, typeof i2.CdkSelection, typeof i3.CdkSelectionToggle, typeof i4.CdkSelectAll, typeof i5.CdkSelectionColumn, typeof i6.CdkRowSelection], [typeof i2.CdkSelection, typeof i3.CdkSelectionToggle, typeof i4.CdkSelectAll, typeof i5.CdkSelectionColumn, typeof i6.CdkRowSelection]>;
|
|
150
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CdkSelectionModule>;
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectAll<any>, never>;
|
|
145
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelectAll<any>, "[cdkSelectAll]", ["cdkSelectAll"], {}, {}, never, never, true, never>;
|
|
151
146
|
}
|
|
152
147
|
|
|
153
148
|
/**
|
|
@@ -160,7 +155,7 @@ export declare class CdkSelectionModule {
|
|
|
160
155
|
* not, use `checked$` to get the checked state of the value, and `toggle()` to change the selection
|
|
161
156
|
* state.
|
|
162
157
|
*/
|
|
163
|
-
|
|
158
|
+
declare class CdkSelectionToggle<T> implements OnDestroy, OnInit {
|
|
164
159
|
private _selection;
|
|
165
160
|
private _controlValueAccessors;
|
|
166
161
|
/** The value that is associated with the toggle */
|
|
@@ -184,88 +179,50 @@ export declare class CdkSelectionToggle<T> implements OnDestroy, OnInit {
|
|
|
184
179
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelectionToggle<any>, "[cdkSelectionToggle]", ["cdkSelectionToggle"], { "value": { "alias": "cdkSelectionToggleValue"; "required": false; }; "index": { "alias": "cdkSelectionToggleIndex"; "required": false; }; }, {}, never, never, true, never>;
|
|
185
180
|
}
|
|
186
181
|
|
|
187
|
-
declare namespace i2 {
|
|
188
|
-
export {
|
|
189
|
-
CdkSelection
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
declare namespace i3 {
|
|
194
|
-
export {
|
|
195
|
-
CdkSelectionToggle
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
declare namespace i4 {
|
|
200
|
-
export {
|
|
201
|
-
CdkSelectAll
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
declare namespace i5 {
|
|
206
|
-
export {
|
|
207
|
-
CdkSelectionColumn
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
declare namespace i6 {
|
|
212
|
-
export {
|
|
213
|
-
CdkRowSelection
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
182
|
/**
|
|
218
|
-
*
|
|
219
|
-
* `
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
value: T;
|
|
223
|
-
index?: number;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
declare type SelectAllState = 'all' | 'none' | 'partial';
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Represents the change in the selection set.
|
|
183
|
+
* Column that adds row selecting checkboxes and a select-all checkbox if `cdkSelectionMultiple` is
|
|
184
|
+
* `true`.
|
|
185
|
+
*
|
|
186
|
+
* Must be used within a parent `CdkSelection` directive.
|
|
230
187
|
*/
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
188
|
+
declare class CdkSelectionColumn<T> implements OnInit, OnDestroy {
|
|
189
|
+
private _table;
|
|
190
|
+
readonly selection: CdkSelection<T> | null;
|
|
191
|
+
/** Column name that should be used to reference this column. */
|
|
192
|
+
get name(): string;
|
|
193
|
+
set name(name: string);
|
|
194
|
+
private _name;
|
|
195
|
+
private readonly _columnDef;
|
|
196
|
+
private readonly _cell;
|
|
197
|
+
private readonly _headerCell;
|
|
198
|
+
ngOnInit(): void;
|
|
199
|
+
ngOnDestroy(): void;
|
|
200
|
+
private _syncColumnDefName;
|
|
201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectionColumn<any>, never>;
|
|
202
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CdkSelectionColumn<any>, "cdk-selection-column", never, { "name": { "alias": "cdkSelectionColumnName"; "required": false; }; }, {}, never, never, true, never>;
|
|
234
203
|
}
|
|
235
204
|
|
|
236
205
|
/**
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
206
|
+
* Applies `cdk-selected` class and `aria-selected` to an element.
|
|
207
|
+
*
|
|
208
|
+
* Must be used within a parent `CdkSelection` directive.
|
|
209
|
+
* Must be provided with the value. The index is required if `trackBy` is used on the `CdkSelection`
|
|
210
|
+
* directive.
|
|
242
211
|
*/
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
deselect(...selects: SelectableWithIndex<T>[]): void;
|
|
252
|
-
private _markSelected;
|
|
253
|
-
private _markDeselected;
|
|
254
|
-
private _getTrackedByValue;
|
|
255
|
-
private _getCurrentSelection;
|
|
212
|
+
declare class CdkRowSelection<T> {
|
|
213
|
+
readonly _selection: CdkSelection<T>;
|
|
214
|
+
value: T;
|
|
215
|
+
get index(): number | undefined;
|
|
216
|
+
set index(index: NumberInput);
|
|
217
|
+
protected _index?: number;
|
|
218
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowSelection<any>, never>;
|
|
219
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowSelection<any>, "[cdkRowSelection]", never, { "value": { "alias": "cdkRowSelectionValue"; "required": false; }; "index": { "alias": "cdkRowSelectionIndex"; "required": false; }; }, {}, never, never, true, never>;
|
|
256
220
|
}
|
|
257
221
|
|
|
258
|
-
declare
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
* selection.
|
|
263
|
-
*/
|
|
264
|
-
declare interface TrackBySelection<T> {
|
|
265
|
-
isSelected(value: SelectableWithIndex<T>): boolean;
|
|
266
|
-
select(...values: SelectableWithIndex<T>[]): void;
|
|
267
|
-
deselect(...values: SelectableWithIndex<T>[]): void;
|
|
268
|
-
changed: Subject<SelectionChange<T>>;
|
|
222
|
+
declare class CdkSelectionModule {
|
|
223
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectionModule, never>;
|
|
224
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkSelectionModule, never, [typeof i1.CdkTableModule, typeof CdkSelection, typeof CdkSelectionToggle, typeof CdkSelectAll, typeof CdkSelectionColumn, typeof CdkRowSelection], [typeof CdkSelection, typeof CdkSelectionToggle, typeof CdkSelectAll, typeof CdkSelectionColumn, typeof CdkRowSelection]>;
|
|
225
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CdkSelectionModule>;
|
|
269
226
|
}
|
|
270
227
|
|
|
271
|
-
export { }
|
|
228
|
+
export { CdkRowSelection, CdkSelectAll, CdkSelection, CdkSelectionColumn, CdkSelectionModule, CdkSelectionToggle, type SelectableWithIndex, type SelectionChange, SelectionSet };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnDestroy } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import { StickyPositioningListener } from '@angular/cdk/table';
|
|
5
|
-
import { StickyUpdate } from '@angular/cdk/table';
|
|
2
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { StickyPositioningListener, StickyUpdate } from '@angular/cdk/table';
|
|
6
4
|
|
|
7
5
|
/**
|
|
8
6
|
* Applies styles to the host element that make its scrollbars match up with
|
|
@@ -15,7 +13,7 @@ import { StickyUpdate } from '@angular/cdk/table';
|
|
|
15
13
|
* scrollbars. The easiest way to force them into custom mode is to specify width
|
|
16
14
|
* and height for the scrollbar and thumb.
|
|
17
15
|
*/
|
|
18
|
-
|
|
16
|
+
declare class CdkTableScrollContainer implements StickyPositioningListener, OnDestroy, OnInit {
|
|
19
17
|
private readonly _elementRef;
|
|
20
18
|
private readonly _document;
|
|
21
19
|
private readonly _directionality;
|
|
@@ -47,16 +45,10 @@ export declare class CdkTableScrollContainer implements StickyPositioningListene
|
|
|
47
45
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTableScrollContainer, "[cdkTableScrollContainer]", never, {}, {}, never, never, true, never>;
|
|
48
46
|
}
|
|
49
47
|
|
|
50
|
-
|
|
48
|
+
declare class CdkTableScrollContainerModule {
|
|
51
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTableScrollContainerModule, never>;
|
|
52
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkTableScrollContainerModule, never, [typeof
|
|
50
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkTableScrollContainerModule, never, [typeof CdkTableScrollContainer], [typeof CdkTableScrollContainer]>;
|
|
53
51
|
static ɵinj: i0.ɵɵInjectorDeclaration<CdkTableScrollContainerModule>;
|
|
54
52
|
}
|
|
55
53
|
|
|
56
|
-
|
|
57
|
-
export {
|
|
58
|
-
CdkTableScrollContainer
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export { }
|
|
54
|
+
export { CdkTableScrollContainer, CdkTableScrollContainerModule };
|