@skyux/lookup 9.0.0-alpha.4 → 9.0.0-alpha.5

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.
@@ -146,6 +146,10 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
146
146
  * returned via an observable.
147
147
  */
148
148
  searchAsync: EventEmitter<SkyAutocompleteSearchAsyncArgs>;
149
+ /**
150
+ * @internal
151
+ */
152
+ openChange: EventEmitter<boolean>;
149
153
  get searchResults(): SkyAutocompleteSearchResult[];
150
154
  set searchResults(value: SkyAutocompleteSearchResult[]);
151
155
  get highlightText(): string[];
@@ -173,6 +177,6 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
173
177
  onResultMouseMove(id: number): void;
174
178
  isElementFocused(ref: HTMLElement): boolean;
175
179
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAutocompleteComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
176
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyAutocompleteComponent, "sky-autocomplete", never, { "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "data": { "alias": "data"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "descriptorProperty": { "alias": "descriptorProperty"; "required": false; }; "enableShowMore": { "alias": "enableShowMore"; "required": false; }; "messageStream": { "alias": "messageStream"; "required": false; }; "wrapperClass": { "alias": "wrapperClass"; "required": false; }; "propertiesToSearch": { "alias": "propertiesToSearch"; "required": false; }; "search": { "alias": "search"; "required": false; }; "searchResultTemplate": { "alias": "searchResultTemplate"; "required": false; }; "searchTextMinimumCharacters": { "alias": "searchTextMinimumCharacters"; "required": false; }; "searchFilters": { "alias": "searchFilters"; "required": false; }; "searchResultsLimit": { "alias": "searchResultsLimit"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "noResultsFoundText": { "alias": "noResultsFoundText"; "required": false; }; "searchAsyncDisabled": { "alias": "searchAsyncDisabled"; "required": false; }; }, { "addClick": "addClick"; "showMoreClick": "showMoreClick"; "selectionChange": "selectionChange"; "searchAsync": "searchAsync"; }, ["inputDirective"], ["*"], false, never>;
180
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyAutocompleteComponent, "sky-autocomplete", never, { "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "data": { "alias": "data"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "descriptorProperty": { "alias": "descriptorProperty"; "required": false; }; "enableShowMore": { "alias": "enableShowMore"; "required": false; }; "messageStream": { "alias": "messageStream"; "required": false; }; "wrapperClass": { "alias": "wrapperClass"; "required": false; }; "propertiesToSearch": { "alias": "propertiesToSearch"; "required": false; }; "search": { "alias": "search"; "required": false; }; "searchResultTemplate": { "alias": "searchResultTemplate"; "required": false; }; "searchTextMinimumCharacters": { "alias": "searchTextMinimumCharacters"; "required": false; }; "searchFilters": { "alias": "searchFilters"; "required": false; }; "searchResultsLimit": { "alias": "searchResultsLimit"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "noResultsFoundText": { "alias": "noResultsFoundText"; "required": false; }; "searchAsyncDisabled": { "alias": "searchAsyncDisabled"; "required": false; }; }, { "addClick": "addClick"; "showMoreClick": "showMoreClick"; "selectionChange": "selectionChange"; "searchAsync": "searchAsync"; "openChange": "openChange"; }, ["inputDirective"], ["*"], false, never>;
177
181
  }
178
182
  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, windowRef: SkyAppWindowRef, injector: Injector, inputBoxHostSvc?: SkyInputBoxHostService | undefined, themeSvc?: SkyThemeService);
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, null, { optional: true; }, { optional: true; }]>;
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": { "alias": "autocompleteAttribute"; "required": false; }; "defaultCountry": { "alias": "defaultCountry"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideSelectedCountryFlag": { "alias": "hideSelectedCountryFlag"; "required": false; }; "includePhoneInfo": { "alias": "includePhoneInfo"; "required": false; }; "supportedCountryISOs": { "alias": "supportedCountryISOs"; "required": false; }; }, { "selectedCountryChange": "selectedCountryChange"; }, never, never, false, never>;
102
100
  }
@@ -4,11 +4,10 @@ import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/forms";
5
5
  import * as i4 from "../autocomplete/autocomplete.module";
6
6
  import * as i5 from "@skyux/indicators";
