[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 { HarnessPredicate } from '@angular/cdk/testing';
|
---|
| 9 | import { DatepickerInputHarnessFilters, CalendarHarnessFilters } from './datepicker-harness-filters';
|
---|
| 10 | import { MatDatepickerInputHarnessBase } from './datepicker-input-harness-base';
|
---|
| 11 | import { MatCalendarHarness } from './calendar-harness';
|
---|
| 12 | import { DatepickerTrigger } from './datepicker-trigger-harness-base';
|
---|
| 13 | /** Harness for interacting with a standard Material datepicker inputs in tests. */
|
---|
| 14 | export declare class MatDatepickerInputHarness extends MatDatepickerInputHarnessBase implements DatepickerTrigger {
|
---|
| 15 | static hostSelector: string;
|
---|
| 16 | /**
|
---|
| 17 | * Gets a `HarnessPredicate` that can be used to search for a `MatDatepickerInputHarness`
|
---|
| 18 | * that meets certain criteria.
|
---|
| 19 | * @param options Options for filtering which input instances are considered a match.
|
---|
| 20 | * @return a `HarnessPredicate` configured with the given options.
|
---|
| 21 | */
|
---|
| 22 | static with(options?: DatepickerInputHarnessFilters): HarnessPredicate<MatDatepickerInputHarness>;
|
---|
| 23 | /** Gets whether the calendar associated with the input is open. */
|
---|
| 24 | isCalendarOpen(): Promise<boolean>;
|
---|
| 25 | /** Opens the calendar associated with the input. */
|
---|
| 26 | openCalendar(): Promise<void>;
|
---|
| 27 | /** Closes the calendar associated with the input. */
|
---|
| 28 | closeCalendar(): Promise<void>;
|
---|
| 29 | /** Whether a calendar is associated with the input. */
|
---|
| 30 | hasCalendar(): Promise<boolean>;
|
---|
| 31 | /**
|
---|
| 32 | * Gets the `MatCalendarHarness` that is associated with the trigger.
|
---|
| 33 | * @param filter Optionally filters which calendar is included.
|
---|
| 34 | */
|
---|
| 35 | getCalendar(filter?: CalendarHarnessFilters): Promise<MatCalendarHarness>;
|
---|
| 36 | }
|
---|