@skyux/lookup 8.8.1 → 8.10.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 +1043 -1067
- package/esm2020/lib/modules/autocomplete/autocomplete-input.directive.mjs +7 -4
- package/esm2020/lib/modules/autocomplete/autocomplete.component.mjs +51 -22
- package/esm2020/lib/modules/lookup/lookup-show-more-modal.component.mjs +1 -1
- package/esm2020/lib/modules/lookup/lookup.component.mjs +40 -41
- package/esm2020/lib/modules/search/search.component.mjs +8 -4
- package/esm2020/lib/modules/selection-modal/selection-modal.component.mjs +1 -1
- package/esm2020/testing/autocomplete/autocomplete-harness.mjs +2 -2
- package/esm2020/testing/autocomplete/autocomplete-input-harness.mjs +4 -4
- package/esm2020/testing/search/search-harness.mjs +13 -1
- package/fesm2015/skyux-lookup-testing.mjs +20 -4
- package/fesm2015/skyux-lookup-testing.mjs.map +1 -1
- package/fesm2015/skyux-lookup.mjs +229 -195
- package/fesm2015/skyux-lookup.mjs.map +1 -1
- package/fesm2020/skyux-lookup-testing.mjs +16 -4
- package/fesm2020/skyux-lookup-testing.mjs.map +1 -1
- package/fesm2020/skyux-lookup.mjs +229 -195
- package/fesm2020/skyux-lookup.mjs.map +1 -1
- package/lib/modules/autocomplete/autocomplete-input.directive.d.ts +4 -1
- package/lib/modules/autocomplete/autocomplete.component.d.ts +6 -3
- package/lib/modules/lookup/lookup.component.d.ts +3 -8
- package/lib/modules/search/search.component.d.ts +16 -1
- package/package.json +10 -10
- package/testing/autocomplete/autocomplete-input-harness.d.ts +2 -2
- package/testing/search/search-harness.d.ts +8 -0
|
@@ -38,7 +38,10 @@ export declare class SkyAutocompleteInputDirective implements OnInit, OnDestroy,
|
|
|
38
38
|
setDisabledState(disabled: boolean): void;
|
|
39
39
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
40
40
|
setActiveDescendant(descendantId: string | null): void;
|
|
41
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Used to connect the input to the overlay.
|
|
43
|
+
*/
|
|
44
|
+
setAriaControls(overlayId: string | null): void;
|
|
42
45
|
onChange(value: any): void;
|
|
43
46
|
onTouched(): void;
|
|
44
47
|
onValidatorChange: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
2
|
import { SkyAffixService, SkyOverlayService, SkyStackingContext } from '@skyux/core';
|
|
3
3
|
import { SkyInputBoxHostService } from '@skyux/forms';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
4
|
+
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import { SkyAutocompleteAdapterService } from './autocomplete-adapter.service';
|
|
6
6
|
import { SkyAutocompleteInputDirective } from './autocomplete-input.directive';
|
|
7
7
|
import { SkyAutocompleteMessage } from './types/autocomplete-message';
|
|
@@ -52,7 +52,8 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
52
52
|
* @internal
|
|
53
53
|
* Whether to display a button in the dropdown that opens a picker where users can view all options.
|
|
54
54
|
*/
|
|
55
|
-
enableShowMore: boolean | undefined;
|
|
55
|
+
set enableShowMore(value: boolean | undefined);
|
|
56
|
+
get enableShowMore(): boolean;
|
|
56
57
|
/**
|
|
57
58
|
* The observable of `SkyAutocompleteMessage` that can close the dropdown.
|
|
58
59
|
* @internal
|
|
@@ -114,7 +115,8 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
114
115
|
* Whether to display a button that lets users add options to the data source.
|
|
115
116
|
* @default false
|
|
116
117
|
*/
|
|
117
|
-
showAddButton: boolean | undefined;
|
|
118
|
+
set showAddButton(value: boolean | undefined);
|
|
119
|
+
get showAddButton(): boolean;
|
|
118
120
|
/**
|
|
119
121
|
* The text to display when no search results are found.
|
|
120
122
|
* @default "No matches found"
|
|
@@ -167,6 +169,7 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
167
169
|
set resultsRef(value: ElementRef | undefined);
|
|
168
170
|
get resultsRef(): ElementRef | undefined;
|
|
169
171
|
searchOrDefault: SkyAutocompleteSearchFunction;
|
|
172
|
+
protected isDropdownVisible: Observable<boolean>;
|
|
170
173
|
constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, affixService: SkyAffixService, adapterService: SkyAutocompleteAdapterService, overlayService: SkyOverlayService, inputBoxHostSvc?: SkyInputBoxHostService, stackingContext?: SkyStackingContext);
|
|
171
174
|
ngAfterViewInit(): void;
|
|
172
175
|
ngOnDestroy(): void;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
-
import { SkyAppWindowRef, SkyLogService } from '@skyux/core';
|
|
4
3
|
import { SkyInputBoxHostService } from '@skyux/forms';
|
|
5
|
-
import { SkyLibResourcesService } from '@skyux/i18n';
|
|
6
4
|
import { SkyToken, SkyTokensMessage } from '@skyux/indicators';
|
|
7
|
-
import { SkyModalService } from '@skyux/modals';
|
|
8
5
|
import { SkyThemeService } from '@skyux/theme';
|
|
9
6
|
import { Subject } from 'rxjs';
|
|
10
7
|
import { SkyAutocompleteInputDirective } from '../autocomplete/autocomplete-input.directive';
|
|
@@ -12,8 +9,6 @@ import { SkyAutocompleteMessage } from '../autocomplete/types/autocomplete-messa
|
|
|
12
9
|
import { SkyAutocompleteSearchAsyncArgs } from '../autocomplete/types/autocomplete-search-async-args';
|
|
13
10
|
import { SkyAutocompleteSelectionChange } from '../autocomplete/types/autocomplete-selection-change';
|
|
14
11
|
import { SkyAutocompleteShowMoreArgs } from '../autocomplete/types/autocomplete-show-more-args';
|
|
15
|
-
import { SkySelectionModalService } from '../selection-modal/selection-modal.service';
|
|
16
|
-
import { SkyLookupAdapterService } from './lookup-adapter.service';
|
|
17
12
|
import { SkyLookupAutocompleteAdapter } from './lookup-autocomplete-adapter';
|
|
18
13
|
import { SkyLookupAddClickEventArgs } from './types/lookup-add-click-event-args';
|
|
19
14
|
import { SkyLookupSelectModeType } from './types/lookup-select-mode-type';
|
|
@@ -116,7 +111,7 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
|
|
|
116
111
|
inputTemplateRef: TemplateRef<unknown> | undefined;
|
|
117
112
|
lookupWrapperRef: ElementRef | undefined;
|
|
118
113
|
searchIconTemplateRef: TemplateRef<unknown> | undefined;
|
|
119
|
-
constructor(
|
|
114
|
+
constructor(ngControl?: NgControl, inputBoxHostSvc?: SkyInputBoxHostService | undefined, themeSvc?: SkyThemeService | undefined);
|
|
120
115
|
ngOnInit(): void;
|
|
121
116
|
ngAfterViewInit(): void;
|
|
122
117
|
ngOnDestroy(): void;
|
|
@@ -141,6 +136,6 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
|
|
|
141
136
|
openPicker(initialSearch: string): void;
|
|
142
137
|
protected onAutocompleteOpenChange($event: boolean): void;
|
|
143
138
|
onSearchAsync(args: SkyAutocompleteSearchAsyncArgs): void;
|
|
144
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyLookupComponent, [
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyLookupComponent, [{ optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
|
|
145
140
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyLookupComponent, "sky-lookup", never, { "ariaLabel": "ariaLabel"; "ariaLabelledBy": "ariaLabelledBy"; "autocompleteAttribute": "autocompleteAttribute"; "data": "data"; "disabled": "disabled"; "enableShowMore": "enableShowMore"; "placeholderText": "placeholderText"; "idProperty": "idProperty"; "showAddButton": "showAddButton"; "showMoreConfig": "showMoreConfig"; "selectMode": "selectMode"; "wrapperClass": "wrapperClass"; }, { "addClick": "addClick"; "openChange": "openChange"; }, never, never, false, never>;
|
|
146
141
|
}
|
|
@@ -6,6 +6,21 @@ import { SkySearchAdapterService } from './search-adapter.service';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SkySearchComponent implements OnDestroy, OnInit, OnChanges {
|
|
8
8
|
#private;
|
|
9
|
+
/**
|
|
10
|
+
* The ARIA label for the search. This sets the search's `aria-label` attribute to provide a text equivalent for screen readers
|
|
11
|
+
* [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
|
|
12
|
+
* If the box includes a visible label, use `ariaLabelledBy` instead.
|
|
13
|
+
* For more information about the `aria-label` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-label).
|
|
14
|
+
*/
|
|
15
|
+
ariaLabel: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The HTML element ID of the element that labels
|
|
18
|
+
* the search. This sets the search's `aria-labelledby` attribute to provide a text equivalent for screen readers
|
|
19
|
+
* [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
|
|
20
|
+
* If the box does not include a visible label, use `ariaLabel` instead.
|
|
21
|
+
* For more information about the `aria-labelledby` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-labelledby).
|
|
22
|
+
*/
|
|
23
|
+
ariaLabelledBy: string | undefined;
|
|
9
24
|
/**
|
|
10
25
|
* Fires when the search text is applied.
|
|
11
26
|
*/
|
|
@@ -69,5 +84,5 @@ export declare class SkySearchComponent implements OnDestroy, OnInit, OnChanges
|
|
|
69
84
|
inputAnimationEnd(event: AnimationEvent): void;
|
|
70
85
|
ngOnDestroy(): void;
|
|
71
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkySearchComponent, never>;
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkySearchComponent, "sky-search", never, { "searchText": "searchText"; "expandMode": "expandMode"; "debounceTime": "debounceTime"; "disabled": "disabled"; "placeholderText": "placeholderText"; }, { "searchApply": "searchApply"; "searchChange": "searchChange"; "searchClear": "searchClear"; }, never, never, false, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkySearchComponent, "sky-search", never, { "ariaLabel": "ariaLabel"; "ariaLabelledBy": "ariaLabelledBy"; "searchText": "searchText"; "expandMode": "expandMode"; "debounceTime": "debounceTime"; "disabled": "disabled"; "placeholderText": "placeholderText"; }, { "searchApply": "searchApply"; "searchChange": "searchChange"; "searchClear": "searchClear"; }, never, never, false, never>;
|
|
73
88
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/lookup",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.10.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"@angular/core": "^15.2.9",
|
|
47
47
|
"@angular/forms": "^15.2.9",
|
|
48
48
|
"@angular/platform-browser": "^15.2.9",
|
|
49
|
-
"@skyux-sdk/testing": "8.
|
|
50
|
-
"@skyux/core": "8.
|
|
51
|
-
"@skyux/forms": "8.
|
|
52
|
-
"@skyux/i18n": "8.
|
|
53
|
-
"@skyux/indicators": "8.
|
|
54
|
-
"@skyux/layout": "8.
|
|
55
|
-
"@skyux/lists": "8.
|
|
56
|
-
"@skyux/modals": "8.
|
|
57
|
-
"@skyux/theme": "8.
|
|
49
|
+
"@skyux-sdk/testing": "8.10.0",
|
|
50
|
+
"@skyux/core": "8.10.0",
|
|
51
|
+
"@skyux/forms": "8.10.0",
|
|
52
|
+
"@skyux/i18n": "8.10.0",
|
|
53
|
+
"@skyux/indicators": "8.10.0",
|
|
54
|
+
"@skyux/layout": "8.10.0",
|
|
55
|
+
"@skyux/lists": "8.10.0",
|
|
56
|
+
"@skyux/modals": "8.10.0",
|
|
57
|
+
"@skyux/theme": "8.10.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"intl-tel-input": "17.0.21",
|
|
@@ -36,7 +36,7 @@ export declare class SkyAutocompleteInputHarness extends ComponentHarness {
|
|
|
36
36
|
*/
|
|
37
37
|
isFocused(): Promise<boolean>;
|
|
38
38
|
/**
|
|
39
|
-
* Returns the value of the input's `aria-
|
|
39
|
+
* Returns the value of the input's `aria-controls` attribute.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
getAriaControls(): Promise<string | null>;
|
|
42
42
|
}
|
|
@@ -32,6 +32,14 @@ export declare class SkySearchHarness extends SkyComponentHarness {
|
|
|
32
32
|
* Focuses the input.
|
|
33
33
|
*/
|
|
34
34
|
focus(): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Gets the search's aria-label.
|
|
37
|
+
*/
|
|
38
|
+
getAriaLabel(): Promise<string | null>;
|
|
39
|
+
/**
|
|
40
|
+
* Gets the search's aria-labelledby.
|
|
41
|
+
*/
|
|
42
|
+
getAriaLabelledby(): Promise<string | null>;
|
|
35
43
|
/**
|
|
36
44
|
* Gets the value of the input's placeholder attribute.
|
|
37
45
|
*/
|