@angular/cdk-experimental 19.0.0-next.2 → 19.0.0-next.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 +2 -9
- package/combobox/index.d.ts +5 -11
- package/fesm2022/cdk-experimental.mjs +1 -1
- package/fesm2022/cdk-experimental.mjs.map +1 -1
- package/fesm2022/column-resize.mjs +109 -124
- package/fesm2022/column-resize.mjs.map +1 -1
- package/fesm2022/combobox.mjs +38 -47
- package/fesm2022/combobox.mjs.map +1 -1
- package/fesm2022/popover-edit.mjs +121 -125
- package/fesm2022/popover-edit.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +7 -7
- package/fesm2022/selection.mjs +43 -76
- package/fesm2022/selection.mjs.map +1 -1
- package/fesm2022/table-scroll-container.mjs +17 -30
- package/fesm2022/table-scroll-container.mjs.map +1 -1
- package/package.json +2 -2
- package/popover-edit/index.d.ts +11 -19
- package/selection/index.d.ts +6 -10
- package/table-scroll-container/index.d.ts +3 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cdk-experimental",
|
|
3
|
-
"version": "19.0.0-next.
|
|
3
|
+
"version": "19.0.0-next.4",
|
|
4
4
|
"description": "Experimental components for Angular CDK",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"homepage": "https://github.com/angular/components#readme",
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@angular/cdk": "19.0.0-next.
|
|
15
|
+
"@angular/cdk": "19.0.0-next.4",
|
|
16
16
|
"@angular/core": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
package/popover-edit/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AfterViewInit } from '@angular/core';
|
|
2
|
-
import { ControlContainer } from '@angular/forms';
|
|
3
2
|
import { Directionality } from '@angular/cdk/bidi';
|
|
4
3
|
import { ElementRef } from '@angular/core';
|
|
5
4
|
import { EmbeddedViewRef } from '@angular/core';
|
|
@@ -28,13 +27,13 @@ import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
|
28
27
|
* EditEventDispatcher service for use by the other edit directives.
|
|
29
28
|
*/
|
|
30
29
|
export declare class CdkEditable implements AfterViewInit, OnDestroy {
|
|
31
|
-
protected readonly elementRef: ElementRef
|
|
30
|
+
protected readonly elementRef: ElementRef<any>;
|
|
32
31
|
protected readonly editEventDispatcher: EditEventDispatcher<EditRef<unknown>>;
|
|
33
32
|
protected readonly focusDispatcher: FocusDispatcher;
|
|
34
33
|
protected readonly ngZone: NgZone;
|
|
35
34
|
protected readonly destroyed: Subject<void>;
|
|
36
35
|
private _rendered;
|
|
37
|
-
constructor(
|
|
36
|
+
constructor();
|
|
38
37
|
ngAfterViewInit(): void;
|
|
39
38
|
ngOnDestroy(): void;
|
|
40
39
|
private _listenForTableEvents;
|
|
@@ -46,7 +45,7 @@ export declare class CdkEditable implements AfterViewInit, OnDestroy {
|
|
|
46
45
|
export declare class CdkEditClose<FormValue> {
|
|
47
46
|
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
48
47
|
protected readonly editRef: EditRef<FormValue>;
|
|
49
|
-
constructor(
|
|
48
|
+
constructor();
|
|
50
49
|
closeEdit(): void;
|
|
51
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditClose<any>, never>;
|
|
52
51
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditClose<any>, "[cdkEditClose]", never, {}, {}, never, never, true, never>;
|
|
@@ -59,7 +58,7 @@ export declare class CdkEditClose<FormValue> {
|
|
|
59
58
|
* out.
|
|
60
59
|
*/
|
|
61
60
|
export declare class CdkEditControl<FormValue> implements OnDestroy, OnInit {
|
|
62
|
-
protected readonly elementRef: ElementRef
|
|
61
|
+
protected readonly elementRef: ElementRef<any>;
|
|
63
62
|
readonly editRef: EditRef<FormValue>;
|
|
64
63
|
protected readonly destroyed: Subject<void>;
|
|
65
64
|
/**
|
|
@@ -79,7 +78,6 @@ export declare class CdkEditControl<FormValue> implements OnDestroy, OnInit {
|
|
|
79
78
|
* state. By default the lens will remain open.
|
|
80
79
|
*/
|
|
81
80
|
ignoreSubmitUnlessValid: boolean;
|
|
82
|
-
constructor(elementRef: ElementRef, editRef: EditRef<FormValue>);
|
|
83
81
|
ngOnInit(): void;
|
|
84
82
|
ngOnDestroy(): void;
|
|
85
83
|
/**
|
|
@@ -110,7 +108,7 @@ export declare class CdkEditControl<FormValue> implements OnDestroy, OnInit {
|
|
|
110
108
|
export declare class CdkEditOpen {
|
|
111
109
|
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
112
110
|
protected readonly editEventDispatcher: EditEventDispatcher<EditRef<unknown>>;
|
|
113
|
-
constructor(
|
|
111
|
+
constructor();
|
|
114
112
|
openEdit(evt: Event): void;
|
|
115
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditOpen, never>;
|
|
116
114
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditOpen, "[cdkEditOpen]", never, {}, {}, never, never, true, never>;
|
|
@@ -121,7 +119,6 @@ export declare class CdkEditRevert<FormValue> {
|
|
|
121
119
|
protected readonly editRef: EditRef<FormValue>;
|
|
122
120
|
/** Type of the button. Defaults to `button` to avoid accident form submits. */
|
|
123
121
|
type: string;
|
|
124
|
-
constructor(editRef: EditRef<FormValue>);
|
|
125
122
|
revertEdit(): void;
|
|
126
123
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkEditRevert<any>, never>;
|
|
127
124
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkEditRevert<any>, "button[cdkEditRevert]", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -134,7 +131,7 @@ export declare class CdkEditRevert<FormValue> {
|
|
|
134
131
|
*/
|
|
135
132
|
export declare class CdkPopoverEdit<C> implements AfterViewInit, OnDestroy {
|
|
136
133
|
protected readonly services: EditServices;
|
|
137
|
-
protected readonly elementRef: ElementRef
|
|
134
|
+
protected readonly elementRef: ElementRef<any>;
|
|
138
135
|
protected readonly viewContainerRef: ViewContainerRef;
|
|
139
136
|
/** The edit lens template shown over the cell on edit. */
|
|
140
137
|
template: TemplateRef<any> | null;
|
|
@@ -159,7 +156,6 @@ export declare class CdkPopoverEdit<C> implements AfterViewInit, OnDestroy {
|
|
|
159
156
|
protected focusTrap?: FocusTrap;
|
|
160
157
|
protected overlayRef?: OverlayRef;
|
|
161
158
|
protected readonly destroyed: Subject<void>;
|
|
162
|
-
constructor(services: EditServices, elementRef: ElementRef, viewContainerRef: ViewContainerRef);
|
|
163
159
|
ngAfterViewInit(): void;
|
|
164
160
|
ngOnDestroy(): void;
|
|
165
161
|
protected initFocusTrap(): void;
|
|
@@ -201,7 +197,6 @@ export declare class CdkPopoverEditModule {
|
|
|
201
197
|
export declare class CdkPopoverEditTabOut<C> extends CdkPopoverEdit<C> {
|
|
202
198
|
protected readonly focusEscapeNotifierFactory: FocusEscapeNotifierFactory;
|
|
203
199
|
protected focusTrap?: FocusEscapeNotifier;
|
|
204
|
-
constructor(elementRef: ElementRef, viewContainerRef: ViewContainerRef, services: EditServices, focusEscapeNotifierFactory: FocusEscapeNotifierFactory);
|
|
205
200
|
protected initFocusTrap(): void;
|
|
206
201
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkPopoverEditTabOut<any>, never>;
|
|
207
202
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPopoverEditTabOut<any>, "[cdkPopoverEdit][cdkPopoverEditTabOut]", never, { "template": { "alias": "cdkPopoverEdit"; "required": false; }; "context": { "alias": "cdkPopoverEditContext"; "required": false; }; "colspan": { "alias": "cdkPopoverEditColspan"; "required": false; }; "disabled": { "alias": "cdkPopoverEditDisabled"; "required": false; }; "ariaLabel": { "alias": "cdkPopoverEditAriaLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -213,13 +208,12 @@ export declare class CdkPopoverEditTabOut<C> extends CdkPopoverEdit<C> {
|
|
|
213
208
|
*/
|
|
214
209
|
export declare class CdkRowHoverContent implements AfterViewInit, OnDestroy {
|
|
215
210
|
protected readonly services: EditServices;
|
|
216
|
-
protected readonly elementRef: ElementRef
|
|
211
|
+
protected readonly elementRef: ElementRef<any>;
|
|
217
212
|
protected readonly templateRef: TemplateRef<any>;
|
|
218
213
|
protected readonly viewContainerRef: ViewContainerRef;
|
|
219
214
|
protected readonly destroyed: Subject<void>;
|
|
220
215
|
protected viewRef: EmbeddedViewRef<any> | null;
|
|
221
216
|
private _row?;
|
|
222
|
-
constructor(services: EditServices, elementRef: ElementRef, templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
|
|
223
217
|
ngAfterViewInit(): void;
|
|
224
218
|
ngOnDestroy(): void;
|
|
225
219
|
/**
|
|
@@ -289,7 +283,7 @@ export declare class EditEventDispatcher<R> {
|
|
|
289
283
|
private readonly _editingAndEnabledDistinct;
|
|
290
284
|
private _lastSeenRow;
|
|
291
285
|
private _lastSeenRowHoverOrFocus;
|
|
292
|
-
constructor(
|
|
286
|
+
constructor();
|
|
293
287
|
/**
|
|
294
288
|
* Gets an Observable that emits true when the specified element's cell
|
|
295
289
|
* is editing and false when not.
|
|
@@ -345,7 +339,7 @@ export declare class EditRef<FormValue> implements OnDestroy {
|
|
|
345
339
|
/** The value to set the form back to on revert. */
|
|
346
340
|
private _revertFormValue;
|
|
347
341
|
private _injector;
|
|
348
|
-
constructor(
|
|
342
|
+
constructor();
|
|
349
343
|
/**
|
|
350
344
|
* Called by the host directive's OnInit hook. Reads the initial state of the
|
|
351
345
|
* form and overrides it with persisted state from previous openings, if
|
|
@@ -366,7 +360,7 @@ export declare class EditRef<FormValue> implements OnDestroy {
|
|
|
366
360
|
* revert value.
|
|
367
361
|
*/
|
|
368
362
|
reset(value?: FormValue): void;
|
|
369
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EditRef<any>,
|
|
363
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditRef<any>, never>;
|
|
370
364
|
static ɵprov: i0.ɵɵInjectableDeclaration<EditRef<any>>;
|
|
371
365
|
}
|
|
372
366
|
|
|
@@ -385,7 +379,6 @@ declare class EditServices {
|
|
|
385
379
|
readonly overlay: Overlay;
|
|
386
380
|
readonly scrollDispatcher: ScrollDispatcher;
|
|
387
381
|
readonly viewportRuler: ViewportRuler;
|
|
388
|
-
constructor(directionality: Directionality, editEventDispatcher: EditEventDispatcher<EditRef<unknown>>, focusDispatcher: FocusDispatcher, focusTrapFactory: FocusTrapFactory, ngZone: NgZone, overlay: Overlay, scrollDispatcher: ScrollDispatcher, viewportRuler: ViewportRuler);
|
|
389
382
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditServices, never>;
|
|
390
383
|
static ɵprov: i0.ɵɵInjectableDeclaration<EditServices>;
|
|
391
384
|
}
|
|
@@ -403,7 +396,7 @@ export declare class FocusDispatcher {
|
|
|
403
396
|
protected readonly directionality: Directionality;
|
|
404
397
|
/** Observes keydown events triggered from the table. */
|
|
405
398
|
readonly keyObserver: PartialObserver<KeyboardEvent>;
|
|
406
|
-
constructor(
|
|
399
|
+
constructor();
|
|
407
400
|
/**
|
|
408
401
|
* Moves focus to earlier or later cells (in dom order) by offset cells relative to
|
|
409
402
|
* currentCell.
|
|
@@ -438,7 +431,6 @@ declare class FocusEscapeNotifierFactory {
|
|
|
438
431
|
private _checker;
|
|
439
432
|
private _ngZone;
|
|
440
433
|
private _document;
|
|
441
|
-
constructor(_checker: InteractivityChecker, _ngZone: NgZone, _document: any);
|
|
442
434
|
/**
|
|
443
435
|
* Creates a focus escape notifier region around the given element.
|
|
444
436
|
* @param element The element around which focus will be monitored.
|
package/selection/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { AfterContentChecked } from '@angular/core';
|
|
2
2
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
-
import { CdkTable } from '@angular/cdk/table';
|
|
4
3
|
import { CollectionViewer } from '@angular/cdk/collections';
|
|
5
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
6
4
|
import { DataSource } from '@angular/cdk/collections';
|
|
7
5
|
import { EventEmitter } from '@angular/core';
|
|
8
6
|
import * as i0 from '@angular/core';
|
|
@@ -29,7 +27,6 @@ export declare class CdkRowSelection<T> {
|
|
|
29
27
|
get index(): number | undefined;
|
|
30
28
|
set index(index: NumberInput);
|
|
31
29
|
protected _index?: number;
|
|
32
|
-
constructor(_selection: CdkSelection<T>);
|
|
33
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkRowSelection<any>, never>;
|
|
34
31
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkRowSelection<any>, "[cdkRowSelection]", never, { "value": { "alias": "cdkRowSelectionValue"; "required": false; }; "index": { "alias": "cdkRowSelectionIndex"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
32
|
}
|
|
@@ -66,12 +63,12 @@ export declare class CdkSelectAll<T> implements OnDestroy, OnInit {
|
|
|
66
63
|
*/
|
|
67
64
|
toggle(event?: MouseEvent): void;
|
|
68
65
|
private readonly _destroyed;
|
|
69
|
-
constructor(
|
|
66
|
+
constructor();
|
|
70
67
|
ngOnInit(): void;
|
|
71
68
|
private _configureControlValueAccessor;
|
|
72
69
|
private _assertValidParentSelection;
|
|
73
70
|
ngOnDestroy(): void;
|
|
74
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectAll<any>,
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectAll<any>, never>;
|
|
75
72
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelectAll<any>, "[cdkSelectAll]", ["cdkSelectAll"], {}, {}, never, never, true, never>;
|
|
76
73
|
}
|
|
77
74
|
|
|
@@ -133,7 +130,7 @@ export declare class CdkSelection<T> implements OnInit, AfterContentChecked, Col
|
|
|
133
130
|
*/
|
|
134
131
|
export declare class CdkSelectionColumn<T> implements OnInit, OnDestroy {
|
|
135
132
|
private _table;
|
|
136
|
-
readonly selection: CdkSelection<T
|
|
133
|
+
readonly selection: CdkSelection<T> | null;
|
|
137
134
|
/** Column name that should be used to reference this column. */
|
|
138
135
|
get name(): string;
|
|
139
136
|
set name(name: string);
|
|
@@ -141,11 +138,10 @@ export declare class CdkSelectionColumn<T> implements OnInit, OnDestroy {
|
|
|
141
138
|
private readonly _columnDef;
|
|
142
139
|
private readonly _cell;
|
|
143
140
|
private readonly _headerCell;
|
|
144
|
-
constructor(_table: CdkTable<T>, selection: CdkSelection<T>);
|
|
145
141
|
ngOnInit(): void;
|
|
146
142
|
ngOnDestroy(): void;
|
|
147
143
|
private _syncColumnDefName;
|
|
148
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectionColumn<any>,
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectionColumn<any>, never>;
|
|
149
145
|
static ɵcmp: i0.ɵɵComponentDeclaration<CdkSelectionColumn<any>, "cdk-selection-column", never, { "name": { "alias": "cdkSelectionColumnName"; "required": false; }; }, {}, never, never, true, never>;
|
|
150
146
|
}
|
|
151
147
|
|
|
@@ -179,13 +175,13 @@ export declare class CdkSelectionToggle<T> implements OnDestroy, OnInit {
|
|
|
179
175
|
/** Toggles the selection */
|
|
180
176
|
toggle(): void;
|
|
181
177
|
private _destroyed;
|
|
182
|
-
constructor(
|
|
178
|
+
constructor();
|
|
183
179
|
ngOnInit(): void;
|
|
184
180
|
ngOnDestroy(): void;
|
|
185
181
|
private _assertValidParentSelection;
|
|
186
182
|
private _configureControlValueAccessor;
|
|
187
183
|
private _isSelected;
|
|
188
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectionToggle<any>,
|
|
184
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkSelectionToggle<any>, never>;
|
|
189
185
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkSelectionToggle<any>, "[cdkSelectionToggle]", ["cdkSelectionToggle"], { "value": { "alias": "cdkSelectionToggleValue"; "required": false; }; "index": { "alias": "cdkSelectionToggleIndex"; "required": false; }; }, {}, never, never, true, never>;
|
|
190
186
|
}
|
|
191
187
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
2
|
import { OnDestroy } from '@angular/core';
|
|
5
3
|
import { OnInit } from '@angular/core';
|
|
@@ -20,8 +18,8 @@ import { StickyUpdate } from '@angular/cdk/table';
|
|
|
20
18
|
export declare class CdkTableScrollContainer implements StickyPositioningListener, OnDestroy, OnInit {
|
|
21
19
|
private readonly _elementRef;
|
|
22
20
|
private readonly _document;
|
|
23
|
-
private readonly _directionality
|
|
24
|
-
private readonly _nonce
|
|
21
|
+
private readonly _directionality;
|
|
22
|
+
private readonly _nonce;
|
|
25
23
|
private readonly _uniqueClassName;
|
|
26
24
|
private _styleRoot;
|
|
27
25
|
private _styleElement?;
|
|
@@ -30,7 +28,6 @@ export declare class CdkTableScrollContainer implements StickyPositioningListene
|
|
|
30
28
|
private _endSizes;
|
|
31
29
|
private _headerSizes;
|
|
32
30
|
private _footerSizes;
|
|
33
|
-
constructor(_elementRef: ElementRef<HTMLElement>, _document: Document, _directionality?: Directionality | undefined, _nonce?: (string | null) | undefined);
|
|
34
31
|
ngOnInit(): void;
|
|
35
32
|
ngOnDestroy(): void;
|
|
36
33
|
stickyColumnsUpdated({ sizes }: StickyUpdate): void;
|
|
@@ -46,7 +43,7 @@ export declare class CdkTableScrollContainer implements StickyPositioningListene
|
|
|
46
43
|
/** Updates the stylesheet with the specified scrollbar style. */
|
|
47
44
|
private _applyCss;
|
|
48
45
|
private _clearCss;
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTableScrollContainer,
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTableScrollContainer, never>;
|
|
50
47
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTableScrollContainer, "[cdkTableScrollContainer]", never, {}, {}, never, never, true, never>;
|
|
51
48
|
}
|
|
52
49
|
|