@skyux/lookup 9.4.0 → 9.5.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.
@@ -11,8 +11,9 @@ export declare class SkySelectionModalContext {
11
11
  initialSearch: string;
12
12
  initialValue: unknown[];
13
13
  searchAsync: SkyAutocompleteSearchAsyncFunction;
14
+ selectionDescriptor: string;
14
15
  selectMode: SkyLookupSelectModeType;
15
16
  showAddButton: boolean;
16
17
  userConfig: SkyLookupShowMoreNativePickerConfig;
17
- constructor(descriptorProperty: string, idProperty: string, initialSearch: string, initialValue: unknown[], searchAsync: SkyAutocompleteSearchAsyncFunction, selectMode: SkyLookupSelectModeType, showAddButton: boolean, userConfig: SkyLookupShowMoreNativePickerConfig);
18
+ constructor(descriptorProperty: string, idProperty: string, initialSearch: string, initialValue: unknown[], searchAsync: SkyAutocompleteSearchAsyncFunction, selectMode: SkyLookupSelectModeType, selectionDescriptor: string, showAddButton: boolean, userConfig: SkyLookupShowMoreNativePickerConfig);
18
19
  }
@@ -18,6 +18,7 @@ export interface SkySelectionModalOpenArgs {
18
18
  /**
19
19
  * The title for the selection modal.
20
20
  * @default "Select an option/Select options"
21
+ * @deprecated Use the `selectionDescriptor` input to give context to the title and accessibility labels instead.
21
22
  */
22
23
  title?: string;
23
24
  /**
@@ -60,4 +61,10 @@ export interface SkySelectionModalOpenArgs {
60
61
  * using a modal as part of a cell editor in Data Entry Grid.
61
62
  */
62
63
  wrapperClass?: string;
64
+ /**
65
+ * A descriptor for the item or items being selected. Use a plural term when `selectMode` is set to `multiple`; otherwise, use a singular term. The descriptor helps set the selection modal's `aria-label` attributes for the multiselect toolbar controls, the search input, and the save button to provide text equivalents for screen readers [to support accessibility](https://developer.blackbaud.com/skyux/components/checkbox#accessibility).
66
+ * For example, when the descriptor is “constituents,” the search input’s `aria-label` is “Search constituents.” For more information about the `aria-label` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-label).
67
+ * @default "item"/"items"
68
+ */
69
+ selectionDescriptor?: string;
63
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/lookup",
3
- "version": "9.4.0",
3
+ "version": "9.5.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -42,15 +42,15 @@
42
42
  "@angular/core": "^16.2.5",
43
43
  "@angular/forms": "^16.2.5",
44
44
  "@angular/platform-browser": "^16.2.5",
45
- "@skyux-sdk/testing": "9.4.0",
46
- "@skyux/core": "9.4.0",
47
- "@skyux/forms": "9.4.0",
48
- "@skyux/i18n": "9.4.0",
49
- "@skyux/indicators": "9.4.0",
50
- "@skyux/layout": "9.4.0",
51
- "@skyux/lists": "9.4.0",
52
- "@skyux/modals": "9.4.0",
53
- "@skyux/theme": "9.4.0"
45
+ "@skyux-sdk/testing": "9.5.0",
46
+ "@skyux/core": "9.5.0",
47
+ "@skyux/forms": "9.5.0",
48
+ "@skyux/i18n": "9.5.0",
49
+ "@skyux/indicators": "9.5.0",
50
+ "@skyux/layout": "9.5.0",
51
+ "@skyux/lists": "9.5.0",
52
+ "@skyux/modals": "9.5.0",
53
+ "@skyux/theme": "9.5.0"
54
54
  },
55
55
  "dependencies": {
56
56
  "intl-tel-input": "18.2.1",
@@ -18,6 +18,11 @@ export declare class SkySelectionModalHarness extends ComponentHarness {
18
18
  * Enters text into the search input and performs a search.
19
19
  */
20
20
  enterSearchText(value: string): Promise<void>;
21
+ /**
22
+ *
23
+ * Gets the search input's aria-label.
24
+ */
25
+ getSearchAriaLabel(): Promise<string | null>;
21
26
  /**
22
27
  * Selects multiple search results based on a set of criteria.
23
28
  */
@@ -26,6 +31,11 @@ export declare class SkySelectionModalHarness extends ComponentHarness {
26
31
  * Saves any selections made and closes the modal.
27
32
  */
28
33
  saveAndClose(): Promise<void>;
34
+ /**
35
+ *
36
+ * Gets the save button's aria-label.
37
+ */
38
+ getSaveButtonAriaLabel(): Promise<string | null>;
29
39
  /**
30
40
  * Closes the picker without saving any selections made.
31
41
  */
@@ -38,6 +48,11 @@ export declare class SkySelectionModalHarness extends ComponentHarness {
38
48
  * Clears all selections made.
39
49
  */
40
50
  clearAll(): Promise<void>;
51
+ /**
52
+ *
53
+ * Gets the clear all button's aria-label.
54
+ */
55
+ getClearAllButtonAriaLabel(): Promise<string | null>;
41
56
  /**
42
57
  * Whether the selection modal is configured to allow multiple selections.
43
58
  */
@@ -46,6 +61,11 @@ export declare class SkySelectionModalHarness extends ComponentHarness {
46
61
  * Selects all search results.
47
62
  */
48
63
  selectAll(): Promise<void>;
64
+ /**
65
+ *
66
+ * Gets the select all button's aria-label.
67
+ */
68
+ getSelectAllButtonAriaLabel(): Promise<string | null>;
49
69
  /**
50
70
  * Loads more results in the picker.
51
71
  */
@@ -58,4 +78,8 @@ export declare class SkySelectionModalHarness extends ComponentHarness {
58
78
  * Clicks the add button.
59
79
  */
60
80
  clickAddButton(): Promise<void>;
81
+ /**
82
+ * Gets the "Only show selected" checkbox's aria-label
83
+ */
84
+ getOnlyShowSelectedAriaLabel(): Promise<string | null>;
61
85
  }