@angular/material 21.0.0-next.1 → 21.0.0-next.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/autocomplete/index.d.ts +4 -27
- package/badge/index.d.ts +2 -3
- package/bottom-sheet/index.d.ts +4 -13
- package/button/index.d.ts +3 -10
- package/button-toggle/index.d.ts +3 -4
- package/button-toggle.d.d.ts +1 -7
- package/card/index.d.ts +2 -3
- package/checkbox/index.d.ts +3 -10
- package/chips/_m3-chip.scss +2 -5
- package/chips/index.d.ts +2 -3
- package/core/index.d.ts +1 -2
- package/core/tokens/_classes.scss +20 -16
- package/date-adapter.d.d.ts +1 -7
- package/datepicker/index.d.ts +6 -59
- package/dialog/index.d.ts +7 -30
- package/divider/index.d.ts +2 -3
- package/expansion/index.d.ts +5 -41
- package/fesm2022/autocomplete.mjs +10 -42
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +5 -6
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +6 -89
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +10 -19
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +11 -33
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +6 -8
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +15 -25
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +12 -13
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +3 -5
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats.mjs +2 -10
- package/fesm2022/date-formats.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +32 -185
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +5 -6
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +882 -115
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +5 -7
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion.mjs +8 -112
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +19 -50
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +6 -11
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon-registry.mjs +2 -29
- package/fesm2022/icon-registry.mjs.map +1 -1
- package/fesm2022/icon.mjs +16 -24
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +6 -7
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/line.mjs +5 -5
- package/fesm2022/line.mjs.map +1 -1
- package/fesm2022/list.mjs +6 -7
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +11 -162
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/option-module.mjs +5 -5
- package/fesm2022/option-module.mjs.map +1 -1
- package/fesm2022/option.mjs +2 -2
- package/fesm2022/option.mjs.map +1 -1
- package/fesm2022/paginator.mjs +7 -28
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +19 -24
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +6 -16
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-module.mjs +5 -5
- package/fesm2022/pseudo-checkbox-module.mjs.map +1 -1
- package/fesm2022/radio.mjs +9 -18
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-module.mjs +5 -5
- package/fesm2022/ripple-module.mjs.map +1 -1
- package/fesm2022/ripple.mjs +2 -2
- package/fesm2022/ripple.mjs.map +1 -1
- package/fesm2022/select.mjs +1292 -90
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +9 -99
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +5 -6
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +7 -21
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +7 -101
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +7 -334
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +9 -180
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +6 -8
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +13 -175
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +5 -7
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +21 -54
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tooltip2.mjs +6 -33
- package/fesm2022/tooltip2.mjs.map +1 -1
- package/fesm2022/tree.mjs +6 -8
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +2 -13
- package/form-field-module.d.d.ts +3 -3
- package/grid-list/index.d.ts +2 -3
- package/icon/index.d.ts +3 -4
- package/icon-module.d.d.ts +3 -9
- package/icon-registry.d.d.ts +2 -18
- package/input/index.d.ts +3 -4
- package/line.d.d.ts +2 -2
- package/list/index.d.ts +3 -4
- package/menu/index.d.ts +4 -45
- package/option-module.d.d.ts +2 -2
- package/package.json +2 -2
- package/paginator/index.d.ts +4 -5
- package/paginator.d.d.ts +2 -18
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/index.d.ts +3 -10
- package/progress-spinner/index.d.ts +3 -4
- package/progress-spinner.d.d.ts +3 -9
- package/pseudo-checkbox-module.d.d.ts +2 -2
- package/radio/index.d.ts +3 -10
- package/ripple-module.d.d.ts +2 -2
- package/ripple.d.d.ts +3 -3
- package/schematics/ng-add/index.js +1 -1
- package/select/index.d.ts +438 -27
- package/sidenav/index.d.ts +4 -21
- package/slide-toggle/index.d.ts +2 -3
- package/slider/_m2-slider.scss +1 -0
- package/slider/_m3-slider.scss +5 -2
- package/slider/index.d.ts +2 -2
- package/snack-bar/index.d.ts +4 -20
- package/sort/index.d.ts +4 -36
- package/stepper/index.d.ts +6 -34
- package/table/index.d.ts +3 -4
- package/tabs/index.d.ts +3 -20
- package/timepicker/index.d.ts +2 -2
- package/toolbar/index.d.ts +2 -3
- package/tooltip/index.d.ts +302 -16
- package/tree/index.d.ts +2 -3
- package/common-module.d.d.ts +0 -44
- package/fesm2022/common-module.mjs +0 -42
- package/fesm2022/common-module.mjs.map +0 -1
- package/fesm2022/dialog-module.mjs +0 -891
- package/fesm2022/dialog-module.mjs.map +0 -1
- package/fesm2022/form-field-module.mjs +0 -39
- package/fesm2022/form-field-module.mjs.map +0 -1
- package/fesm2022/select-module.mjs +0 -1318
- package/fesm2022/select-module.mjs.map +0 -1
- package/fesm2022/tooltip-module.mjs +0 -24
- package/fesm2022/tooltip-module.mjs.map +0 -1
- package/select-module.d.d.ts +0 -456
- package/tooltip-module.d.d.ts +0 -329
package/snack-bar/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import * as i2 from '@angular/cdk/overlay';
|
|
|
2
2
|
import { OverlayRef, ComponentType } from '@angular/cdk/overlay';
|
|
3
3
|
import { Subject, Observable } from 'rxjs';
|
|
4
4
|
import { AriaLivePoliteness } from '@angular/cdk/a11y';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i2$1 from '@angular/cdk/portal';
|
|
6
6
|
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, DomPortal } from '@angular/cdk/portal';
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { InjectionToken, ViewContainerRef, OnDestroy, ElementRef, ComponentRef, EmbeddedViewRef, TemplateRef } from '@angular/core';
|
|
9
|
+
import * as i2$2 from '@angular/cdk/bidi';
|
|
9
10
|
import { Direction } from '@angular/cdk/bidi';
|
|
10
11
|
import { MatButtonModule } from '../button/index.js';
|
|
11
|
-
import { MatCommonModule } from '../common-module.d.js';
|
|
12
12
|
import '../palette.d.js';
|
|
13
13
|
import '../ripple-loader.d.js';
|
|
14
14
|
import '../ripple-module.d.js';
|
|
@@ -237,12 +237,6 @@ declare class MatSnackBarAction {
|
|
|
237
237
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarAction, "[matSnackBarAction]", never, {}, {}, never, never, true, never>;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
/**
|
|
241
|
-
* @docs-private
|
|
242
|
-
* @deprecated No longer used, will be removed.
|
|
243
|
-
* @breaking-change 21.0.0
|
|
244
|
-
*/
|
|
245
|
-
declare function MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY(): MatSnackBarConfig;
|
|
246
240
|
/** Injection token that can be used to specify default snack bar. */
|
|
247
241
|
declare const MAT_SNACK_BAR_DEFAULT_OPTIONS: InjectionToken<MatSnackBarConfig<any>>;
|
|
248
242
|
/**
|
|
@@ -326,19 +320,9 @@ declare class MatSnackBar implements OnDestroy {
|
|
|
326
320
|
|
|
327
321
|
declare class MatSnackBarModule {
|
|
328
322
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarModule, never>;
|
|
329
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, never, [typeof i2.OverlayModule, typeof
|
|
323
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, never, [typeof i2.OverlayModule, typeof i2$1.PortalModule, typeof MatButtonModule, typeof SimpleSnackBar, typeof MatSnackBarContainer, typeof MatSnackBarLabel, typeof MatSnackBarActions, typeof MatSnackBarAction], [typeof i2$2.BidiModule, typeof MatSnackBarContainer, typeof MatSnackBarLabel, typeof MatSnackBarActions, typeof MatSnackBarAction]>;
|
|
330
324
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatSnackBarModule>;
|
|
331
325
|
}
|
|
332
326
|
|
|
333
|
-
|
|
334
|
-
* Animations used by the Material snack bar.
|
|
335
|
-
* @docs-private
|
|
336
|
-
* @deprecated No longer used, will be removed.
|
|
337
|
-
* @breaking-change 21.0.0
|
|
338
|
-
*/
|
|
339
|
-
declare const matSnackBarAnimations: {
|
|
340
|
-
readonly snackBarState: any;
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
export { MAT_SNACK_BAR_DATA, MAT_SNACK_BAR_DEFAULT_OPTIONS, MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY, MatSnackBar, MatSnackBarAction, MatSnackBarActions, MatSnackBarConfig, MatSnackBarContainer, MatSnackBarLabel, MatSnackBarModule, MatSnackBarRef, SimpleSnackBar, matSnackBarAnimations };
|
|
327
|
+
export { MAT_SNACK_BAR_DATA, MAT_SNACK_BAR_DEFAULT_OPTIONS, MatSnackBar, MatSnackBarAction, MatSnackBarActions, MatSnackBarConfig, MatSnackBarContainer, MatSnackBarLabel, MatSnackBarModule, MatSnackBarRef, SimpleSnackBar };
|
|
344
328
|
export type { MatSnackBarDismiss, MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition, TextOnlySnackBar };
|
package/sort/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { MatCommonModule } from '../common-module.d.js';
|
|
2
|
+
import { OnDestroy, OnInit, AfterViewInit } from '@angular/core';
|
|
4
3
|
import { MatSortable, MatSort, SortHeaderArrowPosition } from '../sort.d.js';
|
|
5
4
|
export { MAT_SORT_DEFAULT_OPTIONS, MatSortDefaultOptions, Sort } from '../sort.d.js';
|
|
6
5
|
import { SortDirection } from '../sort-direction.d.js';
|
|
7
6
|
import { Subject } from 'rxjs';
|
|
8
|
-
import '@angular/cdk/bidi';
|
|
7
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and
|
|
@@ -20,22 +19,6 @@ declare class MatSortHeaderIntl {
|
|
|
20
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSortHeaderIntl, never>;
|
|
21
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<MatSortHeaderIntl>;
|
|
22
21
|
}
|
|
23
|
-
/**
|
|
24
|
-
* @docs-private
|
|
25
|
-
* @deprecated No longer used, will be removed.
|
|
26
|
-
* @breaking-change 21.0.0
|
|
27
|
-
*/
|
|
28
|
-
declare function MAT_SORT_HEADER_INTL_PROVIDER_FACTORY(parentIntl: MatSortHeaderIntl): MatSortHeaderIntl;
|
|
29
|
-
/**
|
|
30
|
-
* @docs-private
|
|
31
|
-
* @deprecated No longer used, will be removed.
|
|
32
|
-
* @breaking-change 21.0.0
|
|
33
|
-
*/
|
|
34
|
-
declare const MAT_SORT_HEADER_INTL_PROVIDER: {
|
|
35
|
-
provide: typeof MatSortHeaderIntl;
|
|
36
|
-
deps: Optional[][];
|
|
37
|
-
useFactory: typeof MAT_SORT_HEADER_INTL_PROVIDER_FACTORY;
|
|
38
|
-
};
|
|
39
22
|
|
|
40
23
|
/**
|
|
41
24
|
* Valid positions for the arrow to be in for its opacity and translation. If the state is a
|
|
@@ -140,24 +123,9 @@ declare class MatSortHeader implements MatSortable, OnDestroy, OnInit, AfterView
|
|
|
140
123
|
|
|
141
124
|
declare class MatSortModule {
|
|
142
125
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSortModule, never>;
|
|
143
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSortModule, never, [typeof
|
|
126
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSortModule, never, [typeof MatSort, typeof MatSortHeader], [typeof MatSort, typeof MatSortHeader, typeof i2.BidiModule]>;
|
|
144
127
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatSortModule>;
|
|
145
128
|
}
|
|
146
129
|
|
|
147
|
-
|
|
148
|
-
* Animations used by MatSort.
|
|
149
|
-
* @docs-private
|
|
150
|
-
* @deprecated No longer being used, to be removed.
|
|
151
|
-
* @breaking-change 21.0.0
|
|
152
|
-
*/
|
|
153
|
-
declare const matSortAnimations: {
|
|
154
|
-
readonly indicator: any;
|
|
155
|
-
readonly leftPointer: any;
|
|
156
|
-
readonly rightPointer: any;
|
|
157
|
-
readonly arrowOpacity: any;
|
|
158
|
-
readonly arrowPosition: any;
|
|
159
|
-
readonly allowChildren: any;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
export { MAT_SORT_HEADER_INTL_PROVIDER, MAT_SORT_HEADER_INTL_PROVIDER_FACTORY, MatSort, MatSortHeader, MatSortHeaderIntl, MatSortModule, MatSortable, SortDirection, SortHeaderArrowPosition, matSortAnimations };
|
|
130
|
+
export { MatSort, MatSortHeader, MatSortHeaderIntl, MatSortModule, MatSortable, SortDirection, SortHeaderArrowPosition };
|
|
163
131
|
export type { ArrowViewState, ArrowViewStateTransition };
|
package/stepper/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as i2$1 from '@angular/cdk/stepper';
|
|
2
2
|
import { CdkStepLabel, StepState, CdkStepHeader, CdkStep, CdkStepper, CdkStepperNext, CdkStepperPrevious } from '@angular/cdk/stepper';
|
|
3
3
|
export { StepState, StepperOrientation } from '@angular/cdk/stepper';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import * as i3 from '@angular/cdk/portal';
|
|
5
|
+
import { TemplateRef, AfterViewInit, OnDestroy, AfterContentInit, QueryList, ElementRef, EventEmitter } from '@angular/core';
|
|
6
|
+
import * as i2 from '@angular/cdk/portal';
|
|
8
7
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
9
8
|
import { MatIconModule } from '../icon-module.d.js';
|
|
10
9
|
import { MatRippleModule } from '../ripple-module.d.js';
|
|
@@ -13,7 +12,7 @@ import { ThemePalette } from '../palette.d.js';
|
|
|
13
12
|
import { ErrorStateMatcher } from '../error-options.d.js';
|
|
14
13
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
15
14
|
import { Subject } from 'rxjs';
|
|
16
|
-
import '@angular/cdk/bidi';
|
|
15
|
+
import * as i2$2 from '@angular/cdk/bidi';
|
|
17
16
|
import '../ripple.d.js';
|
|
18
17
|
import '@angular/cdk/platform';
|
|
19
18
|
|
|
@@ -38,22 +37,6 @@ declare class MatStepperIntl {
|
|
|
38
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperIntl, never>;
|
|
39
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<MatStepperIntl>;
|
|
40
39
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @docs-private
|
|
43
|
-
* @deprecated No longer used, will be removed.
|
|
44
|
-
* @breaking-change 21.0.0
|
|
45
|
-
*/
|
|
46
|
-
declare function MAT_STEPPER_INTL_PROVIDER_FACTORY(parentIntl: MatStepperIntl): MatStepperIntl;
|
|
47
|
-
/**
|
|
48
|
-
* @docs-private
|
|
49
|
-
* @deprecated No longer used, will be removed.
|
|
50
|
-
* @breaking-change 21.0.0
|
|
51
|
-
*/
|
|
52
|
-
declare const MAT_STEPPER_INTL_PROVIDER: {
|
|
53
|
-
provide: typeof MatStepperIntl;
|
|
54
|
-
deps: Optional[][];
|
|
55
|
-
useFactory: typeof MAT_STEPPER_INTL_PROVIDER_FACTORY;
|
|
56
|
-
};
|
|
57
40
|
|
|
58
41
|
/** Template context available to an attached `matStepperIcon`. */
|
|
59
42
|
interface MatStepperIconContext {
|
|
@@ -232,20 +215,9 @@ declare class MatStepperPrevious extends CdkStepperPrevious {
|
|
|
232
215
|
|
|
233
216
|
declare class MatStepperModule {
|
|
234
217
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperModule, never>;
|
|
235
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatStepperModule, never, [typeof
|
|
218
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatStepperModule, never, [typeof i2.PortalModule, typeof i2$1.CdkStepperModule, typeof MatIconModule, typeof MatRippleModule, typeof MatStep, typeof MatStepLabel, typeof MatStepper, typeof MatStepperNext, typeof MatStepperPrevious, typeof MatStepHeader, typeof MatStepperIcon, typeof MatStepContent], [typeof i2$2.BidiModule, typeof MatStep, typeof MatStepLabel, typeof MatStepper, typeof MatStepperNext, typeof MatStepperPrevious, typeof MatStepHeader, typeof MatStepperIcon, typeof MatStepContent]>;
|
|
236
219
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatStepperModule>;
|
|
237
220
|
}
|
|
238
221
|
|
|
239
|
-
|
|
240
|
-
* Animations used by the Material steppers.
|
|
241
|
-
* @docs-private
|
|
242
|
-
* @deprecated No longer used, will be removed.
|
|
243
|
-
* @breaking-change 21.0.0
|
|
244
|
-
*/
|
|
245
|
-
declare const matStepperAnimations: {
|
|
246
|
-
readonly horizontalStepTransition: any;
|
|
247
|
-
readonly verticalStepTransition: any;
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
export { MAT_STEPPER_INTL_PROVIDER, MAT_STEPPER_INTL_PROVIDER_FACTORY, MatStep, MatStepContent, MatStepHeader, MatStepLabel, MatStepper, MatStepperIcon, MatStepperIntl, MatStepperModule, MatStepperNext, MatStepperPrevious, matStepperAnimations };
|
|
222
|
+
export { MatStep, MatStepContent, MatStepHeader, MatStepLabel, MatStepper, MatStepperIcon, MatStepperIntl, MatStepperModule, MatStepperNext, MatStepperPrevious };
|
|
251
223
|
export type { MatStepperIconContext };
|
package/table/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as i1 from '@angular/cdk/table';
|
|
2
2
|
import { CdkTable, CdkCellDef, CdkHeaderCellDef, CdkFooterCellDef, CdkColumnDef, CdkHeaderCell, CdkFooterCell, CdkCell, CdkHeaderRowDef, CdkFooterRowDef, CdkRowDef, CdkHeaderRow, CdkFooterRow, CdkRow, CdkNoDataRow, CdkTextColumn } from '@angular/cdk/table';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import
|
|
4
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
5
5
|
import { Subscription, BehaviorSubject } from 'rxjs';
|
|
6
6
|
import { DataSource } from '@angular/cdk/collections';
|
|
7
7
|
import { MatPaginator } from '../paginator.d.js';
|
|
8
8
|
import { MatSort } from '../sort.d.js';
|
|
9
|
-
import '@angular/cdk/bidi';
|
|
10
9
|
import '../palette.d.js';
|
|
11
10
|
import '../form-field.d.js';
|
|
12
11
|
import '@angular/cdk/coercion';
|
|
@@ -154,7 +153,7 @@ declare class MatTextColumn<T> extends CdkTextColumn<T> {
|
|
|
154
153
|
|
|
155
154
|
declare class MatTableModule {
|
|
156
155
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatTableModule, never>;
|
|
157
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTableModule, never, [typeof
|
|
156
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTableModule, never, [typeof i1.CdkTableModule, typeof MatTable, typeof MatRecycleRows, typeof MatHeaderCellDef, typeof MatHeaderRowDef, typeof MatColumnDef, typeof MatCellDef, typeof MatRowDef, typeof MatFooterCellDef, typeof MatFooterRowDef, typeof MatHeaderCell, typeof MatCell, typeof MatFooterCell, typeof MatHeaderRow, typeof MatRow, typeof MatFooterRow, typeof MatNoDataRow, typeof MatTextColumn], [typeof i2.BidiModule, typeof MatTable, typeof MatRecycleRows, typeof MatHeaderCellDef, typeof MatHeaderRowDef, typeof MatColumnDef, typeof MatCellDef, typeof MatRowDef, typeof MatFooterCellDef, typeof MatFooterRowDef, typeof MatHeaderCell, typeof MatCell, typeof MatFooterCell, typeof MatHeaderRow, typeof MatRow, typeof MatFooterRow, typeof MatNoDataRow, typeof MatTextColumn]>;
|
|
158
157
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatTableModule>;
|
|
159
158
|
}
|
|
160
159
|
|
package/tabs/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, TemplateRef, OnInit, OnChanges, OnDestroy, SimpleChanges, QueryList, ElementRef, AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
3
|
-
import { MatCommonModule } from '../common-module.d.js';
|
|
4
3
|
import { CdkPortal, TemplatePortal, CdkPortalOutlet } from '@angular/cdk/portal';
|
|
5
4
|
import { Subject, BehaviorSubject } from 'rxjs';
|
|
6
5
|
import { FocusKeyManager, FocusableOption, FocusOrigin } from '@angular/cdk/a11y';
|
|
6
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
7
7
|
import { Direction } from '@angular/cdk/bidi';
|
|
8
8
|
import { ThemePalette } from '../palette.d.js';
|
|
9
9
|
import { RippleTarget, RippleConfig, RippleGlobalOptions } from '../ripple.d.js';
|
|
@@ -176,13 +176,6 @@ interface _MatInkBarPositioner {
|
|
|
176
176
|
width: string;
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
/**
|
|
180
|
-
* The default positioner function for the MatInkBar.
|
|
181
|
-
* @docs-private
|
|
182
|
-
* @deprecated No longer used, will be removed.
|
|
183
|
-
* @breaking-change 21.0.0
|
|
184
|
-
*/
|
|
185
|
-
declare function _MAT_INK_BAR_POSITIONER_FACTORY(): _MatInkBarPositioner;
|
|
186
179
|
/** Injection token for the MatInkBar's Positioner. */
|
|
187
180
|
declare const _MAT_INK_BAR_POSITIONER: InjectionToken<_MatInkBarPositioner>;
|
|
188
181
|
|
|
@@ -856,7 +849,7 @@ declare class MatTabNavPanel {
|
|
|
856
849
|
|
|
857
850
|
declare class MatTabsModule {
|
|
858
851
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabsModule, never>;
|
|
859
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTabsModule, never, [typeof
|
|
852
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTabsModule, never, [typeof MatTabContent, typeof MatTabLabel, typeof MatTab, typeof MatTabGroup, typeof MatTabNav, typeof MatTabNavPanel, typeof MatTabLink], [typeof i2.BidiModule, typeof MatTabContent, typeof MatTabLabel, typeof MatTab, typeof MatTabGroup, typeof MatTabNav, typeof MatTabNavPanel, typeof MatTabLink]>;
|
|
860
853
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatTabsModule>;
|
|
861
854
|
}
|
|
862
855
|
|
|
@@ -892,15 +885,5 @@ interface MatTabsConfig {
|
|
|
892
885
|
/** Injection token that can be used to provide the default options the tabs module. */
|
|
893
886
|
declare const MAT_TABS_CONFIG: InjectionToken<MatTabsConfig>;
|
|
894
887
|
|
|
895
|
-
|
|
896
|
-
* Animations used by the Material tabs.
|
|
897
|
-
* @docs-private
|
|
898
|
-
* @deprecated No longer used, will be removed.
|
|
899
|
-
* @breaking-change 21.0.0.
|
|
900
|
-
*/
|
|
901
|
-
declare const matTabsAnimations: {
|
|
902
|
-
readonly translateTab: any;
|
|
903
|
-
};
|
|
904
|
-
|
|
905
|
-
export { MAT_TAB, MAT_TABS_CONFIG, MAT_TAB_CONTENT, MAT_TAB_GROUP, MAT_TAB_LABEL, MatInkBar, MatPaginatedTabHeader, MatTab, MatTabBody, MatTabBodyPortal, MatTabChangeEvent, MatTabContent, MatTabGroup, MatTabHeader, MatTabLabel, MatTabLabelWrapper, MatTabLink, MatTabNav, MatTabNavPanel, MatTabsModule, _MAT_INK_BAR_POSITIONER, _MAT_INK_BAR_POSITIONER_FACTORY, matTabsAnimations };
|
|
888
|
+
export { MAT_TAB, MAT_TABS_CONFIG, MAT_TAB_CONTENT, MAT_TAB_GROUP, MAT_TAB_LABEL, MatInkBar, MatPaginatedTabHeader, MatTab, MatTabBody, MatTabBodyPortal, MatTabChangeEvent, MatTabContent, MatTabGroup, MatTabHeader, MatTabLabel, MatTabLabelWrapper, MatTabLink, MatTabNav, MatTabNavPanel, MatTabsModule, _MAT_INK_BAR_POSITIONER };
|
|
906
889
|
export type { MatTabBodyOriginState, MatTabBodyPositionState, MatTabGroupBaseHeader, MatTabHeaderPosition, MatTabsConfig, ScrollDirection, _MatInkBarPositioner };
|
package/timepicker/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { MatOption } from '../option.d.js';
|
|
|
4
4
|
import { MatOptionParentComponent } from '../option-parent.d.js';
|
|
5
5
|
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
6
6
|
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
7
|
-
import * as
|
|
7
|
+
import * as i1 from '@angular/cdk/scrolling';
|
|
8
8
|
import '@angular/cdk/a11y';
|
|
9
9
|
import 'rxjs';
|
|
10
10
|
|
|
@@ -286,7 +286,7 @@ declare class MatTimepickerToggle<D> {
|
|
|
286
286
|
|
|
287
287
|
declare class MatTimepickerModule {
|
|
288
288
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatTimepickerModule, never>;
|
|
289
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTimepickerModule, never, [typeof MatTimepicker, typeof MatTimepickerInput, typeof MatTimepickerToggle], [typeof
|
|
289
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTimepickerModule, never, [typeof MatTimepicker, typeof MatTimepickerInput, typeof MatTimepickerToggle], [typeof i1.CdkScrollableModule, typeof MatTimepicker, typeof MatTimepickerInput, typeof MatTimepickerToggle]>;
|
|
290
290
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatTimepickerModule>;
|
|
291
291
|
}
|
|
292
292
|
|
package/toolbar/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { AfterViewInit, ElementRef, QueryList } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
import '@angular/cdk/bidi';
|
|
3
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
5
4
|
|
|
6
5
|
declare class MatToolbarRow {
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatToolbarRow, never>;
|
|
@@ -38,7 +37,7 @@ declare function throwToolbarMixedModesError(): void;
|
|
|
38
37
|
|
|
39
38
|
declare class MatToolbarModule {
|
|
40
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatToolbarModule, never>;
|
|
41
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatToolbarModule, never, [typeof
|
|
40
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatToolbarModule, never, [typeof MatToolbar, typeof MatToolbarRow], [typeof MatToolbar, typeof MatToolbarRow, typeof i2.BidiModule]>;
|
|
42
41
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatToolbarModule>;
|
|
43
42
|
}
|
|
44
43
|
|
package/tooltip/index.d.ts
CHANGED
|
@@ -1,21 +1,307 @@
|
|
|
1
|
-
|
|
2
|
-
import '@angular/core';
|
|
3
|
-
import '@angular/
|
|
4
|
-
import '@angular/cdk/
|
|
5
|
-
import '
|
|
6
|
-
import '@angular/cdk/
|
|
7
|
-
import '@angular/cdk/
|
|
8
|
-
import 'rxjs';
|
|
9
|
-
import '@angular/cdk/
|
|
1
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
|
|
4
|
+
import * as i2$1 from '@angular/cdk/bidi';
|
|
5
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
6
|
+
import * as i2 from '@angular/cdk/overlay';
|
|
7
|
+
import { ScrollStrategy, OverlayRef, ConnectedPosition, OriginConnectionPosition, OverlayConnectionPosition } from '@angular/cdk/overlay';
|
|
8
|
+
import { Observable } from 'rxjs';
|
|
9
|
+
import * as i1 from '@angular/cdk/a11y';
|
|
10
|
+
import * as i1$1 from '@angular/cdk/scrolling';
|
|
10
11
|
|
|
12
|
+
/** Possible positions for a tooltip. */
|
|
13
|
+
type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';
|
|
11
14
|
/**
|
|
12
|
-
*
|
|
15
|
+
* Options for how the tooltip trigger should handle touch gestures.
|
|
16
|
+
* See `MatTooltip.touchGestures` for more information.
|
|
17
|
+
*/
|
|
18
|
+
type TooltipTouchGestures = 'auto' | 'on' | 'off';
|
|
19
|
+
/** Possible visibility states of a tooltip. */
|
|
20
|
+
type TooltipVisibility = 'initial' | 'visible' | 'hidden';
|
|
21
|
+
/** Time in ms to throttle repositioning after scroll events. */
|
|
22
|
+
declare const SCROLL_THROTTLE_MS = 20;
|
|
23
|
+
/**
|
|
24
|
+
* Creates an error to be thrown if the user supplied an invalid tooltip position.
|
|
25
|
+
* @docs-private
|
|
26
|
+
*/
|
|
27
|
+
declare function getMatTooltipInvalidPositionError(position: string): Error;
|
|
28
|
+
/** Injection token that determines the scroll handling while a tooltip is visible. */
|
|
29
|
+
declare const MAT_TOOLTIP_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
30
|
+
/** Injection token to be used to override the default options for `matTooltip`. */
|
|
31
|
+
declare const MAT_TOOLTIP_DEFAULT_OPTIONS: InjectionToken<MatTooltipDefaultOptions>;
|
|
32
|
+
/** Default `matTooltip` options that can be overridden. */
|
|
33
|
+
interface MatTooltipDefaultOptions {
|
|
34
|
+
/** Default delay when the tooltip is shown. */
|
|
35
|
+
showDelay: number;
|
|
36
|
+
/** Default delay when the tooltip is hidden. */
|
|
37
|
+
hideDelay: number;
|
|
38
|
+
/** Default delay when hiding the tooltip on a touch device. */
|
|
39
|
+
touchendHideDelay: number;
|
|
40
|
+
/** Time between the user putting the pointer on a tooltip trigger and the long press event being fired on a touch device. */
|
|
41
|
+
touchLongPressShowDelay?: number;
|
|
42
|
+
/** Default touch gesture handling for tooltips. */
|
|
43
|
+
touchGestures?: TooltipTouchGestures;
|
|
44
|
+
/** Default position for tooltips. */
|
|
45
|
+
position?: TooltipPosition;
|
|
46
|
+
/**
|
|
47
|
+
* Default value for whether tooltips should be positioned near the click or touch origin
|
|
48
|
+
* instead of outside the element bounding box.
|
|
49
|
+
*/
|
|
50
|
+
positionAtOrigin?: boolean;
|
|
51
|
+
/** Disables the ability for the user to interact with the tooltip element. */
|
|
52
|
+
disableTooltipInteractivity?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Default classes to be applied to the tooltip. These default classes will not be applied if
|
|
55
|
+
* `tooltipClass` is defined directly on the tooltip element, as it will override the default.
|
|
56
|
+
*/
|
|
57
|
+
tooltipClass?: string | string[];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* CSS class that will be attached to the overlay panel.
|
|
61
|
+
* @deprecated
|
|
62
|
+
* @breaking-change 13.0.0 remove this variable
|
|
63
|
+
*/
|
|
64
|
+
declare const TOOLTIP_PANEL_CLASS = "mat-mdc-tooltip-panel";
|
|
65
|
+
/**
|
|
66
|
+
* Directive that attaches a material design tooltip to the host element. Animates the showing and
|
|
67
|
+
* hiding of a tooltip provided position (defaults to below the element).
|
|
68
|
+
*
|
|
69
|
+
* https://material.io/design/components/tooltips.html
|
|
70
|
+
*/
|
|
71
|
+
declare class MatTooltip implements OnDestroy, AfterViewInit {
|
|
72
|
+
private _elementRef;
|
|
73
|
+
private _ngZone;
|
|
74
|
+
private _platform;
|
|
75
|
+
private _ariaDescriber;
|
|
76
|
+
private _focusMonitor;
|
|
77
|
+
protected _dir: Directionality;
|
|
78
|
+
private _injector;
|
|
79
|
+
private _viewContainerRef;
|
|
80
|
+
private _animationsDisabled;
|
|
81
|
+
private _defaultOptions;
|
|
82
|
+
_overlayRef: OverlayRef | null;
|
|
83
|
+
_tooltipInstance: TooltipComponent | null;
|
|
84
|
+
_overlayPanelClass: string[] | undefined;
|
|
85
|
+
private _portal;
|
|
86
|
+
private _position;
|
|
87
|
+
private _positionAtOrigin;
|
|
88
|
+
private _disabled;
|
|
89
|
+
private _tooltipClass;
|
|
90
|
+
private _viewInitialized;
|
|
91
|
+
private _pointerExitEventsInitialized;
|
|
92
|
+
private readonly _tooltipComponent;
|
|
93
|
+
private _viewportMargin;
|
|
94
|
+
private _currentPosition;
|
|
95
|
+
private readonly _cssClassPrefix;
|
|
96
|
+
private _ariaDescriptionPending;
|
|
97
|
+
private _dirSubscribed;
|
|
98
|
+
/** Allows the user to define the position of the tooltip relative to the parent element */
|
|
99
|
+
get position(): TooltipPosition;
|
|
100
|
+
set position(value: TooltipPosition);
|
|
101
|
+
/**
|
|
102
|
+
* Whether tooltip should be relative to the click or touch origin
|
|
103
|
+
* instead of outside the element bounding box.
|
|
104
|
+
*/
|
|
105
|
+
get positionAtOrigin(): boolean;
|
|
106
|
+
set positionAtOrigin(value: BooleanInput);
|
|
107
|
+
/** Disables the display of the tooltip. */
|
|
108
|
+
get disabled(): boolean;
|
|
109
|
+
set disabled(value: BooleanInput);
|
|
110
|
+
/** The default delay in ms before showing the tooltip after show is called */
|
|
111
|
+
get showDelay(): number;
|
|
112
|
+
set showDelay(value: NumberInput);
|
|
113
|
+
private _showDelay;
|
|
114
|
+
/** The default delay in ms before hiding the tooltip after hide is called */
|
|
115
|
+
get hideDelay(): number;
|
|
116
|
+
set hideDelay(value: NumberInput);
|
|
117
|
+
private _hideDelay;
|
|
118
|
+
/**
|
|
119
|
+
* How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
|
|
120
|
+
* uses a long press gesture to show and hide, however it can conflict with the native browser
|
|
121
|
+
* gestures. To work around the conflict, Angular Material disables native gestures on the
|
|
122
|
+
* trigger, but that might not be desirable on particular elements (e.g. inputs and draggable
|
|
123
|
+
* elements). The different values for this option configure the touch event handling as follows:
|
|
124
|
+
* - `auto` - Enables touch gestures for all elements, but tries to avoid conflicts with native
|
|
125
|
+
* browser gestures on particular elements. In particular, it allows text selection on inputs
|
|
126
|
+
* and textareas, and preserves the native browser dragging on elements marked as `draggable`.
|
|
127
|
+
* - `on` - Enables touch gestures for all elements and disables native
|
|
128
|
+
* browser gestures with no exceptions.
|
|
129
|
+
* - `off` - Disables touch gestures. Note that this will prevent the tooltip from
|
|
130
|
+
* showing on touch devices.
|
|
131
|
+
*/
|
|
132
|
+
touchGestures: TooltipTouchGestures;
|
|
133
|
+
/** The message to be displayed in the tooltip */
|
|
134
|
+
get message(): string;
|
|
135
|
+
set message(value: string | null | undefined);
|
|
136
|
+
private _message;
|
|
137
|
+
/** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */
|
|
138
|
+
get tooltipClass(): string | string[] | Set<string> | {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
};
|
|
141
|
+
set tooltipClass(value: string | string[] | Set<string> | {
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
});
|
|
144
|
+
/** Manually-bound passive event listeners. */
|
|
145
|
+
private readonly _passiveListeners;
|
|
146
|
+
/** Timer started at the last `touchstart` event. */
|
|
147
|
+
private _touchstartTimeout;
|
|
148
|
+
/** Emits when the component is destroyed. */
|
|
149
|
+
private readonly _destroyed;
|
|
150
|
+
/** Whether ngOnDestroyed has been called. */
|
|
151
|
+
private _isDestroyed;
|
|
152
|
+
constructor(...args: unknown[]);
|
|
153
|
+
ngAfterViewInit(): void;
|
|
154
|
+
/**
|
|
155
|
+
* Dispose the tooltip when destroyed.
|
|
156
|
+
*/
|
|
157
|
+
ngOnDestroy(): void;
|
|
158
|
+
/** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */
|
|
159
|
+
show(delay?: number, origin?: {
|
|
160
|
+
x: number;
|
|
161
|
+
y: number;
|
|
162
|
+
}): void;
|
|
163
|
+
/** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */
|
|
164
|
+
hide(delay?: number): void;
|
|
165
|
+
/** Shows/hides the tooltip */
|
|
166
|
+
toggle(origin?: {
|
|
167
|
+
x: number;
|
|
168
|
+
y: number;
|
|
169
|
+
}): void;
|
|
170
|
+
/** Returns true if the tooltip is currently visible to the user */
|
|
171
|
+
_isTooltipVisible(): boolean;
|
|
172
|
+
/** Create the overlay config and position strategy */
|
|
173
|
+
private _createOverlay;
|
|
174
|
+
/** Detaches the currently-attached tooltip. */
|
|
175
|
+
private _detach;
|
|
176
|
+
/** Updates the position of the current tooltip. */
|
|
177
|
+
private _updatePosition;
|
|
178
|
+
/** Adds the configured offset to a position. Used as a hook for child classes. */
|
|
179
|
+
protected _addOffset(position: ConnectedPosition): ConnectedPosition;
|
|
180
|
+
/**
|
|
181
|
+
* Returns the origin position and a fallback position based on the user's position preference.
|
|
182
|
+
* The fallback position is the inverse of the origin (e.g. `'below' -> 'above'`).
|
|
183
|
+
*/
|
|
184
|
+
_getOrigin(): {
|
|
185
|
+
main: OriginConnectionPosition;
|
|
186
|
+
fallback: OriginConnectionPosition;
|
|
187
|
+
};
|
|
188
|
+
/** Returns the overlay position and a fallback position based on the user's preference */
|
|
189
|
+
_getOverlayPosition(): {
|
|
190
|
+
main: OverlayConnectionPosition;
|
|
191
|
+
fallback: OverlayConnectionPosition;
|
|
192
|
+
};
|
|
193
|
+
/** Updates the tooltip message and repositions the overlay according to the new message length */
|
|
194
|
+
private _updateTooltipMessage;
|
|
195
|
+
/** Updates the tooltip class */
|
|
196
|
+
private _setTooltipClass;
|
|
197
|
+
/** Inverts an overlay position. */
|
|
198
|
+
private _invertPosition;
|
|
199
|
+
/** Updates the class on the overlay panel based on the current position of the tooltip. */
|
|
200
|
+
private _updateCurrentPositionClass;
|
|
201
|
+
/** Binds the pointer events to the tooltip trigger. */
|
|
202
|
+
private _setupPointerEnterEventsIfNeeded;
|
|
203
|
+
private _setupPointerExitEventsIfNeeded;
|
|
204
|
+
private _addListeners;
|
|
205
|
+
private _platformSupportsMouseEvents;
|
|
206
|
+
/** Listener for the `wheel` event on the element. */
|
|
207
|
+
private _wheelListener;
|
|
208
|
+
/** Disables the native browser gestures, based on how the tooltip has been configured. */
|
|
209
|
+
private _disableNativeGesturesIfNecessary;
|
|
210
|
+
/** Updates the tooltip's ARIA description based on it current state. */
|
|
211
|
+
private _syncAriaDescription;
|
|
212
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTooltip, never>;
|
|
213
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTooltip, "[matTooltip]", ["matTooltip"], { "position": { "alias": "matTooltipPosition"; "required": false; }; "positionAtOrigin": { "alias": "matTooltipPositionAtOrigin"; "required": false; }; "disabled": { "alias": "matTooltipDisabled"; "required": false; }; "showDelay": { "alias": "matTooltipShowDelay"; "required": false; }; "hideDelay": { "alias": "matTooltipHideDelay"; "required": false; }; "touchGestures": { "alias": "matTooltipTouchGestures"; "required": false; }; "message": { "alias": "matTooltip"; "required": false; }; "tooltipClass": { "alias": "matTooltipClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Internal component that wraps the tooltip's content.
|
|
13
217
|
* @docs-private
|
|
14
|
-
* @deprecated No longer being used, to be removed.
|
|
15
|
-
* @breaking-change 21.0.0
|
|
16
218
|
*/
|
|
17
|
-
declare
|
|
18
|
-
|
|
19
|
-
|
|
219
|
+
declare class TooltipComponent implements OnDestroy {
|
|
220
|
+
private _changeDetectorRef;
|
|
221
|
+
protected _elementRef: ElementRef<HTMLElement>;
|
|
222
|
+
_isMultiline: boolean;
|
|
223
|
+
/** Message to display in the tooltip */
|
|
224
|
+
message: string;
|
|
225
|
+
/** Classes to be added to the tooltip. Supports the same syntax as `ngClass`. */
|
|
226
|
+
tooltipClass: string | string[] | Set<string> | {
|
|
227
|
+
[key: string]: any;
|
|
228
|
+
};
|
|
229
|
+
/** The timeout ID of any current timer set to show the tooltip */
|
|
230
|
+
private _showTimeoutId;
|
|
231
|
+
/** The timeout ID of any current timer set to hide the tooltip */
|
|
232
|
+
private _hideTimeoutId;
|
|
233
|
+
/** Element that caused the tooltip to open. */
|
|
234
|
+
_triggerElement: HTMLElement;
|
|
235
|
+
/** Amount of milliseconds to delay the closing sequence. */
|
|
236
|
+
_mouseLeaveHideDelay: number;
|
|
237
|
+
/** Whether animations are currently disabled. */
|
|
238
|
+
private _animationsDisabled;
|
|
239
|
+
/** Reference to the internal tooltip element. */
|
|
240
|
+
_tooltip: ElementRef<HTMLElement>;
|
|
241
|
+
/** Whether interactions on the page should close the tooltip */
|
|
242
|
+
private _closeOnInteraction;
|
|
243
|
+
/** Whether the tooltip is currently visible. */
|
|
244
|
+
private _isVisible;
|
|
245
|
+
/** Subject for notifying that the tooltip has been hidden from the view */
|
|
246
|
+
private readonly _onHide;
|
|
247
|
+
/** Name of the show animation and the class that toggles it. */
|
|
248
|
+
private readonly _showAnimation;
|
|
249
|
+
/** Name of the hide animation and the class that toggles it. */
|
|
250
|
+
private readonly _hideAnimation;
|
|
251
|
+
constructor(...args: unknown[]);
|
|
252
|
+
/**
|
|
253
|
+
* Shows the tooltip with an animation originating from the provided origin
|
|
254
|
+
* @param delay Amount of milliseconds to the delay showing the tooltip.
|
|
255
|
+
*/
|
|
256
|
+
show(delay: number): void;
|
|
257
|
+
/**
|
|
258
|
+
* Begins the animation to hide the tooltip after the provided delay in ms.
|
|
259
|
+
* @param delay Amount of milliseconds to delay showing the tooltip.
|
|
260
|
+
*/
|
|
261
|
+
hide(delay: number): void;
|
|
262
|
+
/** Returns an observable that notifies when the tooltip has been hidden from view. */
|
|
263
|
+
afterHidden(): Observable<void>;
|
|
264
|
+
/** Whether the tooltip is being displayed. */
|
|
265
|
+
isVisible(): boolean;
|
|
266
|
+
ngOnDestroy(): void;
|
|
267
|
+
/**
|
|
268
|
+
* Interactions on the HTML body should close the tooltip immediately as defined in the
|
|
269
|
+
* material design spec.
|
|
270
|
+
* https://material.io/design/components/tooltips.html#behavior
|
|
271
|
+
*/
|
|
272
|
+
_handleBodyInteraction(): void;
|
|
273
|
+
/**
|
|
274
|
+
* Marks that the tooltip needs to be checked in the next change detection run.
|
|
275
|
+
* Mainly used for rendering the initial text before positioning a tooltip, which
|
|
276
|
+
* can be problematic in components with OnPush change detection.
|
|
277
|
+
*/
|
|
278
|
+
_markForCheck(): void;
|
|
279
|
+
_handleMouseLeave({ relatedTarget }: MouseEvent): void;
|
|
280
|
+
/**
|
|
281
|
+
* Callback for when the timeout in this.show() gets completed.
|
|
282
|
+
* This method is only needed by the mdc-tooltip, and so it is only implemented
|
|
283
|
+
* in the mdc-tooltip, not here.
|
|
284
|
+
*/
|
|
285
|
+
protected _onShow(): void;
|
|
286
|
+
/** Whether the tooltip text has overflown to the next line */
|
|
287
|
+
private _isTooltipMultiline;
|
|
288
|
+
/** Event listener dispatched when an animation on the tooltip finishes. */
|
|
289
|
+
_handleAnimationEnd({ animationName }: AnimationEvent): void;
|
|
290
|
+
/** Cancels any pending animation sequences. */
|
|
291
|
+
_cancelPendingAnimations(): void;
|
|
292
|
+
/** Handles the cleanup after an animation has finished. */
|
|
293
|
+
private _finalizeAnimation;
|
|
294
|
+
/** Toggles the visibility of the tooltip element. */
|
|
295
|
+
private _toggleVisibility;
|
|
296
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
297
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "mat-tooltip-component", never, {}, {}, never, never, true, never>;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
declare class MatTooltipModule {
|
|
301
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTooltipModule, never>;
|
|
302
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTooltipModule, never, [typeof i1.A11yModule, typeof i2.OverlayModule, typeof MatTooltip, typeof TooltipComponent], [typeof MatTooltip, typeof TooltipComponent, typeof i2$1.BidiModule, typeof i1$1.CdkScrollableModule]>;
|
|
303
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatTooltipModule>;
|
|
304
|
+
}
|
|
20
305
|
|
|
21
|
-
export {
|
|
306
|
+
export { MAT_TOOLTIP_DEFAULT_OPTIONS, MAT_TOOLTIP_SCROLL_STRATEGY, MatTooltip, MatTooltipModule, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipComponent, getMatTooltipInvalidPositionError };
|
|
307
|
+
export type { MatTooltipDefaultOptions, TooltipPosition, TooltipTouchGestures, TooltipVisibility };
|
package/tree/index.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import * as i1 from '@angular/cdk/tree';
|
|
|
2
2
|
import { CdkTreeNode, CdkTreeNodeDef, CdkNestedTreeNode, CdkTreeNodePadding, CdkTreeNodeOutlet, CdkTree, CdkTreeNodeToggle, TreeControl, FlatTreeControl } from '@angular/cdk/tree';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { OnInit, OnDestroy, AfterContentInit, ViewContainerRef } from '@angular/core';
|
|
5
|
-
import
|
|
5
|
+
import * as i2 from '@angular/cdk/bidi';
|
|
6
6
|
import { DataSource, CollectionViewer } from '@angular/cdk/collections';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
|
-
import '@angular/cdk/bidi';
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* Wrapper for the CdkTree node with Material design styles.
|
|
@@ -128,7 +127,7 @@ declare class MatTreeNodeToggle<T, K = T> extends CdkTreeNodeToggle<T, K> {
|
|
|
128
127
|
|
|
129
128
|
declare class MatTreeModule {
|
|
130
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatTreeModule, never>;
|
|
131
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTreeModule, never, [typeof i1.CdkTreeModule, typeof
|
|
130
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTreeModule, never, [typeof i1.CdkTreeModule, typeof MatNestedTreeNode, typeof MatTreeNodeDef, typeof MatTreeNodePadding, typeof MatTreeNodeToggle, typeof MatTree, typeof MatTreeNode, typeof MatTreeNodeOutlet], [typeof i2.BidiModule, typeof MatNestedTreeNode, typeof MatTreeNodeDef, typeof MatTreeNodePadding, typeof MatTreeNodeToggle, typeof MatTree, typeof MatTreeNode, typeof MatTreeNodeOutlet]>;
|
|
132
131
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatTreeModule>;
|
|
133
132
|
}
|
|
134
133
|
|