@skyux/lookup 6.14.0 → 6.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/documentation.json +737 -735
- package/esm2020/lib/modules/autocomplete/autocomplete-input.directive.mjs +12 -12
- package/esm2020/lib/modules/lookup/lookup-show-more-async-modal.component.mjs +8 -7
- package/esm2020/lib/modules/lookup/lookup-show-more-modal.component.mjs +20 -14
- package/esm2020/lib/modules/lookup/lookup.component.mjs +7 -3
- package/esm2020/testing/autocomplete/autocomplete-harness-filters.mjs +1 -1
- package/esm2020/testing/autocomplete/autocomplete-harness.mjs +2 -1
- package/esm2020/testing/autocomplete/autocomplete-search-result-harness-filters.mjs +1 -1
- package/esm2020/testing/autocomplete/autocomplete-search-result-harness.mjs +2 -1
- package/esm2020/testing/country-field/country-field-fixture.mjs +2 -1
- package/esm2020/testing/country-field/country-field-testing.module.mjs +4 -1
- package/esm2020/testing/lookup/lookup-harness-filters.mjs +2 -0
- package/esm2020/testing/lookup/lookup-harness.mjs +82 -0
- package/esm2020/testing/lookup/lookup-selection-harness-filters.mjs +2 -0
- package/esm2020/testing/lookup/lookup-selection-harness.mjs +8 -0
- package/esm2020/testing/lookup/lookup-selections-list-harness.mjs +26 -0
- package/esm2020/testing/lookup/lookup-show-more-picker-harness-filters.mjs +2 -0
- package/esm2020/testing/lookup/lookup-show-more-picker-harness.mjs +119 -0
- package/esm2020/testing/lookup/lookup-show-more-picker-search-result-harness-filters.mjs +2 -0
- package/esm2020/testing/lookup/lookup-show-more-picker-search-result-harness.mjs +8 -0
- package/esm2020/testing/public-api.mjs +12 -1
- package/esm2020/testing/search/search-fixture.mjs +3 -1
- package/esm2020/testing/search/search-harness-filters.mjs +2 -0
- package/esm2020/testing/search/search-harness.mjs +83 -0
- package/esm2020/testing/search/search-testing.module.mjs +8 -4
- package/fesm2015/skyux-lookup-testing.mjs +401 -4
- package/fesm2015/skyux-lookup-testing.mjs.map +1 -1
- package/fesm2015/skyux-lookup.mjs +48 -38
- package/fesm2015/skyux-lookup.mjs.map +1 -1
- package/fesm2020/skyux-lookup-testing.mjs +331 -4
- package/fesm2020/skyux-lookup-testing.mjs.map +1 -1
- package/fesm2020/skyux-lookup.mjs +48 -38
- package/fesm2020/skyux-lookup.mjs.map +1 -1
- package/lib/modules/lookup/lookup-show-more-async-modal.component.d.ts +6 -2
- package/lib/modules/lookup/lookup-show-more-modal.component.d.ts +6 -1
- package/lib/modules/lookup/lookup.component.d.ts +1 -0
- package/package.json +10 -10
- package/testing/autocomplete/autocomplete-harness-filters.d.ts +1 -0
- package/testing/autocomplete/autocomplete-harness.d.ts +1 -0
- package/testing/autocomplete/autocomplete-search-result-harness-filters.d.ts +1 -0
- package/testing/autocomplete/autocomplete-search-result-harness.d.ts +1 -0
- package/testing/country-field/country-field-fixture.d.ts +1 -0
- package/testing/country-field/country-field-testing.module.d.ts +3 -0
- package/testing/lookup/lookup-harness-filters.d.ts +7 -0
- package/testing/lookup/lookup-harness.d.ts +51 -0
- package/testing/lookup/lookup-selection-harness-filters.d.ts +7 -0
- package/testing/lookup/lookup-selection-harness.d.ts +7 -0
- package/testing/lookup/lookup-selections-list-harness.d.ts +20 -0
- package/testing/lookup/lookup-show-more-picker-harness-filters.d.ts +7 -0
- package/testing/lookup/lookup-show-more-picker-harness.d.ts +61 -0
- package/testing/lookup/lookup-show-more-picker-search-result-harness-filters.d.ts +7 -0
- package/testing/lookup/lookup-show-more-picker-search-result-harness.d.ts +7 -0
- package/testing/public-api.d.ts +11 -0
- package/testing/search/search-fixture.d.ts +2 -0
- package/testing/search/search-harness-filters.d.ts +7 -0
- package/testing/search/search-harness.d.ts +48 -0
- package/testing/search/search-testing.module.d.ts +6 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { SkyLogService } from '@skyux/core';
|
|
2
|
+
import { SkyIdService, SkyLogService } from '@skyux/core';
|
|
3
3
|
import { SkyModalInstance } from '@skyux/modals';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { SkyLookupShowMoreNativePickerAsyncContext } from './types/lookup-show-more-native-picker-async-context';
|
|
@@ -19,6 +19,10 @@ export declare class SkyLookupShowMoreAsyncModalComponent implements OnInit, OnD
|
|
|
19
19
|
addClick: Subject<void>;
|
|
20
20
|
displayedItems: any[];
|
|
21
21
|
hasMoreItems: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Used to associate this modal with its owning lookup component.
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
22
26
|
isLoadingMore: boolean;
|
|
23
27
|
isSearching: boolean;
|
|
24
28
|
items: any[];
|
|
@@ -26,7 +30,7 @@ export declare class SkyLookupShowMoreAsyncModalComponent implements OnInit, OnD
|
|
|
26
30
|
repeaterItemTemplate: TemplateRef<unknown> | null;
|
|
27
31
|
searchText: string | undefined;
|
|
28
32
|
selectedIdMap: Map<unknown, unknown>;
|
|
29
|
-
constructor(modalInstance: SkyModalInstance, context: SkyLookupShowMoreNativePickerAsyncContext, changeDetector: ChangeDetectorRef, logSvc: SkyLogService);
|
|
33
|
+
constructor(modalInstance: SkyModalInstance, context: SkyLookupShowMoreNativePickerAsyncContext, changeDetector: ChangeDetectorRef, idSvc: SkyIdService, logSvc: SkyLogService);
|
|
30
34
|
ngOnInit(): void;
|
|
31
35
|
ngOnDestroy(): void;
|
|
32
36
|
addButtonClicked(): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
+
import { SkyIdService } from '@skyux/core';
|
|
2
3
|
import { SkyModalInstance } from '@skyux/modals';
|
|
3
4
|
import { Subject } from 'rxjs';
|
|
4
5
|
import { SkyLookupShowMoreNativePickerContext } from './types/lookup-show-more-native-picker-context';
|
|
@@ -16,6 +17,10 @@ export declare class SkyLookupShowMoreModalComponent implements AfterViewInit, O
|
|
|
16
17
|
* Fires when users select the button to add new options to the list.
|
|
17
18
|
*/
|
|
18
19
|
addClick: Subject<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Used to associate this modal with its owning lookup component.
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
19
24
|
items: any[];
|
|
20
25
|
dataManagerConfig: {
|
|
21
26
|
sortOptions: {
|
|
@@ -34,7 +39,7 @@ export declare class SkyLookupShowMoreModalComponent implements AfterViewInit, O
|
|
|
34
39
|
index: number;
|
|
35
40
|
itemData: any;
|
|
36
41
|
}[];
|
|
37
|
-
constructor(modalInstance: SkyModalInstance, context: SkyLookupShowMoreNativePickerContext, changeDetector: ChangeDetectorRef);
|
|
42
|
+
constructor(modalInstance: SkyModalInstance, context: SkyLookupShowMoreNativePickerContext, changeDetector: ChangeDetectorRef, idSvc: SkyIdService);
|
|
38
43
|
ngAfterViewInit(): void;
|
|
39
44
|
ngOnDestroy(): void;
|
|
40
45
|
addButtonClicked(): void;
|
|
@@ -93,6 +93,7 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
|
|
|
93
93
|
set value(newValue: any[]);
|
|
94
94
|
autocompleteController: Subject<SkyAutocompleteMessage>;
|
|
95
95
|
isInputFocused: boolean;
|
|
96
|
+
showMorePickerId: string | undefined;
|
|
96
97
|
tokensController: Subject<SkyTokensMessage>;
|
|
97
98
|
private set autocompleteInputDirective(value);
|
|
98
99
|
private get autocompleteInputDirective();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/lookup",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.17.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"@angular/core": "^13.3.2",
|
|
47
47
|
"@angular/forms": "^13.3.2",
|
|
48
48
|
"@angular/platform-browser": "^13.3.2",
|
|
49
|
-
"@skyux-sdk/testing": "6.
|
|
50
|
-
"@skyux/core": "6.
|
|
51
|
-
"@skyux/forms": "6.
|
|
52
|
-
"@skyux/i18n": "6.
|
|
53
|
-
"@skyux/indicators": "6.
|
|
54
|
-
"@skyux/layout": "6.
|
|
55
|
-
"@skyux/lists": "6.
|
|
56
|
-
"@skyux/modals": "6.
|
|
57
|
-
"@skyux/theme": "6.
|
|
49
|
+
"@skyux-sdk/testing": "6.17.0",
|
|
50
|
+
"@skyux/core": "6.17.0",
|
|
51
|
+
"@skyux/forms": "6.17.0",
|
|
52
|
+
"@skyux/i18n": "6.17.0",
|
|
53
|
+
"@skyux/indicators": "6.17.0",
|
|
54
|
+
"@skyux/layout": "6.17.0",
|
|
55
|
+
"@skyux/lists": "6.17.0",
|
|
56
|
+
"@skyux/modals": "6.17.0",
|
|
57
|
+
"@skyux/theme": "6.17.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"intl-tel-input": "17.0.16",
|
|
@@ -5,6 +5,7 @@ import { SkyAutocompleteSearchResultHarness } from './autocomplete-search-result
|
|
|
5
5
|
import { SkyAutocompleteSearchResultHarnessFilters } from './autocomplete-search-result-harness-filters';
|
|
6
6
|
/**
|
|
7
7
|
* Harness for interacting with an autocomplete component in tests.
|
|
8
|
+
* @internal
|
|
8
9
|
*/
|
|
9
10
|
export declare class SkyAutocompleteHarness extends SkyComponentHarness {
|
|
10
11
|
#private;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
2
|
/**
|
|
3
3
|
* A set of criteria that can be used to filter a list of SkyAutocompleteSearchResultHarness instances.
|
|
4
|
+
* @internal
|
|
4
5
|
*/
|
|
5
6
|
export interface SkyAutocompleteSearchResultHarnessFilters extends Omit<BaseHarnessFilters, 'selector'> {
|
|
6
7
|
/**
|
|
@@ -2,6 +2,7 @@ import { ComponentHarness, HarnessPredicate, HarnessQuery } from '@angular/cdk/t
|
|
|
2
2
|
import { SkyAutocompleteSearchResultHarnessFilters } from './autocomplete-search-result-harness-filters';
|
|
3
3
|
/**
|
|
4
4
|
* Harness for interacting with an autocomplete search results in tests.
|
|
5
|
+
* @internal
|
|
5
6
|
*/
|
|
6
7
|
export declare class SkyAutocompleteSearchResultHarness extends ComponentHarness {
|
|
7
8
|
static hostSelector: string;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@skyux/lookup";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export declare class SkyCountryFieldTestingModule {
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCountryFieldTestingModule, never>;
|
|
5
8
|
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyCountryFieldTestingModule, never, never, [typeof i1.SkyCountryFieldModule]>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyAutocompleteHarness } from '../autocomplete/autocomplete-harness';
|
|
3
|
+
import { SkyLookupHarnessFilters } from './lookup-harness-filters';
|
|
4
|
+
import { SkyLookupSelectionHarness } from './lookup-selection-harness';
|
|
5
|
+
import { SkyLookupShowMorePickerHarness } from './lookup-show-more-picker-harness';
|
|
6
|
+
/**
|
|
7
|
+
* Harness for interacting with a lookup component in tests.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare class SkyLookupHarness extends SkyAutocompleteHarness {
|
|
11
|
+
#private;
|
|
12
|
+
/**
|
|
13
|
+
* Finds a standard lookup component, or a lookup component that is wrapped by an input box component.
|
|
14
|
+
* For input box implementations, we need to use the `.sky-input-box` selector since the `sky-lookup`
|
|
15
|
+
* element is removed from the DOM.
|
|
16
|
+
*/
|
|
17
|
+
static hostSelector: string;
|
|
18
|
+
/**
|
|
19
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
20
|
+
* `SkyLookupHarness` that meets certain criteria.
|
|
21
|
+
*/
|
|
22
|
+
static with(filters: SkyLookupHarnessFilters): HarnessPredicate<SkyLookupHarness>;
|
|
23
|
+
/**
|
|
24
|
+
* Clicks the "Add" button on the search results panel.
|
|
25
|
+
*/
|
|
26
|
+
clickAddButton(): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Clicks the "Show more" button on the search results panel.
|
|
29
|
+
*/
|
|
30
|
+
clickShowMoreButton(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Dismisses the selections made with a multiselect lookup.
|
|
33
|
+
*/
|
|
34
|
+
dismissSelections(): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Gets the "Show more" picker harness.
|
|
37
|
+
*/
|
|
38
|
+
getShowMorePicker(): Promise<SkyLookupShowMorePickerHarness>;
|
|
39
|
+
/**
|
|
40
|
+
* Gets a list of selections made with a multiselect lookup.
|
|
41
|
+
*/
|
|
42
|
+
getSelections(): Promise<SkyLookupSelectionHarness[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the text content of all selections made with a multiselect lookup.
|
|
45
|
+
*/
|
|
46
|
+
getSelectionsText(): Promise<string[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the lookup allows for multiple selections.
|
|
49
|
+
*/
|
|
50
|
+
isMultiselect(): Promise<boolean>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SkyTokenHarnessFilters } from '@skyux/indicators/testing';
|
|
2
|
+
/**
|
|
3
|
+
* A set of criteria that can be used to filter a list of `SkyLookupSelectionHarness` instances.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface SkyLookupSelectionHarnessFilters extends SkyTokenHarnessFilters {
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SkyTokensHarness } from '@skyux/indicators/testing';
|
|
2
|
+
import { SkyLookupSelectionHarness } from './lookup-selection-harness';
|
|
3
|
+
/**
|
|
4
|
+
* Harness for interacting with multiselect lookup selections in tests.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare class SkyLookupSelectionsListHarness extends SkyTokensHarness {
|
|
8
|
+
/**
|
|
9
|
+
* Gets a list of selections.
|
|
10
|
+
*/
|
|
11
|
+
getSelections(): Promise<SkyLookupSelectionHarness[]>;
|
|
12
|
+
/**
|
|
13
|
+
* Dismisses the selections in the list.
|
|
14
|
+
*/
|
|
15
|
+
dismissSelections(): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Gets the text content of all selections in the list.
|
|
18
|
+
*/
|
|
19
|
+
getSelectionsText(): Promise<string[]>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
+
/**
|
|
3
|
+
* A set of criteria that can be used to filter a list of `SkyLookupShowMorePickerHarness` instances.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface SkyLookupShowMorePickerHarnessFilters extends Omit<BaseHarnessFilters, 'ancestor'> {
|
|
7
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyLookupShowMorePickerHarnessFilters } from './lookup-show-more-picker-harness-filters';
|
|
3
|
+
import { SkyLookupShowMorePickerSearchResultHarness } from './lookup-show-more-picker-search-result-harness';
|
|
4
|
+
import { SkyLookupShowMorePickerSearchResultHarnessFilters } from './lookup-show-more-picker-search-result-harness-filters';
|
|
5
|
+
/**
|
|
6
|
+
* Harness for interacting with a lookup's "Show more" picker in tests.
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare class SkyLookupShowMorePickerHarness extends ComponentHarness {
|
|
10
|
+
#private;
|
|
11
|
+
/**
|
|
12
|
+
* Use the class name since the async and non-async pickers use different
|
|
13
|
+
* host components but share the same wrapper CSS class.
|
|
14
|
+
*/
|
|
15
|
+
static hostSelector: string;
|
|
16
|
+
/**
|
|
17
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
18
|
+
* `SkyLookupShowMorePickerHarness` that meets certain criteria.
|
|
19
|
+
*/
|
|
20
|
+
static with(filters: SkyLookupShowMorePickerHarnessFilters): HarnessPredicate<SkyLookupShowMorePickerHarness>;
|
|
21
|
+
/**
|
|
22
|
+
* Clears the text of the search input.
|
|
23
|
+
*/
|
|
24
|
+
clearSearchText(): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Enters text into the search input and performs a search.
|
|
27
|
+
*/
|
|
28
|
+
enterSearchText(value: string): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Selects multiple search results based on a set of criteria.
|
|
31
|
+
*/
|
|
32
|
+
selectSearchResult(filters?: SkyLookupShowMorePickerSearchResultHarnessFilters): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Saves any selections made and closes the picker.
|
|
35
|
+
*/
|
|
36
|
+
saveAndClose(): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Closes the picker without saving any selections made.
|
|
39
|
+
*/
|
|
40
|
+
cancel(): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Gets a list of search results.
|
|
43
|
+
*/
|
|
44
|
+
getSearchResults(filters?: SkyLookupShowMorePickerSearchResultHarnessFilters): Promise<SkyLookupShowMorePickerSearchResultHarness[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Clears all selections made.
|
|
47
|
+
*/
|
|
48
|
+
clearAll(): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the picker is configured to allow multiple selections.
|
|
51
|
+
*/
|
|
52
|
+
isMultiselect(): Promise<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* Selects all search results.
|
|
55
|
+
*/
|
|
56
|
+
selectAll(): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Loads more results in the picker.
|
|
59
|
+
*/
|
|
60
|
+
loadMore(): Promise<void>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SkyRepeaterItemHarnessFilters } from '@skyux/lists/testing';
|
|
2
|
+
/**
|
|
3
|
+
* A set of criteria that can be used to filter a list of `SkyLookupShowMorePickerSearchResultHarness` instances.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface SkyLookupShowMorePickerSearchResultHarnessFilters extends Omit<SkyRepeaterItemHarnessFilters, 'titleText' | 'ancestor'> {
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SkyRepeaterItemHarness } from '@skyux/lists/testing';
|
|
2
|
+
/**
|
|
3
|
+
* Harness for interacting with a lookup's "Show more" picker search results in tests.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class SkyLookupShowMorePickerSearchResultHarness extends SkyRepeaterItemHarness {
|
|
7
|
+
}
|
package/testing/public-api.d.ts
CHANGED
|
@@ -4,5 +4,16 @@ export * from './autocomplete/autocomplete-search-result-harness';
|
|
|
4
4
|
export * from './autocomplete/autocomplete-search-result-harness-filters';
|
|
5
5
|
export * from './country-field/country-field-fixture';
|
|
6
6
|
export * from './country-field/country-field-testing.module';
|
|
7
|
+
export * from './lookup/lookup-harness';
|
|
8
|
+
export * from './lookup/lookup-harness-filters';
|
|
9
|
+
export * from './lookup/lookup-selection-harness';
|
|
10
|
+
export * from './lookup/lookup-selection-harness-filters';
|
|
11
|
+
export * from './lookup/lookup-selections-list-harness';
|
|
12
|
+
export * from './lookup/lookup-show-more-picker-harness';
|
|
13
|
+
export * from './lookup/lookup-show-more-picker-harness-filters';
|
|
14
|
+
export * from './lookup/lookup-show-more-picker-search-result-harness';
|
|
15
|
+
export * from './lookup/lookup-show-more-picker-search-result-harness-filters';
|
|
7
16
|
export * from './search/search-fixture';
|
|
17
|
+
export * from './search/search-harness';
|
|
18
|
+
export * from './search/search-harness-filters';
|
|
8
19
|
export * from './search/search-testing.module';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkySearchHarnessFilters } from './search-harness-filters';
|
|
4
|
+
/**
|
|
5
|
+
* Harness for interacting with an search component in tests.
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare class SkySearchHarness extends SkyComponentHarness {
|
|
9
|
+
#private;
|
|
10
|
+
static hostSelector: string;
|
|
11
|
+
/**
|
|
12
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
13
|
+
* `SkySearchHarness` that meets certain criteria.
|
|
14
|
+
*/
|
|
15
|
+
static with(filters: SkySearchHarnessFilters): HarnessPredicate<SkySearchHarness>;
|
|
16
|
+
/**
|
|
17
|
+
* Blurs the input.
|
|
18
|
+
*/
|
|
19
|
+
blur(): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Clears the input.
|
|
22
|
+
*/
|
|
23
|
+
clear(): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Enters text into the input and performs a search.
|
|
26
|
+
*/
|
|
27
|
+
enterText(value: string): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Focuses the input.
|
|
30
|
+
*/
|
|
31
|
+
focus(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Gets the value of the input's placeholder attribute.
|
|
34
|
+
*/
|
|
35
|
+
getPlaceholderText(): Promise<string | null>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets the value of the input.
|
|
38
|
+
*/
|
|
39
|
+
getValue(): Promise<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the input is disabled.
|
|
42
|
+
*/
|
|
43
|
+
isDisabled(): Promise<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the input is focused.
|
|
46
|
+
*/
|
|
47
|
+
isFocused(): Promise<boolean>;
|
|
48
|
+
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@
|
|
2
|
+
import * as i1 from "@angular/platform-browser/animations";
|
|
3
|
+
import * as i2 from "@skyux/lookup";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
3
7
|
export declare class SkySearchTestingModule {
|
|
4
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkySearchTestingModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkySearchTestingModule, never, never, [typeof i1.SkySearchModule]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkySearchTestingModule, never, never, [typeof i1.NoopAnimationsModule, typeof i2.SkySearchModule]>;
|
|
6
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkySearchTestingModule>;
|
|
7
11
|
}
|