@angular/cdk 19.2.2 → 19.2.3
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/a11y/index.d.ts +926 -999
- package/accordion/index.d.ts +8 -27
- package/bidi/index.d.ts +38 -48
- package/clipboard/index.d.ts +61 -75
- package/coercion/index.d.ts +22 -32
- package/coercion/private/index.d.ts +2 -2
- package/collections/index.d.ts +139 -158
- package/dialog/index.d.ts +210 -246
- package/drag-drop/index.d.ts +1084 -1160
- package/fesm2022/a11y.mjs +19 -11
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +0 -4
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +5 -5
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +0 -4
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion/private.mjs +0 -4
- package/fesm2022/coercion/private.mjs.map +1 -1
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/collections.mjs +1 -5
- package/fesm2022/collections.mjs.map +1 -1
- package/fesm2022/dialog.mjs +0 -4
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +0 -4
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/keycodes.mjs +0 -4
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +0 -4
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs +0 -4
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +0 -4
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers/private.mjs +0 -4
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +0 -4
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +17 -13
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +0 -4
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +9 -10
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +0 -4
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +1 -5
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +0 -4
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +2 -12
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing/testbed.mjs +1 -41
- package/fesm2022/testing/testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +0 -4
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +0 -4
- package/fesm2022/tree.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/keycodes/index.d.ts +123 -244
- package/layout/index.d.ts +23 -25
- package/listbox/index.d.ts +90 -107
- package/menu/index.d.ts +593 -687
- package/observers/index.d.ts +38 -44
- package/observers/private/index.d.ts +3 -3
- package/overlay/index.d.ts +921 -986
- package/package.json +1 -1
- package/platform/index.d.ts +50 -62
- package/portal/index.d.ts +172 -195
- package/private/index.d.ts +3 -3
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/scrolling/index.d.ts +268 -351
- package/stepper/index.d.ts +72 -124
- package/table/index.d.ts +336 -449
- package/testing/index.d.ts +490 -517
- package/testing/selenium-webdriver/index.d.ts +30 -20
- package/testing/testbed/index.d.ts +9 -19
- package/text-field/index.d.ts +9 -30
- package/tree/index.d.ts +204 -271
package/stepper/index.d.ts
CHANGED
|
@@ -1,21 +1,70 @@
|
|
|
1
|
-
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
import { AfterContentInit } from '@angular/core';
|
|
3
|
-
import { AfterViewInit } from '@angular/core';
|
|
4
|
-
import { ElementRef } from '@angular/core';
|
|
5
|
-
import { EventEmitter } from '@angular/core';
|
|
6
|
-
import { FocusableOption } from '@angular/cdk/a11y';
|
|
7
|
-
import { FormGroupDirective } from '@angular/forms';
|
|
8
1
|
import * as i0 from '@angular/core';
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import { NgForm } from '@angular/forms';
|
|
12
|
-
import { OnChanges } from '@angular/core';
|
|
13
|
-
import { OnDestroy } from '@angular/core';
|
|
14
|
-
import { QueryList } from '@angular/core';
|
|
2
|
+
import { ElementRef, TemplateRef, InjectionToken, OnChanges, QueryList, EventEmitter, AfterContentInit, AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { NgForm, FormGroupDirective, AbstractControl } from '@angular/forms';
|
|
15
4
|
import { Subject } from 'rxjs';
|
|
16
|
-
import {
|
|
5
|
+
import { FocusableOption } from '@angular/cdk/a11y';
|
|
6
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
7
|
+
|
|
8
|
+
declare class CdkStepHeader implements FocusableOption {
|
|
9
|
+
_elementRef: ElementRef<HTMLElement>;
|
|
10
|
+
constructor(...args: unknown[]);
|
|
11
|
+
/** Focuses the step header. */
|
|
12
|
+
focus(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepHeader, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepHeader, "[cdkStepHeader]", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class CdkStepLabel {
|
|
18
|
+
template: TemplateRef<any>;
|
|
19
|
+
constructor(...args: unknown[]);
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepLabel, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepLabel, "[cdkStepLabel]", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
17
23
|
|
|
18
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Position state of the content of each step in stepper that is used for transitioning
|
|
26
|
+
* the content into correct position upon step selection change.
|
|
27
|
+
*/
|
|
28
|
+
type StepContentPositionState = 'previous' | 'current' | 'next';
|
|
29
|
+
/** Possible orientation of a stepper. */
|
|
30
|
+
type StepperOrientation = 'horizontal' | 'vertical';
|
|
31
|
+
/** Change event emitted on selection changes. */
|
|
32
|
+
declare class StepperSelectionEvent {
|
|
33
|
+
/** Index of the step now selected. */
|
|
34
|
+
selectedIndex: number;
|
|
35
|
+
/** Index of the step previously selected. */
|
|
36
|
+
previouslySelectedIndex: number;
|
|
37
|
+
/** The step instance now selected. */
|
|
38
|
+
selectedStep: CdkStep;
|
|
39
|
+
/** The step instance previously selected. */
|
|
40
|
+
previouslySelectedStep: CdkStep;
|
|
41
|
+
}
|
|
42
|
+
/** The state of each step. */
|
|
43
|
+
type StepState = 'number' | 'edit' | 'done' | 'error' | string;
|
|
44
|
+
/** Enum to represent the different states of the steps. */
|
|
45
|
+
declare const STEP_STATE: {
|
|
46
|
+
NUMBER: string;
|
|
47
|
+
EDIT: string;
|
|
48
|
+
DONE: string;
|
|
49
|
+
ERROR: string;
|
|
50
|
+
};
|
|
51
|
+
/** InjectionToken that can be used to specify the global stepper options. */
|
|
52
|
+
declare const STEPPER_GLOBAL_OPTIONS: InjectionToken<StepperOptions>;
|
|
53
|
+
/** Configurable options for stepper. */
|
|
54
|
+
interface StepperOptions {
|
|
55
|
+
/**
|
|
56
|
+
* Whether the stepper should display an error state or not.
|
|
57
|
+
* Default behavior is assumed to be false.
|
|
58
|
+
*/
|
|
59
|
+
showError?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the stepper should display the default indicator type
|
|
62
|
+
* or not.
|
|
63
|
+
* Default behavior is assumed to be true.
|
|
64
|
+
*/
|
|
65
|
+
displayDefaultIndicatorType?: boolean;
|
|
66
|
+
}
|
|
67
|
+
declare class CdkStep implements OnChanges {
|
|
19
68
|
private _stepperOptions;
|
|
20
69
|
_stepper: CdkStepper;
|
|
21
70
|
_displayDefaultIndicatorType: boolean;
|
|
@@ -74,24 +123,7 @@ export declare class CdkStep implements OnChanges {
|
|
|
74
123
|
static ngAcceptInputType_completed: unknown;
|
|
75
124
|
static ngAcceptInputType_hasError: unknown;
|
|
76
125
|
}
|
|
77
|
-
|
|
78
|
-
export declare class CdkStepHeader implements FocusableOption {
|
|
79
|
-
_elementRef: ElementRef<HTMLElement>;
|
|
80
|
-
constructor(...args: unknown[]);
|
|
81
|
-
/** Focuses the step header. */
|
|
82
|
-
focus(): void;
|
|
83
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepHeader, never>;
|
|
84
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepHeader, "[cdkStepHeader]", never, {}, {}, never, never, true, never>;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export declare class CdkStepLabel {
|
|
88
|
-
template: TemplateRef<any>;
|
|
89
|
-
constructor(...args: unknown[]);
|
|
90
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepLabel, never>;
|
|
91
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepLabel, "[cdkStepLabel]", never, {}, {}, never, never, true, never>;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export declare class CdkStepper implements AfterContentInit, AfterViewInit, OnDestroy {
|
|
126
|
+
declare class CdkStepper implements AfterContentInit, AfterViewInit, OnDestroy {
|
|
95
127
|
private _dir;
|
|
96
128
|
private _changeDetectorRef;
|
|
97
129
|
protected _elementRef: ElementRef<HTMLElement>;
|
|
@@ -165,14 +197,8 @@ export declare class CdkStepper implements AfterContentInit, AfterViewInit, OnDe
|
|
|
165
197
|
static ngAcceptInputType_selectedIndex: unknown;
|
|
166
198
|
}
|
|
167
199
|
|
|
168
|
-
export declare class CdkStepperModule {
|
|
169
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepperModule, never>;
|
|
170
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkStepperModule, never, [typeof i1.BidiModule, typeof i2.CdkStep, typeof i2.CdkStepper, typeof i3.CdkStepHeader, typeof i4.CdkStepLabel, typeof i5.CdkStepperNext, typeof i5.CdkStepperPrevious], [typeof i2.CdkStep, typeof i2.CdkStepper, typeof i3.CdkStepHeader, typeof i4.CdkStepLabel, typeof i5.CdkStepperNext, typeof i5.CdkStepperPrevious]>;
|
|
171
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CdkStepperModule>;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
200
|
/** Button that moves to the next step in a stepper workflow. */
|
|
175
|
-
|
|
201
|
+
declare class CdkStepperNext {
|
|
176
202
|
_stepper: CdkStepper;
|
|
177
203
|
/** Type of the next button. Defaults to "submit" if not specified. */
|
|
178
204
|
type: string;
|
|
@@ -180,9 +206,8 @@ export declare class CdkStepperNext {
|
|
|
180
206
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepperNext, never>;
|
|
181
207
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepperNext, "button[cdkStepperNext]", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
182
208
|
}
|
|
183
|
-
|
|
184
209
|
/** Button that moves to the previous step in a stepper workflow. */
|
|
185
|
-
|
|
210
|
+
declare class CdkStepperPrevious {
|
|
186
211
|
_stepper: CdkStepper;
|
|
187
212
|
/** Type of the previous button. Defaults to "button" if not specified. */
|
|
188
213
|
type: string;
|
|
@@ -191,87 +216,10 @@ export declare class CdkStepperPrevious {
|
|
|
191
216
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkStepperPrevious, "button[cdkStepperPrevious]", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
192
217
|
}
|
|
193
218
|
|
|
194
|
-
declare
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
StepperSelectionEvent,
|
|
199
|
-
StepState,
|
|
200
|
-
STEP_STATE,
|
|
201
|
-
STEPPER_GLOBAL_OPTIONS,
|
|
202
|
-
StepperOptions,
|
|
203
|
-
CdkStep,
|
|
204
|
-
CdkStepper
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
declare namespace i3 {
|
|
209
|
-
export {
|
|
210
|
-
CdkStepHeader
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
declare namespace i4 {
|
|
215
|
-
export {
|
|
216
|
-
CdkStepLabel
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
declare namespace i5 {
|
|
221
|
-
export {
|
|
222
|
-
CdkStepperNext,
|
|
223
|
-
CdkStepperPrevious
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/** Enum to represent the different states of the steps. */
|
|
228
|
-
export declare const STEP_STATE: {
|
|
229
|
-
NUMBER: string;
|
|
230
|
-
EDIT: string;
|
|
231
|
-
DONE: string;
|
|
232
|
-
ERROR: string;
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Position state of the content of each step in stepper that is used for transitioning
|
|
237
|
-
* the content into correct position upon step selection change.
|
|
238
|
-
*/
|
|
239
|
-
export declare type StepContentPositionState = 'previous' | 'current' | 'next';
|
|
240
|
-
|
|
241
|
-
/** InjectionToken that can be used to specify the global stepper options. */
|
|
242
|
-
export declare const STEPPER_GLOBAL_OPTIONS: InjectionToken<StepperOptions>;
|
|
243
|
-
|
|
244
|
-
/** Configurable options for stepper. */
|
|
245
|
-
export declare interface StepperOptions {
|
|
246
|
-
/**
|
|
247
|
-
* Whether the stepper should display an error state or not.
|
|
248
|
-
* Default behavior is assumed to be false.
|
|
249
|
-
*/
|
|
250
|
-
showError?: boolean;
|
|
251
|
-
/**
|
|
252
|
-
* Whether the stepper should display the default indicator type
|
|
253
|
-
* or not.
|
|
254
|
-
* Default behavior is assumed to be true.
|
|
255
|
-
*/
|
|
256
|
-
displayDefaultIndicatorType?: boolean;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
/** Possible orientation of a stepper. */
|
|
260
|
-
export declare type StepperOrientation = 'horizontal' | 'vertical';
|
|
261
|
-
|
|
262
|
-
/** Change event emitted on selection changes. */
|
|
263
|
-
export declare class StepperSelectionEvent {
|
|
264
|
-
/** Index of the step now selected. */
|
|
265
|
-
selectedIndex: number;
|
|
266
|
-
/** Index of the step previously selected. */
|
|
267
|
-
previouslySelectedIndex: number;
|
|
268
|
-
/** The step instance now selected. */
|
|
269
|
-
selectedStep: CdkStep;
|
|
270
|
-
/** The step instance previously selected. */
|
|
271
|
-
previouslySelectedStep: CdkStep;
|
|
219
|
+
declare class CdkStepperModule {
|
|
220
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkStepperModule, never>;
|
|
221
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkStepperModule, never, [typeof i2.BidiModule, typeof CdkStep, typeof CdkStepper, typeof CdkStepHeader, typeof CdkStepLabel, typeof CdkStepperNext, typeof CdkStepperPrevious], [typeof CdkStep, typeof CdkStepper, typeof CdkStepHeader, typeof CdkStepLabel, typeof CdkStepperNext, typeof CdkStepperPrevious]>;
|
|
222
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CdkStepperModule>;
|
|
272
223
|
}
|
|
273
224
|
|
|
274
|
-
|
|
275
|
-
export declare type StepState = 'number' | 'edit' | 'done' | 'error' | string;
|
|
276
|
-
|
|
277
|
-
export { }
|
|
225
|
+
export { CdkStep, CdkStepHeader, CdkStepLabel, CdkStepper, CdkStepperModule, CdkStepperNext, CdkStepperPrevious, STEPPER_GLOBAL_OPTIONS, STEP_STATE, type StepContentPositionState, type StepState, type StepperOptions, type StepperOrientation, StepperSelectionEvent };
|