@angular/material 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/autocomplete/index.d.ts +83 -124
- package/autocomplete/testing/index.d.ts +5 -11
- package/badge/index.d.ts +17 -30
- package/badge/testing/index.d.ts +5 -8
- package/bottom-sheet/index.d.ts +88 -103
- package/bottom-sheet/testing/index.d.ts +4 -6
- package/button/index.d.ts +109 -148
- package/button/testing/index.d.ts +6 -10
- package/button-toggle/index.d.ts +116 -142
- package/button-toggle/testing/index.d.ts +34 -36
- package/card/index.d.ts +79 -117
- package/card/testing/index.d.ts +11 -15
- package/checkbox/index.d.ts +55 -85
- package/checkbox/testing/index.d.ts +6 -10
- package/chips/index.d.ts +592 -690
- package/chips/testing/index.d.ts +78 -93
- package/core/index.d.ts +565 -669
- package/core/testing/index.d.ts +28 -32
- package/datepicker/index.d.ts +1323 -1479
- package/datepicker/testing/index.d.ts +109 -119
- package/dialog/index.d.ts +194 -246
- package/dialog/testing/index.d.ts +17 -26
- package/divider/index.d.ts +4 -10
- package/divider/testing/index.d.ts +4 -6
- package/expansion/index.d.ts +137 -189
- package/expansion/testing/index.d.ts +25 -31
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +26 -17
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +3 -7
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +0 -4
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +5 -4
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +6 -6
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +0 -4
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +5 -5
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +0 -4
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +7 -7
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +42 -18
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +4 -8
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +0 -4
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +2 -6
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +0 -2
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field.mjs +0 -4
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +0 -4
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +0 -4
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +15 -7
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input.mjs +0 -4
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list/testing.mjs +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +2 -6
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +15 -7
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +10 -6
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs +0 -4
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +5 -5
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs +0 -4
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +5 -5
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +5 -4
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +14 -10
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +9 -9
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +0 -4
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +0 -4
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +5 -5
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +10 -6
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +10 -6
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +0 -4
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +8 -15
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +1 -5
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +0 -4
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +15 -7
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +0 -4
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +251 -318
- package/form-field/testing/control/index.d.ts +2 -2
- package/form-field/testing/index.d.ts +14 -21
- package/grid-list/index.d.ts +124 -150
- package/grid-list/testing/index.d.ts +39 -44
- package/icon/index.d.ts +87 -108
- package/icon/testing/index.d.ts +38 -43
- package/index.d.ts +2 -3
- package/input/index.d.ts +27 -61
- package/input/testing/index.d.ts +16 -19
- package/list/index.d.ts +158 -241
- package/list/testing/index.d.ts +157 -179
- package/menu/index.d.ts +180 -231
- package/menu/testing/index.d.ts +17 -23
- package/package.json +2 -2
- package/paginator/index.d.ts +84 -97
- package/paginator/testing/index.d.ts +10 -14
- package/progress-bar/index.d.ts +38 -58
- package/progress-bar/testing/index.d.ts +7 -10
- package/progress-spinner/index.d.ts +38 -51
- package/progress-spinner/testing/index.d.ts +7 -10
- package/radio/index.d.ts +145 -168
- package/radio/testing/index.d.ts +61 -67
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/theme-color/index_bundled.js +2 -2
- package/schematics/ng-generate/theme-color/schema.json +10 -0
- package/schematics/ng-update/index_bundled.js +31 -31
- package/select/index.d.ts +77 -130
- package/select/testing/index.d.ts +10 -15
- package/sidenav/index.d.ts +47 -91
- package/sidenav/testing/index.d.ts +58 -63
- package/slide-toggle/index.d.ts +51 -84
- package/slide-toggle/testing/index.d.ts +17 -21
- package/slider/index.d.ts +277 -327
- package/slider/testing/index.d.ts +42 -47
- package/snack-bar/index.d.ts +147 -185
- package/snack-bar/testing/index.d.ts +7 -9
- package/sort/index.d.ts +94 -124
- package/sort/testing/index.d.ts +21 -24
- package/stepper/index.d.ts +108 -165
- package/stepper/testing/index.d.ts +43 -52
- package/table/index.d.ts +87 -153
- package/table/testing/index.d.ts +64 -78
- package/tabs/index.d.ts +306 -382
- package/tabs/testing/index.d.ts +67 -76
- package/timepicker/index.d.ts +123 -159
- package/timepicker/testing/index.d.ts +20 -26
- package/toolbar/index.d.ts +13 -25
- package/toolbar/testing/index.d.ts +13 -16
- package/tooltip/index.d.ts +88 -117
- package/tooltip/testing/index.d.ts +7 -10
- package/tree/index.d.ts +116 -163
- package/tree/testing/index.d.ts +52 -58
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
3
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
4
2
|
import { MatButtonToggleAppearance } from '@angular/material/button-toggle';
|
|
5
3
|
|
|
6
|
-
/** Criteria that can be used to filter a list of `MatButtonToggleGroupHarness` instances. */
|
|
7
|
-
export declare interface ButtonToggleGroupHarnessFilters extends BaseHarnessFilters {
|
|
8
|
-
/** Only find instances which match the given disabled state. */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
4
|
/** Criteria that can be used to filter a list of `MatButtonToggleHarness` instances. */
|
|
13
|
-
|
|
5
|
+
interface ButtonToggleHarnessFilters extends BaseHarnessFilters {
|
|
14
6
|
/** Only find instances whose text matches the given value. */
|
|
15
7
|
text?: string | RegExp;
|
|
16
8
|
/** Only find instances whose name matches the given value. */
|
|
@@ -22,31 +14,7 @@ export declare interface ButtonToggleHarnessFilters extends BaseHarnessFilters {
|
|
|
22
14
|
}
|
|
23
15
|
|
|
24
16
|
/** Harness for interacting with a standard mat-button-toggle in tests. */
|
|
25
|
-
|
|
26
|
-
/** The selector for the host element of a `MatButton` instance. */
|
|
27
|
-
static hostSelector: string;
|
|
28
|
-
/**
|
|
29
|
-
* Gets a `HarnessPredicate` that can be used to search for a `MatButtonToggleGroupHarness`
|
|
30
|
-
* that meets certain criteria.
|
|
31
|
-
* @param options Options for filtering which button toggle instances are considered a match.
|
|
32
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
33
|
-
*/
|
|
34
|
-
static with(options?: ButtonToggleGroupHarnessFilters): HarnessPredicate<MatButtonToggleGroupHarness>;
|
|
35
|
-
/**
|
|
36
|
-
* Gets the button toggles that are inside the group.
|
|
37
|
-
* @param filter Optionally filters which toggles are included.
|
|
38
|
-
*/
|
|
39
|
-
getToggles(filter?: ButtonToggleHarnessFilters): Promise<MatButtonToggleHarness[]>;
|
|
40
|
-
/** Gets whether the button toggle group is disabled. */
|
|
41
|
-
isDisabled(): Promise<boolean>;
|
|
42
|
-
/** Gets whether the button toggle group is laid out vertically. */
|
|
43
|
-
isVertical(): Promise<boolean>;
|
|
44
|
-
/** Gets the appearance that the group is using. */
|
|
45
|
-
getAppearance(): Promise<MatButtonToggleAppearance>;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** Harness for interacting with a standard mat-button-toggle in tests. */
|
|
49
|
-
export declare class MatButtonToggleHarness extends ComponentHarness {
|
|
17
|
+
declare class MatButtonToggleHarness extends ComponentHarness {
|
|
50
18
|
/** The selector for the host element of a `MatButton` instance. */
|
|
51
19
|
static hostSelector: string;
|
|
52
20
|
private _label;
|
|
@@ -92,4 +60,34 @@ export declare class MatButtonToggleHarness extends ComponentHarness {
|
|
|
92
60
|
uncheck(): Promise<void>;
|
|
93
61
|
}
|
|
94
62
|
|
|
95
|
-
|
|
63
|
+
/** Criteria that can be used to filter a list of `MatButtonToggleGroupHarness` instances. */
|
|
64
|
+
interface ButtonToggleGroupHarnessFilters extends BaseHarnessFilters {
|
|
65
|
+
/** Only find instances which match the given disabled state. */
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** Harness for interacting with a standard mat-button-toggle in tests. */
|
|
70
|
+
declare class MatButtonToggleGroupHarness extends ComponentHarness {
|
|
71
|
+
/** The selector for the host element of a `MatButton` instance. */
|
|
72
|
+
static hostSelector: string;
|
|
73
|
+
/**
|
|
74
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatButtonToggleGroupHarness`
|
|
75
|
+
* that meets certain criteria.
|
|
76
|
+
* @param options Options for filtering which button toggle instances are considered a match.
|
|
77
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
78
|
+
*/
|
|
79
|
+
static with(options?: ButtonToggleGroupHarnessFilters): HarnessPredicate<MatButtonToggleGroupHarness>;
|
|
80
|
+
/**
|
|
81
|
+
* Gets the button toggles that are inside the group.
|
|
82
|
+
* @param filter Optionally filters which toggles are included.
|
|
83
|
+
*/
|
|
84
|
+
getToggles(filter?: ButtonToggleHarnessFilters): Promise<MatButtonToggleHarness[]>;
|
|
85
|
+
/** Gets whether the button toggle group is disabled. */
|
|
86
|
+
isDisabled(): Promise<boolean>;
|
|
87
|
+
/** Gets whether the button toggle group is laid out vertically. */
|
|
88
|
+
isVertical(): Promise<boolean>;
|
|
89
|
+
/** Gets the appearance that the group is using. */
|
|
90
|
+
getAppearance(): Promise<MatButtonToggleAppearance>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { type ButtonToggleGroupHarnessFilters, type ButtonToggleHarnessFilters, MatButtonToggleGroupHarness, MatButtonToggleHarness };
|
package/card/index.d.ts
CHANGED
|
@@ -1,81 +1,46 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import * as i1 from '@angular/material/core';
|
|
3
2
|
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/material/core';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
MatCard,
|
|
11
|
-
MatCardTitle,
|
|
12
|
-
MatCardTitleGroup,
|
|
13
|
-
MatCardContent,
|
|
14
|
-
MatCardSubtitle,
|
|
15
|
-
MatCardActions,
|
|
16
|
-
MatCardHeader,
|
|
17
|
-
MatCardFooter,
|
|
18
|
-
MatCardImage,
|
|
19
|
-
MatCardSmImage,
|
|
20
|
-
MatCardMdImage,
|
|
21
|
-
MatCardLgImage,
|
|
22
|
-
MatCardXlImage,
|
|
23
|
-
MatCardAvatar
|
|
24
|
-
}
|
|
5
|
+
type MatCardAppearance = 'outlined' | 'raised';
|
|
6
|
+
/** Object that can be used to configure the default options for the card module. */
|
|
7
|
+
interface MatCardConfig {
|
|
8
|
+
/** Default appearance for cards. */
|
|
9
|
+
appearance?: MatCardAppearance;
|
|
25
10
|
}
|
|
26
|
-
|
|
27
11
|
/** Injection token that can be used to provide the default options the card module. */
|
|
28
|
-
|
|
29
|
-
|
|
12
|
+
declare const MAT_CARD_CONFIG: InjectionToken<MatCardConfig>;
|
|
30
13
|
/**
|
|
31
14
|
* Material Design card component. Cards contain content and actions about a single subject.
|
|
32
15
|
* See https://material.io/design/components/cards.html
|
|
33
16
|
*
|
|
34
17
|
* MatCard provides no behaviors, instead serving as a purely visual treatment.
|
|
35
18
|
*/
|
|
36
|
-
|
|
19
|
+
declare class MatCard {
|
|
37
20
|
appearance: MatCardAppearance;
|
|
38
21
|
constructor(...args: unknown[]);
|
|
39
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCard, never>;
|
|
40
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatCard, "mat-card", ["matCard"], { "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
41
24
|
}
|
|
42
|
-
|
|
43
25
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* `<mat-card-content>`; any custom action block element may be used in its place.
|
|
26
|
+
* Title of a card, intended for use within `<mat-card>`. This component is an optional
|
|
27
|
+
* convenience for one variety of card title; any custom title element may be used in its place.
|
|
47
28
|
*
|
|
48
|
-
*
|
|
29
|
+
* MatCardTitle provides no behaviors, instead serving as a purely visual treatment.
|
|
49
30
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardActions, never>;
|
|
54
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardActions, "mat-card-actions", ["matCardActions"], { "align": { "alias": "align"; "required": false; }; }, {}, never, never, true, never>;
|
|
31
|
+
declare class MatCardTitle {
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardTitle, never>;
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardTitle, "mat-card-title, [mat-card-title], [matCardTitle]", never, {}, {}, never, never, true, never>;
|
|
55
34
|
}
|
|
56
|
-
|
|
57
|
-
export declare type MatCardAppearance = 'outlined' | 'raised';
|
|
58
|
-
|
|
59
35
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* This component is an optional convenience for use with other convenience elements, such as
|
|
64
|
-
* `<mat-card-title>`; any custom media element may be used in its place.
|
|
65
|
-
*
|
|
66
|
-
* MatCardAvatar provides no behaviors, instead serving as a purely visual treatment.
|
|
36
|
+
* Container intended to be used within the `<mat-card>` component. Can contain exactly one
|
|
37
|
+
* `<mat-card-title>`, one `<mat-card-subtitle>` and one content image of any size
|
|
38
|
+
* (e.g. `<img matCardLgImage>`).
|
|
67
39
|
*/
|
|
68
|
-
|
|
69
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
70
|
-
static
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/** Object that can be used to configure the default options for the card module. */
|
|
74
|
-
export declare interface MatCardConfig {
|
|
75
|
-
/** Default appearance for cards. */
|
|
76
|
-
appearance?: MatCardAppearance;
|
|
40
|
+
declare class MatCardTitleGroup {
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardTitleGroup, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatCardTitleGroup, "mat-card-title-group", never, {}, {}, never, ["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]", "*"], true, never>;
|
|
77
43
|
}
|
|
78
|
-
|
|
79
44
|
/**
|
|
80
45
|
* Content of a card, intended for use within `<mat-card>`. This component is an optional
|
|
81
46
|
* convenience for use with other convenience elements, such as `<mat-card-title>`; any custom
|
|
@@ -83,23 +48,34 @@ export declare interface MatCardConfig {
|
|
|
83
48
|
*
|
|
84
49
|
* MatCardContent provides no behaviors, instead serving as a purely visual treatment.
|
|
85
50
|
*/
|
|
86
|
-
|
|
51
|
+
declare class MatCardContent {
|
|
87
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardContent, never>;
|
|
88
53
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardContent, "mat-card-content", never, {}, {}, never, never, true, never>;
|
|
89
54
|
}
|
|
90
|
-
|
|
91
55
|
/**
|
|
92
|
-
*
|
|
56
|
+
* Sub-title of a card, intended for use within `<mat-card>` beneath a `<mat-card-title>`. This
|
|
57
|
+
* component is an optional convenience for use with other convenience elements, such as
|
|
58
|
+
* `<mat-card-title>`.
|
|
59
|
+
*
|
|
60
|
+
* MatCardSubtitle provides no behaviors, instead serving as a purely visual treatment.
|
|
61
|
+
*/
|
|
62
|
+
declare class MatCardSubtitle {
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardSubtitle, never>;
|
|
64
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSubtitle, "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]", never, {}, {}, never, never, true, never>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Bottom area of a card that contains action buttons, intended for use within `<mat-card>`.
|
|
93
68
|
* This component is an optional convenience for use with other convenience elements, such as
|
|
94
|
-
* `<mat-card-content>`; any custom
|
|
69
|
+
* `<mat-card-content>`; any custom action block element may be used in its place.
|
|
95
70
|
*
|
|
96
|
-
*
|
|
71
|
+
* MatCardActions provides no behaviors, instead serving as a purely visual treatment.
|
|
97
72
|
*/
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
73
|
+
declare class MatCardActions {
|
|
74
|
+
/** Position of the actions inside the card. */
|
|
75
|
+
align: 'start' | 'end';
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardActions, never>;
|
|
77
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardActions, "mat-card-actions", ["matCardActions"], { "align": { "alias": "align"; "required": false; }; }, {}, never, never, true, never>;
|
|
101
78
|
}
|
|
102
|
-
|
|
103
79
|
/**
|
|
104
80
|
* Header region of a card, intended for use within `<mat-card>`. This header captures
|
|
105
81
|
* a card title, subtitle, and avatar. This component is an optional convenience for use with
|
|
@@ -108,11 +84,21 @@ export declare class MatCardFooter {
|
|
|
108
84
|
*
|
|
109
85
|
* MatCardHeader provides no behaviors, instead serving as a purely visual treatment.
|
|
110
86
|
*/
|
|
111
|
-
|
|
87
|
+
declare class MatCardHeader {
|
|
112
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardHeader, never>;
|
|
113
89
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatCardHeader, "mat-card-header", never, {}, {}, never, ["[mat-card-avatar], [matCardAvatar]", "mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]", "*"], true, never>;
|
|
114
90
|
}
|
|
115
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Footer area a card, intended for use within `<mat-card>`.
|
|
93
|
+
* This component is an optional convenience for use with other convenience elements, such as
|
|
94
|
+
* `<mat-card-content>`; any custom footer block element may be used in its place.
|
|
95
|
+
*
|
|
96
|
+
* MatCardFooter provides no behaviors, instead serving as a purely visual treatment.
|
|
97
|
+
*/
|
|
98
|
+
declare class MatCardFooter {
|
|
99
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardFooter, never>;
|
|
100
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardFooter, "mat-card-footer", never, {}, {}, never, never, true, never>;
|
|
101
|
+
}
|
|
116
102
|
/**
|
|
117
103
|
* Primary image content for a card, intended for use within `<mat-card>`. Can be applied to
|
|
118
104
|
* any media element, such as `<img>` or `<picture>`.
|
|
@@ -122,72 +108,48 @@ export declare class MatCardHeader {
|
|
|
122
108
|
*
|
|
123
109
|
* MatCardImage provides no behaviors, instead serving as a purely visual treatment.
|
|
124
110
|
*/
|
|
125
|
-
|
|
111
|
+
declare class MatCardImage {
|
|
126
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardImage, never>;
|
|
127
113
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardImage, "[mat-card-image], [matCardImage]", never, {}, {}, never, never, true, never>;
|
|
128
114
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
static
|
|
133
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardLgImage, "[mat-card-lg-image], [matCardImageLarge]", never, {}, {}, never, never, true, never>;
|
|
115
|
+
/** Same as `MatCardImage`, but small. */
|
|
116
|
+
declare class MatCardSmImage {
|
|
117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardSmImage, never>;
|
|
118
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSmImage, "[mat-card-sm-image], [matCardImageSmall]", never, {}, {}, never, never, true, never>;
|
|
134
119
|
}
|
|
135
|
-
|
|
136
120
|
/** Same as `MatCardImage`, but medium. */
|
|
137
|
-
|
|
121
|
+
declare class MatCardMdImage {
|
|
138
122
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardMdImage, never>;
|
|
139
123
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardMdImage, "[mat-card-md-image], [matCardImageMedium]", never, {}, {}, never, never, true, never>;
|
|
140
124
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
144
|
-
static
|
|
145
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatCardModule>;
|
|
125
|
+
/** Same as `MatCardImage`, but large. */
|
|
126
|
+
declare class MatCardLgImage {
|
|
127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardLgImage, never>;
|
|
128
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardLgImage, "[mat-card-lg-image], [matCardImageLarge]", never, {}, {}, never, never, true, never>;
|
|
146
129
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
static
|
|
151
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSmImage, "[mat-card-sm-image], [matCardImageSmall]", never, {}, {}, never, never, true, never>;
|
|
130
|
+
/** Same as `MatCardImage`, but extra-large. */
|
|
131
|
+
declare class MatCardXlImage {
|
|
132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardXlImage, never>;
|
|
133
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardXlImage, "[mat-card-xl-image], [matCardImageXLarge]", never, {}, {}, never, never, true, never>;
|
|
152
134
|
}
|
|
153
|
-
|
|
154
135
|
/**
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
* `<mat-card-title>`.
|
|
136
|
+
* Avatar image content for a card, intended for use within `<mat-card>`. Can be applied to
|
|
137
|
+
* any media element, such as `<img>` or `<picture>`.
|
|
158
138
|
*
|
|
159
|
-
*
|
|
160
|
-
|
|
161
|
-
export declare class MatCardSubtitle {
|
|
162
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardSubtitle, never>;
|
|
163
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardSubtitle, "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]", never, {}, {}, never, never, true, never>;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Title of a card, intended for use within `<mat-card>`. This component is an optional
|
|
168
|
-
* convenience for one variety of card title; any custom title element may be used in its place.
|
|
139
|
+
* This component is an optional convenience for use with other convenience elements, such as
|
|
140
|
+
* `<mat-card-title>`; any custom media element may be used in its place.
|
|
169
141
|
*
|
|
170
|
-
*
|
|
171
|
-
*/
|
|
172
|
-
export declare class MatCardTitle {
|
|
173
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardTitle, never>;
|
|
174
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardTitle, "mat-card-title, [mat-card-title], [matCardTitle]", never, {}, {}, never, never, true, never>;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Container intended to be used within the `<mat-card>` component. Can contain exactly one
|
|
179
|
-
* `<mat-card-title>`, one `<mat-card-subtitle>` and one content image of any size
|
|
180
|
-
* (e.g. `<img matCardLgImage>`).
|
|
142
|
+
* MatCardAvatar provides no behaviors, instead serving as a purely visual treatment.
|
|
181
143
|
*/
|
|
182
|
-
|
|
183
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
184
|
-
static
|
|
144
|
+
declare class MatCardAvatar {
|
|
145
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardAvatar, never>;
|
|
146
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCardAvatar, "[mat-card-avatar], [matCardAvatar]", never, {}, {}, never, never, true, never>;
|
|
185
147
|
}
|
|
186
148
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
static
|
|
190
|
-
static
|
|
149
|
+
declare class MatCardModule {
|
|
150
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCardModule, never>;
|
|
151
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatCardModule, never, [typeof i1.MatCommonModule, typeof MatCard, typeof MatCardActions, typeof MatCardAvatar, typeof MatCardContent, typeof MatCardFooter, typeof MatCardHeader, typeof MatCardImage, typeof MatCardLgImage, typeof MatCardMdImage, typeof MatCardSmImage, typeof MatCardSubtitle, typeof MatCardTitle, typeof MatCardTitleGroup, typeof MatCardXlImage], [typeof MatCard, typeof MatCardActions, typeof MatCardAvatar, typeof MatCardContent, typeof MatCardFooter, typeof MatCardHeader, typeof MatCardImage, typeof MatCardLgImage, typeof MatCardMdImage, typeof MatCardSmImage, typeof MatCardSubtitle, typeof MatCardTitle, typeof MatCardTitleGroup, typeof MatCardXlImage, typeof i1.MatCommonModule]>;
|
|
152
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatCardModule>;
|
|
191
153
|
}
|
|
192
154
|
|
|
193
|
-
export { }
|
|
155
|
+
export { MAT_CARD_CONFIG, MatCard, MatCardActions, type MatCardAppearance, MatCardAvatar, type MatCardConfig, MatCardContent, MatCardFooter, MatCardHeader, MatCardImage, MatCardLgImage, MatCardMdImage, MatCardModule, MatCardSmImage, MatCardSubtitle, MatCardTitle, MatCardTitleGroup, MatCardXlImage };
|
package/card/testing/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import { ComponentHarnessConstructor } from '@angular/cdk/testing';
|
|
3
|
-
import { ContentContainerComponentHarness } from '@angular/cdk/testing';
|
|
4
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
1
|
+
import { BaseHarnessFilters, ContentContainerComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
5
2
|
|
|
6
3
|
/** A set of criteria that can be used to filter a list of `MatCardHarness` instances. */
|
|
7
|
-
|
|
4
|
+
interface CardHarnessFilters extends BaseHarnessFilters {
|
|
8
5
|
/** Only find instances whose text matches the given value. */
|
|
9
6
|
text?: string | RegExp;
|
|
10
7
|
/** Only find instances whose title matches the given value. */
|
|
@@ -13,8 +10,15 @@ export declare interface CardHarnessFilters extends BaseHarnessFilters {
|
|
|
13
10
|
subtitle?: string | RegExp;
|
|
14
11
|
}
|
|
15
12
|
|
|
13
|
+
/** Selectors for different sections of the mat-card that can container user content. */
|
|
14
|
+
declare enum MatCardSection {
|
|
15
|
+
HEADER = ".mat-mdc-card-header",
|
|
16
|
+
CONTENT = ".mat-mdc-card-content",
|
|
17
|
+
ACTIONS = ".mat-mdc-card-actions",
|
|
18
|
+
FOOTER = ".mat-mdc-card-footer"
|
|
19
|
+
}
|
|
16
20
|
/** Harness for interacting with a mat-card in tests. */
|
|
17
|
-
|
|
21
|
+
declare class MatCardHarness extends ContentContainerComponentHarness<MatCardSection> {
|
|
18
22
|
/** The selector for the host element of a `MatCard` instance. */
|
|
19
23
|
static hostSelector: string;
|
|
20
24
|
/**
|
|
@@ -33,12 +37,4 @@ export declare class MatCardHarness extends ContentContainerComponentHarness<Mat
|
|
|
33
37
|
getSubtitleText(): Promise<string>;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
|
|
37
|
-
export declare enum MatCardSection {
|
|
38
|
-
HEADER = ".mat-mdc-card-header",
|
|
39
|
-
CONTENT = ".mat-mdc-card-content",
|
|
40
|
-
ACTIONS = ".mat-mdc-card-actions",
|
|
41
|
-
FOOTER = ".mat-mdc-card-footer"
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { }
|
|
40
|
+
export { type CardHarnessFilters, MatCardHarness, MatCardSection };
|
package/checkbox/index.d.ts
CHANGED
|
@@ -1,55 +1,37 @@
|
|
|
1
|
-
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
import { AfterViewInit } from '@angular/core';
|
|
3
|
-
import { CheckboxRequiredValidator } from '@angular/forms';
|
|
4
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
7
1
|
import { FocusableOption } from '@angular/cdk/a11y';
|
|
8
2
|
import * as i0 from '@angular/core';
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import { Provider } from '@angular/core';
|
|
13
|
-
import { SimpleChanges } from '@angular/core';
|
|
3
|
+
import { AfterViewInit, OnChanges, ElementRef, EventEmitter, SimpleChanges, InjectionToken, Provider } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, CheckboxRequiredValidator } from '@angular/forms';
|
|
5
|
+
import * as i1 from '@angular/material/core';
|
|
14
6
|
import { ThemePalette } from '@angular/material/core';
|
|
15
|
-
import { ValidationErrors } from '@angular/forms';
|
|
16
|
-
import { Validator } from '@angular/forms';
|
|
17
|
-
|
|
18
|
-
declare namespace i1 {
|
|
19
|
-
export {
|
|
20
|
-
MAT_CHECKBOX_REQUIRED_VALIDATOR,
|
|
21
|
-
MatCheckboxRequiredValidator
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare namespace i2 {
|
|
26
|
-
export {
|
|
27
|
-
TransitionCheckState,
|
|
28
|
-
MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR,
|
|
29
|
-
MatCheckboxChange,
|
|
30
|
-
MatCheckbox
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
7
|
|
|
34
8
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @
|
|
9
|
+
* Represents the different states that require custom transitions between them.
|
|
10
|
+
* @docs-private
|
|
37
11
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
|
|
12
|
+
declare enum TransitionCheckState {
|
|
13
|
+
/** The initial state of the component before any user interaction. */
|
|
14
|
+
Init = 0,
|
|
15
|
+
/** The state representing the component when it's becoming checked. */
|
|
16
|
+
Checked = 1,
|
|
17
|
+
/** The state representing the component when it's becoming unchecked. */
|
|
18
|
+
Unchecked = 2,
|
|
19
|
+
/** The state representing the component when it's becoming indeterminate. */
|
|
20
|
+
Indeterminate = 3
|
|
21
|
+
}
|
|
46
22
|
/**
|
|
47
|
-
* @deprecated
|
|
23
|
+
* @deprecated Will stop being exported.
|
|
48
24
|
* @breaking-change 19.0.0
|
|
49
25
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
26
|
+
declare const MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR: any;
|
|
27
|
+
/** Change event object emitted by checkbox. */
|
|
28
|
+
declare class MatCheckboxChange {
|
|
29
|
+
/** The source checkbox of the event. */
|
|
30
|
+
source: MatCheckbox;
|
|
31
|
+
/** The new `checked` value of the checkbox. */
|
|
32
|
+
checked: boolean;
|
|
33
|
+
}
|
|
34
|
+
declare class MatCheckbox implements AfterViewInit, OnChanges, ControlValueAccessor, Validator, FocusableOption {
|
|
53
35
|
_elementRef: ElementRef<HTMLElement>;
|
|
54
36
|
private _changeDetectorRef;
|
|
55
37
|
private _ngZone;
|
|
@@ -203,25 +185,8 @@ export declare class MatCheckbox implements AfterViewInit, OnChanges, ControlVal
|
|
|
203
185
|
static ngAcceptInputType_indeterminate: unknown;
|
|
204
186
|
}
|
|
205
187
|
|
|
206
|
-
/** Change event object emitted by checkbox. */
|
|
207
|
-
export declare class MatCheckboxChange {
|
|
208
|
-
/** The source checkbox of the event. */
|
|
209
|
-
source: MatCheckbox;
|
|
210
|
-
/** The new `checked` value of the checkbox. */
|
|
211
|
-
checked: boolean;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Checkbox click action when user click on input element.
|
|
216
|
-
* noop: Do not toggle checked or indeterminate.
|
|
217
|
-
* check: Only toggle checked status, ignore indeterminate.
|
|
218
|
-
* check-indeterminate: Toggle checked status, set indeterminate to false. Default behavior.
|
|
219
|
-
* undefined: Same as `check-indeterminate`.
|
|
220
|
-
*/
|
|
221
|
-
export declare type MatCheckboxClickAction = 'noop' | 'check' | 'check-indeterminate' | undefined;
|
|
222
|
-
|
|
223
188
|
/** Default `mat-checkbox` options that can be overridden. */
|
|
224
|
-
|
|
189
|
+
interface MatCheckboxDefaultOptions {
|
|
225
190
|
/**
|
|
226
191
|
* Default theme color of the checkbox. This API is supported in M2 themes
|
|
227
192
|
* only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/checkbox/styling.
|
|
@@ -235,13 +200,28 @@ export declare interface MatCheckboxDefaultOptions {
|
|
|
235
200
|
/** Whether disabled checkboxes should be interactive. */
|
|
236
201
|
disabledInteractive?: boolean;
|
|
237
202
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
203
|
+
/** Injection token to be used to override the default options for `mat-checkbox`. */
|
|
204
|
+
declare const MAT_CHECKBOX_DEFAULT_OPTIONS: InjectionToken<MatCheckboxDefaultOptions>;
|
|
205
|
+
/**
|
|
206
|
+
* @docs-private
|
|
207
|
+
* @deprecated No longer used, will be removed.
|
|
208
|
+
* @breaking-change 21.0.0
|
|
209
|
+
*/
|
|
210
|
+
declare function MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY(): MatCheckboxDefaultOptions;
|
|
211
|
+
/**
|
|
212
|
+
* Checkbox click action when user click on input element.
|
|
213
|
+
* noop: Do not toggle checked or indeterminate.
|
|
214
|
+
* check: Only toggle checked status, ignore indeterminate.
|
|
215
|
+
* check-indeterminate: Toggle checked status, set indeterminate to false. Default behavior.
|
|
216
|
+
* undefined: Same as `check-indeterminate`.
|
|
217
|
+
*/
|
|
218
|
+
type MatCheckboxClickAction = 'noop' | 'check' | 'check-indeterminate' | undefined;
|
|
244
219
|
|
|
220
|
+
/**
|
|
221
|
+
* @deprecated No longer used, `MatCheckbox` implements required validation directly.
|
|
222
|
+
* @breaking-change 19.0.0
|
|
223
|
+
*/
|
|
224
|
+
declare const MAT_CHECKBOX_REQUIRED_VALIDATOR: Provider;
|
|
245
225
|
/**
|
|
246
226
|
* Validator for Material checkbox's required attribute in template-driven checkbox.
|
|
247
227
|
* Current CheckboxRequiredValidator only work with `input type=checkbox` and does not
|
|
@@ -250,7 +230,7 @@ export declare class MatCheckboxModule {
|
|
|
250
230
|
* @deprecated No longer used, `MatCheckbox` implements required validation directly.
|
|
251
231
|
* @breaking-change 19.0.0
|
|
252
232
|
*/
|
|
253
|
-
|
|
233
|
+
declare class MatCheckboxRequiredValidator extends CheckboxRequiredValidator {
|
|
254
234
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxRequiredValidator, never>;
|
|
255
235
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatCheckboxRequiredValidator, "mat-checkbox[required][formControlName], mat-checkbox[required][formControl], mat-checkbox[required][ngModel]", never, {}, {}, never, never, true, never>;
|
|
256
236
|
}
|
|
@@ -259,25 +239,15 @@ export declare class MatCheckboxRequiredValidator extends CheckboxRequiredValida
|
|
|
259
239
|
* @deprecated No longer used, `MatCheckbox` implements required validation directly.
|
|
260
240
|
* @breaking-change 19.0.0
|
|
261
241
|
*/
|
|
262
|
-
|
|
242
|
+
declare class _MatCheckboxRequiredValidatorModule {
|
|
263
243
|
static ɵfac: i0.ɵɵFactoryDeclaration<_MatCheckboxRequiredValidatorModule, never>;
|
|
264
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<_MatCheckboxRequiredValidatorModule, never, [typeof
|
|
244
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<_MatCheckboxRequiredValidatorModule, never, [typeof MatCheckboxRequiredValidator], [typeof MatCheckboxRequiredValidator]>;
|
|
265
245
|
static ɵinj: i0.ɵɵInjectorDeclaration<_MatCheckboxRequiredValidatorModule>;
|
|
266
246
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
*/
|
|
272
|
-
export declare enum TransitionCheckState {
|
|
273
|
-
/** The initial state of the component before any user interaction. */
|
|
274
|
-
Init = 0,
|
|
275
|
-
/** The state representing the component when it's becoming checked. */
|
|
276
|
-
Checked = 1,
|
|
277
|
-
/** The state representing the component when it's becoming unchecked. */
|
|
278
|
-
Unchecked = 2,
|
|
279
|
-
/** The state representing the component when it's becoming indeterminate. */
|
|
280
|
-
Indeterminate = 3
|
|
247
|
+
declare class MatCheckboxModule {
|
|
248
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxModule, never>;
|
|
249
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatCheckboxModule, never, [typeof MatCheckbox, typeof i1.MatCommonModule], [typeof MatCheckbox, typeof i1.MatCommonModule]>;
|
|
250
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatCheckboxModule>;
|
|
281
251
|
}
|
|
282
252
|
|
|
283
|
-
export { }
|
|
253
|
+
export { MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR, MAT_CHECKBOX_DEFAULT_OPTIONS, MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY, MAT_CHECKBOX_REQUIRED_VALIDATOR, MatCheckbox, MatCheckboxChange, type MatCheckboxClickAction, type MatCheckboxDefaultOptions, MatCheckboxModule, MatCheckboxRequiredValidator, TransitionCheckState, _MatCheckboxRequiredValidatorModule };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
3
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
4
|
-
import { ComponentHarnessConstructor } from '@angular/cdk/testing';
|
|
5
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
6
|
-
import { TestElement } from '@angular/cdk/testing';
|
|
1
|
+
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
7
3
|
|
|
8
4
|
/** A set of criteria that can be used to filter a list of `MatCheckboxHarness` instances. */
|
|
9
|
-
|
|
5
|
+
interface CheckboxHarnessFilters extends BaseHarnessFilters {
|
|
10
6
|
/** Only find instances whose label matches the given value. */
|
|
11
7
|
label?: string | RegExp;
|
|
12
8
|
/** Only find instances whose name attribute is the given value. */
|
|
@@ -18,9 +14,9 @@ export declare interface CheckboxHarnessFilters extends BaseHarnessFilters {
|
|
|
18
14
|
}
|
|
19
15
|
|
|
20
16
|
/** Harness for interacting with a mat-checkbox in tests. */
|
|
21
|
-
|
|
17
|
+
declare class MatCheckboxHarness extends ComponentHarness {
|
|
22
18
|
static hostSelector: string;
|
|
23
|
-
_input: AsyncFactoryFn<TestElement>;
|
|
19
|
+
_input: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement>;
|
|
24
20
|
private _label;
|
|
25
21
|
private _inputContainer;
|
|
26
22
|
/**
|
|
@@ -86,4 +82,4 @@ export declare class MatCheckboxHarness extends ComponentHarness {
|
|
|
86
82
|
uncheck(): Promise<void>;
|
|
87
83
|
}
|
|
88
84
|
|
|
89
|
-
export { }
|
|
85
|
+
export { type CheckboxHarnessFilters, MatCheckboxHarness };
|