@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
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { NgControl, AbstractControlDirective } from '@angular/forms';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
/** An interface which allows a control to work inside of a `MatFormField`. */
|
|
6
|
+
declare abstract class MatFormFieldControl<T> {
|
|
7
|
+
/** The value of the control. */
|
|
8
|
+
value: T | null;
|
|
9
|
+
/**
|
|
10
|
+
* Stream that emits whenever the state of the control changes such that the parent `MatFormField`
|
|
11
|
+
* needs to run change detection.
|
|
12
|
+
*/
|
|
13
|
+
readonly stateChanges: Observable<void>;
|
|
14
|
+
/** The element ID for this control. */
|
|
15
|
+
readonly id: string;
|
|
16
|
+
/** The placeholder for this control. */
|
|
17
|
+
readonly placeholder: string;
|
|
18
|
+
/** Gets the AbstractControlDirective for this control. */
|
|
19
|
+
readonly ngControl: NgControl | AbstractControlDirective | null;
|
|
20
|
+
/** Whether the control is focused. */
|
|
21
|
+
readonly focused: boolean;
|
|
22
|
+
/** Whether the control is empty. */
|
|
23
|
+
readonly empty: boolean;
|
|
24
|
+
/** Whether the `MatFormField` label should try to float. */
|
|
25
|
+
readonly shouldLabelFloat: boolean;
|
|
26
|
+
/** Whether the control is required. */
|
|
27
|
+
readonly required: boolean;
|
|
28
|
+
/** Whether the control is disabled. */
|
|
29
|
+
readonly disabled: boolean;
|
|
30
|
+
/** Whether the control is in an error state. */
|
|
31
|
+
readonly errorState: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* An optional name for the control type that can be used to distinguish `mat-form-field` elements
|
|
34
|
+
* based on their control type. The form field will add a class,
|
|
35
|
+
* `mat-form-field-type-{{controlType}}` to its root element.
|
|
36
|
+
*/
|
|
37
|
+
readonly controlType?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the input is currently in an autofilled state. If property is not present on the
|
|
40
|
+
* control it is assumed to be false.
|
|
41
|
+
*/
|
|
42
|
+
readonly autofilled?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Value of `aria-describedby` that should be merged with the described-by ids
|
|
45
|
+
* which are set by the form-field.
|
|
46
|
+
*/
|
|
47
|
+
readonly userAriaDescribedBy?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Whether to automatically assign the ID of the form field as the `for` attribute
|
|
50
|
+
* on the `<label>` inside the form field. Set this to true to prevent the form
|
|
51
|
+
* field from associating the label with non-native elements.
|
|
52
|
+
*/
|
|
53
|
+
readonly disableAutomaticLabeling?: boolean;
|
|
54
|
+
/** Sets the list of element IDs that currently describe this control. */
|
|
55
|
+
abstract setDescribedByIds(ids: string[]): void;
|
|
56
|
+
/** Handles a click on the control's container. */
|
|
57
|
+
abstract onContainerClick(event: MouseEvent): void;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldControl<any>, never>;
|
|
59
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldControl<any>, never, never, {}, {}, never, never, true, never>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { MatFormFieldControl as M };
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnDestroy, AfterViewInit, ElementRef, AfterContentInit, AfterContentChecked, QueryList } from '@angular/core';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { AbstractControlDirective } from '@angular/forms';
|
|
5
|
+
import { T as ThemePalette } from './palette.d-ec4a617c.js';
|
|
6
|
+
import { M as MatFormFieldControl$1 } from './form-field-control.d-eb86711c.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Injection token that can be used to reference instances of `MatError`. It serves as
|
|
10
|
+
* alternative token to the actual `MatError` class which could cause unnecessary
|
|
11
|
+
* retention of the class and its directive metadata.
|
|
12
|
+
*/
|
|
13
|
+
declare const MAT_ERROR: InjectionToken<MatError>;
|
|
14
|
+
/** Single error message to be shown underneath the form-field. */
|
|
15
|
+
declare class MatError {
|
|
16
|
+
id: string;
|
|
17
|
+
constructor(...args: unknown[]);
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatError, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatError, "mat-error, [matError]", never, { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Hint text to be shown underneath the form field control. */
|
|
23
|
+
declare class MatHint {
|
|
24
|
+
/** Whether to align the hint label at the start or end of the line. */
|
|
25
|
+
align: 'start' | 'end';
|
|
26
|
+
/** Unique ID for the hint. Used for the aria-describedby on the form field control. */
|
|
27
|
+
id: string;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatHint, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatHint, "mat-hint", never, { "align": { "alias": "align"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Injection token that can be used to reference instances of `MatPrefix`. It serves as
|
|
34
|
+
* alternative token to the actual `MatPrefix` class which could cause unnecessary
|
|
35
|
+
* retention of the class and its directive metadata.
|
|
36
|
+
*/
|
|
37
|
+
declare const MAT_PREFIX: InjectionToken<MatPrefix>;
|
|
38
|
+
/** Prefix to be placed in front of the form field. */
|
|
39
|
+
declare class MatPrefix {
|
|
40
|
+
set _isTextSelector(value: '');
|
|
41
|
+
_isText: boolean;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPrefix, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPrefix, "[matPrefix], [matIconPrefix], [matTextPrefix]", never, { "_isTextSelector": { "alias": "matTextPrefix"; "required": false; }; }, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Injection token that can be used to reference instances of `MatSuffix`. It serves as
|
|
48
|
+
* alternative token to the actual `MatSuffix` class which could cause unnecessary
|
|
49
|
+
* retention of the class and its directive metadata.
|
|
50
|
+
*/
|
|
51
|
+
declare const MAT_SUFFIX: InjectionToken<MatSuffix>;
|
|
52
|
+
/** Suffix to be placed at the end of the form field. */
|
|
53
|
+
declare class MatSuffix {
|
|
54
|
+
set _isTextSelector(value: '');
|
|
55
|
+
_isText: boolean;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSuffix, never>;
|
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSuffix, "[matSuffix], [matIconSuffix], [matTextSuffix]", never, { "_isTextSelector": { "alias": "matTextSuffix"; "required": false; }; }, {}, never, never, true, never>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** An interface that the parent form-field should implement to receive resize events. */
|
|
61
|
+
interface FloatingLabelParent {
|
|
62
|
+
_handleLabelResized(): void;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Internal directive that maintains a MDC floating label. This directive does not
|
|
66
|
+
* use the `MDCFloatingLabelFoundation` class, as it is not worth the size cost of
|
|
67
|
+
* including it just to measure the label width and toggle some classes.
|
|
68
|
+
*
|
|
69
|
+
* The use of a directive allows us to conditionally render a floating label in the
|
|
70
|
+
* template without having to manually manage instantiation and destruction of the
|
|
71
|
+
* floating label component based on.
|
|
72
|
+
*
|
|
73
|
+
* The component is responsible for setting up the floating label styles, measuring label
|
|
74
|
+
* width for the outline notch, and providing inputs that can be used to toggle the
|
|
75
|
+
* label's floating or required state.
|
|
76
|
+
*/
|
|
77
|
+
declare class MatFormFieldFloatingLabel implements OnDestroy {
|
|
78
|
+
private _elementRef;
|
|
79
|
+
/** Whether the label is floating. */
|
|
80
|
+
get floating(): boolean;
|
|
81
|
+
set floating(value: boolean);
|
|
82
|
+
private _floating;
|
|
83
|
+
/** Whether to monitor for resize events on the floating label. */
|
|
84
|
+
get monitorResize(): boolean;
|
|
85
|
+
set monitorResize(value: boolean);
|
|
86
|
+
private _monitorResize;
|
|
87
|
+
/** The shared ResizeObserver. */
|
|
88
|
+
private _resizeObserver;
|
|
89
|
+
/** The Angular zone. */
|
|
90
|
+
private _ngZone;
|
|
91
|
+
/** The parent form-field. */
|
|
92
|
+
private _parent;
|
|
93
|
+
/** The current resize event subscription. */
|
|
94
|
+
private _resizeSubscription;
|
|
95
|
+
constructor(...args: unknown[]);
|
|
96
|
+
ngOnDestroy(): void;
|
|
97
|
+
/** Gets the width of the label. Used for the outline notch. */
|
|
98
|
+
getWidth(): number;
|
|
99
|
+
/** Gets the HTML element for the floating label. */
|
|
100
|
+
get element(): HTMLElement;
|
|
101
|
+
/** Handles resize events from the ResizeObserver. */
|
|
102
|
+
private _handleResize;
|
|
103
|
+
/** Subscribes to resize events. */
|
|
104
|
+
private _subscribeToResize;
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldFloatingLabel, never>;
|
|
106
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldFloatingLabel, "label[matFormFieldFloatingLabel]", never, { "floating": { "alias": "floating"; "required": false; }; "monitorResize": { "alias": "monitorResize"; "required": false; }; }, {}, never, never, true, never>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Internal directive that creates an instance of the MDC line-ripple component. Using a
|
|
111
|
+
* directive allows us to conditionally render a line-ripple in the template without having
|
|
112
|
+
* to manually create and destroy the `MDCLineRipple` component whenever the condition changes.
|
|
113
|
+
*
|
|
114
|
+
* The directive sets up the styles for the line-ripple and provides an API for activating
|
|
115
|
+
* and deactivating the line-ripple.
|
|
116
|
+
*/
|
|
117
|
+
declare class MatFormFieldLineRipple implements OnDestroy {
|
|
118
|
+
private _elementRef;
|
|
119
|
+
private _cleanupTransitionEnd;
|
|
120
|
+
constructor(...args: unknown[]);
|
|
121
|
+
activate(): void;
|
|
122
|
+
deactivate(): void;
|
|
123
|
+
private _handleTransitionEnd;
|
|
124
|
+
ngOnDestroy(): void;
|
|
125
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldLineRipple, never>;
|
|
126
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldLineRipple, "div[matFormFieldLineRipple]", never, {}, {}, never, never, true, never>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Internal component that creates an instance of the MDC notched-outline component.
|
|
131
|
+
*
|
|
132
|
+
* The component sets up the HTML structure and styles for the notched-outline. It provides
|
|
133
|
+
* inputs to toggle the notch state and width.
|
|
134
|
+
*/
|
|
135
|
+
declare class MatFormFieldNotchedOutline implements AfterViewInit {
|
|
136
|
+
private _elementRef;
|
|
137
|
+
private _ngZone;
|
|
138
|
+
/** Whether the notch should be opened. */
|
|
139
|
+
open: boolean;
|
|
140
|
+
_notch: ElementRef;
|
|
141
|
+
constructor(...args: unknown[]);
|
|
142
|
+
ngAfterViewInit(): void;
|
|
143
|
+
_setNotchWidth(labelWidth: number): void;
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldNotchedOutline, never>;
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFormFieldNotchedOutline, "div[matFormFieldNotchedOutline]", never, { "open": { "alias": "matFormFieldNotchedOutlineOpen"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/** Type for the available floatLabel values. */
|
|
149
|
+
type FloatLabelType = 'always' | 'auto';
|
|
150
|
+
/** Possible appearance styles for the form field. */
|
|
151
|
+
type MatFormFieldAppearance = 'fill' | 'outline';
|
|
152
|
+
/** Behaviors for how the subscript height is set. */
|
|
153
|
+
type SubscriptSizing = 'fixed' | 'dynamic';
|
|
154
|
+
/**
|
|
155
|
+
* Represents the default options for the form field that can be configured
|
|
156
|
+
* using the `MAT_FORM_FIELD_DEFAULT_OPTIONS` injection token.
|
|
157
|
+
*/
|
|
158
|
+
interface MatFormFieldDefaultOptions {
|
|
159
|
+
/** Default form field appearance style. */
|
|
160
|
+
appearance?: MatFormFieldAppearance;
|
|
161
|
+
/**
|
|
162
|
+
* Default theme color of the form field. This API is supported in M2 themes only, it has no
|
|
163
|
+
* effect in M3 themes. For color customization in M3, see https://material.angular.io/components/form-field/styling.
|
|
164
|
+
*
|
|
165
|
+
* For information on applying color variants in M3, see
|
|
166
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
167
|
+
*/
|
|
168
|
+
color?: ThemePalette;
|
|
169
|
+
/** Whether the required marker should be hidden by default. */
|
|
170
|
+
hideRequiredMarker?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Whether the label for form fields should by default float `always`,
|
|
173
|
+
* `never`, or `auto` (only when necessary).
|
|
174
|
+
*/
|
|
175
|
+
floatLabel?: FloatLabelType;
|
|
176
|
+
/** Whether the form field should reserve space for one line by default. */
|
|
177
|
+
subscriptSizing?: SubscriptSizing;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Injection token that can be used to inject an instances of `MatFormField`. It serves
|
|
181
|
+
* as alternative token to the actual `MatFormField` class which would cause unnecessary
|
|
182
|
+
* retention of the `MatFormField` class and its component metadata.
|
|
183
|
+
*/
|
|
184
|
+
declare const MAT_FORM_FIELD: InjectionToken<MatFormField>;
|
|
185
|
+
/**
|
|
186
|
+
* Injection token that can be used to configure the
|
|
187
|
+
* default options for all form field within an app.
|
|
188
|
+
*/
|
|
189
|
+
declare const MAT_FORM_FIELD_DEFAULT_OPTIONS: InjectionToken<MatFormFieldDefaultOptions>;
|
|
190
|
+
/**
|
|
191
|
+
* Despite `MatFormFieldControl` being an abstract class, most of our usages enforce its shape
|
|
192
|
+
* using `implements` instead of `extends`. This appears to be problematic when Closure compiler
|
|
193
|
+
* is configured to use type information to rename properties, because it can't figure out which
|
|
194
|
+
* class properties are coming from. This interface seems to work around the issue while preserving
|
|
195
|
+
* our type safety (alternative being using `any` everywhere).
|
|
196
|
+
* @docs-private
|
|
197
|
+
*/
|
|
198
|
+
interface MatFormFieldControl<T> extends MatFormFieldControl$1<T> {
|
|
199
|
+
}
|
|
200
|
+
/** Container for form controls that applies Material Design styling and behavior. */
|
|
201
|
+
declare class MatFormField implements FloatingLabelParent, AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy {
|
|
202
|
+
_elementRef: ElementRef<any>;
|
|
203
|
+
private _changeDetectorRef;
|
|
204
|
+
private _dir;
|
|
205
|
+
private _platform;
|
|
206
|
+
private _idGenerator;
|
|
207
|
+
private _ngZone;
|
|
208
|
+
private _injector;
|
|
209
|
+
private _defaults;
|
|
210
|
+
_textField: ElementRef<HTMLElement>;
|
|
211
|
+
_iconPrefixContainer: ElementRef<HTMLElement>;
|
|
212
|
+
_textPrefixContainer: ElementRef<HTMLElement>;
|
|
213
|
+
_iconSuffixContainer: ElementRef<HTMLElement>;
|
|
214
|
+
_textSuffixContainer: ElementRef<HTMLElement>;
|
|
215
|
+
_floatingLabel: MatFormFieldFloatingLabel | undefined;
|
|
216
|
+
_notchedOutline: MatFormFieldNotchedOutline | undefined;
|
|
217
|
+
_lineRipple: MatFormFieldLineRipple | undefined;
|
|
218
|
+
_formFieldControl: MatFormFieldControl<any>;
|
|
219
|
+
_prefixChildren: QueryList<MatPrefix>;
|
|
220
|
+
_suffixChildren: QueryList<MatSuffix>;
|
|
221
|
+
_errorChildren: QueryList<MatError>;
|
|
222
|
+
_hintChildren: QueryList<MatHint>;
|
|
223
|
+
private readonly _labelChild;
|
|
224
|
+
/** Whether the required marker should be hidden. */
|
|
225
|
+
get hideRequiredMarker(): boolean;
|
|
226
|
+
set hideRequiredMarker(value: BooleanInput);
|
|
227
|
+
private _hideRequiredMarker;
|
|
228
|
+
/**
|
|
229
|
+
* Theme color of the form field. This API is supported in M2 themes only, it
|
|
230
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/form-field/styling.
|
|
231
|
+
*
|
|
232
|
+
* For information on applying color variants in M3, see
|
|
233
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
234
|
+
*/
|
|
235
|
+
color: ThemePalette;
|
|
236
|
+
/** Whether the label should always float or float as the user types. */
|
|
237
|
+
get floatLabel(): FloatLabelType;
|
|
238
|
+
set floatLabel(value: FloatLabelType);
|
|
239
|
+
private _floatLabel;
|
|
240
|
+
/** The form field appearance style. */
|
|
241
|
+
get appearance(): MatFormFieldAppearance;
|
|
242
|
+
set appearance(value: MatFormFieldAppearance);
|
|
243
|
+
private _appearance;
|
|
244
|
+
/**
|
|
245
|
+
* Whether the form field should reserve space for one line of hint/error text (default)
|
|
246
|
+
* or to have the spacing grow from 0px as needed based on the size of the hint/error content.
|
|
247
|
+
* Note that when using dynamic sizing, layout shifts will occur when hint/error text changes.
|
|
248
|
+
*/
|
|
249
|
+
get subscriptSizing(): SubscriptSizing;
|
|
250
|
+
set subscriptSizing(value: SubscriptSizing);
|
|
251
|
+
private _subscriptSizing;
|
|
252
|
+
/** Text for the form field hint. */
|
|
253
|
+
get hintLabel(): string;
|
|
254
|
+
set hintLabel(value: string);
|
|
255
|
+
private _hintLabel;
|
|
256
|
+
_hasIconPrefix: boolean;
|
|
257
|
+
_hasTextPrefix: boolean;
|
|
258
|
+
_hasIconSuffix: boolean;
|
|
259
|
+
_hasTextSuffix: boolean;
|
|
260
|
+
readonly _labelId: string;
|
|
261
|
+
readonly _hintLabelId: string;
|
|
262
|
+
/** Gets the current form field control */
|
|
263
|
+
get _control(): MatFormFieldControl<any>;
|
|
264
|
+
set _control(value: MatFormFieldControl<any>);
|
|
265
|
+
private _destroyed;
|
|
266
|
+
private _isFocused;
|
|
267
|
+
private _explicitFormFieldControl;
|
|
268
|
+
private _needsOutlineLabelOffsetUpdate;
|
|
269
|
+
private _previousControl;
|
|
270
|
+
private _previousControlValidatorFn;
|
|
271
|
+
private _stateChanges;
|
|
272
|
+
private _valueChanges;
|
|
273
|
+
private _describedByChanges;
|
|
274
|
+
protected readonly _animationsDisabled: boolean;
|
|
275
|
+
constructor(...args: unknown[]);
|
|
276
|
+
ngAfterViewInit(): void;
|
|
277
|
+
ngAfterContentInit(): void;
|
|
278
|
+
ngAfterContentChecked(): void;
|
|
279
|
+
ngOnDestroy(): void;
|
|
280
|
+
/**
|
|
281
|
+
* Gets the id of the label element. If no label is present, returns `null`.
|
|
282
|
+
*/
|
|
283
|
+
getLabelId: i0.Signal<string | null>;
|
|
284
|
+
/**
|
|
285
|
+
* Gets an ElementRef for the element that a overlay attached to the form field
|
|
286
|
+
* should be positioned relative to.
|
|
287
|
+
*/
|
|
288
|
+
getConnectedOverlayOrigin(): ElementRef;
|
|
289
|
+
/** Animates the placeholder up and locks it in position. */
|
|
290
|
+
_animateAndLockLabel(): void;
|
|
291
|
+
/** Initializes the registered form field control. */
|
|
292
|
+
private _initializeControl;
|
|
293
|
+
private _checkPrefixAndSuffixTypes;
|
|
294
|
+
/** Initializes the prefix and suffix containers. */
|
|
295
|
+
private _initializePrefixAndSuffix;
|
|
296
|
+
/**
|
|
297
|
+
* Initializes the subscript by validating hints and synchronizing "aria-describedby" ids
|
|
298
|
+
* with the custom form field control. Also subscribes to hint and error changes in order
|
|
299
|
+
* to be able to validate and synchronize ids on change.
|
|
300
|
+
*/
|
|
301
|
+
private _initializeSubscript;
|
|
302
|
+
/** Throws an error if the form field's control is missing. */
|
|
303
|
+
private _assertFormFieldControl;
|
|
304
|
+
private _updateFocusState;
|
|
305
|
+
/**
|
|
306
|
+
* The floating label in the docked state needs to account for prefixes. The horizontal offset
|
|
307
|
+
* is calculated whenever the appearance changes to `outline`, the prefixes change, or when the
|
|
308
|
+
* form field is added to the DOM. This method sets up all subscriptions which are needed to
|
|
309
|
+
* trigger the label offset update.
|
|
310
|
+
*/
|
|
311
|
+
private _initializeOutlineLabelOffsetSubscriptions;
|
|
312
|
+
/** Whether the floating label should always float or not. */
|
|
313
|
+
_shouldAlwaysFloat(): boolean;
|
|
314
|
+
_hasOutline(): boolean;
|
|
315
|
+
/**
|
|
316
|
+
* Whether the label should display in the infix. Labels in the outline appearance are
|
|
317
|
+
* displayed as part of the notched-outline and are horizontally offset to account for
|
|
318
|
+
* form field prefix content. This won't work in server side rendering since we cannot
|
|
319
|
+
* measure the width of the prefix container. To make the docked label appear as if the
|
|
320
|
+
* right offset has been calculated, we forcibly render the label inside the infix. Since
|
|
321
|
+
* the label is part of the infix, the label cannot overflow the prefix content.
|
|
322
|
+
*/
|
|
323
|
+
_forceDisplayInfixLabel(): boolean | 0;
|
|
324
|
+
_hasFloatingLabel: i0.Signal<boolean>;
|
|
325
|
+
_shouldLabelFloat(): boolean;
|
|
326
|
+
/**
|
|
327
|
+
* Determines whether a class from the AbstractControlDirective
|
|
328
|
+
* should be forwarded to the host element.
|
|
329
|
+
*/
|
|
330
|
+
_shouldForward(prop: keyof AbstractControlDirective): boolean;
|
|
331
|
+
/** Determines whether to display hints or errors. */
|
|
332
|
+
_getDisplayedMessages(): 'error' | 'hint';
|
|
333
|
+
/** Handle label resize events. */
|
|
334
|
+
_handleLabelResized(): void;
|
|
335
|
+
/** Refreshes the width of the outline-notch, if present. */
|
|
336
|
+
_refreshOutlineNotchWidth(): void;
|
|
337
|
+
/** Does any extra processing that is required when handling the hints. */
|
|
338
|
+
private _processHints;
|
|
339
|
+
/**
|
|
340
|
+
* Ensure that there is a maximum of one of each "mat-hint" alignment specified. The hint
|
|
341
|
+
* label specified set through the input is being considered as "start" aligned.
|
|
342
|
+
*
|
|
343
|
+
* This method is a noop if Angular runs in production mode.
|
|
344
|
+
*/
|
|
345
|
+
private _validateHints;
|
|
346
|
+
/**
|
|
347
|
+
* Sets the list of element IDs that describe the child control. This allows the control to update
|
|
348
|
+
* its `aria-describedby` attribute accordingly.
|
|
349
|
+
*/
|
|
350
|
+
private _syncDescribedByIds;
|
|
351
|
+
/**
|
|
352
|
+
* Updates the horizontal offset of the label in the outline appearance. In the outline
|
|
353
|
+
* appearance, the notched-outline and label are not relative to the infix container because
|
|
354
|
+
* the outline intends to surround prefixes, suffixes and the infix. This means that the
|
|
355
|
+
* floating label by default overlaps prefixes in the docked state. To avoid this, we need to
|
|
356
|
+
* horizontally offset the label by the width of the prefix container. The MDC text-field does
|
|
357
|
+
* not need to do this because they use a fixed width for prefixes. Hence, they can simply
|
|
358
|
+
* incorporate the horizontal offset into their default text-field styles.
|
|
359
|
+
*/
|
|
360
|
+
private _updateOutlineLabelOffset;
|
|
361
|
+
/** Checks whether the form field is attached to the DOM. */
|
|
362
|
+
private _isAttachedToDom;
|
|
363
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFormField, never>;
|
|
364
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatFormField, "mat-form-field", ["matFormField"], { "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; "color": { "alias": "color"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "hintLabel": { "alias": "hintLabel"; "required": false; }; }, {}, ["_labelChild", "_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren", "_hintChildren"], ["mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "*", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error, [matError]", "mat-hint:not([align='end'])", "mat-hint[align='end']"], true, never>;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export { type FloatLabelType as F, MAT_ERROR as M, type SubscriptSizing as S, MatError as a, MatHint as b, MAT_PREFIX as c, MatPrefix as d, MAT_SUFFIX as e, MatSuffix as f, type MatFormFieldAppearance as g, type MatFormFieldDefaultOptions as h, MAT_FORM_FIELD as i, MAT_FORM_FIELD_DEFAULT_OPTIONS as j, MatFormField as k };
|