source: trip-planner-front/node_modules/@angular/material/chips/testing/chip-harness-filters.d.ts@ e29cc2e

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

initial commit

  • Property mode set to 100644
File size: 1.9 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 { BaseHarnessFilters } from '@angular/cdk/testing';
9/** A set of criteria that can be used to filter a list of chip instances. */
10export interface ChipHarnessFilters extends BaseHarnessFilters {
11 /** Only find instances whose text matches the given value. */
12 text?: string | RegExp;
13 /**
14 * Only find chip instances whose selected state matches the given value.
15 * @deprecated Use `MatChipOptionHarness` together with `ChipOptionHarnessFilters`.
16 * @breaking-change 12.0.0
17 */
18 selected?: boolean;
19}
20/** A set of criteria that can be used to filter a list of selectable chip instances. */
21export interface ChipOptionHarnessFilters extends ChipHarnessFilters {
22 /** Only find chip instances whose selected state matches the given value. */
23 selected?: boolean;
24}
25/** A set of criteria that can be used to filter chip list instances. */
26export interface ChipListHarnessFilters extends BaseHarnessFilters {
27}
28/** A set of criteria that can be used to filter selectable chip list instances. */
29export interface ChipListboxHarnessFilters extends BaseHarnessFilters {
30}
31/** A set of criteria that can be used to filter a list of `MatChipListInputHarness` instances. */
32export interface ChipInputHarnessFilters extends BaseHarnessFilters {
33 /** Filters based on the value of the input. */
34 value?: string | RegExp;
35 /** Filters based on the placeholder text of the input. */
36 placeholder?: string | RegExp;
37}
38/** A set of criteria that can be used to filter a list of `MatChipRemoveHarness` instances. */
39export interface ChipRemoveHarnessFilters extends BaseHarnessFilters {
40}
41/** A set of criteria that can be used to filter a list of `MatChipAvatarHarness` instances. */
42export interface ChipAvatarHarnessFilters extends BaseHarnessFilters {
43}
Note: See TracBrowser for help on using the repository browser.