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 { BaseHarnessFilters } from '@angular/cdk/testing';
|
---|
9 | /** A set of criteria that can be used to filter a list of chip instances. */
|
---|
10 | export 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. */
|
---|
21 | export 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. */
|
---|
26 | export interface ChipListHarnessFilters extends BaseHarnessFilters {
|
---|
27 | }
|
---|
28 | /** A set of criteria that can be used to filter selectable chip list instances. */
|
---|
29 | export interface ChipListboxHarnessFilters extends BaseHarnessFilters {
|
---|
30 | }
|
---|
31 | /** A set of criteria that can be used to filter a list of `MatChipListInputHarness` instances. */
|
---|
32 | export 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. */
|
---|
39 | export interface ChipRemoveHarnessFilters extends BaseHarnessFilters {
|
---|
40 | }
|
---|
41 | /** A set of criteria that can be used to filter a list of `MatChipAvatarHarness` instances. */
|
---|
42 | export interface ChipAvatarHarnessFilters extends BaseHarnessFilters {
|
---|
43 | }
|
---|