@skyux/lookup 12.22.0 → 13.0.0-alpha.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/fesm2022/skyux-lookup-testing.mjs +8 -8
- package/fesm2022/skyux-lookup-testing.mjs.map +1 -1
- package/fesm2022/skyux-lookup.mjs +73 -73
- package/fesm2022/skyux-lookup.mjs.map +1 -1
- package/index.d.ts +1239 -41
- package/package.json +17 -17
- package/testing/index.d.ts +742 -3
- package/lib/modules/autocomplete/autocomplete-adapter.service.d.ts +0 -26
- package/lib/modules/autocomplete/autocomplete-default-search-function.d.ts +0 -3
- package/lib/modules/autocomplete/autocomplete-input.directive.d.ts +0 -51
- package/lib/modules/autocomplete/autocomplete-search-async-disabled.pipe.d.ts +0 -11
- package/lib/modules/autocomplete/autocomplete.component.d.ts +0 -202
- package/lib/modules/autocomplete/autocomplete.module.d.ts +0 -16
- package/lib/modules/autocomplete/types/autocomplete-default-search-function-options.d.ts +0 -10
- package/lib/modules/autocomplete/types/autocomplete-input-text-change.d.ts +0 -6
- package/lib/modules/autocomplete/types/autocomplete-message-type.d.ts +0 -13
- package/lib/modules/autocomplete/types/autocomplete-message.d.ts +0 -10
- package/lib/modules/autocomplete/types/autocomplete-search-args.d.ts +0 -4
- package/lib/modules/autocomplete/types/autocomplete-search-async-args.d.ts +0 -35
- package/lib/modules/autocomplete/types/autocomplete-search-async-function.d.ts +0 -4
- package/lib/modules/autocomplete/types/autocomplete-search-async-result-display-type.d.ts +0 -1
- package/lib/modules/autocomplete/types/autocomplete-search-async-result.d.ts +0 -25
- package/lib/modules/autocomplete/types/autocomplete-search-context.d.ts +0 -1
- package/lib/modules/autocomplete/types/autocomplete-search-function-filter.d.ts +0 -2
- package/lib/modules/autocomplete/types/autocomplete-search-function-response.d.ts +0 -1
- package/lib/modules/autocomplete/types/autocomplete-search-function.d.ts +0 -3
- package/lib/modules/autocomplete/types/autocomplete-selection-change.d.ts +0 -6
- package/lib/modules/autocomplete/types/autocomplete-show-more-args.d.ts +0 -9
- package/lib/modules/country-field/clone-country-data.d.ts +0 -7
- package/lib/modules/country-field/country-field.component.d.ts +0 -97
- package/lib/modules/country-field/country-field.module.d.ts +0 -13
- package/lib/modules/country-field/types/country-field-context-token.d.ts +0 -6
- package/lib/modules/country-field/types/country-field-context.d.ts +0 -6
- package/lib/modules/country-field/types/country.d.ts +0 -29
- package/lib/modules/lookup/lookup-adapter.service.d.ts +0 -10
- package/lib/modules/lookup/lookup-autocomplete-adapter.d.ts +0 -78
- package/lib/modules/lookup/lookup-show-more-modal.component.d.ts +0 -57
- package/lib/modules/lookup/lookup.component.d.ts +0 -161
- package/lib/modules/lookup/lookup.module.d.ts +0 -13
- package/lib/modules/lookup/types/lookup-add-click-callback-args.d.ts +0 -16
- package/lib/modules/lookup/types/lookup-add-click-event-args.d.ts +0 -11
- package/lib/modules/lookup/types/lookup-select-mode-type.d.ts +0 -1
- package/lib/modules/lookup/types/lookup-select-mode.d.ts +0 -14
- package/lib/modules/lookup/types/lookup-show-more-config.d.ts +0 -18
- package/lib/modules/lookup/types/lookup-show-more-custom-picker-context.d.ts +0 -18
- package/lib/modules/lookup/types/lookup-show-more-custom-picker.d.ts +0 -7
- package/lib/modules/lookup/types/lookup-show-more-native-picker-config.d.ts +0 -26
- package/lib/modules/lookup/types/lookup-show-more-native-picker-context.d.ts +0 -18
- package/lib/modules/search/search-adapter.service.d.ts +0 -15
- package/lib/modules/search/search.component.d.ts +0 -90
- package/lib/modules/search/search.module.d.ts +0 -14
- package/lib/modules/selection-modal/selection-modal-item-selected.pipe.d.ts +0 -10
- package/lib/modules/selection-modal/selection-modal.component.d.ts +0 -46
- package/lib/modules/selection-modal/selection-modal.module.d.ts +0 -10
- package/lib/modules/selection-modal/selection-modal.service.d.ts +0 -18
- package/lib/modules/selection-modal/types/selection-modal-add-click-callback-args.d.ts +0 -9
- package/lib/modules/selection-modal/types/selection-modal-add-click-event-args.d.ts +0 -11
- package/lib/modules/selection-modal/types/selection-modal-close-args.d.ts +0 -14
- package/lib/modules/selection-modal/types/selection-modal-context.d.ts +0 -19
- package/lib/modules/selection-modal/types/selection-modal-instance.d.ts +0 -33
- package/lib/modules/selection-modal/types/selection-modal-open-args.d.ts +0 -70
- package/lib/modules/selection-modal/types/selection-modal-result.d.ts +0 -14
- package/lib/modules/selection-modal/types/selection-modal-search-args.d.ts +0 -21
- package/lib/modules/selection-modal/types/selection-modal-search-result.d.ts +0 -25
- package/lib/modules/shared/sky-lookup-resources.module.d.ts +0 -10
- package/lib/modules/shared/sky-lookup-string-utils.d.ts +0 -5
- package/testing/legacy/country-field/country-field-fixture.d.ts +0 -37
- package/testing/legacy/country-field/country-field-testing.module.d.ts +0 -10
- package/testing/legacy/search/search-fixture.d.ts +0 -29
- package/testing/legacy/search/search-testing.module.d.ts +0 -11
- package/testing/modules/autocomplete/autocomplete-harness-filters.d.ts +0 -6
- package/testing/modules/autocomplete/autocomplete-harness.d.ts +0 -104
- package/testing/modules/autocomplete/autocomplete-input-harness.d.ts +0 -14
- package/testing/modules/autocomplete/autocomplete-search-result-harness-filters.d.ts +0 -10
- package/testing/modules/autocomplete/autocomplete-search-result-harness.d.ts +0 -30
- package/testing/modules/country-field/country-field-harness-filters.d.ts +0 -6
- package/testing/modules/country-field/country-field-harness.d.ts +0 -92
- package/testing/modules/country-field/country-field-search-result-harness-filters.d.ts +0 -6
- package/testing/modules/country-field/country-field-search-result-harness.d.ts +0 -20
- package/testing/modules/lookup/lookup-harness-filters.d.ts +0 -6
- package/testing/modules/lookup/lookup-harness.d.ts +0 -114
- package/testing/modules/lookup/lookup-search-result-harness-filters.d.ts +0 -6
- package/testing/modules/lookup/lookup-search-result-harness.d.ts +0 -17
- package/testing/modules/lookup/lookup-selection-harness.d.ts +0 -6
- package/testing/modules/lookup/lookup-selections-list-harness.d.ts +0 -20
- package/testing/modules/lookup/lookup-show-more-picker-harness-filters.d.ts +0 -6
- package/testing/modules/lookup/lookup-show-more-picker-harness.d.ts +0 -23
- package/testing/modules/lookup/lookup-show-more-picker-search-result-harness-filters.d.ts +0 -6
- package/testing/modules/lookup/lookup-show-more-picker-search-result-harness.d.ts +0 -6
- package/testing/modules/search/search-harness-filters.d.ts +0 -6
- package/testing/modules/search/search-harness.d.ts +0 -78
- package/testing/modules/selection-modal/selection-modal-harness.d.ts +0 -85
- package/testing/modules/selection-modal/selection-modal-search-result-harness-filters.d.ts +0 -6
- package/testing/modules/selection-modal/selection-modal-search-result-harness.d.ts +0 -6
- package/testing/public-api.d.ts +0 -28
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyAutocompleteSearchResultHarness } from '../autocomplete/autocomplete-search-result-harness';
|
|
3
|
-
import { SkyCountryFieldSearchResultHarnessFilters } from './country-field-search-result-harness-filters';
|
|
4
|
-
/**
|
|
5
|
-
* Harness for interacting with an autocomplete search result in tests.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SkyCountryFieldSearchResultHarness extends SkyAutocompleteSearchResultHarness {
|
|
8
|
-
/**
|
|
9
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
10
|
-
* `SkyCountryFieldSearchResultHarness` that meets certain criteria.
|
|
11
|
-
*/
|
|
12
|
-
static with(filters: SkyCountryFieldSearchResultHarnessFilters): HarnessPredicate<SkyCountryFieldSearchResultHarness>;
|
|
13
|
-
/**
|
|
14
|
-
* Returns the value of the search result's descriptor property.
|
|
15
|
-
* This is not needed by country field because it is always set to the country name,
|
|
16
|
-
* and the method is marked internal to prevent it from being documented publicly.
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
getDescriptorValue(): Promise<string>;
|
|
20
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyAutocompleteHarness } from '../autocomplete/autocomplete-harness';
|
|
3
|
-
import { SkyLookupHarnessFilters } from './lookup-harness-filters';
|
|
4
|
-
import { SkyLookupSearchResultHarness } from './lookup-search-result-harness';
|
|
5
|
-
import { SkyLookupSearchResultHarnessFilters } from './lookup-search-result-harness-filters';
|
|
6
|
-
import { SkyLookupSelectionHarness } from './lookup-selection-harness';
|
|
7
|
-
import { SkyLookupShowMorePickerHarness } from './lookup-show-more-picker-harness';
|
|
8
|
-
/**
|
|
9
|
-
* Harness for interacting with a lookup component in tests.
|
|
10
|
-
*/
|
|
11
|
-
export declare class SkyLookupHarness extends SkyAutocompleteHarness {
|
|
12
|
-
#private;
|
|
13
|
-
/**
|
|
14
|
-
* Finds a standard lookup component, or a lookup component that is wrapped by an input box component.
|
|
15
|
-
* For input box implementations, we need to use the `.sky-input-box` selector since the `sky-lookup`
|
|
16
|
-
* element is removed from the DOM.
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
static hostSelector: string;
|
|
20
|
-
/**
|
|
21
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
22
|
-
* `SkyLookupHarness` that meets certain criteria.
|
|
23
|
-
*
|
|
24
|
-
* These filters only work for standalone lookups. For lookups
|
|
25
|
-
* wrapped inside `sky-input-box`, place filters on the input box
|
|
26
|
-
* instead and query the datepicker using a `SkyInputBoxHarness`.
|
|
27
|
-
* For the input box implementation, see the code example.
|
|
28
|
-
*/
|
|
29
|
-
static with(filters: SkyLookupHarnessFilters): HarnessPredicate<SkyLookupHarness>;
|
|
30
|
-
/**
|
|
31
|
-
* Blurs the lookup input.
|
|
32
|
-
* @deprecated Call `await (await lookup.getControl()).blur()` instead.
|
|
33
|
-
*/
|
|
34
|
-
blur(): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Clears the lookup input value.
|
|
37
|
-
* @deprecated Call `await (await lookup.getControl()).clear()` instead.
|
|
38
|
-
*/
|
|
39
|
-
clear(): Promise<void>;
|
|
40
|
-
/**
|
|
41
|
-
* Clicks the "Add" button on the search results panel.
|
|
42
|
-
*/
|
|
43
|
-
clickAddButton(): Promise<void>;
|
|
44
|
-
/**
|
|
45
|
-
* Clicks the "Show more" button on the search results panel.
|
|
46
|
-
*/
|
|
47
|
-
clickShowMoreButton(): Promise<void>;
|
|
48
|
-
/**
|
|
49
|
-
* Dismisses the selections made with a multiselect lookup.
|
|
50
|
-
*/
|
|
51
|
-
dismissSelections(): Promise<void>;
|
|
52
|
-
/**
|
|
53
|
-
* Enters text into the lookup input.
|
|
54
|
-
* @deprecated Call `await (await lookup.getControl()).setValue()` instead.
|
|
55
|
-
*/
|
|
56
|
-
enterText(value: string): Promise<void>;
|
|
57
|
-
/**
|
|
58
|
-
* Focuses the lookup input.
|
|
59
|
-
* @deprecated Call `await (await lookup.getControl()).focus()` instead.
|
|
60
|
-
*/
|
|
61
|
-
focus(): Promise<void>;
|
|
62
|
-
/**
|
|
63
|
-
* Gets the lookup `aria-labelledby` value.
|
|
64
|
-
* @deprecated Don't use this property. It returns a value from a deprecated input that lookup no longer uses.
|
|
65
|
-
*/
|
|
66
|
-
getAriaLabelledby(): Promise<string | null>;
|
|
67
|
-
/**
|
|
68
|
-
* Returns lookup search result harnesses.
|
|
69
|
-
*/
|
|
70
|
-
getSearchResults(filters?: SkyLookupSearchResultHarnessFilters): Promise<SkyLookupSearchResultHarness[]>;
|
|
71
|
-
/**
|
|
72
|
-
* Returns the text content for each lookup search result.
|
|
73
|
-
*/
|
|
74
|
-
getSearchResultsText(filters?: SkyLookupSearchResultHarnessFilters): Promise<string[]>;
|
|
75
|
-
/**
|
|
76
|
-
* Gets the "Show more" picker harness.
|
|
77
|
-
*/
|
|
78
|
-
getShowMorePicker(): Promise<SkyLookupShowMorePickerHarness>;
|
|
79
|
-
/**
|
|
80
|
-
* Gets a list of selections made with a multiselect lookup.
|
|
81
|
-
*/
|
|
82
|
-
getSelections(): Promise<SkyLookupSelectionHarness[]>;
|
|
83
|
-
/**
|
|
84
|
-
* Gets the text content of all selections made with a multiselect lookup.
|
|
85
|
-
*/
|
|
86
|
-
getSelectionsText(): Promise<string[]>;
|
|
87
|
-
/**
|
|
88
|
-
* Gets the value of the lookup input.
|
|
89
|
-
* @deprecated Call `await (await lookup.getControl()).getValue()` instead.
|
|
90
|
-
*/
|
|
91
|
-
getValue(): Promise<string>;
|
|
92
|
-
/**
|
|
93
|
-
* Whether the lookup input is disabled.
|
|
94
|
-
* @deprecated Call `await (await lookup.getControl()).isDisabled()` instead.
|
|
95
|
-
*/
|
|
96
|
-
isDisabled(): Promise<boolean>;
|
|
97
|
-
/**
|
|
98
|
-
* Whether the lookup input is focused.
|
|
99
|
-
* @deprecated Call `await (await lookup.getControl()).isFocused()` instead.
|
|
100
|
-
*/
|
|
101
|
-
isFocused(): Promise<boolean>;
|
|
102
|
-
/**
|
|
103
|
-
* Whether the lookup allows for multiple selections.
|
|
104
|
-
*/
|
|
105
|
-
isMultiselect(): Promise<boolean>;
|
|
106
|
-
/**
|
|
107
|
-
* Whether the lookup is open.
|
|
108
|
-
*/
|
|
109
|
-
isOpen(): Promise<boolean>;
|
|
110
|
-
/**
|
|
111
|
-
* Selects a search result.
|
|
112
|
-
*/
|
|
113
|
-
selectSearchResult(filters: SkyLookupSearchResultHarnessFilters): Promise<void>;
|
|
114
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SkyAutocompleteSearchResultHarnessFilters } from '../autocomplete/autocomplete-search-result-harness-filters';
|
|
2
|
-
/**
|
|
3
|
-
* A set of criteria that can be used to filter a list of `SkyLookupSearchResultHarness` instances.
|
|
4
|
-
*/
|
|
5
|
-
export interface SkyLookupSearchResultHarnessFilters extends SkyAutocompleteSearchResultHarnessFilters {
|
|
6
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkyAutocompleteSearchResultHarness } from '../autocomplete/autocomplete-search-result-harness';
|
|
3
|
-
import { SkyLookupSearchResultHarnessFilters } from './lookup-search-result-harness-filters';
|
|
4
|
-
/**
|
|
5
|
-
* Harness for interacting with an autocomplete search result in tests.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SkyLookupSearchResultHarness extends SkyAutocompleteSearchResultHarness {
|
|
8
|
-
/**
|
|
9
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
10
|
-
* `SkyLookupSearchResultHarness` that meets certain criteria.
|
|
11
|
-
*/
|
|
12
|
-
static with(filters: SkyLookupSearchResultHarnessFilters): HarnessPredicate<SkyLookupSearchResultHarness>;
|
|
13
|
-
/**
|
|
14
|
-
* Returns the value of the search result's descriptor property.
|
|
15
|
-
*/
|
|
16
|
-
getDescriptorValue(): Promise<string>;
|
|
17
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
*/
|
|
5
|
-
export interface SkyLookupShowMorePickerHarnessFilters extends Omit<BaseHarnessFilters, 'ancestor'> {
|
|
6
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { SkySelectionModalHarness } from '../selection-modal/selection-modal-harness';
|
|
3
|
-
import { SkyLookupShowMorePickerHarnessFilters } from './lookup-show-more-picker-harness-filters';
|
|
4
|
-
import { SkyLookupShowMorePickerSearchResultHarness } from './lookup-show-more-picker-search-result-harness';
|
|
5
|
-
import { SkyLookupShowMorePickerSearchResultHarnessFilters } from './lookup-show-more-picker-search-result-harness-filters';
|
|
6
|
-
/**
|
|
7
|
-
* Harness for interacting with a lookup's "Show more" picker in tests.
|
|
8
|
-
*/
|
|
9
|
-
export declare class SkyLookupShowMorePickerHarness extends SkySelectionModalHarness {
|
|
10
|
-
/**
|
|
11
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
12
|
-
* `SkyLookupShowMorePickerHarness` that meets certain criteria.
|
|
13
|
-
*/
|
|
14
|
-
static with(filters: SkyLookupShowMorePickerHarnessFilters): HarnessPredicate<SkyLookupShowMorePickerHarness>;
|
|
15
|
-
/**
|
|
16
|
-
* Selects multiple search results based on a set of criteria.
|
|
17
|
-
*/
|
|
18
|
-
selectSearchResult(filters?: SkyLookupShowMorePickerSearchResultHarnessFilters): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Gets a list of search results.
|
|
21
|
-
*/
|
|
22
|
-
getSearchResults(filters?: SkyLookupShowMorePickerSearchResultHarnessFilters): Promise<SkyLookupShowMorePickerSearchResultHarness[]>;
|
|
23
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SkySelectionModalSearchResultHarnessFilters } from '../selection-modal/selection-modal-search-result-harness-filters';
|
|
2
|
-
/**
|
|
3
|
-
* A set of criteria that can be used to filter a list of `SkyLookupShowMorePickerSearchResultHarness` instances.
|
|
4
|
-
*/
|
|
5
|
-
export interface SkyLookupShowMorePickerSearchResultHarnessFilters extends SkySelectionModalSearchResultHarnessFilters {
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SkySelectionModalSearchResultHarness } from '../selection-modal/selection-modal-search-result-harness';
|
|
2
|
-
/**
|
|
3
|
-
* Harness for interacting with a lookup's "Show more" picker search results in tests.
|
|
4
|
-
*/
|
|
5
|
-
export declare class SkyLookupShowMorePickerSearchResultHarness extends SkySelectionModalSearchResultHarness {
|
|
6
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
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 a search component in tests.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SkySearchHarness extends SkyComponentHarness {
|
|
8
|
-
#private;
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
static hostSelector: string;
|
|
13
|
-
/**
|
|
14
|
-
* Gets a `HarnessPredicate` that can be used to search for a
|
|
15
|
-
* `SkySearchHarness` that meets certain criteria.
|
|
16
|
-
*/
|
|
17
|
-
static with(filters: SkySearchHarnessFilters): HarnessPredicate<SkySearchHarness>;
|
|
18
|
-
/**
|
|
19
|
-
* Blurs the search input.
|
|
20
|
-
*/
|
|
21
|
-
blur(): Promise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* Clears the search input.
|
|
24
|
-
*/
|
|
25
|
-
clear(): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Clicks the search input clear button.
|
|
28
|
-
*/
|
|
29
|
-
clickClearButton(): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Clicks search dismiss button to collapse search back to a button.
|
|
32
|
-
*/
|
|
33
|
-
clickDismissSearchButton(): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Clicks the search icon button that opens search input when it is collapsed.
|
|
36
|
-
*/
|
|
37
|
-
clickOpenSearchButton(): Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* Clicks the search submit button.
|
|
40
|
-
*/
|
|
41
|
-
clickSubmitButton(): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Enters text into the search input and performs a search.
|
|
44
|
-
*/
|
|
45
|
-
enterText(value: string): Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Focuses the search input.
|
|
48
|
-
*/
|
|
49
|
-
focus(): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* Gets the search input's `aria-label`.
|
|
52
|
-
*/
|
|
53
|
-
getAriaLabel(): Promise<string | null>;
|
|
54
|
-
/**
|
|
55
|
-
* Gets the search's aria-labelledby.
|
|
56
|
-
*/
|
|
57
|
-
getAriaLabelledby(): Promise<string | null>;
|
|
58
|
-
/**
|
|
59
|
-
* Gets the value of the input's placeholder attribute.
|
|
60
|
-
*/
|
|
61
|
-
getPlaceholderText(): Promise<string | null>;
|
|
62
|
-
/**
|
|
63
|
-
* Gets the value of the search input.
|
|
64
|
-
*/
|
|
65
|
-
getValue(): Promise<string>;
|
|
66
|
-
/**
|
|
67
|
-
* Whether the search input is collapsed.
|
|
68
|
-
*/
|
|
69
|
-
isCollapsed(): Promise<boolean>;
|
|
70
|
-
/**
|
|
71
|
-
* Whether the search input is disabled.
|
|
72
|
-
*/
|
|
73
|
-
isDisabled(): Promise<boolean>;
|
|
74
|
-
/**
|
|
75
|
-
* Whether the search input is focused.
|
|
76
|
-
*/
|
|
77
|
-
isFocused(): Promise<boolean>;
|
|
78
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
-
import { SkySelectionModalSearchResultHarness } from './selection-modal-search-result-harness';
|
|
3
|
-
import { SkySelectionModalSearchResultHarnessFilters } from './selection-modal-search-result-harness-filters';
|
|
4
|
-
/**
|
|
5
|
-
* Harness for interacting with a selection modal in tests.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SkySelectionModalHarness extends ComponentHarness {
|
|
8
|
-
#private;
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
static hostSelector: string;
|
|
13
|
-
/**
|
|
14
|
-
* Clears the text of the search input.
|
|
15
|
-
*/
|
|
16
|
-
clearSearchText(): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Enters text into the search input and performs a search.
|
|
19
|
-
*/
|
|
20
|
-
enterSearchText(value: string): Promise<void>;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* Gets the search input's aria-label.
|
|
24
|
-
*/
|
|
25
|
-
getSearchAriaLabel(): Promise<string | null>;
|
|
26
|
-
/**
|
|
27
|
-
* Selects multiple search results based on a set of criteria.
|
|
28
|
-
*/
|
|
29
|
-
selectSearchResult(filters?: SkySelectionModalSearchResultHarnessFilters): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Saves any selections made and closes the modal.
|
|
32
|
-
*/
|
|
33
|
-
saveAndClose(): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* Gets the save button's aria-label.
|
|
37
|
-
*/
|
|
38
|
-
getSaveButtonAriaLabel(): Promise<string | null>;
|
|
39
|
-
/**
|
|
40
|
-
* Closes the picker without saving any selections made.
|
|
41
|
-
*/
|
|
42
|
-
cancel(): Promise<void>;
|
|
43
|
-
/**
|
|
44
|
-
* Gets a list of search results.
|
|
45
|
-
*/
|
|
46
|
-
getSearchResults(filters?: SkySelectionModalSearchResultHarnessFilters): Promise<SkySelectionModalSearchResultHarness[]>;
|
|
47
|
-
/**
|
|
48
|
-
* Clears all selections made.
|
|
49
|
-
*/
|
|
50
|
-
clearAll(): Promise<void>;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* Gets the clear all button's aria-label.
|
|
54
|
-
*/
|
|
55
|
-
getClearAllButtonAriaLabel(): Promise<string | null>;
|
|
56
|
-
/**
|
|
57
|
-
* Whether the selection modal is configured to allow multiple selections.
|
|
58
|
-
*/
|
|
59
|
-
isMultiselect(): Promise<boolean>;
|
|
60
|
-
/**
|
|
61
|
-
* Selects all search results.
|
|
62
|
-
*/
|
|
63
|
-
selectAll(): Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* Gets the select all button's aria-label.
|
|
67
|
-
*/
|
|
68
|
-
getSelectAllButtonAriaLabel(): Promise<string | null>;
|
|
69
|
-
/**
|
|
70
|
-
* Loads more results in the picker.
|
|
71
|
-
*/
|
|
72
|
-
loadMore(): Promise<void>;
|
|
73
|
-
/**
|
|
74
|
-
* Whether the selection modal is configured to show the add button.
|
|
75
|
-
*/
|
|
76
|
-
hasAddButton(): Promise<boolean>;
|
|
77
|
-
/**
|
|
78
|
-
* Clicks the add button.
|
|
79
|
-
*/
|
|
80
|
-
clickAddButton(): Promise<void>;
|
|
81
|
-
/**
|
|
82
|
-
* Gets the "Only show selected" checkbox's aria-label
|
|
83
|
-
*/
|
|
84
|
-
getOnlyShowSelectedAriaLabel(): Promise<string | null>;
|
|
85
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SkyRepeaterItemHarnessFilters } from '@skyux/lists/testing';
|
|
2
|
-
/**
|
|
3
|
-
* A set of criteria that can be used to filter a list of `SkySelectionModalSearchResultHarness` instances.
|
|
4
|
-
*/
|
|
5
|
-
export interface SkySelectionModalSearchResultHarnessFilters extends Omit<SkyRepeaterItemHarnessFilters, 'titleText' | 'ancestor'> {
|
|
6
|
-
}
|
package/testing/public-api.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export { SkyAutocompleteHarness } from './modules/autocomplete/autocomplete-harness';
|
|
2
|
-
export { SkyAutocompleteHarnessFilters } from './modules/autocomplete/autocomplete-harness-filters';
|
|
3
|
-
export { SkyAutocompleteInputHarness } from './modules/autocomplete/autocomplete-input-harness';
|
|
4
|
-
export { SkyAutocompleteSearchResultHarness } from './modules/autocomplete/autocomplete-search-result-harness';
|
|
5
|
-
export { SkyAutocompleteSearchResultHarnessFilters } from './modules/autocomplete/autocomplete-search-result-harness-filters';
|
|
6
|
-
export { SkyCountryFieldFixture } from './legacy/country-field/country-field-fixture';
|
|
7
|
-
export { SkyCountryFieldTestingModule } from './legacy/country-field/country-field-testing.module';
|
|
8
|
-
export { SkyCountryFieldHarness } from './modules/country-field/country-field-harness';
|
|
9
|
-
export { SkyCountryFieldHarnessFilters } from './modules/country-field/country-field-harness-filters';
|
|
10
|
-
export { SkyCountryFieldSearchResultHarness } from './modules/country-field/country-field-search-result-harness';
|
|
11
|
-
export { SkyCountryFieldSearchResultHarnessFilters } from './modules/country-field/country-field-search-result-harness-filters';
|
|
12
|
-
export { SkyLookupHarness } from './modules/lookup/lookup-harness';
|
|
13
|
-
export { SkyLookupHarnessFilters } from './modules/lookup/lookup-harness-filters';
|
|
14
|
-
export { SkyLookupSearchResultHarness } from './modules/lookup/lookup-search-result-harness';
|
|
15
|
-
export { SkyLookupSearchResultHarnessFilters } from './modules/lookup/lookup-search-result-harness-filters';
|
|
16
|
-
export { SkyLookupSelectionHarness } from './modules/lookup/lookup-selection-harness';
|
|
17
|
-
export { SkyLookupSelectionsListHarness } from './modules/lookup/lookup-selections-list-harness';
|
|
18
|
-
export { SkyLookupShowMorePickerHarness } from './modules/lookup/lookup-show-more-picker-harness';
|
|
19
|
-
export { SkyLookupShowMorePickerHarnessFilters } from './modules/lookup/lookup-show-more-picker-harness-filters';
|
|
20
|
-
export { SkyLookupShowMorePickerSearchResultHarness } from './modules/lookup/lookup-show-more-picker-search-result-harness';
|
|
21
|
-
export { SkyLookupShowMorePickerSearchResultHarnessFilters } from './modules/lookup/lookup-show-more-picker-search-result-harness-filters';
|
|
22
|
-
export { SkySearchFixture } from './legacy/search/search-fixture';
|
|
23
|
-
export { SkySearchTestingModule } from './legacy/search/search-testing.module';
|
|
24
|
-
export { SkySearchHarness } from './modules/search/search-harness';
|
|
25
|
-
export { SkySearchHarnessFilters } from './modules/search/search-harness-filters';
|
|
26
|
-
export { SkySelectionModalHarness } from './modules/selection-modal/selection-modal-harness';
|
|
27
|
-
export { SkySelectionModalSearchResultHarness } from './modules/selection-modal/selection-modal-search-result-harness';
|
|
28
|
-
export { SkySelectionModalSearchResultHarnessFilters } from './modules/selection-modal/selection-modal-search-result-harness-filters';
|