@skyux/lookup 9.0.0-alpha.8 → 9.0.0-beta.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.
Files changed (31) hide show
  1. package/documentation.json +1753 -1682
  2. package/esm2022/lib/modules/autocomplete/autocomplete-input.directive.mjs +2 -1
  3. package/esm2022/lib/modules/autocomplete/autocomplete.component.mjs +25 -20
  4. package/esm2022/lib/modules/autocomplete/autocomplete.module.mjs +2 -5
  5. package/esm2022/lib/modules/country-field/country-field.component.mjs +3 -3
  6. package/esm2022/lib/modules/lookup/lookup-show-more-modal.component.mjs +46 -23
  7. package/esm2022/lib/modules/lookup/lookup.component.mjs +11 -16
  8. package/esm2022/lib/modules/lookup/lookup.module.mjs +6 -45
  9. package/esm2022/lib/modules/search/search.component.mjs +3 -3
  10. package/esm2022/lib/modules/selection-modal/selection-modal-item-selected.pipe.mjs +3 -2
  11. package/esm2022/lib/modules/selection-modal/selection-modal.component.mjs +49 -24
  12. package/esm2022/lib/modules/selection-modal/selection-modal.module.mjs +7 -54
  13. package/esm2022/lib/modules/selection-modal/selection-modal.service.mjs +3 -3
  14. package/esm2022/lib/modules/shared/sky-lookup-resources.module.mjs +4 -2
  15. package/esm2022/testing/country-field/country-field-fixture.mjs +3 -2
  16. package/fesm2022/skyux-lookup-testing.mjs +2 -1
  17. package/fesm2022/skyux-lookup-testing.mjs.map +1 -1
  18. package/fesm2022/skyux-lookup.mjs +457 -490
  19. package/fesm2022/skyux-lookup.mjs.map +1 -1
  20. package/lib/modules/autocomplete/autocomplete-input.directive.d.ts +1 -0
  21. package/lib/modules/autocomplete/autocomplete.component.d.ts +2 -2
  22. package/lib/modules/autocomplete/autocomplete.module.d.ts +1 -1
  23. package/lib/modules/country-field/country-field.component.d.ts +2 -0
  24. package/lib/modules/lookup/lookup-show-more-modal.component.d.ts +5 -6
  25. package/lib/modules/lookup/lookup.component.d.ts +2 -0
  26. package/lib/modules/lookup/lookup.module.d.ts +6 -15
  27. package/lib/modules/selection-modal/selection-modal-item-selected.pipe.d.ts +1 -1
  28. package/lib/modules/selection-modal/selection-modal.component.d.ts +5 -6
  29. package/lib/modules/selection-modal/selection-modal.module.d.ts +4 -13
  30. package/package.json +10 -10
  31. package/testing/country-field/country-field-fixture.d.ts +1 -0
@@ -8,6 +8,7 @@ export declare class SkyAutocompleteInputDirective implements OnInit, OnDestroy,
8
8
  /**
9
9
  * The value for the `autocomplete` attribute on the form input.
10
10
  * @default "off"
11
+ * @deprecated SKY UX only supports browser autofill on components where the direct input matches the return value. This input may not behave as expected due to the dropdown selection interaction.
11
12
  */
12
13
  set autocompleteAttribute(value: string | undefined);
13
14
  get autocompleteAttribute(): string;
@@ -169,14 +169,14 @@ export declare class SkyAutocompleteComponent implements OnDestroy, AfterViewIni
169
169
  set resultsRef(value: ElementRef | undefined);
170
170
  get resultsRef(): ElementRef | undefined;
171
171
  searchOrDefault: SkyAutocompleteSearchFunction;
172
- protected isDropdownVisible: Observable<boolean>;
172
+ protected isResultsVisible: Observable<boolean>;
173
173
  constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, affixService: SkyAffixService, adapterService: SkyAutocompleteAdapterService, overlayService: SkyOverlayService, inputBoxHostSvc?: SkyInputBoxHostService, stackingContext?: SkyStackingContext);
