[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
---|
| 9 | import { MatFormFieldControlHarness } from '@angular/material/form-field/testing/control';
|
---|
| 10 | import { DatepickerInputHarnessFilters } from './datepicker-harness-filters';
|
---|
| 11 | /** Sets up the filter predicates for a datepicker input harness. */
|
---|
| 12 | export declare function getInputPredicate<T extends MatDatepickerInputHarnessBase>(type: ComponentHarnessConstructor<T>, options: DatepickerInputHarnessFilters): HarnessPredicate<T>;
|
---|
| 13 | /** Base class for datepicker input harnesses. */
|
---|
| 14 | export declare abstract class MatDatepickerInputHarnessBase extends MatFormFieldControlHarness {
|
---|
| 15 | /** Whether the input is disabled. */
|
---|
| 16 | isDisabled(): Promise<boolean>;
|
---|
| 17 | /** Whether the input is required. */
|
---|
| 18 | isRequired(): Promise<boolean>;
|
---|
| 19 | /** Gets the value of the input. */
|
---|
| 20 | getValue(): Promise<string>;
|
---|
| 21 | /**
|
---|
| 22 | * Sets the value of the input. The value will be set by simulating
|
---|
| 23 | * keypresses that correspond to the given value.
|
---|
| 24 | */
|
---|
| 25 | setValue(newValue: string): Promise<void>;
|
---|
| 26 | /** Gets the placeholder of the input. */
|
---|
| 27 | getPlaceholder(): Promise<string>;
|
---|
| 28 | /**
|
---|
| 29 | * Focuses the input and returns a promise that indicates when the
|
---|
| 30 | * action is complete.
|
---|
| 31 | */
|
---|
| 32 | focus(): Promise<void>;
|
---|
| 33 | /**
|
---|
| 34 | * Blurs the input and returns a promise that indicates when the
|
---|
| 35 | * action is complete.
|
---|
| 36 | */
|
---|
| 37 | blur(): Promise<void>;
|
---|
| 38 | /** Whether the input is focused. */
|
---|
| 39 | isFocused(): Promise<boolean>;
|
---|
| 40 | /** Gets the formatted minimum date for the input's value. */
|
---|
| 41 | getMin(): Promise<string | null>;
|
---|
| 42 | /** Gets the formatted maximum date for the input's value. */
|
---|
| 43 | getMax(): Promise<string | null>;
|
---|
| 44 | }
|
---|