@skyux/lookup 7.0.0-beta.2 → 7.0.0-beta.3
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 +2236 -1192
- package/esm2020/lib/modules/autocomplete/autocomplete-default-search-function.mjs +1 -1
- package/esm2020/lib/modules/autocomplete/autocomplete-input.directive.mjs +2 -2
- package/esm2020/lib/modules/autocomplete/autocomplete-search-async-disabled.pipe.mjs +1 -1
- package/esm2020/lib/modules/autocomplete/autocomplete.component.mjs +66 -41
- package/esm2020/lib/modules/autocomplete/types/autocomplete-default-search-function-options.mjs +1 -1
- package/esm2020/lib/modules/country-field/country-field.component.mjs +36 -30
- package/esm2020/lib/modules/lookup/lookup-autocomplete-adapter.mjs +45 -14
- package/esm2020/lib/modules/lookup/lookup-show-more-modal.component.mjs +2 -2
- package/esm2020/lib/modules/lookup/lookup.component.mjs +60 -41
- package/esm2020/lib/modules/lookup/types/lookup-show-more-native-picker-async-context.mjs +11 -1
- package/esm2020/lib/modules/lookup/types/lookup-show-more-native-picker-context.mjs +11 -1
- package/esm2020/lib/modules/search/search.component.mjs +52 -27
- package/esm2020/testing/country-field/country-field-fixture.mjs +55 -57
- package/esm2020/testing/search/search-fixture.mjs +19 -17
- package/fesm2015/skyux-lookup-testing.mjs +75 -77
- package/fesm2015/skyux-lookup-testing.mjs.map +1 -1
- package/fesm2015/skyux-lookup.mjs +282 -150
- package/fesm2015/skyux-lookup.mjs.map +1 -1
- package/fesm2020/skyux-lookup-testing.mjs +71 -73
- package/fesm2020/skyux-lookup-testing.mjs.map +1 -1
- package/fesm2020/skyux-lookup.mjs +276 -150
- package/fesm2020/skyux-lookup.mjs.map +1 -1
- package/lib/modules/autocomplete/autocomplete-input.directive.d.ts +1 -1
- package/lib/modules/autocomplete/autocomplete-search-async-disabled.pipe.d.ts +1 -1
- package/lib/modules/autocomplete/autocomplete.component.d.ts +20 -14
- package/lib/modules/autocomplete/types/autocomplete-default-search-function-options.d.ts +1 -1
- package/lib/modules/country-field/country-field.component.d.ts +8 -8
- package/lib/modules/lookup/lookup-autocomplete-adapter.d.ts +7 -5
- package/lib/modules/lookup/lookup.component.d.ts +17 -11
- package/lib/modules/lookup/types/lookup-show-more-native-picker-async-context.d.ts +1 -0
- package/lib/modules/lookup/types/lookup-show-more-native-picker-context.d.ts +1 -0
- package/lib/modules/search/search.component.d.ts +8 -3
- package/package.json +10 -10
- package/testing/country-field/country-field-fixture.d.ts +1 -9
- package/testing/search/search-fixture.d.ts +1 -4
|
@@ -15,7 +15,7 @@ export declare class SkyAutocompleteInputDirective implements OnInit, OnDestroy,
|
|
|
15
15
|
* Indicates whether to disable the autocomplete field.
|
|
16
16
|
* @default false
|
|
17
17
|
*/
|
|
18
|
-
set disabled(value: boolean);
|
|
18
|
+
set disabled(value: boolean | undefined);
|
|
19
19
|
get disabled(): boolean;
|
|
20
20
|
get blur(): Observable<void>;
|
|
21
21
|
get displayWith(): string;
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
7
|
export declare class SkyAutcompleteSearchAsyncDisabledPipe implements PipeTransform {
|
|
8
|
-
transform(searchAsync: EventEmitter<SkyAutocompleteSearchAsyncArgs>, searchAsyncDisabled: boolean): boolean;
|
|
8
|
+
transform(searchAsync: EventEmitter<SkyAutocompleteSearchAsyncArgs>, searchAsyncDisabled: boolean | undefined): boolean;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyAutcompleteSearchAsyncDisabledPipe, never>;
|
|
10
10
|
static ɵpipe: i0.ɵɵPipeDeclaration<SkyAutcompleteSearchAsyncDisabledPipe, "skyAutocompleteSearchAsyncDisabled", false>;
|
|
11
11
|
}
|
|
@@ -3,6 +3,7 @@ import { SkyAffixService, SkyOverlayService } from '@skyux/core';
|
|
|
3
3
|
import { SkyInputBoxHostService } from '@skyux/forms';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { SkyAutocompleteAdapterService } from './autocomplete-adapter.service';
|
|
6
|
+
import { SkyAutocompleteInputDirective } from './autocomplete-input.directive';
|
|
6
7
|
import { SkyAutocompleteMessage } from './types/autocomplete-message';
|
|
7
8
|
import { SkyAutocompleteSearchAsyncArgs } from './types/autocomplete-search-async-args';
|
|
8
9
|
import { SkyAutocompleteSearchFunction } from './types/autocomplete-search-function';
|
|
@@ -50,7 +51,7 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
50
51
|
* @internal
|
|
51
52
|
* Indicates whether to display a button in the dropdown that opens a picker where users can view all options.
|
|
52
53
|
*/
|
|
53
|
-
enableShowMore: boolean;
|
|
54
|
+
enableShowMore: boolean | undefined;
|
|
54
55
|
/**
|
|
55
56
|
* Specifies an observable of `SkyAutocompleteMessage` that can close the dropdown.
|
|
56
57
|
* @internal
|
|
@@ -64,6 +65,7 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
64
65
|
/**
|
|
65
66
|
* Specifies the object properties to search.
|
|
66
67
|
* @default ["name"]
|
|
68
|
+
* @deprecated We recommend against using this property. To search specific properties, use the `searchAsync` event instead.
|
|
67
69
|
*/
|
|
68
70
|
set propertiesToSearch(value: string[] | undefined);
|
|
69
71
|
get propertiesToSearch(): string[];
|
|
@@ -71,12 +73,11 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
71
73
|
* Specifies a function to dynamically manage the data source when users
|
|
72
74
|
* change the text in the autocomplete field. The search function must return
|
|
73
75
|
* an array or a promise of an array. The `search` property is particularly
|
|
74
|
-
* useful when the data source does not live in the source code.
|
|
75
|
-
*
|
|
76
|
-
* `search`.
|
|
76
|
+
* useful when the data source does not live in the source code.
|
|
77
|
+
* @deprecated We recommend against using this property. To call a remote data source, use the `searchAsync` event instead.
|
|
77
78
|
*/
|
|
78
79
|
set search(value: SkyAutocompleteSearchFunction | undefined);
|
|
79
|
-
get search(): SkyAutocompleteSearchFunction;
|
|
80
|
+
get search(): SkyAutocompleteSearchFunction | undefined;
|
|
80
81
|
/**
|
|
81
82
|
* Specifies a template to format each search result in the dropdown list.
|
|
82
83
|
* The autocomplete component injects search result values into the template
|
|
@@ -97,19 +98,22 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
97
98
|
* using the `search` property to specify a custom search function, you must
|
|
98
99
|
* manually apply filters inside that function. The function must return `true`
|
|
99
100
|
* or `false` for each result to indicate whether to display it in the dropdown list.
|
|
101
|
+
* @deprecated We recommend against using this property. To filter results, use the `searchAsync` event instead.
|
|
100
102
|
*/
|
|
101
|
-
searchFilters: SkyAutocompleteSearchFunctionFilter[] | undefined;
|
|
103
|
+
set searchFilters(value: SkyAutocompleteSearchFunctionFilter[] | undefined);
|
|
104
|
+
get searchFilters(): SkyAutocompleteSearchFunctionFilter[] | undefined;
|
|
102
105
|
/**
|
|
103
106
|
* Specifies the maximum number of search results to display in the dropdown list.
|
|
104
107
|
* By default, the component displays all matching results.
|
|
105
108
|
*/
|
|
106
109
|
set searchResultsLimit(value: number | undefined);
|
|
107
|
-
get searchResultsLimit(): number
|
|
110
|
+
get searchResultsLimit(): number;
|
|
108
111
|
/**
|
|
109
112
|
* @internal
|
|
110
113
|
* Indicates whether to display a button that lets users add options to the data source.
|
|
114
|
+
* @default false
|
|
111
115
|
*/
|
|
112
|
-
showAddButton: boolean;
|
|
116
|
+
showAddButton: boolean | undefined;
|
|
113
117
|
/**
|
|
114
118
|
* Specifies the text to display when no search results are found.
|
|
115
119
|
* @default "No matches found"
|
|
@@ -119,8 +123,9 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
119
123
|
* @internal
|
|
120
124
|
* Allows async search to be disabled even when a listener is specified for
|
|
121
125
|
* the `searchAsync` output.
|
|
126
|
+
* @default false
|
|
122
127
|
*/
|
|
123
|
-
searchAsyncDisabled: boolean;
|
|
128
|
+
searchAsyncDisabled: boolean | undefined;
|
|
124
129
|
/**
|
|
125
130
|
* @internal
|
|
126
131
|
* Fires when users select the button to add options to the data source.
|
|
@@ -151,11 +156,12 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
|
|
|
151
156
|
get showActionsArea(): boolean;
|
|
152
157
|
isSearchingAsync: boolean;
|
|
153
158
|
searchResultsCount: number | undefined;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
set inputDirective(directive: SkyAutocompleteInputDirective | undefined);
|
|
160
|
+
get inputDirective(): SkyAutocompleteInputDirective | undefined;
|
|
161
|
+
resultsTemplateRef: TemplateRef<unknown> | undefined;
|
|
162
|
+
set resultsRef(value: ElementRef | undefined);
|
|
163
|
+
get resultsRef(): ElementRef | undefined;
|
|
164
|
+
searchOrDefault: SkyAutocompleteSearchFunction;
|
|
159
165
|
constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, affixService: SkyAffixService, adapterService: SkyAutocompleteAdapterService, overlayService: SkyOverlayService, inputBoxHostSvc?: SkyInputBoxHostService);
|
|
160
166
|
ngAfterViewInit(): void;
|
|
161
167
|
ngOnDestroy(): void;
|
|
@@ -3,7 +3,7 @@ import { SkyAutocompleteSearchFunctionFilter } from './autocomplete-search-funct
|
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export interface SkyAutocompleteDefaultSearchFunctionOptions {
|
|
6
|
-
propertiesToSearch
|
|
6
|
+
propertiesToSearch: string[];
|
|
7
7
|
searchFilters?: SkyAutocompleteSearchFunctionFilter[];
|
|
8
8
|
/** @deprecated */
|
|
9
9
|
searchResultsLimit?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
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
3
|
import { SkyAppWindowRef } from '@skyux/core';
|
|
4
4
|
import { SkyInputBoxHostService } from '@skyux/forms';
|
|
@@ -13,7 +13,6 @@ export declare class SkyCountryFieldComponent implements AfterViewInit, ControlV
|
|
|
13
13
|
inputBoxHostSvc?: SkyInputBoxHostService | undefined;
|
|
14
14
|
/**
|
|
15
15
|
* Specifies the value for the `autocomplete` attribute on the form input.
|
|
16
|
-
* @default "off"
|
|
17
16
|
*/
|
|
18
17
|
autocompleteAttribute: string | undefined;
|
|
19
18
|
/**
|
|
@@ -28,17 +27,19 @@ export declare class SkyCountryFieldComponent implements AfterViewInit, ControlV
|
|
|
28
27
|
* Indicates whether to disable the country field.
|
|
29
28
|
* @default false
|
|
30
29
|
*/
|
|
31
|
-
set disabled(isDisabled: boolean);
|
|
30
|
+
set disabled(isDisabled: boolean | undefined);
|
|
32
31
|
get disabled(): boolean;
|
|
33
32
|
/**
|
|
34
33
|
* Indicates whether to hide the flag in the input element.
|
|
34
|
+
* @default false
|
|
35
35
|
*/
|
|
36
|
-
hideSelectedCountryFlag: boolean;
|
|
36
|
+
set hideSelectedCountryFlag(value: boolean | undefined);
|
|
37
|
+
get hideSelectedCountryFlag(): boolean;
|
|
37
38
|
/**
|
|
38
39
|
* Indicates whether to include phone information in the selected country and country dropdown.
|
|
39
40
|
* @default false
|
|
40
41
|
*/
|
|
41
|
-
set includePhoneInfo(value: boolean);
|
|
42
|
+
set includePhoneInfo(value: boolean | undefined);
|
|
42
43
|
get includePhoneInfo(): boolean;
|
|
43
44
|
/**
|
|
44
45
|
* Specifies the [International Organization for Standardization Alpha 2](https://www.nationsonline.org/oneworld/country_code_list.htm)
|
|
@@ -59,8 +60,8 @@ export declare class SkyCountryFieldComponent implements AfterViewInit, ControlV
|
|
|
59
60
|
get selectedCountry(): SkyCountryFieldCountry | undefined;
|
|
60
61
|
currentTheme: string;
|
|
61
62
|
inputId: string;
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
inputTemplateRef: TemplateRef<unknown> | undefined;
|
|
64
|
+
searchIconTemplateRef: TemplateRef<unknown> | undefined;
|
|
64
65
|
constructor(changeDetector: ChangeDetectorRef, elRef: ElementRef, windowRef: SkyAppWindowRef, injector: Injector, inputBoxHostSvc?: SkyInputBoxHostService | undefined, themeSvc?: SkyThemeService);
|
|
65
66
|
/**
|
|
66
67
|
* Angular lifecycle hook for when the component is initialized
|
|
@@ -92,7 +93,6 @@ export declare class SkyCountryFieldComponent implements AfterViewInit, ControlV
|
|
|
92
93
|
setDisabledState(disabled: boolean): void;
|
|
93
94
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
94
95
|
writeValue(value: SkyCountryFieldCountry | undefined): void;
|
|
95
|
-
private addEventListeners;
|
|
96
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyCountryFieldComponent, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
97
97
|
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>;
|
|
98
98
|
}
|
|
@@ -19,13 +19,13 @@ export declare class SkyLookupAutocompleteAdapter {
|
|
|
19
19
|
* select an item in the dropdown list.
|
|
20
20
|
* @default "name"
|
|
21
21
|
*/
|
|
22
|
-
set descriptorProperty(value: string);
|
|
22
|
+
set descriptorProperty(value: string | undefined);
|
|
23
23
|
get descriptorProperty(): string;
|
|
24
24
|
/**
|
|
25
25
|
* Specifies an array of object properties to search.
|
|
26
26
|
* @default ["name"]
|
|
27
27
|
*/
|
|
28
|
-
set propertiesToSearch(value: string[]);
|
|
28
|
+
set propertiesToSearch(value: string[] | undefined);
|
|
29
29
|
get propertiesToSearch(): string[];
|
|
30
30
|
/**
|
|
31
31
|
* Specifies a function to dynamically manage the data source when users
|
|
@@ -35,8 +35,8 @@ export declare class SkyLookupAutocompleteAdapter {
|
|
|
35
35
|
* search requires calling a remote data source, use `searchAsync` instead of
|
|
36
36
|
* `search`.
|
|
37
37
|
*/
|
|
38
|
-
set search(value: SkyAutocompleteSearchFunction);
|
|
39
|
-
get search(): SkyAutocompleteSearchFunction;
|
|
38
|
+
set search(value: SkyAutocompleteSearchFunction | undefined);
|
|
39
|
+
get search(): SkyAutocompleteSearchFunction | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* Specifies a template to format each option in the dropdown list. The lookup component
|
|
42
42
|
* injects values into the template as `item` variables that reference all the object
|
|
@@ -57,7 +57,8 @@ export declare class SkyLookupAutocompleteAdapter {
|
|
|
57
57
|
* applied manually inside that function. The function must return `true` or
|
|
58
58
|
* `false` for each result to indicate whether to display it in the dropdown list.
|
|
59
59
|
*/
|
|
60
|
-
searchFilters: SkyAutocompleteSearchFunctionFilter[] | undefined;
|
|
60
|
+
set searchFilters(value: SkyAutocompleteSearchFunctionFilter[] | undefined);
|
|
61
|
+
get searchFilters(): SkyAutocompleteSearchFunctionFilter[] | undefined;
|
|
61
62
|
/**
|
|
62
63
|
* Specifies the maximum number of search results to display in the dropdown
|
|
63
64
|
* list. By default, the lookup component displays all matching results.
|
|
@@ -68,6 +69,7 @@ export declare class SkyLookupAutocompleteAdapter {
|
|
|
68
69
|
* returned via an observable.
|
|
69
70
|
*/
|
|
70
71
|
searchAsync: EventEmitter<SkyAutocompleteSearchAsyncArgs>;
|
|
72
|
+
searchOrDefault: SkyAutocompleteSearchFunction;
|
|
71
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkyLookupAutocompleteAdapter, never>;
|
|
72
74
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SkyLookupAutocompleteAdapter, never, never, { "debounceTime": "debounceTime"; "descriptorProperty": "descriptorProperty"; "propertiesToSearch": "propertiesToSearch"; "search": "search"; "searchResultTemplate": "searchResultTemplate"; "searchTextMinimumCharacters": "searchTextMinimumCharacters"; "searchFilters": "searchFilters"; "searchResultsLimit": "searchResultsLimit"; }, { "searchAsync": "searchAsync"; }, never, never, false>;
|
|
73
75
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
3
|
import { SkyAppWindowRef } from '@skyux/core';
|
|
4
4
|
import { SkyInputBoxHostService } from '@skyux/forms';
|
|
@@ -7,6 +7,7 @@ import { SkyToken, SkyTokensMessage } from '@skyux/indicators';
|
|
|
7
7
|
import { SkyModalService } from '@skyux/modals';
|
|
8
8
|
import { SkyThemeService } from '@skyux/theme';
|
|
9
9
|
import { Subject } from 'rxjs';
|
|
10
|
+
import { SkyAutocompleteInputDirective } from '../autocomplete/autocomplete-input.directive';
|
|
10
11
|
import { SkyAutocompleteMessage } from '../autocomplete/types/autocomplete-message';
|
|
11
12
|
import { SkyAutocompleteSearchAsyncArgs } from '../autocomplete/types/autocomplete-search-async-args';
|
|
12
13
|
import { SkyAutocompleteSelectionChange } from '../autocomplete/types/autocomplete-selection-change';
|
|
@@ -36,7 +37,6 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
|
|
|
36
37
|
ariaLabelledBy: string | undefined;
|
|
37
38
|
/**
|
|
38
39
|
* Specifies the value for the `autocomplete` attribute on the form input.
|
|
39
|
-
* @default "off"
|
|
40
40
|
*/
|
|
41
41
|
autocompleteAttribute: string | undefined;
|
|
42
42
|
/**
|
|
@@ -49,12 +49,16 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
|
|
|
49
49
|
get data(): any[];
|
|
50
50
|
/**
|
|
51
51
|
* Indicates whether to disable the lookup field.
|
|
52
|
+
* @default false
|
|
52
53
|
*/
|
|
53
|
-
disabled: boolean;
|
|
54
|
+
set disabled(value: boolean | undefined);
|
|
55
|
+
get disabled(): boolean;
|
|
54
56
|
/**
|
|
55
57
|
* Indicates whether to enable users to open a picker where they can view all options.
|
|
58
|
+
* @default false
|
|
56
59
|
*/
|
|
57
|
-
enableShowMore: boolean;
|
|
60
|
+
set enableShowMore(value: boolean | undefined);
|
|
61
|
+
get enableShowMore(): boolean;
|
|
58
62
|
/**
|
|
59
63
|
* Specifies placeholder text to display in the lookup field.
|
|
60
64
|
*/
|
|
@@ -67,8 +71,10 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
|
|
|
67
71
|
idProperty: string | undefined;
|
|
68
72
|
/**
|
|
69
73
|
* Indicates whether to display a button that lets users add options to the list.
|
|
74
|
+
* @default false
|
|
70
75
|
*/
|
|
71
|
-
showAddButton: boolean;
|
|
76
|
+
set showAddButton(value: boolean | undefined);
|
|
77
|
+
get showAddButton(): boolean;
|
|
72
78
|
/**
|
|
73
79
|
* Specifies configuration options for the picker that displays all options.
|
|
74
80
|
*/
|
|
@@ -95,12 +101,12 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
|
|
|
95
101
|
isInputFocused: boolean;
|
|
96
102
|
showMorePickerId: string | undefined;
|
|
97
103
|
tokensController: Subject<SkyTokensMessage>;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
set autocompleteInputDirective(value: SkyAutocompleteInputDirective | undefined);
|
|
105
|
+
get autocompleteInputDirective(): SkyAutocompleteInputDirective | undefined;
|
|
106
|
+
showMoreButtonTemplateRef: TemplateRef<unknown> | undefined;
|
|
107
|
+
inputTemplateRef: TemplateRef<unknown> | undefined;
|
|
108
|
+
lookupWrapperRef: ElementRef | undefined;
|
|
109
|
+
searchIconTemplateRef: TemplateRef<unknown> | undefined;
|
|
104
110
|
constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, windowRef: SkyAppWindowRef, adapter: SkyLookupAdapterService, modalService: SkyModalService, resourcesService: SkyLibResourcesService, ngControl?: NgControl, inputBoxHostSvc?: SkyInputBoxHostService | undefined, themeSvc?: SkyThemeService | undefined);
|
|
105
111
|
ngOnInit(): void;
|
|
106
112
|
ngAfterViewInit(): void;
|
|
@@ -14,4 +14,5 @@ export declare class SkyLookupShowMoreNativePickerAsyncContext {
|
|
|
14
14
|
selectMode: SkyLookupSelectModeType;
|
|
15
15
|
showAddButton: boolean;
|
|
16
16
|
userConfig: SkyLookupShowMoreNativePickerConfig;
|
|
17
|
+
constructor(descriptorProperty: string, idProperty: string, initialSearch: string, initialValue: any[], searchAsync: SkyAutocompleteSearchAsyncFunction, selectMode: SkyLookupSelectModeType, showAddButton: boolean, userConfig: SkyLookupShowMoreNativePickerConfig);
|
|
17
18
|
}
|
|
@@ -14,4 +14,5 @@ export declare class SkyLookupShowMoreNativePickerContext {
|
|
|
14
14
|
selectMode: SkyLookupSelectModeType;
|
|
15
15
|
showAddButton: boolean;
|
|
16
16
|
userConfig: SkyLookupShowMoreNativePickerConfig;
|
|
17
|
+
constructor(descriptorProperty: string, initialSearch: string, initialValue: any[], items: any[], search: SkyAutocompleteSearchFunction, selectMode: SkyLookupSelectModeType, showAddButton: boolean, userConfig: SkyLookupShowMoreNativePickerConfig);
|
|
17
18
|
}
|
|
@@ -29,15 +29,20 @@ export declare class SkySearchComponent implements OnDestroy, OnInit, OnChanges
|
|
|
29
29
|
* devices, and `"fit"` to extend the search input to fit the width of its container.
|
|
30
30
|
* @default "responsive"
|
|
31
31
|
*/
|
|
32
|
-
expandMode: string;
|
|
32
|
+
set expandMode(value: string | undefined);
|
|
33
|
+
get expandMode(): string;
|
|
33
34
|
/**
|
|
34
35
|
* Specifies how many milliseconds to wait before searching after users enter text in the search input.
|
|
36
|
+
* @default 0
|
|
35
37
|
*/
|
|
36
|
-
debounceTime: number;
|
|
38
|
+
set debounceTime(value: number | undefined);
|
|
39
|
+
get debounceTime(): number;
|
|
37
40
|
/**
|
|
38
41
|
* Indicates whether to disable the filter button.
|
|
42
|
+
* @default false
|
|
39
43
|
*/
|
|
40
|
-
disabled: boolean;
|
|
44
|
+
set disabled(value: boolean | undefined);
|
|
45
|
+
get disabled(): boolean;
|
|
41
46
|
/**
|
|
42
47
|
* Specifies placeholder text to display in the search input until users
|
|
43
48
|
* enter search criteria.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/lookup",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.3",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"@angular/core": "^14.2.0",
|
|
47
47
|
"@angular/forms": "^14.2.0",
|
|
48
48
|
"@angular/platform-browser": "^14.2.0",
|
|
49
|
-
"@skyux-sdk/testing": "7.0.0-beta.
|
|
50
|
-
"@skyux/core": "7.0.0-beta.
|
|
51
|
-
"@skyux/forms": "7.0.0-beta.
|
|
52
|
-
"@skyux/i18n": "7.0.0-beta.
|
|
53
|
-
"@skyux/indicators": "7.0.0-beta.
|
|
54
|
-
"@skyux/layout": "7.0.0-beta.
|
|
55
|
-
"@skyux/lists": "7.0.0-beta.
|
|
56
|
-
"@skyux/modals": "7.0.0-beta.
|
|
57
|
-
"@skyux/theme": "7.0.0-beta.
|
|
49
|
+
"@skyux-sdk/testing": "7.0.0-beta.3",
|
|
50
|
+
"@skyux/core": "7.0.0-beta.3",
|
|
51
|
+
"@skyux/forms": "7.0.0-beta.3",
|
|
52
|
+
"@skyux/i18n": "7.0.0-beta.3",
|
|
53
|
+
"@skyux/indicators": "7.0.0-beta.3",
|
|
54
|
+
"@skyux/layout": "7.0.0-beta.3",
|
|
55
|
+
"@skyux/lists": "7.0.0-beta.3",
|
|
56
|
+
"@skyux/modals": "7.0.0-beta.3",
|
|
57
|
+
"@skyux/theme": "7.0.0-beta.3"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"intl-tel-input": "17.0.19",
|
|
@@ -4,8 +4,7 @@ import { ComponentFixture } from '@angular/core/testing';
|
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare class SkyCountryFieldFixture {
|
|
7
|
-
private
|
|
8
|
-
private debugEl;
|
|
7
|
+
#private;
|
|
9
8
|
/**
|
|
10
9
|
* The value of the input field's autocomplete attribute.
|
|
11
10
|
*/
|
|
@@ -40,11 +39,4 @@ export declare class SkyCountryFieldFixture {
|
|
|
40
39
|
* Clears the country selection and input field.
|
|
41
40
|
*/
|
|
42
41
|
clear(): Promise<void>;
|
|
43
|
-
private getCountryFlag;
|
|
44
|
-
private getAutocompleteElement;
|
|
45
|
-
private getInputElement;
|
|
46
|
-
private blurInput;
|
|
47
|
-
private enterSearch;
|
|
48
|
-
private searchAndGetResults;
|
|
49
|
-
private searchAndSelect;
|
|
50
42
|
}
|
|
@@ -5,6 +5,7 @@ import { ComponentFixture } from '@angular/core/testing';
|
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
7
|
export declare class SkySearchFixture {
|
|
8
|
+
#private;
|
|
8
9
|
/**
|
|
9
10
|
* Gets the search's current text.
|
|
10
11
|
*/
|
|
@@ -13,7 +14,6 @@ export declare class SkySearchFixture {
|
|
|
13
14
|
* Gets the search's current placeholder text.
|
|
14
15
|
*/
|
|
15
16
|
get placeholderText(): string;
|
|
16
|
-
private debugEl;
|
|
17
17
|
constructor(fixture: ComponentFixture<any>, skyTestId: string);
|
|
18
18
|
/**
|
|
19
19
|
* Applies the specified search text, invoking the search.
|
|
@@ -26,7 +26,4 @@ export declare class SkySearchFixture {
|
|
|
26
26
|
* not currently applied, an error is thrown.
|
|
27
27
|
*/
|
|
28
28
|
clear(): void;
|
|
29
|
-
private getApplyBtnEl;
|
|
30
|
-
private getClearBtnEl;
|
|
31
|
-
private getInputEl;
|
|
32
29
|
}
|