174
174
  ngAfterViewInit(): void;
175
175
  ngOnDestroy(): void;
176
176
  addButtonClicked(): void;
177
177
  handleKeydown(event: KeyboardEvent): void;
178
178
  moreButtonClicked(): void;
179
- onResultMouseDown(id: string, event: MouseEvent): void;
179
+ onResultClick(id: string, event: MouseEvent): void;
180
180
  onResultMouseMove(id: number): void;
181
181
  isElementFocused(ref: HTMLElement): boolean;
182
182
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAutocompleteComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
@@ -10,6 +10,6 @@ import * as i8 from "../shared/sky-lookup-resources.module";
10
10
  import * as i9 from "@skyux/theme";
11
11
  export declare class SkyAutocompleteModule {
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyAutocompleteModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAutocompleteModule, [typeof i1.SkyAutocompleteComponent, typeof i2.SkyAutocompleteInputDirective, typeof i3.SkyAutocompleteSearchAsyncDisabledPipe], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.SkyAffixModule, typeof i7.SkyTextHighlightModule, typeof i7.SkyIconModule, typeof i6.SkyIdModule, typeof i8.SkyLookupResourcesModule, typeof i6.SkyNumericModule, typeof i6.SkyOverlayModule, typeof i9.SkyThemeModule, typeof i7.SkyWaitModule], [typeof i1.SkyAutocompleteComponent, typeof i2.SkyAutocompleteInputDirective]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyAutocompleteModule, [typeof i1.SkyAutocompleteComponent, typeof i2.SkyAutocompleteInputDirective, typeof i3.SkyAutocompleteSearchAsyncDisabledPipe], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.SkyAffixModule, typeof i7.SkyTextHighlightModule, typeof i7.SkyIconModule, typeof i6.SkyIdModule, typeof i8.SkyLookupResourcesModule, typeof i6.SkyNumericModule, typeof i9.SkyThemeModule, typeof i7.SkyWaitModule], [typeof i1.SkyAutocompleteComponent, typeof i2.SkyAutocompleteInputDirective]>;
14
14
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyAutocompleteModule>;
15
15
  }
@@ -13,6 +13,8 @@ export declare class SkyCountryFieldComponent implements AfterViewInit, ControlV
13
13
  inputBoxHostSvc?: SkyInputBoxHostService | undefined;
14
14
  /**
15
15
  * The value for the HTML `autocomplete` attribute on the form input.
16
+ * @default 'off'
17
+ * @deprecated SKY UX only supports browser autofill on components where the direct input matches the return value. This input may not behave as expected due to the dropdown selection interaction.
16
18
  */
17
19
  autocompleteAttribute: string | undefined;
18
20
  /**
@@ -1,5 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, OnDestroy, TemplateRef } from '@angular/core';
2
- import { SkyIdService } from '@skyux/core';
1
+ import { AfterViewInit, OnDestroy, TemplateRef } from '@angular/core';
3
2
  import { SkyModalInstance } from '@skyux/modals';
4
3
  import { Subject } from 'rxjs';
5
4
  import { SkyLookupShowMoreNativePickerContext } from './types/lookup-show-more-native-picker-context';
@@ -10,8 +9,6 @@ import * as i0 from "@angular/core";
10
9
  */
