From a3120147523da86bc0e8d9531344d3c531c4795b Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 22 Nov 2024 12:26:56 +0100 Subject: [PATCH] fix(material/timepicker): make disabled input public (#30063) Initially the `disabled` input was marked as `protected`, because the actual disabled state is a `computed`. This seems to break with some compiler options so these changes switches it to be public. Fixes #30061. (cherry picked from commit d6b37754898951d0f410eb0982fa92621f0ec5c6) --- src/material/timepicker/timepicker-input.ts | 7 +++++-- tools/public_api_guard/material/timepicker.md | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/material/timepicker/timepicker-input.ts b/src/material/timepicker/timepicker-input.ts index 795c4cb1b72e..54f088f7dd28 100644 --- a/src/material/timepicker/timepicker-input.ts +++ b/src/material/timepicker/timepicker-input.ts @@ -144,8 +144,11 @@ export class MatTimepickerInput implements ControlValueAccessor, Validator, O () => this.disabledInput() || this._accessorDisabled(), ); - /** Whether the input should be disabled through the template. */ - protected readonly disabledInput: InputSignalWithTransform = input(false, { + /** + * Whether the input should be disabled through the template. + * @docs-private + */ + readonly disabledInput: InputSignalWithTransform = input(false, { transform: booleanAttribute, alias: 'disabled', }); diff --git a/tools/public_api_guard/material/timepicker.md b/tools/public_api_guard/material/timepicker.md index c30900da874a..ecfcae907ac8 100644 --- a/tools/public_api_guard/material/timepicker.md +++ b/tools/public_api_guard/material/timepicker.md @@ -71,7 +71,7 @@ export class MatTimepickerInput implements ControlValueAccessor, Validator, O protected readonly _ariaControls: Signal; protected readonly _ariaExpanded: Signal; readonly disabled: Signal; - protected readonly disabledInput: InputSignalWithTransform; + readonly disabledInput: InputSignalWithTransform; focus(): void; _getLabelId(): string | null; getOverlayOrigin(): ElementRef;