@skyux/lookup 11.17.0 → 11.18.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/lookup",
3
- "version": "11.17.0",
3
+ "version": "11.18.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.17.0",
46
- "@skyux/core": "11.17.0",
47
- "@skyux/forms": "11.17.0",
48
- "@skyux/i18n": "11.17.0",
49
- "@skyux/icon": "11.17.0",
50
- "@skyux/indicators": "11.17.0",
51
- "@skyux/layout": "11.17.0",
52
- "@skyux/lists": "11.17.0",
53
- "@skyux/modals": "11.17.0",
54
- "@skyux/theme": "11.17.0"
45
+ "@skyux-sdk/testing": "11.18.0",
46
+ "@skyux/core": "11.18.0",
47
+ "@skyux/forms": "11.18.0",
48
+ "@skyux/i18n": "11.18.0",
49
+ "@skyux/icon": "11.18.0",
50
+ "@skyux/indicators": "11.18.0",
51
+ "@skyux/layout": "11.18.0",
52
+ "@skyux/lists": "11.18.0",
53
+ "@skyux/modals": "11.18.0",
54
+ "@skyux/theme": "11.18.0"
55
55
  },
56
56
  "dependencies": {
57
57
  "intl-tel-input": "24.4.0",
@@ -1,6 +1,8 @@
1
1
  import { HarnessPredicate } from '@angular/cdk/testing';
2
2
  import { SkyAutocompleteHarness } from '../autocomplete/autocomplete-harness';
3
3
  import { SkyLookupHarnessFilters } from './lookup-harness-filters';
4
+ import { SkyLookupSearchResultHarness } from './lookup-search-result-harness';
5
+ import { SkyLookupSearchResultHarnessFilters } from './lookup-search-result-harness-filters';
4
6
  import { SkyLookupSelectionHarness } from './lookup-selection-harness';
5
7
  import { SkyLookupShowMorePickerHarness } from './lookup-show-more-picker-harness';
6
8
  /**
@@ -18,8 +20,21 @@ export declare class SkyLookupHarness extends SkyAutocompleteHarness {
18
20
  /**
19
21
  * Gets a `HarnessPredicate` that can be used to search for a
20
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.
21
28
  */
22
29
  static with(filters: SkyLookupHarnessFilters): HarnessPredicate<SkyLookupHarness>;
30
+ /**
31
+ * Blurs the lookup input.
32
+ */
33
+ blur(): Promise<void>;
34
+ /**
35
+ * Clears the lookup input value.
36
+ */
37
+ clear(): Promise<void>;
23
38
  /**
24
39
  * Clicks the "Add" button on the search results panel.
25
40
  */
@@ -32,6 +47,27 @@ export declare class SkyLookupHarness extends SkyAutocompleteHarness {
32
47
  * Dismisses the selections made with a multiselect lookup.
33
48
  */
34
49
  dismissSelections(): Promise<void>;
50
+ /**
51
+ * Enters text into the lookup input.
52
+ */
53
+ enterText(value: string): Promise<void>;
54
+ /**
55
+ * Focuses the lookup input.
56
+ */
57
+ focus(): Promise<void>;
58
+ /**
59
+ * Gets the lookup `aria-labelledby` value.
60
+ * @deprecated Don't use this property. It returns a value from a deprecated input that lookup no longer uses.
61
+ */
62
+ getAriaLabelledby(): Promise<string | null>;
63
+ /**
64
+ * Returns lookup search result harnesses.
65
+ */
66
+ getSearchResults(filters?: SkyLookupSearchResultHarnessFilters): Promise<SkyLookupSearchResultHarness[]>;
67
+ /**
68
+ * Returns the text content for each lookup search result.
69
+ */
70
+ getSearchResultsText(filters?: SkyLookupSearchResultHarnessFilters): Promise<string[]>;
35
71
  /**
36
72
  * Gets the "Show more" picker harness.
37
73
  */
@@ -44,8 +80,28 @@ export declare class SkyLookupHarness extends SkyAutocompleteHarness {
44
80
  * Gets the text content of all selections made with a multiselect lookup.
45
81
  */
46
82
  getSelectionsText(): Promise<string[]>;
83
+ /**
84
+ * Gets the value of the lookup input.
85
+ */
86
+ getValue(): Promise<string>;
87
+ /**
88
+ * Whether the lookup input is disabled.
89
+ */
90
+ isDisabled(): Promise<boolean>;
91
+ /**
92
+ * Whether the lookup input is focused.
93
+ */
94
+ isFocused(): Promise<boolean>;
47
95
  /**
48
96
  * Whether the lookup allows for multiple selections.
49
97
  */
50
98
  isMultiselect(): Promise<boolean>;
99
+ /**
100
+ * Whether the lookup is open.
101
+ */
102
+ isOpen(): Promise<boolean>;
103
+ /**
104
+ * Selects a search result.
105
+ */
106
+ selectSearchResult(filters: SkyLookupSearchResultHarnessFilters): Promise<void>;
51
107
  }
@@ -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 `SkyLookupSearchResultHarness` instances.
4
+ * @internal
5
+ */
6
+ export interface SkyLookupSearchResultHarnessFilters extends SkyAutocompleteSearchResultHarnessFilters {
7
+ }
@@ -0,0 +1,17 @@
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
+ }