7
- import * as i6 from "@skyux/i18n";
8
- import * as i7 from "../shared/sky-lookup-resources.module";
9
- import * as i8 from "@skyux/theme";
7
+ import * as i6 from "../shared/sky-lookup-resources.module";
8
+ import * as i7 from "@skyux/theme";
10
9
  export declare class SkyCountryFieldModule {
11
10
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyCountryFieldModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyCountryFieldModule, [typeof i1.SkyCountryFieldComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.SkyAutocompleteModule, typeof i5.SkyIconModule, typeof i6.SkyI18nModule, typeof i7.SkyLookupResourcesModule, typeof i8.SkyThemeModule], [typeof i1.SkyCountryFieldComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyCountryFieldModule, [typeof i1.SkyCountryFieldComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.SkyAutocompleteModule, typeof i5.SkyIconModule, typeof i6.SkyLookupResourcesModule, typeof i7.SkyThemeModule], [typeof i1.SkyCountryFieldComponent]>;
13
12
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyCountryFieldModule>;
14
13
  }
@@ -97,6 +97,10 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
97
97
  * Fires when users select the button to add options to the list.
98
98
  */
99
99
  addClick: EventEmitter<SkyLookupAddClickEventArgs>;
100
+ /**
101
+ * @internal
102
+ */
103
+ openChange: EventEmitter<boolean>;
100
104
  get tokens(): SkyToken[] | undefined;
101
105
  set tokens(value: SkyToken[] | undefined);
102
106
  get value(): any[];
@@ -135,7 +139,8 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
135
139
  onSearchButtonClick(): void;
136
140
  onShowMoreClick(event: SkyAutocompleteShowMoreArgs): void;
137
141
  openPicker(initialSearch: string): void;
142
+ protected onAutocompleteOpenChange($event: boolean): void;
138
143
  onSearchAsync(args: SkyAutocompleteSearchAsyncArgs): void;
139
144
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyLookupComponent, [null, null, null, null, null, null, null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
140
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyLookupComponent, "sky-lookup", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "autocompleteAttribute": { "alias": "autocompleteAttribute"; "required": false; }; "data": { "alias": "data"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "enableShowMore": { "alias": "enableShowMore"; "required": false; }; "placeholderText": { "alias": "placeholderText"; "required": false; }; "idProperty": { "alias": "idProperty"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "showMoreConfig": { "alias": "showMoreConfig"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; "wrapperClass": { "alias": "wrapperClass"; "required": false; }; }, { "addClick": "addClick"; }, never, never, false, never>;
145
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyLookupComponent, "sky-lookup", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "autocompleteAttribute": { "alias": "autocompleteAttribute"; "required": false; }; "data": { "alias": "data"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "enableShowMore": { "alias": "enableShowMore"; "required": false; }; "placeholderText": { "alias": "placeholderText"; "required": false; }; "idProperty": { "alias": "idProperty"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "showMoreConfig": { "alias": "showMoreConfig"; "required": false; }; "selectMode": { "alias": "selectMode"; "required": false; }; "wrapperClass": { "alias": "wrapperClass"; "required": false; }; }, { "addClick": "addClick"; "openChange": "openChange"; }, never, never, false, never>;
141
146
  }
@@ -7,16 +7,15 @@ import * as i5 from "../autocomplete/autocomplete.module";
7
7
  import * as i6 from "@skyux/forms";
8
8
  import * as i7 from "@skyux/indicators";
9
9
  import * as i8 from "@skyux/lists";
10
- import * as i9 from "@skyux/i18n";
11
- import * as i10 from "../shared/sky-lookup-resources.module";
12
- import * as i11 from "@skyux/modals";
13
- import * as i12 from "../search/search.module";
14
- import * as i13 from "../selection-modal/selection-modal.module";
15
- import * as i14 from "@skyux/theme";
16
- import * as i15 from "@skyux/layout";
17
- import * as i16 from "@skyux/core";
10
+ import * as i9 from "../shared/sky-lookup-resources.module";
11
+ import * as i10 from "@skyux/modals";
12
+ import * as i11 from "../search/search.module";
13
+ import * as i12 from "../selection-modal/selection-modal.module";
14
+ import * as i13 from "@skyux/theme";
15
+ import * as i14 from "@skyux/layout";
16
+ import * as i15 from "@skyux/core";
18
17
  export declare class SkyLookupModule {
19
18
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyLookupModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyLookupModule, [typeof i1.SkyLookupComponent, typeof i2.SkyLookupShowMoreModalComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.SkyAutocompleteModule, typeof i6.SkyCheckboxModule, typeof i7.SkyIconModule, typeof i8.SkyInfiniteScrollModule, typeof i9.SkyI18nModule, typeof i10.SkyLookupResourcesModule, typeof i11.SkyModalModule, typeof i8.SkyRepeaterModule, typeof i12.SkySearchModule, typeof i13.SkySelectionModalModule, typeof i14.SkyThemeModule, typeof i7.SkyTokensModule, typeof i15.SkyToolbarModule, typeof i16.SkyViewkeeperModule, typeof i7.SkyWaitModule], [typeof i1.SkyLookupComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyLookupModule, [typeof i1.SkyLookupComponent, typeof i2.SkyLookupShowMoreModalComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.SkyAutocompleteModule, typeof i6.SkyCheckboxModule, typeof i7.SkyIconModule, typeof i8.SkyInfiniteScrollModule, typeof i9.SkyLookupResourcesModule, typeof i10.SkyModalModule, typeof i8.SkyRepeaterModule, typeof i11.SkySearchModule, typeof i12.SkySelectionModalModule, typeof i13.SkyThemeModule, typeof i7.SkyTokensModule, typeof i14.SkyToolbarModule, typeof i15.SkyViewkeeperModule, typeof i7.SkyWaitModule], [typeof i1.SkyLookupComponent]>;
21
20
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyLookupModule>;
22
21
  }
@@ -3,9 +3,9 @@ import * as i1 from "./selection-modal.component";
3
3
  import * as i2 from "./selection-modal-item-selected.pipe";
4
4
  import * as i3 from "@angular/common";
5
5
  import * as i4 from "@skyux/forms";
6
- import * as i5 from "@skyux/i18n";
7
- import * as i6 from "@skyux/indicators";
8
- import * as i7 from "@skyux/lists";
6
+ import * as i5 from "@skyux/indicators";
7
+ import * as i6 from "@skyux/lists";
8
+ import * as i7 from "../shared/sky-lookup-resources.module";
9
9
  import * as i8 from "@skyux/modals";
10
10
  import * as i9 from "../search/search.module";
11
11
  import * as i10 from "@skyux/theme";
@@ -13,6 +13,6 @@ import * as i11 from "@skyux/layout";
13
13
  import * as i12 from "@skyux/core";
14
14
  export declare class SkySelectionModalModule {
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionModalModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkySelectionModalModule, [typeof i1.SkySelectionModalComponent, typeof i2.SkySelectionModalItemSelectedPipe], [typeof i3.CommonModule, typeof i4.SkyCheckboxModule, typeof i5.SkyI18nModule, typeof i6.SkyIconModule, typeof i7.SkyInfiniteScrollModule, typeof i8.SkyModalModule, typeof i7.SkyRepeaterModule, typeof i9.SkySearchModule, typeof i10.SkyThemeModule, typeof i11.SkyToolbarModule, typeof i12.SkyViewkeeperModule, typeof i6.SkyWaitModule], never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkySelectionModalModule, [typeof i1.SkySelectionModalComponent, typeof i2.SkySelectionModalItemSelectedPipe], [typeof i3.CommonModule, typeof i4.SkyCheckboxModule, typeof i5.SkyIconModule, typeof i6.SkyInfiniteScrollModule, typeof i7.SkyLookupResourcesModule, typeof i8.SkyModalModule, typeof i6.SkyRepeaterModule, typeof i9.SkySearchModule, typeof i10.SkyThemeModule, typeof i11.SkyToolbarModule, typeof i12.SkyViewkeeperModule, typeof i5.SkyWaitModule], never>;
17
17
  static ɵinj: i0.ɵɵInjectorDeclaration<SkySelectionModalModule>;
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/lookup",
3
- "version": "9.0.0-alpha.4",
3
+ "version": "9.0.0-alpha.5",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -42,15 +42,15 @@
42
42
  "@angular/core": "^16.1.7",
43
43
  "@angular/forms": "^16.1.7",
44
44
  "@angular/platform-browser": "^16.1.7",
45
- "@skyux-sdk/testing": "9.0.0-alpha.4",
46
- "@skyux/core": "9.0.0-alpha.4",
47
- "@skyux/forms": "9.0.0-alpha.4",
48
- "@skyux/i18n": "9.0.0-alpha.4",
49
- "@skyux/indicators": "9.0.0-alpha.4",
50
- "@skyux/layout": "9.0.0-alpha.4",
51
- "@skyux/lists": "9.0.0-alpha.4",
52
- "@skyux/modals": "9.0.0-alpha.4",
53
- "@skyux/theme": "9.0.0-alpha.4"
45
+ "@skyux-sdk/testing": "9.0.0-alpha.5",
46
+ "@skyux/core": "9.0.0-alpha.5",
47
+ "@skyux/forms": "9.0.0-alpha.5",
48
+ "@skyux/i18n": "9.0.0-alpha.5",
49
+ "@skyux/indicators": "9.0.0-alpha.5",
50
+ "@skyux/layout": "9.0.0-alpha.5",
51
+ "@skyux/lists": "9.0.0-alpha.5",
52
+ "@skyux/modals": "9.0.0-alpha.5",
53
+ "@skyux/theme": "9.0.0-alpha.5"
54
54
  },
55
55
  "dependencies": {
56
56
  "intl-tel-input": "17.0.21",