@skyux/lookup 8.8.0 → 8.9.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 +932 -1061
- package/esm2020/lib/modules/autocomplete/autocomplete-input.directive.mjs +7 -4
- package/esm2020/lib/modules/autocomplete/autocomplete.component.mjs +60 -22
- package/esm2020/lib/modules/country-field/country-field.component.mjs +17 -49
- package/esm2020/lib/modules/lookup/lookup.component.mjs +56 -41
- package/esm2020/testing/autocomplete/autocomplete-harness.mjs +2 -2
- package/esm2020/testing/autocomplete/autocomplete-input-harness.mjs +4 -4
- package/fesm2015/skyux-lookup-testing.mjs +4 -4
- package/fesm2015/skyux-lookup-testing.mjs.map +1 -1
- package/fesm2015/skyux-lookup.mjs +252 -228
- package/fesm2015/skyux-lookup.mjs.map +1 -1
- package/fesm2020/skyux-lookup-testing.mjs +4 -4
- package/fesm2020/skyux-lookup-testing.mjs.map +1 -1
- package/fesm2020/skyux-lookup.mjs +252 -228
- 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 +11 -4
- package/lib/modules/country-field/country-field.component.d.ts +2 -4
- package/lib/modules/lookup/lookup.component.d.ts +9 -9
- package/package.json +10 -10
- package/testing/autocomplete/autocomplete-input-harness.d.ts +2 -2
|
@@ -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"
|
|
@@ -146,6 +148,10 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
146
148
|
* returned via an observable.
|
|
147
149
|
*/
|
|
148
150
|
searchAsync: EventEmitter<SkyAutocompleteSearchAsyncArgs>;
|
|
151
|
+
/**
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
154
|
+
openChange: EventEmitter<boolean>;
|
|
149
155
|
get searchResults(): SkyAutocompleteSearchResult[];
|
|
150
156
|
set searchResults(value: SkyAutocompleteSearchResult[]);
|
|
151
157
|
get highlightText(): string[];
|
|
@@ -163,6 +169,7 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
163
169
|
set resultsRef(value: ElementRef | undefined);
|
|
164
170
|
get resultsRef(): ElementRef | undefined;
|
|
165
171
|
searchOrDefault: SkyAutocompleteSearchFunction;
|
|
172
|
+
protected isDropdownVisible: Observable<boolean>;
|
|
166
173
|
constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, affixService: SkyAffixService, adapterService: SkyAutocompleteAdapterService, overlayService: SkyOverlayService, inputBoxHostSvc?: SkyInputBoxHostService, stackingContext?: SkyStackingContext);
|
|
167
174
|
ngAfterViewInit(): void;
|
|
168
175
|
ngOnDestroy(): void;
|
|
@@ -173,6 +180,6 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
173
180
|
onResultMouseMove(id: number): void;
|
|
174
181
|
isElementFocused(ref: HTMLElement): boolean;
|
|
175
182
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyAutocompleteComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
176
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyAutocompleteComponent, "sky-autocomplete", never, { "ariaLabelledBy": "ariaLabelledBy"; "data": "data"; "debounceTime": "debounceTime"; "descriptorProperty": "descriptorProperty"; "enableShowMore": "enableShowMore"; "messageStream": "messageStream"; "wrapperClass": "wrapperClass"; "propertiesToSearch": "propertiesToSearch"; "search": "search"; "searchResultTemplate": "searchResultTemplate"; "searchTextMinimumCharacters": "searchTextMinimumCharacters"; "searchFilters": "searchFilters"; "searchResultsLimit": "searchResultsLimit"; "showAddButton": "showAddButton"; "noResultsFoundText": "noResultsFoundText"; "searchAsyncDisabled": "searchAsyncDisabled"; }, { "addClick": "addClick"; "showMoreClick": "showMoreClick"; "selectionChange": "selectionChange"; "searchAsync": "searchAsync"; }, ["inputDirective"], ["*"], false, never>;
|
|
183
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkyAutocompleteComponent, "sky-autocomplete", never, { "ariaLabelledBy": "ariaLabelledBy"; "data": "data"; "debounceTime": "debounceTime"; "descriptorProperty": "descriptorProperty"; "enableShowMore": "enableShowMore"; "messageStream": "messageStream"; "wrapperClass": "wrapperClass"; "propertiesToSearch": "propertiesToSearch"; "search": "search"; "searchResultTemplate": "searchResultTemplate"; "searchTextMinimumCharacters": "searchTextMinimumCharacters"; "searchFilters": "searchFilters"; "searchResultsLimit": "searchResultsLimit"; "showAddButton": "showAddButton"; "noResultsFoundText": "noResultsFoundText"; "searchAsyncDisabled": "searchAsyncDisabled"; }, { "addClick": "addClick"; "showMoreClick": "showMoreClick"; "selectionChange": "selectionChange"; "searchAsync": "searchAsync"; "openChange": "openChange"; }, ["inputDirective"], ["*"], false, never>;
|
|
177
184
|
}
|
|
178
185
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, UntypedFormControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { SkyAppWindowRef } from '@skyux/core';
|
|
4
3
|
import { SkyInputBoxHostService } from '@skyux/forms';
|
|
5
4
|
import { SkyThemeService } from '@skyux/theme';
|
|
6
5
|
import 'intl-tel-input';
|
|
@@ -56,7 +55,6 @@ export declare class SkyCountryFieldComponent implements AfterViewInit, ControlV
|
|
|
56
55
|
selectedCountryChange: EventEmitter<SkyCountryFieldCountry>;
|
|
57
56
|
countries: SkyCountryFieldCountry[];
|
|
58
57
|
countrySearchFormControl: UntypedFormControl;
|
|
59
|
-
isInputFocused: boolean;
|
|
60
58
|
searchTextMinimumCharacters: number;
|
|
61
59
|
countrySearchAutocompleteDirective: SkyAutocompleteInputDirective | undefined;
|
|
62
60
|
set selectedCountry(newCountry: SkyCountryFieldCountry | undefined);
|
|
@@ -66,7 +64,7 @@ export declare class SkyCountryFieldComponent implements AfterViewInit, ControlV
|
|
|
66
64
|
inputId: string;
|
|
67
65
|
inputTemplateRef: TemplateRef<unknown> | undefined;
|
|
68
66
|
searchIconTemplateRef: TemplateRef<unknown> | undefined;
|
|
69
|
-
constructor(changeDetector: ChangeDetectorRef, elRef: ElementRef,
|
|
67
|
+
constructor(changeDetector: ChangeDetectorRef, elRef: ElementRef, injector: Injector, inputBoxHostSvc?: SkyInputBoxHostService | undefined, themeSvc?: SkyThemeService);
|
|
70
68
|
/**
|
|
71
69
|
* Angular lifecycle hook for when the component is initialized
|
|
72
70
|
* @internal
|
|
@@ -97,6 +95,6 @@ export declare class SkyCountryFieldComponent implements AfterViewInit, ControlV
|
|
|
97
95
|
setDisabledState(disabled: boolean): void;
|
|
98
96
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
99
97
|
writeValue(value: SkyCountryFieldCountry | undefined): void;
|
|
100
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCountryFieldComponent, [null, null, null,
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCountryFieldComponent, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
101
99
|
static ɵcmp: i0.ɵɵComponentDeclaration<SkyCountryFieldComponent, "sky-country-field", never, { "autocompleteAttribute": "autocompleteAttribute"; "defaultCountry": "defaultCountry"; "disabled": "disabled"; "hideSelectedCountryFlag": "hideSelectedCountryFlag"; "includePhoneInfo": "includePhoneInfo"; "supportedCountryISOs": "supportedCountryISOs"; }, { "selectedCountryChange": "selectedCountryChange"; }, never, never, false, never>;
|
|
102
100
|
}
|
|
@@ -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';
|
|
@@ -97,6 +92,10 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
|
|
|
97
92
|
* Fires when users select the button to add options to the list.
|
|
98
93
|
*/
|
|
99
94
|
addClick: EventEmitter<SkyLookupAddClickEventArgs>;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
openChange: EventEmitter<boolean>;
|
|
100
99
|
get tokens(): SkyToken[] | undefined;
|
|
101
100
|
set tokens(value: SkyToken[] | undefined);
|
|
102
101
|
get value(): any[];
|
|
@@ -112,7 +111,7 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
|
|
|
112
111
|
inputTemplateRef: TemplateRef<unknown> | undefined;
|
|
113
112
|
lookupWrapperRef: ElementRef | undefined;
|
|
114
113
|
searchIconTemplateRef: TemplateRef<unknown> | undefined;
|
|
115
|
-
constructor(
|
|
114
|
+
constructor(ngControl?: NgControl, inputBoxHostSvc?: SkyInputBoxHostService | undefined, themeSvc?: SkyThemeService | undefined);
|
|
116
115
|
ngOnInit(): void;
|
|
117
116
|
ngAfterViewInit(): void;
|
|
118
117
|
ngOnDestroy(): void;
|
|
@@ -135,7 +134,8 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
|
|
|
135
134
|
onSearchButtonClick(): void;
|
|
136
135
|
onShowMoreClick(event: SkyAutocompleteShowMoreArgs): void;
|
|
137
136
|
openPicker(initialSearch: string): void;
|
|
137
|
+
protected onAutocompleteOpenChange($event: boolean): void;
|
|
138
138
|
onSearchAsync(args: SkyAutocompleteSearchAsyncArgs): void;
|
|
139
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyLookupComponent, [
|
|
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"; }, never, never, false, never>;
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkyLookupComponent, [{ optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
|
|
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>;
|
|
141
141
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/lookup",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.9.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.9.0",
|
|
50
|
+
"@skyux/core": "8.9.0",
|
|
51
|
+
"@skyux/forms": "8.9.0",
|
|
52
|
+
"@skyux/i18n": "8.9.0",
|
|
53
|
+
"@skyux/indicators": "8.9.0",
|
|
54
|
+
"@skyux/layout": "8.9.0",
|
|
55
|
+
"@skyux/lists": "8.9.0",
|
|
56
|
+
"@skyux/modals": "8.9.0",
|
|
57
|
+
"@skyux/theme": "8.9.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
|
}
|