@skyux/lookup 11.6.0 → 11.8.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.
@@ -5,7 +5,6 @@ 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
9
8
  */
10
9
  export declare class SkyAutocompleteHarness extends SkyComponentHarness {
11
10
  #private;
@@ -23,7 +22,7 @@ export declare class SkyAutocompleteHarness extends SkyComponentHarness {
23
22
  */
24
23
  blur(): Promise<void>;
25
24
  /**
26
- * Clears the input value.
25
+ * Clears the autocomplete input value.
27
26
  */
28
27
  clear(): Promise<void>;
29
28
  /**
@@ -35,17 +34,25 @@ export declare class SkyAutocompleteHarness extends SkyComponentHarness {
35
34
  */
36
35
  focus(): Promise<void>;
37
36
  /**
38
- * Returns search result harnesses.
37
+ * Gets the autocomplete `aria-labelledby` value.
38
+ */
39
+ getAriaLabelledby(): Promise<string | null>;
40
+ /**
41
+ * Returns autocomplete search result harnesses.
39
42
  */
40
43
  getSearchResults(filters?: SkyAutocompleteSearchResultHarnessFilters): Promise<SkyAutocompleteSearchResultHarness[]>;
41
44
  /**
42
- * Returns the text content for each search result.
45
+ * Returns the text content for each autocomplete search result.
43
46
  */
44
47
  getSearchResultsText(filters?: SkyAutocompleteSearchResultHarnessFilters): Promise<string[]>;
45
48
  /**
46
49
  * Gets the value of the autocomplete input.
47
50
  */
48
51
  getValue(): Promise<string>;
52
+ /**
53
+ * Gets the text displayed when no search results are found.
54
+ */
55
+ getNoResultsFoundText(): Promise<string | undefined>;
49
56
  /**
50
57
  * Whether the autocomplete input is disabled.
51
58
  */
@@ -69,6 +76,7 @@ export declare class SkyAutocompleteHarness extends SkyComponentHarness {
69
76
  * to prevent consumers of the autocomplete harness from calling it.
70
77
  * The lookup harness, which extends the autocomplete harness, may
71
78
  * still access this feature, however.)
79
+ * @internal
72
80
  */
73
81
  protected clickAddButton(): Promise<void>;
74
82
  /**
@@ -78,6 +86,7 @@ export declare class SkyAutocompleteHarness extends SkyComponentHarness {
78
86
  * to prevent consumers of the autocomplete harness from calling it.
79
87
  * The lookup harness, which extends the autocomplete harness, may
80
88
  * still access this feature, however.)
89
+ * @internal
81
90
  */
82
91
  protected clickShowMoreButton(): Promise<void>;
83
92
  }
@@ -1,5 +1,8 @@
1
1
  import { ComponentHarness } from '@angular/cdk/testing';
2
2
  /**
3
+ * Harness to interact with the autocomplete input harness.
4
+ *
5
+ * This harness is marked as internal as all relevant functions are exposed to consumers through the `SkyAutocompleteHarness` functions.
3
6
  * @internal
4
7
  */
5
8
  export declare class SkyAutocompleteInputHarness extends ComponentHarness {
@@ -2,8 +2,7 @@ import { HarnessPredicate } from '@angular/cdk/testing';
2
2
  import { SkyQueryableComponentHarness } from '@skyux/core/testing';
3
3
  import { SkyAutocompleteSearchResultHarnessFilters } from './autocomplete-search-result-harness-filters';
4
4
  /**
5
- * Harness for interacting with an autocomplete search results in tests.
6
- * @internal
5
+ * Harness for interacting with an autocomplete search result in tests.
7
6
  */
8
7
  export declare class SkyAutocompleteSearchResultHarness extends SkyQueryableComponentHarness {
9
8
  /**
@@ -2,8 +2,7 @@ import { HarnessPredicate } from '@angular/cdk/testing';
2
2
  import { SkyComponentHarness } from '@skyux/core/testing';
3
3
  import { SkySearchHarnessFilters } from './search-harness-filters';
4
4
  /**
5
- * Harness for interacting with an search component in tests.
6
- * @internal
5
+ * Harness for interacting with a search component in tests.
7
6
  */
8
7
  export declare class SkySearchHarness extends SkyComponentHarness {
9
8
  #private;
@@ -17,23 +16,39 @@ export declare class SkySearchHarness extends SkyComponentHarness {
17
16
  */
18
17
  static with(filters: SkySearchHarnessFilters): HarnessPredicate<SkySearchHarness>;
19
18
  /**
20
- * Blurs the input.
19
+ * Blurs the search input.
21
20
  */
22
21
  blur(): Promise<void>;
23
22
  /**
24
- * Clears the input.
23
+ * Clears the search input.
25
24
  */
26
25
  clear(): Promise<void>;
27
26
  /**
28
- * Enters text into the input and performs a search.
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.
29
44
  */
30
45
  enterText(value: string): Promise<void>;
31
46
  /**
32
- * Focuses the input.
47
+ * Focuses the search input.
33
48
  */
34
49
  focus(): Promise<void>;
35
50
  /**
36
- * Gets the search's aria-label.
51
+ * Gets the search input's `aria-label`.
37
52
  */
38
53
  getAriaLabel(): Promise<string | null>;
39
54
  /**
@@ -45,15 +60,19 @@ export declare class SkySearchHarness extends SkyComponentHarness {
45
60
  */
46
61
  getPlaceholderText(): Promise<string | null>;
47
62
  /**
48
- * Gets the value of the input.
63
+ * Gets the value of the search input.
49
64
  */
50
65
  getValue(): Promise<string>;
51
66
  /**
52
- * Whether the input is disabled.
67
+ * Whether the search input is collapsed.
68
+ */
69
+ isCollapsed(): Promise<boolean>;
70
+ /**
71
+ * Whether the search input is disabled.
53
72
  */
54
73
  isDisabled(): Promise<boolean>;
55
74
  /**
56
- * Whether the input is focused.
75
+ * Whether the search input is focused.
57
76
  */
58
77
  isFocused(): Promise<boolean>;
59
78
  }