@angular/material 19.2.1 → 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 -104
- 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 +39 -30
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +13 -17
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +11 -22
- 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 +15 -14
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +40 -40
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +46 -50
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +19 -19
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +41 -47
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +71 -71
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +124 -100
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +29 -33
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +7 -11
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +27 -31
- 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 +34 -38
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +22 -26
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +7 -11
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +25 -17
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input.mjs +7 -11
- 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 +51 -55
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +31 -23
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +20 -16
- 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 +12 -12
- 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 +12 -12
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +15 -14
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +24 -20
- 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 +31 -31
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +14 -18
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +16 -20
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +27 -27
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +24 -20
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +41 -37
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +55 -59
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +51 -58
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +15 -20
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +10 -14
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +25 -17
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -29
- 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 +159 -242
- 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/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +6 -9
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +6 -9
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +6 -9
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +6 -9
- package/schematics/ng-generate/theme-color/schema.json +10 -0
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +1 -1
- 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,43 +1,44 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import { ContentContainerComponentHarness } from '@angular/cdk/testing';
|
|
3
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
1
|
+
import { BaseHarnessFilters, HarnessPredicate, ContentContainerComponentHarness } from '@angular/cdk/testing';
|
|
4
2
|
|
|
3
|
+
/** A set of criteria that can be used to filter a list of `MatDrawerHarness` instances. */
|
|
4
|
+
interface DrawerHarnessFilters extends BaseHarnessFilters {
|
|
5
|
+
/** Only find instances whose side is the given value. */
|
|
6
|
+
position?: 'start' | 'end';
|
|
7
|
+
}
|
|
5
8
|
/** A set of criteria that can be used to filter a list of `MatDrawerContainerHarness` instances. */
|
|
6
|
-
|
|
9
|
+
interface DrawerContainerHarnessFilters extends BaseHarnessFilters {
|
|
7
10
|
}
|
|
8
|
-
|
|
9
11
|
/** A set of criteria that can be used to filter a list of `MatDrawerContentHarness` instances. */
|
|
10
|
-
|
|
12
|
+
interface DrawerContentHarnessFilters extends BaseHarnessFilters {
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Base class for the drawer harness functionality.
|
|
17
|
+
* @docs-private
|
|
18
|
+
*/
|
|
19
|
+
declare class MatDrawerHarnessBase extends ContentContainerComponentHarness<string> {
|
|
20
|
+
/** Whether the drawer is open. */
|
|
21
|
+
isOpen(): Promise<boolean>;
|
|
22
|
+
/** Gets the position of the drawer inside its container. */
|
|
23
|
+
getPosition(): Promise<'start' | 'end'>;
|
|
24
|
+
/** Gets the mode that the drawer is in. */
|
|
25
|
+
getMode(): Promise<'over' | 'push' | 'side'>;
|
|
17
26
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/** The selector for the host element of a `MatDrawerContainer` instance. */
|
|
27
|
+
/** Harness for interacting with a standard mat-drawer in tests. */
|
|
28
|
+
declare class MatDrawerHarness extends MatDrawerHarnessBase {
|
|
29
|
+
/** The selector for the host element of a `MatDrawer` instance. */
|
|
22
30
|
static hostSelector: string;
|
|
23
31
|
/**
|
|
24
|
-
* Gets a `HarnessPredicate` that can be used to search for a `
|
|
25
|
-
*
|
|
26
|
-
* @param options Options for filtering which
|
|
32
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatDrawerHarness` that meets
|
|
33
|
+
* certain criteria.
|
|
34
|
+
* @param options Options for filtering which drawer instances are considered a match.
|
|
27
35
|
* @return a `HarnessPredicate` configured with the given options.
|
|
28
36
|
*/
|
|
29
|
-
static with(options?:
|
|
30
|
-
/**
|
|
31
|
-
* Gets drawers that match particular criteria within the container.
|
|
32
|
-
* @param filter Optionally filters which chips are included.
|
|
33
|
-
*/
|
|
34
|
-
getDrawers(filter?: DrawerHarnessFilters): Promise<MatDrawerHarness[]>;
|
|
35
|
-
/** Gets the element that has the container's content. */
|
|
36
|
-
getContent(): Promise<MatDrawerContentHarness>;
|
|
37
|
+
static with(options?: DrawerHarnessFilters): HarnessPredicate<MatDrawerHarness>;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
/** Harness for interacting with a standard mat-drawer-content in tests. */
|
|
40
|
-
|
|
41
|
+
declare class MatDrawerContentHarness extends ContentContainerComponentHarness<string> {
|
|
41
42
|
/** The selector for the host element of a `MatDrawerContent` instance. */
|
|
42
43
|
static hostSelector: string;
|
|
43
44
|
/**
|
|
@@ -49,54 +50,28 @@ export declare class MatDrawerContentHarness extends ContentContainerComponentHa
|
|
|
49
50
|
static with(options?: DrawerContentHarnessFilters): HarnessPredicate<MatDrawerContentHarness>;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
/** Harness for interacting with a standard mat-drawer in tests. */
|
|
53
|
-
|
|
54
|
-
/** The selector for the host element of a `
|
|
55
|
-
static hostSelector: string;
|
|
56
|
-
/**
|
|
57
|
-
* Gets a `HarnessPredicate` that can be used to search for a `MatDrawerHarness` that meets
|
|
58
|
-
* certain criteria.
|
|
59
|
-
* @param options Options for filtering which drawer instances are considered a match.
|
|
60
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
61
|
-
*/
|
|
62
|
-
static with(options?: DrawerHarnessFilters): HarnessPredicate<MatDrawerHarness>;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Base class for the drawer harness functionality.
|
|
67
|
-
* @docs-private
|
|
68
|
-
*/
|
|
69
|
-
declare class MatDrawerHarnessBase extends ContentContainerComponentHarness<string> {
|
|
70
|
-
/** Whether the drawer is open. */
|
|
71
|
-
isOpen(): Promise<boolean>;
|
|
72
|
-
/** Gets the position of the drawer inside its container. */
|
|
73
|
-
getPosition(): Promise<'start' | 'end'>;
|
|
74
|
-
/** Gets the mode that the drawer is in. */
|
|
75
|
-
getMode(): Promise<'over' | 'push' | 'side'>;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/** Harness for interacting with a standard mat-sidenav-container in tests. */
|
|
79
|
-
export declare class MatSidenavContainerHarness extends ContentContainerComponentHarness<string> {
|
|
80
|
-
/** The selector for the host element of a `MatSidenavContainer` instance. */
|
|
53
|
+
/** Harness for interacting with a standard mat-drawer-container in tests. */
|
|
54
|
+
declare class MatDrawerContainerHarness extends ContentContainerComponentHarness<string> {
|
|
55
|
+
/** The selector for the host element of a `MatDrawerContainer` instance. */
|
|
81
56
|
static hostSelector: string;
|
|
82
57
|
/**
|
|
83
|
-
* Gets a `HarnessPredicate` that can be used to search for a `
|
|
58
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatDrawerContainerHarness` that
|
|
84
59
|
* meets certain criteria.
|
|
85
60
|
* @param options Options for filtering which container instances are considered a match.
|
|
86
61
|
* @return a `HarnessPredicate` configured with the given options.
|
|
87
62
|
*/
|
|
88
|
-
static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<
|
|
63
|
+
static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<MatDrawerContainerHarness>;
|
|
89
64
|
/**
|
|
90
|
-
* Gets
|
|
65
|
+
* Gets drawers that match particular criteria within the container.
|
|
91
66
|
* @param filter Optionally filters which chips are included.
|
|
92
67
|
*/
|
|
93
|
-
|
|
68
|
+
getDrawers(filter?: DrawerHarnessFilters): Promise<MatDrawerHarness[]>;
|
|
94
69
|
/** Gets the element that has the container's content. */
|
|
95
|
-
getContent(): Promise<
|
|
70
|
+
getContent(): Promise<MatDrawerContentHarness>;
|
|
96
71
|
}
|
|
97
72
|
|
|
98
73
|
/** Harness for interacting with a standard mat-sidenav-content in tests. */
|
|
99
|
-
|
|
74
|
+
declare class MatSidenavContentHarness extends ContentContainerComponentHarness<string> {
|
|
100
75
|
/** The selector for the host element of a `MatSidenavContent` instance. */
|
|
101
76
|
static hostSelector: string;
|
|
102
77
|
/**
|
|
@@ -109,7 +84,7 @@ export declare class MatSidenavContentHarness extends ContentContainerComponentH
|
|
|
109
84
|
}
|
|
110
85
|
|
|
111
86
|
/** Harness for interacting with a standard mat-sidenav in tests. */
|
|
112
|
-
|
|
87
|
+
declare class MatSidenavHarness extends MatDrawerHarnessBase {
|
|
113
88
|
/** The selector for the host element of a `MatSidenav` instance. */
|
|
114
89
|
static hostSelector: string;
|
|
115
90
|
/**
|
|
@@ -123,4 +98,24 @@ export declare class MatSidenavHarness extends MatDrawerHarnessBase {
|
|
|
123
98
|
isFixedInViewport(): Promise<boolean>;
|
|
124
99
|
}
|
|
125
100
|
|
|
126
|
-
|
|
101
|
+
/** Harness for interacting with a standard mat-sidenav-container in tests. */
|
|
102
|
+
declare class MatSidenavContainerHarness extends ContentContainerComponentHarness<string> {
|
|
103
|
+
/** The selector for the host element of a `MatSidenavContainer` instance. */
|
|
104
|
+
static hostSelector: string;
|
|
105
|
+
/**
|
|
106
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatSidenavContainerHarness` that
|
|
107
|
+
* meets certain criteria.
|
|
108
|
+
* @param options Options for filtering which container instances are considered a match.
|
|
109
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
110
|
+
*/
|
|
111
|
+
static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<MatSidenavContainerHarness>;
|
|
112
|
+
/**
|
|
113
|
+
* Gets sidenavs that match particular criteria within the container.
|
|
114
|
+
* @param filter Optionally filters which chips are included.
|
|
115
|
+
*/
|
|
116
|
+
getSidenavs(filter?: DrawerHarnessFilters): Promise<MatSidenavHarness[]>;
|
|
117
|
+
/** Gets the element that has the container's content. */
|
|
118
|
+
getContent(): Promise<MatSidenavContentHarness>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export { type DrawerContainerHarnessFilters, type DrawerContentHarnessFilters, type DrawerHarnessFilters, MatDrawerContainerHarness, MatDrawerContentHarness, MatDrawerHarness, MatSidenavContainerHarness, MatSidenavContentHarness, MatSidenavHarness };
|
package/slide-toggle/index.d.ts
CHANGED
|
@@ -1,58 +1,52 @@
|
|
|
1
|
-
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
import { AfterContentInit } from '@angular/core';
|
|
3
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
4
|
-
import { CheckboxRequiredValidator } from '@angular/forms';
|
|
5
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
6
|
-
import { ElementRef } from '@angular/core';
|
|
7
|
-
import { EventEmitter } from '@angular/core';
|
|
8
|
-
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
9
1
|
import * as i0 from '@angular/core';
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import { Provider } from '@angular/core';
|
|
15
|
-
import { SimpleChanges } from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnDestroy, AfterContentInit, OnChanges, ChangeDetectorRef, ElementRef, EventEmitter, SimpleChanges, Provider } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, CheckboxRequiredValidator } from '@angular/forms';
|
|
4
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
5
|
+
import * as i1 from '@angular/material/core';
|
|
16
6
|
import { ThemePalette } from '@angular/material/core';
|
|
17
|
-
import { Type } from '@angular/core';
|
|
18
|
-
import { ValidationErrors } from '@angular/forms';
|
|
19
|
-
import { Validator } from '@angular/forms';
|
|
20
7
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
8
|
+
/** Default `mat-slide-toggle` options that can be overridden. */
|
|
9
|
+
interface MatSlideToggleDefaultOptions {
|
|
10
|
+
/** Whether toggle action triggers value changes in slide toggle. */
|
|
11
|
+
disableToggleValue?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Default theme color of the slide toggle. This API is supported in M2 themes only,
|
|
14
|
+
* it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/slide-toggle/styling.
|
|
15
|
+
*
|
|
16
|
+
* For information on applying color variants in M3, see
|
|
17
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
18
|
+
*/
|
|
19
|
+
color?: ThemePalette;
|
|
20
|
+
/** Whether to hide the icon inside the slide toggle. */
|
|
21
|
+
hideIcon?: boolean;
|
|
22
|
+
/** Whether disabled slide toggles should remain interactive. */
|
|
23
|
+
disabledInteractive?: boolean;
|
|
34
24
|
}
|
|
35
|
-
|
|
36
25
|
/** Injection token to be used to override the default options for `mat-slide-toggle`. */
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated No longer used, `MatCheckbox` implements required validation directly.
|
|
41
|
-
* @breaking-change 19.0.0
|
|
42
|
-
*/
|
|
43
|
-
export declare const MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR: Provider;
|
|
26
|
+
declare const MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS: InjectionToken<MatSlideToggleDefaultOptions>;
|
|
44
27
|
|
|
45
28
|
/**
|
|
46
29
|
* @deprecated Will stop being exported.
|
|
47
30
|
* @breaking-change 19.0.0
|
|
48
31
|
*/
|
|
49
|
-
|
|
50
|
-
provide: InjectionToken<readonly ControlValueAccessor[]>;
|
|
51
|
-
useExisting: Type<any>;
|
|
32
|
+
declare const MAT_SLIDE_TOGGLE_VALUE_ACCESSOR: {
|
|
33
|
+
provide: i0.InjectionToken<readonly ControlValueAccessor[]>;
|
|
34
|
+
useExisting: i0.Type<any>;
|
|
52
35
|
multi: boolean;
|
|
53
36
|
};
|
|
54
|
-
|
|
55
|
-
|
|
37
|
+
/** Change event object emitted by a slide toggle. */
|
|
38
|
+
declare class MatSlideToggleChange {
|
|
39
|
+
/** The source slide toggle of the event. */
|
|
40
|
+
source: MatSlideToggle;
|
|
41
|
+
/** The new `checked` value of the slide toggle. */
|
|
42
|
+
checked: boolean;
|
|
43
|
+
constructor(
|
|
44
|
+
/** The source slide toggle of the event. */
|
|
45
|
+
source: MatSlideToggle,
|
|
46
|
+
/** The new `checked` value of the slide toggle. */
|
|
47
|
+
checked: boolean);
|
|
48
|
+
}
|
|
49
|
+
declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnChanges, ControlValueAccessor, Validator {
|
|
56
50
|
private _elementRef;
|
|
57
51
|
protected _focusMonitor: FocusMonitor;
|
|
58
52
|
protected _changeDetectorRef: ChangeDetectorRef;
|
|
@@ -156,43 +150,11 @@ export declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnCh
|
|
|
156
150
|
static ngAcceptInputType_disabledInteractive: unknown;
|
|
157
151
|
}
|
|
158
152
|
|
|
159
|
-
/**
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
checked: boolean;
|
|
165
|
-
constructor(
|
|
166
|
-
/** The source slide toggle of the event. */
|
|
167
|
-
source: MatSlideToggle,
|
|
168
|
-
/** The new `checked` value of the slide toggle. */
|
|
169
|
-
checked: boolean);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/** Default `mat-slide-toggle` options that can be overridden. */
|
|
173
|
-
export declare interface MatSlideToggleDefaultOptions {
|
|
174
|
-
/** Whether toggle action triggers value changes in slide toggle. */
|
|
175
|
-
disableToggleValue?: boolean;
|
|
176
|
-
/**
|
|
177
|
-
* Default theme color of the slide toggle. This API is supported in M2 themes only,
|
|
178
|
-
* it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/slide-toggle/styling.
|
|
179
|
-
*
|
|
180
|
-
* For information on applying color variants in M3, see
|
|
181
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
182
|
-
*/
|
|
183
|
-
color?: ThemePalette;
|
|
184
|
-
/** Whether to hide the icon inside the slide toggle. */
|
|
185
|
-
hideIcon?: boolean;
|
|
186
|
-
/** Whether disabled slide toggles should remain interactive. */
|
|
187
|
-
disabledInteractive?: boolean;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export declare class MatSlideToggleModule {
|
|
191
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggleModule, never>;
|
|
192
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSlideToggleModule, never, [typeof i2.MatSlideToggle, typeof i3.MatCommonModule], [typeof i2.MatSlideToggle, typeof i3.MatCommonModule]>;
|
|
193
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatSlideToggleModule>;
|
|
194
|
-
}
|
|
195
|
-
|
|
153
|
+
/**
|
|
154
|
+
* @deprecated No longer used, `MatCheckbox` implements required validation directly.
|
|
155
|
+
* @breaking-change 19.0.0
|
|
156
|
+
*/
|
|
157
|
+
declare const MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR: Provider;
|
|
196
158
|
/**
|
|
197
159
|
* Validator for Material slide-toggle components with the required attribute in a
|
|
198
160
|
* template-driven form. The default validator for required form controls asserts
|
|
@@ -204,7 +166,7 @@ export declare class MatSlideToggleModule {
|
|
|
204
166
|
* @deprecated No longer used, `MatCheckbox` implements required validation directly.
|
|
205
167
|
* @breaking-change 19.0.0
|
|
206
168
|
*/
|
|
207
|
-
|
|
169
|
+
declare class MatSlideToggleRequiredValidator extends CheckboxRequiredValidator {
|
|
208
170
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggleRequiredValidator, never>;
|
|
209
171
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSlideToggleRequiredValidator, "mat-slide-toggle[required][formControlName], mat-slide-toggle[required][formControl], mat-slide-toggle[required][ngModel]", never, {}, {}, never, never, true, never>;
|
|
210
172
|
}
|
|
@@ -213,10 +175,15 @@ export declare class MatSlideToggleRequiredValidator extends CheckboxRequiredVal
|
|
|
213
175
|
* @deprecated No longer used, `MatSlideToggle` implements required validation directly.
|
|
214
176
|
* @breaking-change 19.0.0
|
|
215
177
|
*/
|
|
216
|
-
|
|
178
|
+
declare class _MatSlideToggleRequiredValidatorModule {
|
|
217
179
|
static ɵfac: i0.ɵɵFactoryDeclaration<_MatSlideToggleRequiredValidatorModule, never>;
|
|
218
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<_MatSlideToggleRequiredValidatorModule, never, [typeof
|
|
180
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<_MatSlideToggleRequiredValidatorModule, never, [typeof MatSlideToggleRequiredValidator], [typeof MatSlideToggleRequiredValidator]>;
|
|
219
181
|
static ɵinj: i0.ɵɵInjectorDeclaration<_MatSlideToggleRequiredValidatorModule>;
|
|
220
182
|
}
|
|
183
|
+
declare class MatSlideToggleModule {
|
|
184
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggleModule, never>;
|
|
185
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSlideToggleModule, never, [typeof MatSlideToggle, typeof i1.MatCommonModule], [typeof MatSlideToggle, typeof i1.MatCommonModule]>;
|
|
186
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatSlideToggleModule>;
|
|
187
|
+
}
|
|
221
188
|
|
|
222
|
-
export { }
|
|
189
|
+
export { MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS, MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR, MAT_SLIDE_TOGGLE_VALUE_ACCESSOR, MatSlideToggle, MatSlideToggleChange, type MatSlideToggleDefaultOptions, MatSlideToggleModule, MatSlideToggleRequiredValidator, _MatSlideToggleRequiredValidatorModule };
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
+
|
|
4
|
+
/** A set of criteria that can be used to filter a list of `MatSlideToggleHarness` instances. */
|
|
5
|
+
interface SlideToggleHarnessFilters extends BaseHarnessFilters {
|
|
6
|
+
/** Only find instances whose label matches the given value. */
|
|
7
|
+
label?: string | RegExp;
|
|
8
|
+
/** Only find instances whose name is the given value. */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** Only find instances with the given checked value. */
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
/** Only find instances where the disabled state matches the given value. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
7
15
|
|
|
8
16
|
/** Harness for interacting with a mat-slide-toggle in tests. */
|
|
9
|
-
|
|
17
|
+
declare class MatSlideToggleHarness extends ComponentHarness {
|
|
10
18
|
private _label;
|
|
11
|
-
_nativeElement: AsyncFactoryFn<TestElement>;
|
|
19
|
+
_nativeElement: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement>;
|
|
12
20
|
static hostSelector: string;
|
|
13
21
|
/**
|
|
14
22
|
* Gets a `HarnessPredicate` that can be used to search for a slide-toggle w/ specific attributes.
|
|
@@ -54,16 +62,4 @@ export declare class MatSlideToggleHarness extends ComponentHarness {
|
|
|
54
62
|
uncheck(): Promise<void>;
|
|
55
63
|
}
|
|
56
64
|
|
|
57
|
-
|
|
58
|
-
export declare interface SlideToggleHarnessFilters extends BaseHarnessFilters {
|
|
59
|
-
/** Only find instances whose label matches the given value. */
|
|
60
|
-
label?: string | RegExp;
|
|
61
|
-
/** Only find instances whose name is the given value. */
|
|
62
|
-
name?: string;
|
|
63
|
-
/** Only find instances with the given checked value. */
|
|
64
|
-
checked?: boolean;
|
|
65
|
-
/** Only find instances where the disabled state matches the given value. */
|
|
66
|
-
disabled?: boolean;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export { }
|
|
65
|
+
export { MatSlideToggleHarness, type SlideToggleHarnessFilters };
|