@skyux/lookup 11.11.2 → 11.13.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 +6608 -3909
- package/esm2022/lib/modules/search/search.component.mjs +3 -3
- package/esm2022/testing/country-field/country-field-harness-filters.mjs +2 -0
- package/esm2022/testing/country-field/country-field-harness.mjs +139 -0
- package/esm2022/testing/country-field/country-field-search-result-harness-filters.mjs +2 -0
- package/esm2022/testing/country-field/country-field-search-result-harness.mjs +24 -0
- package/esm2022/testing/public-api.mjs +3 -1
- package/fesm2022/skyux-lookup-testing.mjs +158 -1
- package/fesm2022/skyux-lookup-testing.mjs.map +1 -1
- package/fesm2022/skyux-lookup.mjs +2 -2
- package/fesm2022/skyux-lookup.mjs.map +1 -1
- package/package.json +11 -11
- package/testing/country-field/country-field-harness-filters.d.ts +6 -0
- package/testing/country-field/country-field-harness.d.ts +85 -0
- package/testing/country-field/country-field-search-result-harness-filters.d.ts +7 -0
- package/testing/country-field/country-field-search-result-harness.d.ts +20 -0
- package/testing/public-api.d.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/lookup",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.13.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"@angular/core": "^18.2.8",
|
|
43
43
|
"@angular/forms": "^18.2.8",
|
|
44
44
|
"@angular/platform-browser": "^18.2.8",
|
|
45
|
-
"@skyux-sdk/testing": "11.
|
|
46
|
-
"@skyux/core": "11.
|
|
47
|
-
"@skyux/forms": "11.
|
|
48
|
-
"@skyux/i18n": "11.
|
|
49
|
-
"@skyux/icon": "11.
|
|
50
|
-
"@skyux/indicators": "11.
|
|
51
|
-
"@skyux/layout": "11.
|
|
52
|
-
"@skyux/lists": "11.
|
|
53
|
-
"@skyux/modals": "11.
|
|
54
|
-
"@skyux/theme": "11.
|
|
45
|
+
"@skyux-sdk/testing": "11.13.0",
|
|
46
|
+
"@skyux/core": "11.13.0",
|
|
47
|
+
"@skyux/forms": "11.13.0",
|
|
48
|
+
"@skyux/i18n": "11.13.0",
|
|
49
|
+
"@skyux/icon": "11.13.0",
|
|
50
|
+
"@skyux/indicators": "11.13.0",
|
|
51
|
+
"@skyux/layout": "11.13.0",
|
|
52
|
+
"@skyux/lists": "11.13.0",
|
|
53
|
+
"@skyux/modals": "11.13.0",
|
|
54
|
+
"@skyux/theme": "11.13.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"intl-tel-input": "24.4.0",
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyAutocompleteHarness } from '../autocomplete/autocomplete-harness';
|
|
3
|
+
import { SkyCountryFieldHarnessFilters } from './country-field-harness-filters';
|
|
4
|
+
import { SkyCountryFieldSearchResultHarness } from './country-field-search-result-harness';
|
|
5
|
+
import { SkyCountryFieldSearchResultHarnessFilters } from './country-field-search-result-harness-filters';
|
|
6
|
+
/**
|
|
7
|
+
* Harness for interacting with a country field component in tests.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SkyCountryFieldHarness extends SkyAutocompleteHarness {
|
|
10
|
+
#private;
|
|
11
|
+
/**
|
|
12
|
+
* Finds a standard country field component, or a country field component that is wrapped by an input box component.
|
|
13
|
+
* For input box implementations, we need to use the `.sky-input-box` selector since the `sky-country-field`
|
|
14
|
+
* element is removed from the DOM.
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
static hostSelector: string;
|
|
18
|
+
/**
|
|
19
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
20
|
+
* `SkyCountryFieldHarness` that meets certain criteria.
|
|
21
|
+
* These filters only work for standalone country fields.
|
|
22
|
+
* For country fields wrapped inside `sky-input-box`, place filters
|
|
23
|
+
* on the input box instead, and query the country field using a `SkyInputBoxHarness`.
|
|
24
|
+
* For the input box implementation, see the code example.
|
|
25
|
+
*/
|
|
26
|
+
static with(filters: SkyCountryFieldHarnessFilters): HarnessPredicate<SkyCountryFieldHarness>;
|
|
27
|
+
/**
|
|
28
|
+
* Blurs the country field input.
|
|
29
|
+
*/
|
|
30
|
+
blur(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Clears the country field input value.
|
|
33
|
+
*/
|
|
34
|
+
clear(): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Enters text into the country field input.
|
|
37
|
+
*/
|
|
38
|
+
enterText(value: string): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Focuses the country field input.
|
|
41
|
+
*/
|
|
42
|
+
focus(): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Gets the country field `aria-labelledby` value.
|
|
45
|
+
* This is not needed for country field because the id is generated internally,
|
|
46
|
+
* and the method is marked internal to prevent it from being documented publicly.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
getAriaLabelledby(): Promise<string | null>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns country field search result harnesses.
|
|
52
|
+
*/
|
|
53
|
+
getSearchResults(filters?: SkyCountryFieldSearchResultHarnessFilters): Promise<SkyCountryFieldSearchResultHarness[]>;
|
|
54
|
+
/**
|
|
55
|
+
* Returns the text content for each country field search result.
|
|
56
|
+
*/
|
|
57
|
+
getSearchResultsText(filters?: SkyCountryFieldSearchResultHarnessFilters): Promise<string[]>;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the value of the country field input.
|
|
60
|
+
*/
|
|
61
|
+
getValue(): Promise<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Gets the text displayed when no search results are found.
|
|
64
|
+
* For a country field, this is always the default text and the method
|
|
65
|
+
* is marked internal to prevent it from being documented publicly.
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
getNoResultsFoundText(): Promise<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the country field input is disabled.
|
|
71
|
+
*/
|
|
72
|
+
isDisabled(): Promise<boolean>;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the country field input is focused.
|
|
75
|
+
*/
|
|
76
|
+
isFocused(): Promise<boolean>;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the country field is open.
|
|
79
|
+
*/
|
|
80
|
+
isOpen(): Promise<boolean>;
|
|
81
|
+
/**
|
|
82
|
+
* Selects a search result.
|
|
83
|
+
*/
|
|
84
|
+
selectSearchResult(filters: SkyCountryFieldSearchResultHarnessFilters): Promise<void>;
|
|
85
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SkyAutocompleteSearchResultHarnessFilters } from '../public-api';
|
|
2
|
+
/**
|
|
3
|
+
* A set of criteria that can be used to filter a list of `SkyCountryFieldSearchResultHarness` instances.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface SkyCountryFieldSearchResultHarnessFilters extends SkyAutocompleteSearchResultHarnessFilters {
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
package/testing/public-api.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ export { SkyAutocompleteHarnessFilters } from './autocomplete/autocomplete-harne
|
|
|
3
3
|
export { SkyAutocompleteSearchResultHarness } from './autocomplete/autocomplete-search-result-harness';
|
|
4
4
|
export { SkyAutocompleteSearchResultHarnessFilters } from './autocomplete/autocomplete-search-result-harness-filters';
|
|
5
5
|
export { SkyCountryFieldFixture } from './country-field/country-field-fixture';
|
|
6
|
+
export { SkyCountryFieldHarness } from './country-field/country-field-harness';
|
|
7
|
+
export { SkyCountryFieldHarnessFilters } from './country-field/country-field-harness-filters';
|
|
8
|
+
export { SkyCountryFieldSearchResultHarness } from './country-field/country-field-search-result-harness';
|
|
9
|
+
export { SkyCountryFieldSearchResultHarnessFilters } from './country-field/country-field-search-result-harness-filters';
|
|
6
10
|
export { SkyCountryFieldTestingModule } from './country-field/country-field-testing.module';
|
|
7
11
|
export { SkyLookupHarness } from './lookup/lookup-harness';
|
|
8
12
|
export { SkyLookupHarnessFilters } from './lookup/lookup-harness-filters';
|