@angular/material 19.2.2 → 19.2.4
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 +90 -124
- 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 -259
- 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 +57 -86
- package/checkbox/testing/index.d.ts +6 -10
- package/chips/index.d.ts +598 -692
- 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/core/tokens/m3/definitions/_md-comp-elevated-card.scss +3 -1
- package/core/tokens/m3/definitions/_md-sys-color.scss +44 -2
- package/core/tokens/m3/definitions/_md-sys-typescale.scss +20 -1
- 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 +1436 -1586
- package/datepicker/testing/index.d.ts +5 -287
- package/dialog/index.d.ts +59 -459
- package/dialog/testing/index.d.ts +22 -26
- package/dialog.d-7187c941.d.ts +357 -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 +38 -18
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +4 -7
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +3 -5
- 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 +12 -5
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +14 -481
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +3 -5
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +12 -6
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +11 -6
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-a39ee957.mjs +42 -0
- package/fesm2022/common-module-a39ee957.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +3 -76
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +27 -1587
- 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 +64 -30
- 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 -901
- 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 +3 -5
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-aca21924.mjs +29 -0
- package/fesm2022/error-options-aca21924.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 +5 -7
- 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-50ec956f.mjs +1076 -0
- package/fesm2022/form-field-50ec956f.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 +8 -151
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +5 -5
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-655c4ed3.mjs +275 -0
- package/fesm2022/icon-button-655c4ed3.mjs.map +1 -0
- package/fesm2022/icon-module-881c6455.mjs +395 -0
- package/fesm2022/icon-module-881c6455.mjs.map +1 -0
- package/fesm2022/icon-registry-e1064d47.mjs +639 -0
- package/fesm2022/icon-registry-e1064d47.mjs.map +1 -0
- package/fesm2022/icon.mjs +11 -1016
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-2f2536d6.mjs +22 -0
- package/fesm2022/index-2f2536d6.mjs.map +1 -0
- package/fesm2022/index-a36e3c7c.mjs +20 -0
- package/fesm2022/index-a36e3c7c.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 +14 -16
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-5960ea2e.mjs +27 -0
- package/fesm2022/internal-form-field-5960ea2e.mjs.map +1 -0
- package/fesm2022/line-11b0093d.mjs +59 -0
- package/fesm2022/line-11b0093d.mjs.map +1 -0
- package/fesm2022/list/testing.mjs +2 -2
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +10 -7
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +20 -8
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/module-0776ab9b.mjs +38 -0
- package/fesm2022/module-0776ab9b.mjs.map +1 -0
- package/fesm2022/module-087ecec3.mjs +970 -0
- package/fesm2022/module-087ecec3.mjs.map +1 -0
- package/fesm2022/module-6b33072b.mjs +218 -0
- package/fesm2022/module-6b33072b.mjs.map +1 -0
- package/fesm2022/module-b0a3e0af.mjs +1293 -0
- package/fesm2022/module-b0a3e0af.mjs.map +1 -0
- package/fesm2022/module-b3de5709.mjs +899 -0
- package/fesm2022/module-b3de5709.mjs.map +1 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs +36 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs.map +1 -0
- package/fesm2022/option-cb353f7a.mjs +348 -0
- package/fesm2022/option-cb353f7a.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 +43 -13
- 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 +8 -6
- 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 +8 -6
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-4a60d45e.mjs +52 -0
- package/fesm2022/pseudo-checkbox-4a60d45e.mjs.map +1 -0
- package/fesm2022/pseudo-checkbox-module-31a58606.mjs +20 -0
- package/fesm2022/pseudo-checkbox-module-31a58606.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 +13 -5
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-5bdada85.mjs +639 -0
- package/fesm2022/ripple-5bdada85.mjs.map +1 -0
- package/fesm2022/ripple-loader-dabcd93d.mjs +165 -0
- package/fesm2022/ripple-loader-dabcd93d.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 -1284
- 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 +7 -5
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +6 -5
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +15 -7
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +13 -7
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +21 -8
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-326dcb39.mjs +18 -0
- package/fesm2022/structural-styles-326dcb39.mjs.map +1 -0
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +3 -5
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +11 -15
- 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 +20 -10
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +3 -5
- 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 +3 -5
- 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-74a721b9.d.ts +326 -0
- package/module.d-ba05faa6.d.ts +448 -0
- package/module.d-c17c834e.d.ts +18 -0
- package/module.d-f490a6d4.d.ts +224 -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 -500
- 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 +53 -85
- 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 +126 -159
- 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/radio/testing/index.d.ts
CHANGED
|
@@ -1,58 +1,23 @@
|
|
|
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
|
-
/**
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
private _input;
|
|
22
|
-
/** Whether the radio-button is checked. */
|
|
23
|
-
isChecked(): Promise<boolean>;
|
|
24
|
-
/** Whether the radio-button is disabled. */
|
|
25
|
-
isDisabled(): Promise<boolean>;
|
|
26
|
-
/** Whether the radio-button is required. */
|
|
27
|
-
isRequired(): Promise<boolean>;
|
|
28
|
-
/** Gets the radio-button's name. */
|
|
29
|
-
getName(): Promise<string | null>;
|
|
30
|
-
/** Gets the radio-button's id. */
|
|
31
|
-
getId(): Promise<string | null>;
|
|
32
|
-
/**
|
|
33
|
-
* Gets the value of the radio-button. The radio-button value will be converted to a string.
|
|
34
|
-
*
|
|
35
|
-
* Note: This means that for radio-button's with an object as a value `[object Object]` is
|
|
36
|
-
* intentionally returned.
|
|
37
|
-
*/
|
|
38
|
-
getValue(): Promise<string | null>;
|
|
39
|
-
/** Gets the radio-button's label text. */
|
|
40
|
-
getLabelText(): Promise<string>;
|
|
41
|
-
/** Focuses the radio-button. */
|
|
42
|
-
focus(): Promise<void>;
|
|
43
|
-
/** Blurs the radio-button. */
|
|
44
|
-
blur(): Promise<void>;
|
|
45
|
-
/** Whether the radio-button is focused. */
|
|
46
|
-
isFocused(): Promise<boolean>;
|
|
47
|
-
/**
|
|
48
|
-
* Puts the radio-button in a checked state by clicking it if it is currently unchecked,
|
|
49
|
-
* or doing nothing if it is already checked.
|
|
50
|
-
*/
|
|
51
|
-
check(): Promise<void>;
|
|
4
|
+
/** A set of criteria that can be used to filter a list of `MatRadioGroupHarness` instances. */
|
|
5
|
+
interface RadioGroupHarnessFilters extends BaseHarnessFilters {
|
|
6
|
+
/** Only find instances whose name attribute is the given value. */
|
|
7
|
+
name?: string;
|
|
8
|
+
}
|
|
9
|
+
/** A set of criteria that can be used to filter a list of `MatRadioButtonHarness` instances. */
|
|
10
|
+
interface RadioButtonHarnessFilters extends BaseHarnessFilters {
|
|
11
|
+
/** Only find instances whose label matches the given value. */
|
|
12
|
+
label?: string | RegExp;
|
|
13
|
+
/** Only find instances whose name attribute is the given value. */
|
|
14
|
+
name?: string;
|
|
15
|
+
/** Only find instances with the given checked value. */
|
|
16
|
+
checked?: boolean;
|
|
52
17
|
}
|
|
53
18
|
|
|
54
19
|
/** Harness for interacting with a mat-radio-group in tests. */
|
|
55
|
-
|
|
20
|
+
declare class MatRadioGroupHarness extends ComponentHarness {
|
|
56
21
|
/** The selector for the host element of a `MatRadioGroup` instance. */
|
|
57
22
|
static hostSelector: string;
|
|
58
23
|
private _buttonClass;
|
|
@@ -94,21 +59,50 @@ export declare class MatRadioGroupHarness extends ComponentHarness {
|
|
|
94
59
|
*/
|
|
95
60
|
protected static _checkRadioGroupName(harness: MatRadioGroupHarness, name: string): Promise<boolean>;
|
|
96
61
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
62
|
+
/** Harness for interacting with a mat-radio-button in tests. */
|
|
63
|
+
declare class MatRadioButtonHarness extends ComponentHarness {
|
|
64
|
+
/** The selector for the host element of a `MatRadioButton` instance. */
|
|
65
|
+
static hostSelector: string;
|
|
66
|
+
/**
|
|
67
|
+
* Gets a `HarnessPredicate` that can be used to search for a radio button with specific
|
|
68
|
+
* attributes.
|
|
69
|
+
* @param options Options for filtering which radio button instances are considered a match.
|
|
70
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
71
|
+
*/
|
|
72
|
+
static with<T extends MatRadioButtonHarness>(this: ComponentHarnessConstructor<T>, options?: RadioButtonHarnessFilters): HarnessPredicate<T>;
|
|
73
|
+
protected _textLabel: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement>;
|
|
74
|
+
protected _clickLabel: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement>;
|
|
75
|
+
private _input;
|
|
76
|
+
/** Whether the radio-button is checked. */
|
|
77
|
+
isChecked(): Promise<boolean>;
|
|
78
|
+
/** Whether the radio-button is disabled. */
|
|
79
|
+
isDisabled(): Promise<boolean>;
|
|
80
|
+
/** Whether the radio-button is required. */
|
|
81
|
+
isRequired(): Promise<boolean>;
|
|
82
|
+
/** Gets the radio-button's name. */
|
|
83
|
+
getName(): Promise<string | null>;
|
|
84
|
+
/** Gets the radio-button's id. */
|
|
85
|
+
getId(): Promise<string | null>;
|
|
86
|
+
/**
|
|
87
|
+
* Gets the value of the radio-button. The radio-button value will be converted to a string.
|
|
88
|
+
*
|
|
89
|
+
* Note: This means that for radio-button's with an object as a value `[object Object]` is
|
|
90
|
+
* intentionally returned.
|
|
91
|
+
*/
|
|
92
|
+
getValue(): Promise<string | null>;
|
|
93
|
+
/** Gets the radio-button's label text. */
|
|
94
|
+
getLabelText(): Promise<string>;
|
|
95
|
+
/** Focuses the radio-button. */
|
|
96
|
+
focus(): Promise<void>;
|
|
97
|
+
/** Blurs the radio-button. */
|
|
98
|
+
blur(): Promise<void>;
|
|
99
|
+
/** Whether the radio-button is focused. */
|
|
100
|
+
isFocused(): Promise<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* Puts the radio-button in a checked state by clicking it if it is currently unchecked,
|
|
103
|
+
* or doing nothing if it is already checked.
|
|
104
|
+
*/
|
|
105
|
+
check(): Promise<void>;
|
|
112
106
|
}
|
|
113
107
|
|
|
114
|
-
export { }
|
|
108
|
+
export { MatRadioButtonHarness, MatRadioGroupHarness, type RadioButtonHarnessFilters, type RadioGroupHarnessFilters };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Handles attaching ripples on demand.
|
|
6
|
+
*
|
|
7
|
+
* This service allows us to avoid eagerly creating & attaching MatRipples.
|
|
8
|
+
* It works by creating & attaching a ripple only when a component is first interacted with.
|
|
9
|
+
*
|
|
10
|
+
* @docs-private
|
|
11
|
+
*/
|
|
12
|
+
declare class MatRippleLoader implements OnDestroy {
|
|
13
|
+
private _document;
|
|
14
|
+
private _animationMode;
|
|
15
|
+
private _globalRippleOptions;
|
|
16
|
+
private _platform;
|
|
17
|
+
private _ngZone;
|
|
18
|
+
private _injector;
|
|
19
|
+
private _eventCleanups;
|
|
20
|
+
private _hosts;
|
|
21
|
+
constructor();
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Configures the ripple that will be rendered by the ripple loader.
|
|
25
|
+
*
|
|
26
|
+
* Stores the given information about how the ripple should be configured on the host
|
|
27
|
+
* element so that it can later be retrived & used when the ripple is actually created.
|
|
28
|
+
*/
|
|
29
|
+
configureRipple(host: HTMLElement, config: {
|
|
30
|
+
className?: string;
|
|
31
|
+
centered?: boolean;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}): void;
|
|
34
|
+
/** Sets the disabled state on the ripple instance corresponding to the given host element. */
|
|
35
|
+
setDisabled(host: HTMLElement, disabled: boolean): void;
|
|
36
|
+
/**
|
|
37
|
+
* Handles creating and attaching component internals
|
|
38
|
+
* when a component is initially interacted with.
|
|
39
|
+
*/
|
|
40
|
+
private _onInteraction;
|
|
41
|
+
/** Creates a MatRipple and appends it to the given element. */
|
|
42
|
+
private _createRipple;
|
|
43
|
+
destroyRipple(host: HTMLElement): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatRippleLoader, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatRippleLoader>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { MatRippleLoader as M };
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { NgZone, ElementRef, Injector, InjectionToken, OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { Platform } from '@angular/cdk/platform';
|
|
4
|
+
|
|
5
|
+
/** Possible states for a ripple element. */
|
|
6
|
+
declare enum RippleState {
|
|
7
|
+
FADING_IN = 0,
|
|
8
|
+
VISIBLE = 1,
|
|
9
|
+
FADING_OUT = 2,
|
|
10
|
+
HIDDEN = 3
|
|
11
|
+
}
|
|
12
|
+
type RippleConfig = {
|
|
13
|
+
color?: string;
|
|
14
|
+
centered?: boolean;
|
|
15
|
+
radius?: number;
|
|
16
|
+
persistent?: boolean;
|
|
17
|
+
animation?: RippleAnimationConfig;
|
|
18
|
+
terminateOnPointerUp?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Interface that describes the configuration for the animation of a ripple.
|
|
22
|
+
* There are two animation phases with different durations for the ripples.
|
|
23
|
+
*/
|
|
24
|
+
interface RippleAnimationConfig {
|
|
25
|
+
/** Duration in milliseconds for the enter animation (expansion from point of contact). */
|
|
26
|
+
enterDuration?: number;
|
|
27
|
+
/** Duration in milliseconds for the exit animation (fade-out). */
|
|
28
|
+
exitDuration?: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Reference to a previously launched ripple element.
|
|
32
|
+
*/
|
|
33
|
+
declare class RippleRef {
|
|
34
|
+
private _renderer;
|
|
35
|
+
/** Reference to the ripple HTML element. */
|
|
36
|
+
element: HTMLElement;
|
|
37
|
+
/** Ripple configuration used for the ripple. */
|
|
38
|
+
config: RippleConfig;
|
|
39
|
+
_animationForciblyDisabledThroughCss: boolean;
|
|
40
|
+
/** Current state of the ripple. */
|
|
41
|
+
state: RippleState;
|
|
42
|
+
constructor(_renderer: {
|
|
43
|
+
fadeOutRipple(ref: RippleRef): void;
|
|
44
|
+
},
|
|
45
|
+
/** Reference to the ripple HTML element. */
|
|
46
|
+
element: HTMLElement,
|
|
47
|
+
/** Ripple configuration used for the ripple. */
|
|
48
|
+
config: RippleConfig, _animationForciblyDisabledThroughCss?: boolean);
|
|
49
|
+
/** Fades out the ripple element. */
|
|
50
|
+
fadeOut(): void;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Interface that describes the target for launching ripples.
|
|
55
|
+
* It defines the ripple configuration and disabled state for interaction ripples.
|
|
56
|
+
* @docs-private
|
|
57
|
+
*/
|
|
58
|
+
interface RippleTarget {
|
|
59
|
+
/** Configuration for ripples that are launched on pointer down. */
|
|
60
|
+
rippleConfig: RippleConfig;
|
|
61
|
+
/** Whether ripples on pointer down should be disabled. */
|
|
62
|
+
rippleDisabled: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Default ripple animation configuration for ripples without an explicit
|
|
66
|
+
* animation config specified.
|
|
67
|
+
*/
|
|
68
|
+
declare const defaultRippleAnimationConfig: {
|
|
69
|
+
enterDuration: number;
|
|
70
|
+
exitDuration: number;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Helper service that performs DOM manipulations. Not intended to be used outside this module.
|
|
74
|
+
* The constructor takes a reference to the ripple directive's host element and a map of DOM
|
|
75
|
+
* event handlers to be installed on the element that triggers ripple animations.
|
|
76
|
+
* This will eventually become a custom renderer once Angular support exists.
|
|
77
|
+
* @docs-private
|
|
78
|
+
*/
|
|
79
|
+
declare class RippleRenderer implements EventListenerObject {
|
|
80
|
+
private _target;
|
|
81
|
+
private _ngZone;
|
|
82
|
+
private _platform;
|
|
83
|
+
/** Element where the ripples are being added to. */
|
|
84
|
+
private _containerElement;
|
|
85
|
+
/** Element which triggers the ripple elements on mouse events. */
|
|
86
|
+
private _triggerElement;
|
|
87
|
+
/** Whether the pointer is currently down or not. */
|
|
88
|
+
private _isPointerDown;
|
|
89
|
+
/**
|
|
90
|
+
* Map of currently active ripple references.
|
|
91
|
+
* The ripple reference is mapped to its element event listeners.
|
|
92
|
+
* The reason why `| null` is used is that event listeners are added only
|
|
93
|
+
* when the condition is truthy (see the `_startFadeOutTransition` method).
|
|
94
|
+
*/
|
|
95
|
+
private _activeRipples;
|
|
96
|
+
/** Latest non-persistent ripple that was triggered. */
|
|
97
|
+
private _mostRecentTransientRipple;
|
|
98
|
+
/** Time in milliseconds when the last touchstart event happened. */
|
|
99
|
+
private _lastTouchStartEvent;
|
|
100
|
+
/** Whether pointer-up event listeners have been registered. */
|
|
101
|
+
private _pointerUpEventsRegistered;
|
|
102
|
+
/**
|
|
103
|
+
* Cached dimensions of the ripple container. Set when the first
|
|
104
|
+
* ripple is shown and cleared once no more ripples are visible.
|
|
105
|
+
*/
|
|
106
|
+
private _containerRect;
|
|
107
|
+
private static _eventManager;
|
|
108
|
+
constructor(_target: RippleTarget, _ngZone: NgZone, elementOrElementRef: HTMLElement | ElementRef<HTMLElement>, _platform: Platform, injector?: Injector);
|
|
109
|
+
/**
|
|
110
|
+
* Fades in a ripple at the given coordinates.
|
|
111
|
+
* @param x Coordinate within the element, along the X axis at which to start the ripple.
|
|
112
|
+
* @param y Coordinate within the element, along the Y axis at which to start the ripple.
|
|
113
|
+
* @param config Extra ripple options.
|
|
114
|
+
*/
|
|
115
|
+
fadeInRipple(x: number, y: number, config?: RippleConfig): RippleRef;
|
|
116
|
+
/** Fades out a ripple reference. */
|
|
117
|
+
fadeOutRipple(rippleRef: RippleRef): void;
|
|
118
|
+
/** Fades out all currently active ripples. */
|
|
119
|
+
fadeOutAll(): void;
|
|
120
|
+
/** Fades out all currently active non-persistent ripples. */
|
|
121
|
+
fadeOutAllNonPersistent(): void;
|
|
122
|
+
/** Sets up the trigger event listeners */
|
|
123
|
+
setupTriggerEvents(elementOrElementRef: HTMLElement | ElementRef<HTMLElement>): void;
|
|
124
|
+
/**
|
|
125
|
+
* Handles all registered events.
|
|
126
|
+
* @docs-private
|
|
127
|
+
*/
|
|
128
|
+
handleEvent(event: Event): void;
|
|
129
|
+
/** Method that will be called if the fade-in or fade-in transition completed. */
|
|
130
|
+
private _finishRippleTransition;
|
|
131
|
+
/**
|
|
132
|
+
* Starts the fade-out transition of the given ripple if it's not persistent and the pointer
|
|
133
|
+
* is not held down anymore.
|
|
134
|
+
*/
|
|
135
|
+
private _startFadeOutTransition;
|
|
136
|
+
/** Destroys the given ripple by removing it from the DOM and updating its state. */
|
|
137
|
+
private _destroyRipple;
|
|
138
|
+
/** Function being called whenever the trigger is being pressed using mouse. */
|
|
139
|
+
private _onMousedown;
|
|
140
|
+
/** Function being called whenever the trigger is being pressed using touch. */
|
|
141
|
+
private _onTouchStart;
|
|
142
|
+
/** Function being called whenever the trigger is being released. */
|
|
143
|
+
private _onPointerUp;
|
|
144
|
+
private _getActiveRipples;
|
|
145
|
+
/** Removes previously registered event listeners from the trigger element. */
|
|
146
|
+
_removeTriggerEvents(): void;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** Configurable options for `matRipple`. */
|
|
150
|
+
interface RippleGlobalOptions {
|
|
151
|
+
/**
|
|
152
|
+
* Whether ripples should be disabled. Ripples can be still launched manually by using
|
|
153
|
+
* the `launch()` method. Therefore focus indicators will still show up.
|
|
154
|
+
*/
|
|
155
|
+
disabled?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Default configuration for the animation duration of the ripples. There are two phases with
|
|
158
|
+
* different durations for the ripples: `enter` and `leave`. The durations will be overwritten
|
|
159
|
+
* by the value of `matRippleAnimation` or if the `NoopAnimationsModule` is included.
|
|
160
|
+
*/
|
|
161
|
+
animation?: RippleAnimationConfig;
|
|
162
|
+
/**
|
|
163
|
+
* Whether ripples should start fading out immediately after the mouse or touch is released. By
|
|
164
|
+
* default, ripples will wait for the enter animation to complete and for mouse or touch release.
|
|
165
|
+
*/
|
|
166
|
+
terminateOnPointerUp?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* A namespace to use for ripple loader to allow multiple instances to exist on the same page.
|
|
169
|
+
*/
|
|
170
|
+
namespace?: string;
|
|
171
|
+
}
|
|
172
|
+
/** Injection token that can be used to specify the global ripple options. */
|
|
173
|
+
declare const MAT_RIPPLE_GLOBAL_OPTIONS: InjectionToken<RippleGlobalOptions>;
|
|
174
|
+
declare class MatRipple implements OnInit, OnDestroy, RippleTarget {
|
|
175
|
+
private _elementRef;
|
|
176
|
+
private _animationMode;
|
|
177
|
+
/** Custom color for all ripples. */
|
|
178
|
+
color: string;
|
|
179
|
+
/** Whether the ripples should be visible outside the component's bounds. */
|
|
180
|
+
unbounded: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Whether the ripple always originates from the center of the host element's bounds, rather
|
|
183
|
+
* than originating from the location of the click event.
|
|
184
|
+
*/
|
|
185
|
+
centered: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius
|
|
188
|
+
* will be the distance from the center of the ripple to the furthest corner of the host element's
|
|
189
|
+
* bounding rectangle.
|
|
190
|
+
*/
|
|
191
|
+
radius: number;
|
|
192
|
+
/**
|
|
193
|
+
* Configuration for the ripple animation. Allows modifying the enter and exit animation
|
|
194
|
+
* duration of the ripples. The animation durations will be overwritten if the
|
|
195
|
+
* `NoopAnimationsModule` is being used.
|
|
196
|
+
*/
|
|
197
|
+
animation: RippleAnimationConfig;
|
|
198
|
+
/**
|
|
199
|
+
* Whether click events will not trigger the ripple. Ripples can be still launched manually
|
|
200
|
+
* by using the `launch()` method.
|
|
201
|
+
*/
|
|
202
|
+
get disabled(): boolean;
|
|
203
|
+
set disabled(value: boolean);
|
|
204
|
+
private _disabled;
|
|
205
|
+
/**
|
|
206
|
+
* The element that triggers the ripple when click events are received.
|
|
207
|
+
* Defaults to the directive's host element.
|
|
208
|
+
*/
|
|
209
|
+
get trigger(): HTMLElement;
|
|
210
|
+
set trigger(trigger: HTMLElement);
|
|
211
|
+
private _trigger;
|
|
212
|
+
/** Renderer for the ripple DOM manipulations. */
|
|
213
|
+
private _rippleRenderer;
|
|
214
|
+
/** Options that are set globally for all ripples. */
|
|
215
|
+
private _globalOptions;
|
|
216
|
+
/** @docs-private Whether ripple directive is initialized and the input bindings are set. */
|
|
217
|
+
_isInitialized: boolean;
|
|
218
|
+
constructor(...args: unknown[]);
|
|
219
|
+
ngOnInit(): void;
|
|
220
|
+
ngOnDestroy(): void;
|
|
221
|
+
/** Fades out all currently showing ripple elements. */
|
|
222
|
+
fadeOutAll(): void;
|
|
223
|
+
/** Fades out all currently showing non-persistent ripple elements. */
|
|
224
|
+
fadeOutAllNonPersistent(): void;
|
|
225
|
+
/**
|
|
226
|
+
* Ripple configuration from the directive's input values.
|
|
227
|
+
* @docs-private Implemented as part of RippleTarget
|
|
228
|
+
*/
|
|
229
|
+
get rippleConfig(): RippleConfig;
|
|
230
|
+
/**
|
|
231
|
+
* Whether ripples on pointer-down are disabled or not.
|
|
232
|
+
* @docs-private Implemented as part of RippleTarget
|
|
233
|
+
*/
|
|
234
|
+
get rippleDisabled(): boolean;
|
|
235
|
+
/** Sets up the trigger event listeners if ripples are enabled. */
|
|
236
|
+
private _setupTriggerEventsIfEnabled;
|
|
237
|
+
/**
|
|
238
|
+
* Launches a manual ripple using the specified ripple configuration.
|
|
239
|
+
* @param config Configuration for the manual ripple.
|
|
240
|
+
*/
|
|
241
|
+
launch(config: RippleConfig): RippleRef;
|
|
242
|
+
/**
|
|
243
|
+
* Launches a manual ripple at the specified coordinates relative to the viewport.
|
|
244
|
+
* @param x Coordinate along the X axis at which to fade-in the ripple. Coordinate
|
|
245
|
+
* should be relative to the viewport.
|
|
246
|
+
* @param y Coordinate along the Y axis at which to fade-in the ripple. Coordinate
|
|
247
|
+
* should be relative to the viewport.
|
|
248
|
+
* @param config Optional ripple configuration for the manual ripple.
|
|
249
|
+
*/
|
|
250
|
+
launch(x: number, y: number, config?: RippleConfig): RippleRef;
|
|
251
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatRipple, never>;
|
|
252
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatRipple, "[mat-ripple], [matRipple]", ["matRipple"], { "color": { "alias": "matRippleColor"; "required": false; }; "unbounded": { "alias": "matRippleUnbounded"; "required": false; }; "centered": { "alias": "matRippleCentered"; "required": false; }; "radius": { "alias": "matRippleRadius"; "required": false; }; "animation": { "alias": "matRippleAnimation"; "required": false; }; "disabled": { "alias": "matRippleDisabled"; "required": false; }; "trigger": { "alias": "matRippleTrigger"; "required": false; }; }, {}, never, never, true, never>;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export { MatRipple as M, RippleRenderer as R, type RippleTarget as a, type RippleGlobalOptions as b, MAT_RIPPLE_GLOBAL_OPTIONS as c, defaultRippleAnimationConfig as d, RippleState as e, type RippleConfig as f, type RippleAnimationConfig as g, RippleRef as h };
|
|
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
|
|
|
19
19
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
20
20
|
* the default for Angular framework dependencies in CLI projects.
|
|
21
21
|
*/
|
|
22
|
-
const fallbackMaterialVersionRange = `~19.2.
|
|
22
|
+
const fallbackMaterialVersionRange = `~19.2.4`;
|
|
23
23
|
/**
|
|
24
24
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
25
25
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
|
|
|
19
19
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
20
20
|
* the default for Angular framework dependencies in CLI projects.
|
|
21
21
|
*/
|
|
22
|
-
const fallbackMaterialVersionRange = `~19.2.
|
|
22
|
+
const fallbackMaterialVersionRange = `~19.2.4`;
|
|
23
23
|
/**
|
|
24
24
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
25
25
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -50,7 +50,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
// bazel-out/
|
|
53
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/theme-color/index.mjs
|
|
54
54
|
var theme_color_exports = {};
|
|
55
55
|
__export(theme_color_exports, {
|
|
56
56
|
default: () => theme_color_default,
|
|
@@ -2578,7 +2578,7 @@ function parseIntHex(value) {
|
|
|
2578
2578
|
return parseInt(value, 16);
|
|
2579
2579
|
}
|
|
2580
2580
|
|
|
2581
|
-
// bazel-out/
|
|
2581
|
+
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/theme-color/index.mjs
|
|
2582
2582
|
var HUE_TONES = [0, 10, 20, 25, 30, 35, 40, 50, 60, 70, 80, 90, 95, 98, 99, 100];
|
|
2583
2583
|
var NEUTRAL_HUES = /* @__PURE__ */ new Map([
|
|
2584
2584
|
[4, { prev: 0, next: 10 }],
|
|
@@ -24,6 +24,16 @@
|
|
|
24
24
|
"description": "Color for neutral color palette",
|
|
25
25
|
"x-prompt": "What HEX color should be used represent the neutral color palette? (Leave blank to use generated colors from Material)"
|
|
26
26
|
},
|
|
27
|
+
"neutralVariantColor": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Color for the neutral variant palette",
|
|
30
|
+
"x-prompt": "What HEX color should be used represent the neutral variant palette? (Leave blank to use generated colors from Material)"
|
|
31
|
+
},
|
|
32
|
+
"errorColor": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Color for the error palette",
|
|
35
|
+
"x-prompt": "What HEX color should be used represent the error palette? (Leave blank to use generated colors from Material)"
|
|
36
|
+
},
|
|
27
37
|
"includeHighContrast": {
|
|
28
38
|
"type": "boolean",
|
|
29
39
|
"default": false,
|