11
10
  export declare class SkyLookupShowMoreModalComponent implements AfterViewInit, OnDestroy {
12
11
  #private;
13
- modalInstance: SkyModalInstance;
14
- context: SkyLookupShowMoreNativePickerContext;
15
12
  /**
16
13
  * @internal
17
14
  * Fires when users select the button to add new options to the list.
@@ -40,7 +37,9 @@ export declare class SkyLookupShowMoreModalComponent implements AfterViewInit, O
40
37
  index: number;
41
38
  itemData: any;
42
39
  }[];
43
- constructor(modalInstance: SkyModalInstance, context: SkyLookupShowMoreNativePickerContext, changeDetector: ChangeDetectorRef, idSvc: SkyIdService);
40
+ protected readonly modalInstance: SkyModalInstance;
41
+ protected readonly context: SkyLookupShowMoreNativePickerContext;
42
+ constructor();
44
43
  ngAfterViewInit(): void;
45
44
  ngOnDestroy(): void;
46
45
  addButtonClicked(): void;
@@ -54,5 +53,5 @@ export declare class SkyLookupShowMoreModalComponent implements AfterViewInit, O
54
53
  updateDataState(): void;
55
54
  updateItemData(data: any[]): void;
56
55
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyLookupShowMoreModalComponent, never>;
57
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyLookupShowMoreModalComponent, "skyux-lookup-show-more-modal", never, {}, {}, never, never, false, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkyLookupShowMoreModalComponent, "sky-lookup-show-more-modal", never, {}, {}, never, never, true, never>;
58
57
  }
@@ -35,6 +35,8 @@ export declare class SkyLookupComponent extends SkyLookupAutocompleteAdapter imp
35
35
  ariaLabelledBy: string | undefined;
36
36
  /**
37
37
  * The value for the `autocomplete` attribute on the form input.
38
+ * @default 'off'
39
+ * @deprecated SKY UX only supports browser autofill on components where the direct input matches the return value. This input may not behave as expected due to the dropdown selection interaction.
38
40
  */
39
41
  autocompleteAttribute: string | undefined;
40
42
  /**
@@ -1,21 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./lookup.component";
3
- import * as i2 from "./lookup-show-more-modal.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "../autocomplete/autocomplete.module";
7
- import * as i6 from "@skyux/forms";
8
- import * as i7 from "@skyux/indicators";
9
- import * as i8 from "@skyux/lists";
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";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../autocomplete/autocomplete.module";
5
+ import * as i4 from "@skyux/indicators";
6
+ import * as i5 from "../shared/sky-lookup-resources.module";
7
+ import * as i6 from "@skyux/theme";
17
8
  export declare class SkyLookupModule {
18
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SkyLookupModule, never>;
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]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkyLookupModule, [typeof i1.SkyLookupComponent], [typeof i2.CommonModule, typeof i3.SkyAutocompleteModule, typeof i4.SkyIconModule, typeof i5.SkyLookupResourcesModule, typeof i6.SkyThemeModule, typeof i4.SkyTokensModule], [typeof i1.SkyLookupComponent]>;
20
11
  static ɵinj: i0.ɵɵInjectorDeclaration<SkyLookupModule>;
21
12
  }
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
6
6
  export declare class SkySelectionModalItemSelectedPipe implements PipeTransform {
7
7
  transform(id: unknown, selectedIdMap: Map<unknown, unknown>): boolean;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionModalItemSelectedPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<SkySelectionModalItemSelectedPipe, "skySelectionModalItemSelected", false>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<SkySelectionModalItemSelectedPipe, "skySelectionModalItemSelected", true>;
10
10
  }
@@ -1,5 +1,4 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
- import { SkyIdService } from '@skyux/core';
1
+ import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
3
2
  import { SkyModalInstance } from '@skyux/modals';
4
3
  import { Subject } from 'rxjs';
5
4
  import { SkySelectionModalContext } from './types/selection-modal-context';
@@ -9,8 +8,6 @@ import * as i0 from "@angular/core";
9
8
  */
10
9
  export declare class SkySelectionModalComponent implements OnInit, OnDestroy {
11
10
  #private;
12
- modalInstance: SkyModalInstance;
13
- context: SkySelectionModalContext;
14
11
  /**
15
12
  * @internal
16
13
  * Fires when users select the button to add new options to the list.
@@ -29,7 +26,9 @@ export declare class SkySelectionModalComponent implements OnInit, OnDestroy {
29
26
  repeaterItemTemplate: TemplateRef<unknown> | null;
30
27
  searchText: string | undefined;
31
28
  selectedIdMap: Map<unknown, unknown>;
32
- constructor(modalInstance: SkyModalInstance, context: SkySelectionModalContext, changeDetector: ChangeDetectorRef, idSvc: SkyIdService);
29
+ protected readonly context: SkySelectionModalContext;
30
+ protected readonly modalInstance: SkyModalInstance;
31
+ constructor();
33
32
  ngOnInit(): void;
34
33
  ngOnDestroy(): void;
35
34
  addButtonClicked(): void;
@@ -43,5 +42,5 @@ export declare class SkySelectionModalComponent implements OnInit, OnDestroy {
43
42
  save(): void;
44
43
  updateDisplayedItems(): void;
45
44
  static ɵfac: i0.ɵɵFactoryDeclaration<SkySelectionModalComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<SkySelectionModalComponent, "sky-selection-modal", never, {}, {}, never, never, false, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<SkySelectionModalComponent, "sky-selection-modal", never, {}, {}, never, never, true, never>;
47
46
  }
@@ -1,18 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./selection-modal.component";
3
- import * as i2 from "./selection-modal-item-selected.pipe";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@skyux/forms";
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
- import * as i8 from "@skyux/modals";
10
- import * as i9 from "../search/search.module";
11
- import * as i10 from "@skyux/theme";
12
- import * as i11 from "@skyux/layout";
13
- import * as i12 from "@skyux/core";
2
+ /**
3
+ * @deprecated The `SkySelectionModalModule` is no longer needed and can be removed from your application.
4
+ */
14
5
  export declare class SkySelectionModalModule {
15
6
  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.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>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SkySelectionModalModule, never, never, never>;
17
8
  static ɵinj: i0.ɵɵInjectorDeclaration<SkySelectionModalModule>;
18
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/lookup",
3
- "version": "9.0.0-alpha.8",
3
+ "version": "9.0.0-beta.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -42,15 +42,15 @@
42
42
  "@angular/core": "^16.2.1",
43
43
  "@angular/forms": "^16.2.1",
44
44
  "@angular/platform-browser": "^16.2.1",
45
- "@skyux-sdk/testing": "9.0.0-alpha.8",
46
- "@skyux/core": "9.0.0-alpha.8",
47
- "@skyux/forms": "9.0.0-alpha.8",
48
- "@skyux/i18n": "9.0.0-alpha.8",
49
- "@skyux/indicators": "9.0.0-alpha.8",
50
- "@skyux/layout": "9.0.0-alpha.8",
51
- "@skyux/lists": "9.0.0-alpha.8",
52
- "@skyux/modals": "9.0.0-alpha.8",
53
- "@skyux/theme": "9.0.0-alpha.8"
45
+ "@skyux-sdk/testing": "9.0.0-beta.0",
46
+ "@skyux/core": "9.0.0-beta.0",
47
+ "@skyux/forms": "9.0.0-beta.0",
48
+ "@skyux/i18n": "9.0.0-beta.0",
49
+ "@skyux/indicators": "9.0.0-beta.0",
50
+ "@skyux/layout": "9.0.0-beta.0",
51
+ "@skyux/lists": "9.0.0-beta.0",
52
+ "@skyux/modals": "9.0.0-beta.0",
53
+ "@skyux/theme": "9.0.0-beta.0"
54
54
  },
55
55
  "dependencies": {
56
56
  "intl-tel-input": "18.2.1",
@@ -7,6 +7,7 @@ export declare class SkyCountryFieldFixture {
7
7
  #private;
8
8
  /**
9
9
  * The value of the input field's autocomplete attribute.
10
+ * @deprecated The country field component's `autocompleteAttribute` is deprecated.
10
11
  */
11
12
  get autocompleteAttribute(): string | null;
12
13
  /**