@skyux/lookup 8.8.1 → 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.
@@ -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
- setAriaOwns(overlayId: string | null): void;
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, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
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(changeDetector: ChangeDetectorRef, elementRef: ElementRef, windowRef: SkyAppWindowRef, adapter: SkyLookupAdapterService, modalService: SkyModalService, resourcesService: SkyLibResourcesService, selectionModalSvc: SkySelectionModalService, logSvc: SkyLogService, ngControl?: NgControl, inputBoxHostSvc?: SkyInputBoxHostService | undefined, themeSvc?: SkyThemeService | undefined);
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, [null, null, null, null, null, null, null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/lookup",
3
- "version": "8.8.1",
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.8.1",
50
- "@skyux/core": "8.8.1",
51
- "@skyux/forms": "8.8.1",
52
- "@skyux/i18n": "8.8.1",
53
- "@skyux/indicators": "8.8.1",
54
- "@skyux/layout": "8.8.1",
55
- "@skyux/lists": "8.8.1",
56
- "@skyux/modals": "8.8.1",
57
- "@skyux/theme": "8.8.1"
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-owns` attribute.
39
+ * Returns the value of the input's `aria-controls` attribute.
40
40
  */
41
- getAriaOwns(): Promise<string | null>;
41
+ getAriaControls(): Promise<string | null>;
42
42
  }