@angular/material 20.0.0-next.0 → 20.0.0-next.1
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 +92 -126
- package/autocomplete/testing/index.d.ts +6 -11
- package/badge/index.d.ts +8 -112
- package/badge/testing/index.d.ts +7 -8
- package/badge.d-49a8a74b.d.ts +98 -0
- package/bottom-sheet/index.d.ts +88 -103
- package/bottom-sheet/testing/index.d.ts +4 -6
- package/button/index.d.ts +10 -245
- package/button/testing/index.d.ts +6 -10
- package/button-toggle/index.d.ts +12 -285
- package/button-toggle/testing/index.d.ts +38 -37
- package/button-toggle.d-edc8acff.d.ts +257 -0
- package/card/index.d.ts +80 -117
- package/card/testing/index.d.ts +11 -15
- package/checkbox/index.d.ts +43 -104
- package/checkbox/testing/index.d.ts +6 -10
- package/chips/index.d.ts +599 -693
- package/chips/testing/index.d.ts +78 -93
- package/common-module.d-0e6515ae.d.ts +43 -0
- package/core/index.d.ts +50 -979
- package/core/testing/index.d.ts +3 -65
- package/date-adapter.d-c6835d41.d.ts +267 -0
- package/date-range-input-harness.d-549a9f7e.d.ts +278 -0
- package/datepicker/index.d.ts +1332 -1482
- package/datepicker/testing/index.d.ts +5 -287
- package/dialog/index.d.ts +59 -453
- package/dialog/testing/index.d.ts +22 -26
- package/dialog.d-57867441.d.ts +335 -0
- package/divider/index.d.ts +6 -11
- package/divider/testing/index.d.ts +2 -16
- package/divider-harness.d-d34fede4.d.ts +14 -0
- package/error-options.d-448d9046.d.ts +17 -0
- package/expansion/index.d.ts +139 -190
- package/expansion/testing/index.d.ts +25 -31
- package/fesm2022/autocomplete/testing.mjs +2 -1
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +53 -32
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +14 -17
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +13 -15
- 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 +22 -15
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +14 -395
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +49 -51
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +32 -73
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +51 -46
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-2d64df09.mjs +42 -0
- package/fesm2022/common-module-2d64df09.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +3 -76
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +38 -1598
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats-b618acb8.mjs +190 -0
- package/fesm2022/date-formats-b618acb8.mjs.map +1 -0
- package/fesm2022/date-range-input-harness-ee47cdb0.mjs +467 -0
- package/fesm2022/date-range-input-harness-ee47cdb0.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +5 -465
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +159 -128
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +12 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +14 -895
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs +2 -17
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider-harness-3394f29a.mjs +18 -0
- package/fesm2022/divider-harness-3394f29a.mjs.map +1 -0
- package/fesm2022/divider.mjs +10 -12
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-4a00765e.mjs +29 -0
- package/fesm2022/error-options-4a00765e.mjs.map +1 -0
- package/fesm2022/error-state-8f4ce1af.mjs +37 -0
- package/fesm2022/error-state-8f4ce1af.mjs.map +1 -0
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +30 -32
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs +2 -10
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +7 -6
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field-6d755764.mjs +1076 -0
- package/fesm2022/form-field-6d755764.mjs.map +1 -0
- package/fesm2022/form-field-control-harness-af6fd278.mjs +11 -0
- package/fesm2022/form-field-control-harness-af6fd278.mjs.map +1 -0
- package/fesm2022/form-field.mjs +14 -1110
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +30 -173
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +12 -12
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-47f1b5d9.mjs +248 -0
- package/fesm2022/icon-button-47f1b5d9.mjs.map +1 -0
- package/fesm2022/icon-module-3f77a24d.mjs +395 -0
- package/fesm2022/icon-module-3f77a24d.mjs.map +1 -0
- package/fesm2022/icon-registry-13a3b98e.mjs +639 -0
- package/fesm2022/icon-registry-13a3b98e.mjs.map +1 -0
- package/fesm2022/icon.mjs +11 -1016
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-1763d3a6.mjs +22 -0
- package/fesm2022/index-1763d3a6.mjs.map +1 -0
- package/fesm2022/index-4bc1d6d3.mjs +20 -0
- package/fesm2022/index-4bc1d6d3.mjs.map +1 -0
- package/fesm2022/input/testing.mjs +5 -113
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input-harness-ed59decc.mjs +115 -0
- package/fesm2022/input-harness-ed59decc.mjs.map +1 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs +12 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs.map +1 -0
- package/fesm2022/input.mjs +21 -23
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-434c4039.mjs +27 -0
- package/fesm2022/internal-form-field-434c4039.mjs.map +1 -0
- package/fesm2022/line-d6afe347.mjs +59 -0
- package/fesm2022/line-d6afe347.mjs.map +1 -0
- package/fesm2022/list/testing.mjs +2 -2
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +59 -56
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +37 -25
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/module-3bf2775f.mjs +1293 -0
- package/fesm2022/module-3bf2775f.mjs.map +1 -0
- package/fesm2022/module-47e3be58.mjs +970 -0
- package/fesm2022/module-47e3be58.mjs.map +1 -0
- package/fesm2022/module-a5f9ab72.mjs +875 -0
- package/fesm2022/module-a5f9ab72.mjs.map +1 -0
- package/fesm2022/module-d757bba0.mjs +38 -0
- package/fesm2022/module-d757bba0.mjs.map +1 -0
- package/fesm2022/module-df9f7af3.mjs +152 -0
- package/fesm2022/module-df9f7af3.mjs.map +1 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs +36 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs.map +1 -0
- package/fesm2022/option-07c3c660.mjs +348 -0
- package/fesm2022/option-07c3c660.mjs.map +1 -0
- package/fesm2022/option-harness-3b7c1106.mjs +46 -0
- package/fesm2022/option-harness-3b7c1106.mjs.map +1 -0
- package/fesm2022/paginator/testing.mjs +4 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +51 -21
- 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 +15 -13
- 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 +15 -13
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs +52 -0
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs.map +1 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs +20 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs.map +1 -0
- package/fesm2022/public-api-c5ab57f5.mjs +147 -0
- package/fesm2022/public-api-c5ab57f5.mjs.map +1 -0
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +23 -15
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-9939d1f5.mjs +639 -0
- package/fesm2022/ripple-9939d1f5.mjs.map +1 -0
- package/fesm2022/ripple-loader-f2078c66.mjs +165 -0
- package/fesm2022/ripple-loader-f2078c66.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +5 -121
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select-harness-8c55824d.mjs +123 -0
- package/fesm2022/select-harness-8c55824d.mjs.map +1 -0
- package/fesm2022/select.mjs +30 -1311
- 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 +27 -75
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +22 -21
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +37 -29
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +26 -20
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +52 -39
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-d5ada3b3.mjs +18 -0
- package/fesm2022/structural-styles-d5ada3b3.mjs.map +1 -0
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +58 -60
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +54 -58
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +31 -24
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +13 -15
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +15 -960
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +28 -30
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +16 -508
- package/form-field/testing/control/index.d.ts +2 -10
- package/form-field/testing/index.d.ts +19 -24
- package/form-field-control-harness.d-2d91f25a.d.ts +10 -0
- package/form-field-control.d-eb86711c.d.ts +62 -0
- package/form-field.d-2edbc094.d.ts +367 -0
- package/grid-list/index.d.ts +128 -152
- package/grid-list/testing/index.d.ts +39 -44
- package/icon/index.d.ts +9 -470
- package/icon/testing/index.d.ts +41 -44
- package/icon-module.d-aa3bbba0.d.ts +167 -0
- package/icon-registry.d-1dffe9de.d.ts +286 -0
- package/index.d-0536b706.d.ts +11 -0
- package/index.d-37e31cd3.d.ts +13 -0
- package/index.d.ts +2 -3
- package/input/index.d.ts +33 -62
- package/input/testing/index.d.ts +13 -71
- package/input-harness.d-4eecd1d3.d.ts +60 -0
- package/line.d-570a2537.d.ts +25 -0
- package/list/index.d.ts +155 -244
- package/list/testing/index.d.ts +158 -180
- package/list-option-types.d-8739f903.d.ts +15 -0
- package/menu/index.d.ts +183 -231
- package/menu/testing/index.d.ts +17 -23
- package/module.d-18a67f56.d.ts +206 -0
- package/module.d-74a721b9.d.ts +326 -0
- package/module.d-ba05faa6.d.ts +448 -0
- package/module.d-c17c834e.d.ts +18 -0
- package/optgroup-harness.d-7f741f69.d.ts +31 -0
- package/option-harness.d-3d33fc9a.d.ts +34 -0
- package/option-parent.d-559ad5c5.d.ts +19 -0
- package/option.d-6f493d78.d.ts +146 -0
- package/package.json +2 -2
- package/paginator/index.d.ts +31 -216
- package/paginator/testing/index.d.ts +14 -15
- package/paginator.d-40b1766e.d.ts +199 -0
- package/palette.d-ec4a617c.d.ts +4 -0
- package/progress-bar/index.d.ts +40 -59
- package/progress-bar/testing/index.d.ts +7 -10
- package/progress-spinner/index.d.ts +8 -110
- package/progress-spinner/testing/index.d.ts +10 -11
- package/progress-spinner.d-1fc040c5.d.ts +96 -0
- package/pseudo-checkbox-module.d-3abc0461.d.ts +44 -0
- package/radio/index.d.ts +151 -170
- package/radio/testing/index.d.ts +61 -67
- package/ripple-loader.d-8aac2988.d.ts +48 -0
- package/ripple.d-2fb57d04.d.ts +255 -0
- 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 +25 -505
- package/select/testing/index.d.ts +5 -67
- package/select-harness.d-7441a7ac.d.ts +63 -0
- package/sidenav/index.d.ts +49 -92
- package/sidenav/testing/index.d.ts +58 -63
- package/slide-toggle/index.d.ts +39 -110
- package/slide-toggle/testing/index.d.ts +17 -21
- package/slider/index.d.ts +281 -328
- package/slider/testing/index.d.ts +42 -47
- package/snack-bar/index.d.ts +152 -185
- package/snack-bar/testing/index.d.ts +7 -9
- package/sort/index.d.ts +61 -169
- package/sort/testing/index.d.ts +22 -25
- package/sort-direction.d-f4ce4649.d.ts +3 -0
- package/sort.d-c2b79a45.d.ts +87 -0
- package/stepper/index.d.ts +115 -167
- package/stepper/testing/index.d.ts +43 -52
- package/table/index.d.ts +97 -156
- package/table/testing/index.d.ts +64 -78
- package/tabs/index.d.ts +309 -383
- package/tabs/testing/index.d.ts +67 -76
- package/timepicker/index.d.ts +127 -160
- package/timepicker/testing/index.d.ts +20 -26
- package/toolbar/index.d.ts +15 -26
- package/toolbar/testing/index.d.ts +13 -16
- package/tooltip/index.d.ts +11 -355
- package/tooltip/testing/index.d.ts +7 -10
- package/tree/index.d.ts +117 -163
- package/tree/testing/index.d.ts +52 -58
package/chips/testing/index.d.ts
CHANGED
|
@@ -1,31 +1,13 @@
|
|
|
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 { ContentContainerComponentHarness } from '@angular/cdk/testing';
|
|
6
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
7
|
-
import { TestElement } from '@angular/cdk/testing';
|
|
8
|
-
import { TestKey } from '@angular/cdk/testing';
|
|
1
|
+
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate, ContentContainerComponentHarness, TestKey } from '@angular/cdk/testing';
|
|
9
3
|
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export declare interface ChipEditInputHarnessFilters extends BaseHarnessFilters {
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export declare interface ChipGridHarnessFilters extends BaseHarnessFilters {
|
|
17
|
-
/** Only find instances which match the given disabled state. */
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export declare interface ChipHarnessFilters extends BaseHarnessFilters {
|
|
4
|
+
interface ChipHarnessFilters extends BaseHarnessFilters {
|
|
22
5
|
/** Only find instances whose text matches the given value. */
|
|
23
6
|
text?: string | RegExp;
|
|
24
7
|
/** Only find instances which match the given disabled state. */
|
|
25
8
|
disabled?: boolean;
|
|
26
9
|
}
|
|
27
|
-
|
|
28
|
-
export declare interface ChipInputHarnessFilters extends BaseHarnessFilters {
|
|
10
|
+
interface ChipInputHarnessFilters extends BaseHarnessFilters {
|
|
29
11
|
/** Filters based on the value of the input. */
|
|
30
12
|
value?: string | RegExp;
|
|
31
13
|
/** Filters based on the placeholder text of the input. */
|
|
@@ -33,28 +15,31 @@ export declare interface ChipInputHarnessFilters extends BaseHarnessFilters {
|
|
|
33
15
|
/** Only find instances which match the given disabled state. */
|
|
34
16
|
disabled?: boolean;
|
|
35
17
|
}
|
|
36
|
-
|
|
37
|
-
export declare interface ChipListboxHarnessFilters extends BaseHarnessFilters {
|
|
18
|
+
interface ChipListboxHarnessFilters extends BaseHarnessFilters {
|
|
38
19
|
/** Only find instances which match the given disabled state. */
|
|
39
20
|
disabled?: boolean;
|
|
40
21
|
}
|
|
41
|
-
|
|
42
|
-
export declare interface ChipOptionHarnessFilters extends ChipHarnessFilters {
|
|
22
|
+
interface ChipOptionHarnessFilters extends ChipHarnessFilters {
|
|
43
23
|
/** Only find chip instances whose selected state matches the given value. */
|
|
44
24
|
selected?: boolean;
|
|
45
25
|
}
|
|
46
|
-
|
|
47
|
-
|
|
26
|
+
interface ChipGridHarnessFilters extends BaseHarnessFilters {
|
|
27
|
+
/** Only find instances which match the given disabled state. */
|
|
28
|
+
disabled?: boolean;
|
|
48
29
|
}
|
|
49
|
-
|
|
50
|
-
export declare interface ChipRowHarnessFilters extends ChipHarnessFilters {
|
|
30
|
+
interface ChipRowHarnessFilters extends ChipHarnessFilters {
|
|
51
31
|
}
|
|
52
|
-
|
|
53
|
-
|
|
32
|
+
interface ChipSetHarnessFilters extends BaseHarnessFilters {
|
|
33
|
+
}
|
|
34
|
+
interface ChipRemoveHarnessFilters extends BaseHarnessFilters {
|
|
35
|
+
}
|
|
36
|
+
interface ChipAvatarHarnessFilters extends BaseHarnessFilters {
|
|
37
|
+
}
|
|
38
|
+
interface ChipEditInputHarnessFilters extends BaseHarnessFilters {
|
|
54
39
|
}
|
|
55
40
|
|
|
56
41
|
/** Harness for interacting with a standard Material chip avatar in tests. */
|
|
57
|
-
|
|
42
|
+
declare class MatChipAvatarHarness extends ComponentHarness {
|
|
58
43
|
static hostSelector: string;
|
|
59
44
|
/**
|
|
60
45
|
* Gets a `HarnessPredicate` that can be used to search for a chip avatar with specific
|
|
@@ -65,44 +50,23 @@ export declare class MatChipAvatarHarness extends ComponentHarness {
|
|
|
65
50
|
static with<T extends MatChipAvatarHarness>(this: ComponentHarnessConstructor<T>, options?: ChipAvatarHarnessFilters): HarnessPredicate<T>;
|
|
66
51
|
}
|
|
67
52
|
|
|
68
|
-
/** Harness for interacting with
|
|
69
|
-
|
|
53
|
+
/** Harness for interacting with a standard Material chip remove button in tests. */
|
|
54
|
+
declare class MatChipRemoveHarness extends ComponentHarness {
|
|
70
55
|
static hostSelector: string;
|
|
71
56
|
/**
|
|
72
|
-
* Gets a `HarnessPredicate` that can be used to search for a chip
|
|
57
|
+
* Gets a `HarnessPredicate` that can be used to search for a chip remove with specific
|
|
73
58
|
* attributes.
|
|
74
59
|
* @param options Options for filtering which input instances are considered a match.
|
|
75
60
|
* @return a `HarnessPredicate` configured with the given options.
|
|
76
61
|
*/
|
|
77
|
-
static with<T extends
|
|
78
|
-
/**
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/** Harness for interacting with a mat-chip-grid in tests. */
|
|
83
|
-
export declare class MatChipGridHarness extends ComponentHarness {
|
|
84
|
-
static hostSelector: string;
|
|
85
|
-
/**
|
|
86
|
-
* Gets a `HarnessPredicate` that can be used to search for a chip grid with specific attributes.
|
|
87
|
-
* @param options Options for filtering which chip grid instances are considered a match.
|
|
88
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
89
|
-
*/
|
|
90
|
-
static with<T extends MatChipGridHarness>(this: ComponentHarnessConstructor<T>, options?: ChipGridHarnessFilters): HarnessPredicate<T>;
|
|
91
|
-
/** Gets whether the chip grid is disabled. */
|
|
92
|
-
isDisabled(): Promise<boolean>;
|
|
93
|
-
/** Gets whether the chip grid is required. */
|
|
94
|
-
isRequired(): Promise<boolean>;
|
|
95
|
-
/** Gets whether the chip grid is invalid. */
|
|
96
|
-
isInvalid(): Promise<boolean>;
|
|
97
|
-
/** Gets promise of the harnesses for the chip rows. */
|
|
98
|
-
getRows(filter?: ChipRowHarnessFilters): Promise<MatChipRowHarness[]>;
|
|
99
|
-
/** Gets promise of the chip text input harness. */
|
|
100
|
-
getInput(filter?: ChipInputHarnessFilters): Promise<MatChipInputHarness | null>;
|
|
62
|
+
static with<T extends MatChipRemoveHarness>(this: ComponentHarnessConstructor<T>, options?: ChipRemoveHarnessFilters): HarnessPredicate<T>;
|
|
63
|
+
/** Clicks the remove button. */
|
|
64
|
+
click(): Promise<void>;
|
|
101
65
|
}
|
|
102
66
|
|
|
103
67
|
/** Harness for interacting with a mat-chip in tests. */
|
|
104
|
-
|
|
105
|
-
protected _primaryAction: AsyncFactoryFn<TestElement>;
|
|
68
|
+
declare class MatChipHarness extends ContentContainerComponentHarness {
|
|
69
|
+
protected _primaryAction: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement>;
|
|
106
70
|
static hostSelector: string;
|
|
107
71
|
/**
|
|
108
72
|
* Gets a `HarnessPredicate` that can be used to search for a chip with specific attributes.
|
|
@@ -129,7 +93,7 @@ export declare class MatChipHarness extends ContentContainerComponentHarness {
|
|
|
129
93
|
}
|
|
130
94
|
|
|
131
95
|
/** Harness for interacting with a grid's chip input in tests. */
|
|
132
|
-
|
|
96
|
+
declare class MatChipInputHarness extends ComponentHarness {
|
|
133
97
|
static hostSelector: string;
|
|
134
98
|
/**
|
|
135
99
|
* Gets a `HarnessPredicate` that can be used to search for a chip input with specific
|
|
@@ -167,8 +131,28 @@ export declare class MatChipInputHarness extends ComponentHarness {
|
|
|
167
131
|
sendSeparatorKey(key: TestKey | string): Promise<void>;
|
|
168
132
|
}
|
|
169
133
|
|
|
134
|
+
/** Harness for interacting with a mat-chip-option in tests. */
|
|
135
|
+
declare class MatChipOptionHarness extends MatChipHarness {
|
|
136
|
+
static hostSelector: string;
|
|
137
|
+
/**
|
|
138
|
+
* Gets a `HarnessPredicate` that can be used to search for a chip option with specific
|
|
139
|
+
* attributes.
|
|
140
|
+
* @param options Options for narrowing the search.
|
|
141
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
142
|
+
*/
|
|
143
|
+
static with<T extends MatChipHarness>(this: ComponentHarnessConstructor<T>, options?: ChipOptionHarnessFilters): HarnessPredicate<T>;
|
|
144
|
+
/** Whether the chip is selected. */
|
|
145
|
+
isSelected(): Promise<boolean>;
|
|
146
|
+
/** Selects the given chip. Only applies if it's selectable. */
|
|
147
|
+
select(): Promise<void>;
|
|
148
|
+
/** Deselects the given chip. Only applies if it's selectable. */
|
|
149
|
+
deselect(): Promise<void>;
|
|
150
|
+
/** Toggles the selected state of the given chip. */
|
|
151
|
+
toggle(): Promise<void>;
|
|
152
|
+
}
|
|
153
|
+
|
|
170
154
|
/** Harness for interacting with a mat-chip-listbox in tests. */
|
|
171
|
-
|
|
155
|
+
declare class MatChipListboxHarness extends ComponentHarness {
|
|
172
156
|
static hostSelector: string;
|
|
173
157
|
/**
|
|
174
158
|
* Gets a `HarnessPredicate` that can be used to search for a chip listbox with specific
|
|
@@ -198,42 +182,22 @@ export declare class MatChipListboxHarness extends ComponentHarness {
|
|
|
198
182
|
selectChips(filter?: ChipOptionHarnessFilters): Promise<void>;
|
|
199
183
|
}
|
|
200
184
|
|
|
201
|
-
/** Harness for interacting with
|
|
202
|
-
|
|
203
|
-
static hostSelector: string;
|
|
204
|
-
/**
|
|
205
|
-
* Gets a `HarnessPredicate` that can be used to search for a chip option with specific
|
|
206
|
-
* attributes.
|
|
207
|
-
* @param options Options for narrowing the search.
|
|
208
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
209
|
-
*/
|
|
210
|
-
static with<T extends MatChipHarness>(this: ComponentHarnessConstructor<T>, options?: ChipOptionHarnessFilters): HarnessPredicate<T>;
|
|
211
|
-
/** Whether the chip is selected. */
|
|
212
|
-
isSelected(): Promise<boolean>;
|
|
213
|
-
/** Selects the given chip. Only applies if it's selectable. */
|
|
214
|
-
select(): Promise<void>;
|
|
215
|
-
/** Deselects the given chip. Only applies if it's selectable. */
|
|
216
|
-
deselect(): Promise<void>;
|
|
217
|
-
/** Toggles the selected state of the given chip. */
|
|
218
|
-
toggle(): Promise<void>;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/** Harness for interacting with a standard Material chip remove button in tests. */
|
|
222
|
-
export declare class MatChipRemoveHarness extends ComponentHarness {
|
|
185
|
+
/** Harness for interacting with an editable chip's input in tests. */
|
|
186
|
+
declare class MatChipEditInputHarness extends ComponentHarness {
|
|
223
187
|
static hostSelector: string;
|
|
224
188
|
/**
|
|
225
|
-
* Gets a `HarnessPredicate` that can be used to search for a chip
|
|
189
|
+
* Gets a `HarnessPredicate` that can be used to search for a chip edit input with specific
|
|
226
190
|
* attributes.
|
|
227
191
|
* @param options Options for filtering which input instances are considered a match.
|
|
228
192
|
* @return a `HarnessPredicate` configured with the given options.
|
|
229
193
|
*/
|
|
230
|
-
static with<T extends
|
|
231
|
-
/**
|
|
232
|
-
|
|
194
|
+
static with<T extends MatChipEditInputHarness>(this: ComponentHarnessConstructor<T>, options?: ChipEditInputHarnessFilters): HarnessPredicate<T>;
|
|
195
|
+
/** Sets the value of the input. */
|
|
196
|
+
setValue(value: string): Promise<void>;
|
|
233
197
|
}
|
|
234
198
|
|
|
235
199
|
/** Harness for interacting with a mat-chip-row in tests. */
|
|
236
|
-
|
|
200
|
+
declare class MatChipRowHarness extends MatChipHarness {
|
|
237
201
|
static hostSelector: string;
|
|
238
202
|
/** Whether the chip is editable. */
|
|
239
203
|
isEditable(): Promise<boolean>;
|
|
@@ -247,8 +211,29 @@ export declare class MatChipRowHarness extends MatChipHarness {
|
|
|
247
211
|
getEditInput(filter?: ChipEditInputHarnessFilters): Promise<MatChipEditInputHarness>;
|
|
248
212
|
}
|
|
249
213
|
|
|
214
|
+
/** Harness for interacting with a mat-chip-grid in tests. */
|
|
215
|
+
declare class MatChipGridHarness extends ComponentHarness {
|
|
216
|
+
static hostSelector: string;
|
|
217
|
+
/**
|
|
218
|
+
* Gets a `HarnessPredicate` that can be used to search for a chip grid with specific attributes.
|
|
219
|
+
* @param options Options for filtering which chip grid instances are considered a match.
|
|
220
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
221
|
+
*/
|
|
222
|
+
static with<T extends MatChipGridHarness>(this: ComponentHarnessConstructor<T>, options?: ChipGridHarnessFilters): HarnessPredicate<T>;
|
|
223
|
+
/** Gets whether the chip grid is disabled. */
|
|
224
|
+
isDisabled(): Promise<boolean>;
|
|
225
|
+
/** Gets whether the chip grid is required. */
|
|
226
|
+
isRequired(): Promise<boolean>;
|
|
227
|
+
/** Gets whether the chip grid is invalid. */
|
|
228
|
+
isInvalid(): Promise<boolean>;
|
|
229
|
+
/** Gets promise of the harnesses for the chip rows. */
|
|
230
|
+
getRows(filter?: ChipRowHarnessFilters): Promise<MatChipRowHarness[]>;
|
|
231
|
+
/** Gets promise of the chip text input harness. */
|
|
232
|
+
getInput(filter?: ChipInputHarnessFilters): Promise<MatChipInputHarness | null>;
|
|
233
|
+
}
|
|
234
|
+
|
|
250
235
|
/** Harness for interacting with a mat-chip-set in tests. */
|
|
251
|
-
|
|
236
|
+
declare class MatChipSetHarness extends ComponentHarness {
|
|
252
237
|
static hostSelector: string;
|
|
253
238
|
/**
|
|
254
239
|
* Gets a `HarnessPredicate` that can be used to search for a chip set with specific attributes.
|
|
@@ -260,4 +245,4 @@ export declare class MatChipSetHarness extends ComponentHarness {
|
|
|
260
245
|
getChips(filter?: ChipHarnessFilters): Promise<MatChipHarness[]>;
|
|
261
246
|
}
|
|
262
247
|
|
|
263
|
-
export { }
|
|
248
|
+
export { type ChipAvatarHarnessFilters, type ChipEditInputHarnessFilters, type ChipGridHarnessFilters, type ChipHarnessFilters, type ChipInputHarnessFilters, type ChipListboxHarnessFilters, type ChipOptionHarnessFilters, type ChipRemoveHarnessFilters, type ChipRowHarnessFilters, type ChipSetHarnessFilters, MatChipAvatarHarness, MatChipEditInputHarness, MatChipGridHarness, MatChipHarness, MatChipInputHarness, MatChipListboxHarness, MatChipOptionHarness, MatChipRemoveHarness, MatChipRowHarness, MatChipSetHarness };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/cdk/bidi';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Injection token that configures whether the Material sanity checks are enabled.
|
|
7
|
+
* @deprecated No longer used and will be removed.
|
|
8
|
+
* @breaking-change 21.0.0
|
|
9
|
+
*/
|
|
10
|
+
declare const MATERIAL_SANITY_CHECKS: InjectionToken<SanityChecks>;
|
|
11
|
+
/**
|
|
12
|
+
* Possible sanity checks that can be enabled. If set to
|
|
13
|
+
* true/false, all checks will be enabled/disabled.
|
|
14
|
+
* @deprecated No longer used and will be removed.
|
|
15
|
+
* @breaking-change 21.0.0
|
|
16
|
+
*/
|
|
17
|
+
type SanityChecks = boolean | GranularSanityChecks;
|
|
18
|
+
/**
|
|
19
|
+
* Object that can be used to configure the sanity checks granularly.
|
|
20
|
+
* @deprecated No longer used and will be removed.
|
|
21
|
+
* @breaking-change 21.0.0
|
|
22
|
+
*/
|
|
23
|
+
interface GranularSanityChecks {
|
|
24
|
+
doctype: boolean;
|
|
25
|
+
theme: boolean;
|
|
26
|
+
version: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Module that captures anything that should be loaded and/or run for *all* Angular Material
|
|
30
|
+
* components. This includes Bidi, etc.
|
|
31
|
+
*
|
|
32
|
+
* This module should be imported to each top-level component module (e.g., MatTabsModule).
|
|
33
|
+
* @deprecated No longer used and will be removed.
|
|
34
|
+
* @breaking-change 21.0.0
|
|
35
|
+
*/
|
|
36
|
+
declare class MatCommonModule {
|
|
37
|
+
constructor(...args: any[]);
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCommonModule, never>;
|
|
39
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatCommonModule, never, [typeof i1.BidiModule], [typeof i1.BidiModule]>;
|
|
40
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatCommonModule>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { type GranularSanityChecks as G, MatCommonModule as M, type SanityChecks as S, MATERIAL_SANITY_CHECKS as a };
|