@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
|
@@ -1,116 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as MatProgressSpinner } from '../progress-spinner.d-1fc040c5.js';
|
|
2
|
+
export { b as MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS, c as MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY, M as MatProgressSpinner, a as MatProgressSpinnerDefaultOptions, d as MatSpinner, P as ProgressSpinnerMode } from '../progress-spinner.d-1fc040c5.js';
|
|
2
3
|
import * as i0 from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
5
|
+
import '../palette.d-ec4a617c.js';
|
|
6
|
+
import '@angular/cdk/bidi';
|
|
6
7
|
|
|
7
|
-
declare
|
|
8
|
-
export {
|
|
9
|
-
MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY,
|
|
10
|
-
ProgressSpinnerMode,
|
|
11
|
-
MatProgressSpinnerDefaultOptions,
|
|
12
|
-
MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS,
|
|
13
|
-
MatProgressSpinner,
|
|
14
|
-
MatSpinner
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/** Injection token to be used to override the default options for `mat-progress-spinner`. */
|
|
19
|
-
export declare const MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS: InjectionToken<MatProgressSpinnerDefaultOptions>;
|
|
20
|
-
|
|
21
|
-
/** @docs-private */
|
|
22
|
-
export declare function MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY(): MatProgressSpinnerDefaultOptions;
|
|
23
|
-
|
|
24
|
-
export declare class MatProgressSpinner {
|
|
25
|
-
readonly _elementRef: ElementRef<HTMLElement>;
|
|
26
|
-
/** Whether the _mat-animation-noopable class should be applied, disabling animations. */
|
|
27
|
-
_noopAnimations: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
30
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
31
|
-
*
|
|
32
|
-
* For information on applying color variants in M3, see
|
|
33
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
34
|
-
*/
|
|
35
|
-
get color(): string | null | undefined;
|
|
36
|
-
set color(value: string | null | undefined);
|
|
37
|
-
private _color;
|
|
38
|
-
private _defaultColor;
|
|
39
|
-
/** The element of the determinate spinner. */
|
|
40
|
-
_determinateCircle: ElementRef<HTMLElement>;
|
|
41
|
-
constructor(...args: unknown[]);
|
|
42
|
-
/**
|
|
43
|
-
* Mode of the progress bar.
|
|
44
|
-
*
|
|
45
|
-
* Input must be one of these values: determinate, indeterminate, buffer, query, defaults to
|
|
46
|
-
* 'determinate'.
|
|
47
|
-
* Mirrored to mode attribute.
|
|
48
|
-
*/
|
|
49
|
-
mode: ProgressSpinnerMode;
|
|
50
|
-
/** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
|
|
51
|
-
get value(): number;
|
|
52
|
-
set value(v: number);
|
|
53
|
-
private _value;
|
|
54
|
-
/** The diameter of the progress spinner (will set width and height of svg). */
|
|
55
|
-
get diameter(): number;
|
|
56
|
-
set diameter(size: number);
|
|
57
|
-
private _diameter;
|
|
58
|
-
/** Stroke width of the progress spinner. */
|
|
59
|
-
get strokeWidth(): number;
|
|
60
|
-
set strokeWidth(value: number);
|
|
61
|
-
private _strokeWidth;
|
|
62
|
-
/** The radius of the spinner, adjusted for stroke width. */
|
|
63
|
-
_circleRadius(): number;
|
|
64
|
-
/** The view box of the spinner's svg element. */
|
|
65
|
-
_viewBox(): string;
|
|
66
|
-
/** The stroke circumference of the svg circle. */
|
|
67
|
-
_strokeCircumference(): number;
|
|
68
|
-
/** The dash offset of the svg circle. */
|
|
69
|
-
_strokeDashOffset(): number | null;
|
|
70
|
-
/** Stroke width of the circle in percent. */
|
|
71
|
-
_circleStrokeWidth(): number;
|
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinner, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressSpinner, "mat-progress-spinner, mat-spinner", ["matProgressSpinner"], { "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; }, {}, never, never, true, never>;
|
|
74
|
-
static ngAcceptInputType_value: unknown;
|
|
75
|
-
static ngAcceptInputType_diameter: unknown;
|
|
76
|
-
static ngAcceptInputType_strokeWidth: unknown;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/** Default `mat-progress-spinner` options that can be overridden. */
|
|
80
|
-
export declare interface MatProgressSpinnerDefaultOptions {
|
|
81
|
-
/**
|
|
82
|
-
* Default theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
83
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
84
|
-
*
|
|
85
|
-
* For information on applying color variants in M3, see
|
|
86
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
87
|
-
*/
|
|
88
|
-
color?: ThemePalette;
|
|
89
|
-
/** Diameter of the spinner. */
|
|
90
|
-
diameter?: number;
|
|
91
|
-
/** Width of the spinner's stroke. */
|
|
92
|
-
strokeWidth?: number;
|
|
93
|
-
/**
|
|
94
|
-
* Whether the animations should be force to be enabled, ignoring if the current environment is
|
|
95
|
-
* using NoopAnimationsModule.
|
|
96
|
-
*/
|
|
97
|
-
_forceAnimations?: boolean;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export declare class MatProgressSpinnerModule {
|
|
8
|
+
declare class MatProgressSpinnerModule {
|
|
101
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinnerModule, never>;
|
|
102
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatProgressSpinnerModule, never, [typeof
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatProgressSpinnerModule, never, [typeof MatProgressSpinner, typeof MatProgressSpinner], [typeof MatProgressSpinner, typeof MatProgressSpinner, typeof MatCommonModule]>;
|
|
103
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatProgressSpinnerModule>;
|
|
104
12
|
}
|
|
105
13
|
|
|
106
|
-
|
|
107
|
-
* @deprecated Import Progress Spinner instead. Note that the
|
|
108
|
-
* `mat-spinner` selector isn't deprecated.
|
|
109
|
-
* @breaking-change 16.0.0
|
|
110
|
-
*/
|
|
111
|
-
export declare const MatSpinner: typeof MatProgressSpinner;
|
|
112
|
-
|
|
113
|
-
/** Possible mode for a progress spinner. */
|
|
114
|
-
export declare type ProgressSpinnerMode = 'determinate' | 'indeterminate';
|
|
115
|
-
|
|
116
|
-
export { }
|
|
14
|
+
export { MatProgressSpinnerModule };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { P as ProgressSpinnerMode } from '../../progress-spinner.d-1fc040c5.js';
|
|
3
|
+
import '@angular/core';
|
|
4
|
+
import '../../palette.d-ec4a617c.js';
|
|
5
|
+
|
|
6
|
+
/** A set of criteria that can be used to filter a list of `MatProgressSpinnerHarness` instances. */
|
|
7
|
+
interface ProgressSpinnerHarnessFilters extends BaseHarnessFilters {
|
|
8
|
+
}
|
|
6
9
|
|
|
7
10
|
/** Harness for interacting with a MDC based mat-progress-spinner in tests. */
|
|
8
|
-
|
|
11
|
+
declare class MatProgressSpinnerHarness extends ComponentHarness {
|
|
9
12
|
/** The selector for the host element of a `MatProgressSpinner` instance. */
|
|
10
13
|
static hostSelector: string;
|
|
11
14
|
/**
|
|
@@ -21,8 +24,4 @@ export declare class MatProgressSpinnerHarness extends ComponentHarness {
|
|
|
21
24
|
getMode(): Promise<ProgressSpinnerMode>;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
export declare interface ProgressSpinnerHarnessFilters extends BaseHarnessFilters {
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { }
|
|
27
|
+
export { MatProgressSpinnerHarness, type ProgressSpinnerHarnessFilters };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, ElementRef } from '@angular/core';
|
|
3
|
+
import { T as ThemePalette } from './palette.d-ec4a617c.js';
|
|
4
|
+
|
|
5
|
+
/** Possible mode for a progress spinner. */
|
|
6
|
+
type ProgressSpinnerMode = 'determinate' | 'indeterminate';
|
|
7
|
+
/** Default `mat-progress-spinner` options that can be overridden. */
|
|
8
|
+
interface MatProgressSpinnerDefaultOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Default theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
11
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
12
|
+
*
|
|
13
|
+
* For information on applying color variants in M3, see
|
|
14
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
15
|
+
*/
|
|
16
|
+
color?: ThemePalette;
|
|
17
|
+
/** Diameter of the spinner. */
|
|
18
|
+
diameter?: number;
|
|
19
|
+
/** Width of the spinner's stroke. */
|
|
20
|
+
strokeWidth?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the animations should be force to be enabled, ignoring if the current environment is
|
|
23
|
+
* using NoopAnimationsModule.
|
|
24
|
+
*/
|
|
25
|
+
_forceAnimations?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** Injection token to be used to override the default options for `mat-progress-spinner`. */
|
|
28
|
+
declare const MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS: InjectionToken<MatProgressSpinnerDefaultOptions>;
|
|
29
|
+
/**
|
|
30
|
+
* @docs-private
|
|
31
|
+
* @deprecated No longer used, will be removed.
|
|
32
|
+
* @breaking-change 21.0.0
|
|
33
|
+
*/
|
|
34
|
+
declare function MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY(): MatProgressSpinnerDefaultOptions;
|
|
35
|
+
declare class MatProgressSpinner {
|
|
36
|
+
readonly _elementRef: ElementRef<HTMLElement>;
|
|
37
|
+
/** Whether the _mat-animation-noopable class should be applied, disabling animations. */
|
|
38
|
+
_noopAnimations: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
41
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
42
|
+
*
|
|
43
|
+
* For information on applying color variants in M3, see
|
|
44
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
45
|
+
*/
|
|
46
|
+
get color(): string | null | undefined;
|
|
47
|
+
set color(value: string | null | undefined);
|
|
48
|
+
private _color;
|
|
49
|
+
private _defaultColor;
|
|
50
|
+
/** The element of the determinate spinner. */
|
|
51
|
+
_determinateCircle: ElementRef<HTMLElement>;
|
|
52
|
+
constructor(...args: unknown[]);
|
|
53
|
+
/**
|
|
54
|
+
* Mode of the progress bar.
|
|
55
|
+
*
|
|
56
|
+
* Input must be one of these values: determinate, indeterminate, buffer, query, defaults to
|
|
57
|
+
* 'determinate'.
|
|
58
|
+
* Mirrored to mode attribute.
|
|
59
|
+
*/
|
|
60
|
+
mode: ProgressSpinnerMode;
|
|
61
|
+
/** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
|
|
62
|
+
get value(): number;
|
|
63
|
+
set value(v: number);
|
|
64
|
+
private _value;
|
|
65
|
+
/** The diameter of the progress spinner (will set width and height of svg). */
|
|
66
|
+
get diameter(): number;
|
|
67
|
+
set diameter(size: number);
|
|
68
|
+
private _diameter;
|
|
69
|
+
/** Stroke width of the progress spinner. */
|
|
70
|
+
get strokeWidth(): number;
|
|
71
|
+
set strokeWidth(value: number);
|
|
72
|
+
private _strokeWidth;
|
|
73
|
+
/** The radius of the spinner, adjusted for stroke width. */
|
|
74
|
+
_circleRadius(): number;
|
|
75
|
+
/** The view box of the spinner's svg element. */
|
|
76
|
+
_viewBox(): string;
|
|
77
|
+
/** The stroke circumference of the svg circle. */
|
|
78
|
+
_strokeCircumference(): number;
|
|
79
|
+
/** The dash offset of the svg circle. */
|
|
80
|
+
_strokeDashOffset(): number | null;
|
|
81
|
+
/** Stroke width of the circle in percent. */
|
|
82
|
+
_circleStrokeWidth(): number;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinner, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressSpinner, "mat-progress-spinner, mat-spinner", ["matProgressSpinner"], { "color": { "alias": "color"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; }, {}, never, never, true, never>;
|
|
85
|
+
static ngAcceptInputType_value: unknown;
|
|
86
|
+
static ngAcceptInputType_diameter: unknown;
|
|
87
|
+
static ngAcceptInputType_strokeWidth: unknown;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated Import Progress Spinner instead. Note that the
|
|
91
|
+
* `mat-spinner` selector isn't deprecated.
|
|
92
|
+
* @breaking-change 16.0.0
|
|
93
|
+
*/
|
|
94
|
+
declare const MatSpinner: typeof MatProgressSpinner;
|
|
95
|
+
|
|
96
|
+
export { MatProgressSpinner as M, type ProgressSpinnerMode as P, type MatProgressSpinnerDefaultOptions as a, MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS as b, MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY as c, MatSpinner as d };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { M as MatCommonModule } from './common-module.d-0e6515ae.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Possible states for a pseudo checkbox.
|
|
6
|
+
* @docs-private
|
|
7
|
+
*/
|
|
8
|
+
type MatPseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate';
|
|
9
|
+
/**
|
|
10
|
+
* Component that shows a simplified checkbox without including any kind of "real" checkbox.
|
|
11
|
+
* Meant to be used when the checkbox is purely decorative and a large number of them will be
|
|
12
|
+
* included, such as for the options in a multi-select. Uses no SVGs or complex animations.
|
|
13
|
+
* Note that theming is meant to be handled by the parent element, e.g.
|
|
14
|
+
* `mat-primary .mat-pseudo-checkbox`.
|
|
15
|
+
*
|
|
16
|
+
* Note that this component will be completely invisible to screen-reader users. This is *not*
|
|
17
|
+
* interchangeable with `<mat-checkbox>` and should *not* be used if the user would directly
|
|
18
|
+
* interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail
|
|
19
|
+
* of more complex components that appropriately handle selected / checked state.
|
|
20
|
+
* @docs-private
|
|
21
|
+
*/
|
|
22
|
+
declare class MatPseudoCheckbox {
|
|
23
|
+
_animationMode?: "NoopAnimations" | "BrowserAnimations" | null | undefined;
|
|
24
|
+
/** Display state of the checkbox. */
|
|
25
|
+
state: MatPseudoCheckboxState;
|
|
26
|
+
/** Whether the checkbox is disabled. */
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Appearance of the pseudo checkbox. Default appearance of 'full' renders a checkmark/mixedmark
|
|
30
|
+
* indicator inside a square box. 'minimal' appearance only renders the checkmark/mixedmark.
|
|
31
|
+
*/
|
|
32
|
+
appearance: 'minimal' | 'full';
|
|
33
|
+
constructor(...args: unknown[]);
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPseudoCheckbox, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatPseudoCheckbox, "mat-pseudo-checkbox", never, { "state": { "alias": "state"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class MatPseudoCheckboxModule {
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPseudoCheckboxModule, never>;
|
|
40
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatPseudoCheckboxModule, never, [typeof MatCommonModule, typeof MatPseudoCheckbox], [typeof MatPseudoCheckbox]>;
|
|
41
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatPseudoCheckboxModule>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { MatPseudoCheckboxModule as M, type MatPseudoCheckboxState as a, MatPseudoCheckbox as b };
|
package/radio/index.d.ts
CHANGED
|
@@ -1,170 +1,16 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
|
-
import { AfterViewInit } from '@angular/core';
|
|
3
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import { DoCheck } from '@angular/core';
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
7
1
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
8
2
|
import * as i0 from '@angular/core';
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
MAT_RADIO_DEFAULT_OPTIONS_FACTORY,
|
|
19
|
-
MatRadioChange,
|
|
20
|
-
MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR,
|
|
21
|
-
MAT_RADIO_GROUP,
|
|
22
|
-
MatRadioDefaultOptions,
|
|
23
|
-
MAT_RADIO_DEFAULT_OPTIONS,
|
|
24
|
-
MatRadioGroup,
|
|
25
|
-
MatRadioButton
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export declare const MAT_RADIO_DEFAULT_OPTIONS: InjectionToken<MatRadioDefaultOptions>;
|
|
30
|
-
|
|
31
|
-
export declare function MAT_RADIO_DEFAULT_OPTIONS_FACTORY(): MatRadioDefaultOptions;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Injection token that can be used to inject instances of `MatRadioGroup`. It serves as
|
|
35
|
-
* alternative token to the actual `MatRadioGroup` class which could cause unnecessary
|
|
36
|
-
* retention of the class and its component metadata.
|
|
37
|
-
*/
|
|
38
|
-
export declare const MAT_RADIO_GROUP: InjectionToken<MatRadioGroup>;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Provider Expression that allows mat-radio-group to register as a ControlValueAccessor. This
|
|
42
|
-
* allows it to support [(ngModel)] and ngControl.
|
|
43
|
-
* @docs-private
|
|
44
|
-
*/
|
|
45
|
-
export declare const MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: any;
|
|
46
|
-
|
|
47
|
-
export declare class MatRadioButton implements OnInit, AfterViewInit, DoCheck, OnDestroy {
|
|
48
|
-
protected _elementRef: ElementRef<any>;
|
|
49
|
-
private _changeDetector;
|
|
50
|
-
private _focusMonitor;
|
|
51
|
-
private _radioDispatcher;
|
|
52
|
-
private _defaultOptions;
|
|
53
|
-
private _ngZone;
|
|
54
|
-
private _renderer;
|
|
55
|
-
private _uniqueId;
|
|
56
|
-
private _cleanupClick;
|
|
57
|
-
/** The unique ID for the radio button. */
|
|
58
|
-
id: string;
|
|
59
|
-
/** Analog to HTML 'name' attribute used to group radios for unique selection. */
|
|
60
|
-
name: string;
|
|
61
|
-
/** Used to set the 'aria-label' attribute on the underlying input element. */
|
|
62
|
-
ariaLabel: string;
|
|
63
|
-
/** The 'aria-labelledby' attribute takes precedence as the element's text alternative. */
|
|
64
|
-
ariaLabelledby: string;
|
|
65
|
-
/** The 'aria-describedby' attribute is read after the element's label and field type. */
|
|
66
|
-
ariaDescribedby: string;
|
|
67
|
-
/** Whether ripples are disabled inside the radio button */
|
|
68
|
-
disableRipple: boolean;
|
|
69
|
-
/** Tabindex of the radio button. */
|
|
70
|
-
tabIndex: number;
|
|
71
|
-
/** Whether this radio button is checked. */
|
|
72
|
-
get checked(): boolean;
|
|
73
|
-
set checked(value: boolean);
|
|
74
|
-
/** The value of this radio button. */
|
|
75
|
-
get value(): any;
|
|
76
|
-
set value(value: any);
|
|
77
|
-
/** Whether the label should appear after or before the radio button. Defaults to 'after' */
|
|
78
|
-
get labelPosition(): 'before' | 'after';
|
|
79
|
-
set labelPosition(value: "before" | "after");
|
|
80
|
-
private _labelPosition;
|
|
81
|
-
/** Whether the radio button is disabled. */
|
|
82
|
-
get disabled(): boolean;
|
|
83
|
-
set disabled(value: boolean);
|
|
84
|
-
/** Whether the radio button is required. */
|
|
85
|
-
get required(): boolean;
|
|
86
|
-
set required(value: boolean);
|
|
87
|
-
/**
|
|
88
|
-
* Theme color of the radio button. This API is supported in M2 themes only, it
|
|
89
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/radio/styling.
|
|
90
|
-
*
|
|
91
|
-
* For information on applying color variants in M3, see
|
|
92
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
93
|
-
*/
|
|
94
|
-
get color(): ThemePalette;
|
|
95
|
-
set color(newValue: ThemePalette);
|
|
96
|
-
private _color;
|
|
97
|
-
/** Whether the radio button should remain interactive when it is disabled. */
|
|
98
|
-
get disabledInteractive(): boolean;
|
|
99
|
-
set disabledInteractive(value: boolean);
|
|
100
|
-
private _disabledInteractive;
|
|
101
|
-
/**
|
|
102
|
-
* Event emitted when the checked state of this radio button changes.
|
|
103
|
-
* Change events are only emitted when the value changes due to user interaction with
|
|
104
|
-
* the radio button (the same behavior as `<input type-"radio">`).
|
|
105
|
-
*/
|
|
106
|
-
readonly change: EventEmitter<MatRadioChange>;
|
|
107
|
-
/** The parent radio group. May or may not be present. */
|
|
108
|
-
radioGroup: MatRadioGroup;
|
|
109
|
-
/** ID of the native input element inside `<mat-radio-button>` */
|
|
110
|
-
get inputId(): string;
|
|
111
|
-
/** Whether this radio is checked. */
|
|
112
|
-
private _checked;
|
|
113
|
-
/** Whether this radio is disabled. */
|
|
114
|
-
private _disabled;
|
|
115
|
-
/** Whether this radio is required. */
|
|
116
|
-
private _required;
|
|
117
|
-
/** Value assigned to this radio. */
|
|
118
|
-
private _value;
|
|
119
|
-
/** Unregister function for _radioDispatcher */
|
|
120
|
-
private _removeUniqueSelectionListener;
|
|
121
|
-
/** Previous value of the input's tabindex. */
|
|
122
|
-
private _previousTabIndex;
|
|
123
|
-
/** The native `<input type=radio>` element */
|
|
124
|
-
_inputElement: ElementRef<HTMLInputElement>;
|
|
125
|
-
/** Trigger elements for the ripple events. */
|
|
126
|
-
_rippleTrigger: ElementRef<HTMLElement>;
|
|
127
|
-
/** Whether animations are disabled. */
|
|
128
|
-
_noopAnimations: boolean;
|
|
129
|
-
private _injector;
|
|
130
|
-
constructor(...args: unknown[]);
|
|
131
|
-
/** Focuses the radio button. */
|
|
132
|
-
focus(options?: FocusOptions, origin?: FocusOrigin): void;
|
|
133
|
-
/**
|
|
134
|
-
* Marks the radio button as needing checking for change detection.
|
|
135
|
-
* This method is exposed because the parent radio group will directly
|
|
136
|
-
* update bound properties of the radio button.
|
|
137
|
-
*/
|
|
138
|
-
_markForCheck(): void;
|
|
139
|
-
ngOnInit(): void;
|
|
140
|
-
ngDoCheck(): void;
|
|
141
|
-
ngAfterViewInit(): void;
|
|
142
|
-
ngOnDestroy(): void;
|
|
143
|
-
/** Dispatch change event with current value. */
|
|
144
|
-
private _emitChangeEvent;
|
|
145
|
-
_isRippleDisabled(): boolean;
|
|
146
|
-
/** Triggered when the radio button receives an interaction from the user. */
|
|
147
|
-
_onInputInteraction(event: Event): void;
|
|
148
|
-
/** Triggered when the user clicks on the touch target. */
|
|
149
|
-
_onTouchTargetClick(event: Event): void;
|
|
150
|
-
/** Sets the disabled state and marks for check if a change occurred. */
|
|
151
|
-
protected _setDisabled(value: boolean): void;
|
|
152
|
-
/** Called when the input is clicked. */
|
|
153
|
-
private _onInputClick;
|
|
154
|
-
/** Gets the tabindex for the underlying input element. */
|
|
155
|
-
private _updateTabIndex;
|
|
156
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioButton, never>;
|
|
157
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatRadioButton, "mat-radio-button", ["matRadioButton"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; }, { "change": "change"; }, never, ["*"], true, never>;
|
|
158
|
-
static ngAcceptInputType_disableRipple: unknown;
|
|
159
|
-
static ngAcceptInputType_tabIndex: unknown;
|
|
160
|
-
static ngAcceptInputType_checked: unknown;
|
|
161
|
-
static ngAcceptInputType_disabled: unknown;
|
|
162
|
-
static ngAcceptInputType_required: unknown;
|
|
163
|
-
static ngAcceptInputType_disabledInteractive: unknown;
|
|
164
|
-
}
|
|
3
|
+
import { InjectionToken, AfterContentInit, OnDestroy, EventEmitter, QueryList, OnInit, AfterViewInit, DoCheck, ElementRef } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { T as ThemePalette } from '../palette.d-ec4a617c.js';
|
|
6
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
7
|
+
import { M as MatRippleModule } from '../index.d-0536b706.js';
|
|
8
|
+
import '@angular/cdk/bidi';
|
|
9
|
+
import '../ripple.d-2fb57d04.js';
|
|
10
|
+
import '@angular/cdk/platform';
|
|
165
11
|
|
|
166
12
|
/** Change event object emitted by radio button and radio group. */
|
|
167
|
-
|
|
13
|
+
declare class MatRadioChange<T = any> {
|
|
168
14
|
/** The radio button that emits the change event. */
|
|
169
15
|
source: MatRadioButton;
|
|
170
16
|
/** The value of the radio button. */
|
|
@@ -175,8 +21,19 @@ export declare class MatRadioChange<T = any> {
|
|
|
175
21
|
/** The value of the radio button. */
|
|
176
22
|
value: T);
|
|
177
23
|
}
|
|
178
|
-
|
|
179
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Provider Expression that allows mat-radio-group to register as a ControlValueAccessor. This
|
|
26
|
+
* allows it to support [(ngModel)] and ngControl.
|
|
27
|
+
* @docs-private
|
|
28
|
+
*/
|
|
29
|
+
declare const MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: any;
|
|
30
|
+
/**
|
|
31
|
+
* Injection token that can be used to inject instances of `MatRadioGroup`. It serves as
|
|
32
|
+
* alternative token to the actual `MatRadioGroup` class which could cause unnecessary
|
|
33
|
+
* retention of the class and its component metadata.
|
|
34
|
+
*/
|
|
35
|
+
declare const MAT_RADIO_GROUP: InjectionToken<MatRadioGroup>;
|
|
36
|
+
interface MatRadioDefaultOptions {
|
|
180
37
|
/**
|
|
181
38
|
* Theme color of the radio button. This API is supported in M2 themes only, it
|
|
182
39
|
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/radio/styling.
|
|
@@ -188,11 +45,17 @@ export declare interface MatRadioDefaultOptions {
|
|
|
188
45
|
/** Whether disabled radio buttons should be interactive. */
|
|
189
46
|
disabledInteractive?: boolean;
|
|
190
47
|
}
|
|
191
|
-
|
|
48
|
+
declare const MAT_RADIO_DEFAULT_OPTIONS: InjectionToken<MatRadioDefaultOptions>;
|
|
49
|
+
/**
|
|
50
|
+
* @docs-private
|
|
51
|
+
* @deprecated No longer used, will be removed.
|
|
52
|
+
* @breaking-change 21.0.0
|
|
53
|
+
*/
|
|
54
|
+
declare function MAT_RADIO_DEFAULT_OPTIONS_FACTORY(): MatRadioDefaultOptions;
|
|
192
55
|
/**
|
|
193
56
|
* A group of radio buttons. May contain one or more `<mat-radio-button>` elements.
|
|
194
57
|
*/
|
|
195
|
-
|
|
58
|
+
declare class MatRadioGroup implements AfterContentInit, OnDestroy, ControlValueAccessor {
|
|
196
59
|
private _changeDetector;
|
|
197
60
|
/** Selected value for the radio group. */
|
|
198
61
|
private _value;
|
|
@@ -310,11 +173,129 @@ export declare class MatRadioGroup implements AfterContentInit, OnDestroy, Contr
|
|
|
310
173
|
static ngAcceptInputType_required: unknown;
|
|
311
174
|
static ngAcceptInputType_disabledInteractive: unknown;
|
|
312
175
|
}
|
|
176
|
+
declare class MatRadioButton implements OnInit, AfterViewInit, DoCheck, OnDestroy {
|
|
177
|
+
protected _elementRef: ElementRef<any>;
|
|
178
|
+
private _changeDetector;
|
|
179
|
+
private _focusMonitor;
|
|
180
|
+
private _radioDispatcher;
|
|
181
|
+
private _defaultOptions;
|
|
182
|
+
private _ngZone;
|
|
183
|
+
private _renderer;
|
|
184
|
+
private _uniqueId;
|
|
185
|
+
private _cleanupClick;
|
|
186
|
+
/** The unique ID for the radio button. */
|
|
187
|
+
id: string;
|
|
188
|
+
/** Analog to HTML 'name' attribute used to group radios for unique selection. */
|
|
189
|
+
name: string;
|
|
190
|
+
/** Used to set the 'aria-label' attribute on the underlying input element. */
|
|
191
|
+
ariaLabel: string;
|
|
192
|
+
/** The 'aria-labelledby' attribute takes precedence as the element's text alternative. */
|
|
193
|
+
ariaLabelledby: string;
|
|
194
|
+
/** The 'aria-describedby' attribute is read after the element's label and field type. */
|
|
195
|
+
ariaDescribedby: string;
|
|
196
|
+
/** Whether ripples are disabled inside the radio button */
|
|
197
|
+
disableRipple: boolean;
|
|
198
|
+
/** Tabindex of the radio button. */
|
|
199
|
+
tabIndex: number;
|
|
200
|
+
/** Whether this radio button is checked. */
|
|
201
|
+
get checked(): boolean;
|
|
202
|
+
set checked(value: boolean);
|
|
203
|
+
/** The value of this radio button. */
|
|
204
|
+
get value(): any;
|
|
205
|
+
set value(value: any);
|
|
206
|
+
/** Whether the label should appear after or before the radio button. Defaults to 'after' */
|
|
207
|
+
get labelPosition(): 'before' | 'after';
|
|
208
|
+
set labelPosition(value: "before" | "after");
|
|
209
|
+
private _labelPosition;
|
|
210
|
+
/** Whether the radio button is disabled. */
|
|
211
|
+
get disabled(): boolean;
|
|
212
|
+
set disabled(value: boolean);
|
|
213
|
+
/** Whether the radio button is required. */
|
|
214
|
+
get required(): boolean;
|
|
215
|
+
set required(value: boolean);
|
|
216
|
+
/**
|
|
217
|
+
* Theme color of the radio button. This API is supported in M2 themes only, it
|
|
218
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/radio/styling.
|
|
219
|
+
*
|
|
220
|
+
* For information on applying color variants in M3, see
|
|
221
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
222
|
+
*/
|
|
223
|
+
get color(): ThemePalette;
|
|
224
|
+
set color(newValue: ThemePalette);
|
|
225
|
+
private _color;
|
|
226
|
+
/** Whether the radio button should remain interactive when it is disabled. */
|
|
227
|
+
get disabledInteractive(): boolean;
|
|
228
|
+
set disabledInteractive(value: boolean);
|
|
229
|
+
private _disabledInteractive;
|
|
230
|
+
/**
|
|
231
|
+
* Event emitted when the checked state of this radio button changes.
|
|
232
|
+
* Change events are only emitted when the value changes due to user interaction with
|
|
233
|
+
* the radio button (the same behavior as `<input type-"radio">`).
|
|
234
|
+
*/
|
|
235
|
+
readonly change: EventEmitter<MatRadioChange>;
|
|
236
|
+
/** The parent radio group. May or may not be present. */
|
|
237
|
+
radioGroup: MatRadioGroup;
|
|
238
|
+
/** ID of the native input element inside `<mat-radio-button>` */
|
|
239
|
+
get inputId(): string;
|
|
240
|
+
/** Whether this radio is checked. */
|
|
241
|
+
private _checked;
|
|
242
|
+
/** Whether this radio is disabled. */
|
|
243
|
+
private _disabled;
|
|
244
|
+
/** Whether this radio is required. */
|
|
245
|
+
private _required;
|
|
246
|
+
/** Value assigned to this radio. */
|
|
247
|
+
private _value;
|
|
248
|
+
/** Unregister function for _radioDispatcher */
|
|
249
|
+
private _removeUniqueSelectionListener;
|
|
250
|
+
/** Previous value of the input's tabindex. */
|
|
251
|
+
private _previousTabIndex;
|
|
252
|
+
/** The native `<input type=radio>` element */
|
|
253
|
+
_inputElement: ElementRef<HTMLInputElement>;
|
|
254
|
+
/** Trigger elements for the ripple events. */
|
|
255
|
+
_rippleTrigger: ElementRef<HTMLElement>;
|
|
256
|
+
/** Whether animations are disabled. */
|
|
257
|
+
_noopAnimations: boolean;
|
|
258
|
+
private _injector;
|
|
259
|
+
constructor(...args: unknown[]);
|
|
260
|
+
/** Focuses the radio button. */
|
|
261
|
+
focus(options?: FocusOptions, origin?: FocusOrigin): void;
|
|
262
|
+
/**
|
|
263
|
+
* Marks the radio button as needing checking for change detection.
|
|
264
|
+
* This method is exposed because the parent radio group will directly
|
|
265
|
+
* update bound properties of the radio button.
|
|
266
|
+
*/
|
|
267
|
+
_markForCheck(): void;
|
|
268
|
+
ngOnInit(): void;
|
|
269
|
+
ngDoCheck(): void;
|
|
270
|
+
ngAfterViewInit(): void;
|
|
271
|
+
ngOnDestroy(): void;
|
|
272
|
+
/** Dispatch change event with current value. */
|
|
273
|
+
private _emitChangeEvent;
|
|
274
|
+
_isRippleDisabled(): boolean;
|
|
275
|
+
/** Triggered when the radio button receives an interaction from the user. */
|
|
276
|
+
_onInputInteraction(event: Event): void;
|
|
277
|
+
/** Triggered when the user clicks on the touch target. */
|
|
278
|
+
_onTouchTargetClick(event: Event): void;
|
|
279
|
+
/** Sets the disabled state and marks for check if a change occurred. */
|
|
280
|
+
protected _setDisabled(value: boolean): void;
|
|
281
|
+
/** Called when the input is clicked. */
|
|
282
|
+
private _onInputClick;
|
|
283
|
+
/** Gets the tabindex for the underlying input element. */
|
|
284
|
+
private _updateTabIndex;
|
|
285
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioButton, never>;
|
|
286
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatRadioButton, "mat-radio-button", ["matRadioButton"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "color": { "alias": "color"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; }, { "change": "change"; }, never, ["*"], true, never>;
|
|
287
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
288
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
289
|
+
static ngAcceptInputType_checked: unknown;
|
|
290
|
+
static ngAcceptInputType_disabled: unknown;
|
|
291
|
+
static ngAcceptInputType_required: unknown;
|
|
292
|
+
static ngAcceptInputType_disabledInteractive: unknown;
|
|
293
|
+
}
|
|
313
294
|
|
|
314
|
-
|
|
295
|
+
declare class MatRadioModule {
|
|
315
296
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioModule, never>;
|
|
316
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatRadioModule, never, [typeof
|
|
297
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatRadioModule, never, [typeof MatCommonModule, typeof MatRippleModule, typeof MatRadioGroup, typeof MatRadioButton], [typeof MatCommonModule, typeof MatRadioGroup, typeof MatRadioButton]>;
|
|
317
298
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatRadioModule>;
|
|
318
299
|
}
|
|
319
300
|
|
|
320
|
-
export { }
|
|
301
|
+
export { MAT_RADIO_DEFAULT_OPTIONS, MAT_RADIO_DEFAULT_OPTIONS_FACTORY, MAT_RADIO_GROUP, MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR, MatRadioButton, MatRadioChange, type MatRadioDefaultOptions, MatRadioGroup, MatRadioModule };
|