source: trip-planner-front/node_modules/@angular/material/datepicker/testing/date-range-input-harness.d.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.0 KB
Line 
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 */
8import { HarnessPredicate } from '@angular/cdk/testing';
9import { MatDatepickerInputHarnessBase } from './datepicker-input-harness-base';
10import { DatepickerTriggerHarnessBase } from './datepicker-trigger-harness-base';
11import { DatepickerInputHarnessFilters, DateRangeInputHarnessFilters } from './datepicker-harness-filters';
12/** Harness for interacting with a standard Material date range start input in tests. */
13export declare class MatStartDateHarness extends MatDatepickerInputHarnessBase {
14 static hostSelector: string;
15 /**
16 * Gets a `HarnessPredicate` that can be used to search for a `MatStartDateHarness`
17 * that meets certain criteria.
18 * @param options Options for filtering which input instances are considered a match.
19 * @return a `HarnessPredicate` configured with the given options.
20 */
21 static with(options?: DatepickerInputHarnessFilters): HarnessPredicate<MatStartDateHarness>;
22}
23/** Harness for interacting with a standard Material date range end input in tests. */
24export declare class MatEndDateHarness extends MatDatepickerInputHarnessBase {
25 static hostSelector: string;
26 /**
27 * Gets a `HarnessPredicate` that can be used to search for a `MatEndDateHarness`
28 * that meets certain criteria.
29 * @param options Options for filtering which input instances are considered a match.
30 * @return a `HarnessPredicate` configured with the given options.
31 */
32 static with(options?: DatepickerInputHarnessFilters): HarnessPredicate<MatEndDateHarness>;
33}
34/** Harness for interacting with a standard Material date range input in tests. */
35export declare class MatDateRangeInputHarness extends DatepickerTriggerHarnessBase {
36 static hostSelector: string;
37 /**
38 * Gets a `HarnessPredicate` that can be used to search for a `MatDateRangeInputHarness`
39 * that meets certain criteria.
40 * @param options Options for filtering which input instances are considered a match.
41 * @return a `HarnessPredicate` configured with the given options.
42 */
43 static with(options?: DateRangeInputHarnessFilters): HarnessPredicate<MatDateRangeInputHarness>;
44 /** Gets the combined value of the start and end inputs, including the separator. */
45 getValue(): Promise<string>;
46 /** Gets the inner start date input inside the range input. */
47 getStartInput(): Promise<MatStartDateHarness>;
48 /** Gets the inner start date input inside the range input. */
49 getEndInput(): Promise<MatEndDateHarness>;
50 /** Gets the separator text between the values of the two inputs. */
51 getSeparator(): Promise<string>;
52 /** Gets whether the range input is disabled. */
53 isDisabled(): Promise<boolean>;
54 /** Gets whether the range input is required. */
55 isRequired(): Promise<boolean>;
56 /** Opens the calendar associated with the input. */
57 isCalendarOpen(): Promise<boolean>;
58 protected _openCalendar(): Promise<void>;
59}
Note: See TracBrowser for help on using the repository browser.