@skyux/popovers 5.9.3 → 5.9.4

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 (33) hide show
  1. package/bundles/skyux-popovers-testing.umd.js +12 -6
  2. package/bundles/skyux-popovers.umd.js +1531 -1536
  3. package/documentation.json +317 -284
  4. package/esm2015/lib/modules/dropdown/dropdown-item.component.js.map +1 -1
  5. package/esm2015/lib/modules/dropdown/dropdown-menu.component.js +1 -4
  6. package/esm2015/lib/modules/dropdown/dropdown-menu.component.js.map +1 -1
  7. package/esm2015/lib/modules/dropdown/dropdown.component.js +10 -7
  8. package/esm2015/lib/modules/dropdown/dropdown.component.js.map +1 -1
  9. package/esm2015/lib/modules/popover/popover-content.component.js +18 -34
  10. package/esm2015/lib/modules/popover/popover-content.component.js.map +1 -1
  11. package/esm2015/lib/modules/popover/popover.component.js +11 -2
  12. package/esm2015/lib/modules/popover/popover.component.js.map +1 -1
  13. package/esm2015/lib/modules/popover/popover.directive.js +0 -1
  14. package/esm2015/lib/modules/popover/popover.directive.js.map +1 -1
  15. package/esm2015/testing/dropdown/dropdown-fixture.js +7 -1
  16. package/esm2015/testing/dropdown/dropdown-fixture.js.map +1 -1
  17. package/esm2015/testing/dropdown/popovers-fixture-dropdown.js.map +1 -1
  18. package/esm2015/testing/popover/popover-fixture.js +8 -8
  19. package/esm2015/testing/popover/popover-fixture.js.map +1 -1
  20. package/fesm2015/skyux-popovers-testing.js +15 -9
  21. package/fesm2015/skyux-popovers-testing.js.map +1 -1
  22. package/fesm2015/skyux-popovers.js +40 -49
  23. package/fesm2015/skyux-popovers.js.map +1 -1
  24. package/lib/modules/dropdown/dropdown-item.component.d.ts +1 -1
  25. package/lib/modules/dropdown/dropdown-menu.component.d.ts +3 -3
  26. package/lib/modules/dropdown/dropdown.component.d.ts +12 -12
  27. package/lib/modules/popover/popover-content.component.d.ts +13 -12
  28. package/lib/modules/popover/popover.component.d.ts +6 -4
  29. package/lib/modules/popover/popover.directive.d.ts +3 -5
  30. package/package.json +6 -6
  31. package/testing/dropdown/dropdown-fixture.d.ts +7 -7
  32. package/testing/dropdown/popovers-fixture-dropdown.d.ts +2 -2
  33. package/testing/popover/popover-fixture.d.ts +6 -6
@@ -10,6 +10,7 @@ import * as i0 from "@angular/core";
10
10
  * Creates a dropdown menu that displays menu items that users may select.
11
11
  */
12
12
  export declare class SkyDropdownComponent implements OnInit, OnDestroy {
13
+ #private;
13
14
  private changeDetector;
14
15
  private affixService;
15
16
  private overlayService;
@@ -20,7 +21,7 @@ export declare class SkyDropdownComponent implements OnInit, OnDestroy {
20
21
  * [secondary and primary button classes](https://developer.blackbaud.com/skyux/components/button) respectively.
21
22
  * @default "default"
22
23
  */
23
- set buttonStyle(value: string);
24
+ set buttonStyle(value: string | undefined);
24
25
  get buttonStyle(): string;
25
26
  /**
26
27
  * Specifies the type of button to render as the dropdown's trigger element. To display a button
@@ -30,13 +31,13 @@ export declare class SkyDropdownComponent implements OnInit, OnDestroy {
30
31
  * For example, to display the `fa-filter` icon, specify `filter`.
31
32
  * @default "select"
32
33
  */
33
- set buttonType(value: string);
34
+ set buttonType(value: string | undefined);
34
35
  get buttonType(): string;
35
36
  /**
36
37
  * Indicates whether to disable the dropdown button.
37
38
  * @default false
38
39
  */
39
- set disabled(value: boolean);
40
+ set disabled(value: boolean | undefined);
40
41
  get disabled(): boolean;
41
42
  /**
42
43
  * Indicates whether to close the dropdown when users click away from the menu.
@@ -48,12 +49,12 @@ export declare class SkyDropdownComponent implements OnInit, OnDestroy {
48
49
  * Specifies an ARIA label for the dropdown. This sets the dropdown's `aria-label` attribute
49
50
  * [to support accessibility](https://developer.blackbaud.com/skyux/learn/accessibility).
50
51
  */
51
- label: string;
52
+ label: string | undefined;
52
53
  /**
53
54
  * Specifies the horizontal alignment of the dropdown menu in relation to the dropdown button.
54
55
  * @default "left"
55
56
  */
56
- set horizontalAlignment(value: SkyDropdownHorizontalAlignment);
57
+ set horizontalAlignment(value: SkyDropdownHorizontalAlignment | undefined);
57
58
  get horizontalAlignment(): SkyDropdownHorizontalAlignment;
58
59
  /**
59
60
  * Provides an observable to send commands to the dropdown. The commands should respect
@@ -63,7 +64,7 @@ export declare class SkyDropdownComponent implements OnInit, OnDestroy {
63
64
  /**
64
65
  * Specifies a title to display in a tooltip when users hover the mouse over the dropdown button.
65
66
  */
66
- title: string;
67
+ title: string | undefined;
67
68
  /**
68
69
  * Specifies how users interact with the dropdown button to expose the dropdown menu.
69
70
  * We recommend the default `click` value because the `hover` value can pose
@@ -74,16 +75,16 @@ export declare class SkyDropdownComponent implements OnInit, OnDestroy {
74
75
  * property. (This property will be removed in the next major version release.)
75
76
  * @default "click"
76
77
  */
77
- set trigger(value: SkyDropdownTriggerType);
78
+ set trigger(value: SkyDropdownTriggerType | undefined);
78
79
  get trigger(): SkyDropdownTriggerType;
79
80
  set isOpen(value: boolean);
80
81
  get isOpen(): boolean;
81
- set menuContainerElementRef(value: ElementRef);
82
- get menuContainerElementRef(): ElementRef;
82
+ set menuContainerElementRef(value: ElementRef | undefined);
83
+ get menuContainerElementRef(): ElementRef | undefined;
83
84
  isMouseEnter: boolean;
84
85
  isVisible: boolean;
85
- menuId: string;
86
- menuAriaRole: string;
86
+ menuId: string | undefined;
87
+ menuAriaRole: string | undefined;
87
88
  private menuContainerTemplateRef;
88
89
  private triggerButton;
89
90
  private affixer;
@@ -97,7 +98,6 @@ export declare class SkyDropdownComponent implements OnInit, OnDestroy {
97
98
  private _isOpen;
98
99
  private _menuContainerElementRef;
99
100
  private _trigger;
100
- private _positionTimeout;
101
101
  constructor(changeDetector: ChangeDetectorRef, affixService: SkyAffixService, overlayService: SkyOverlayService, themeSvc?: SkyThemeService);
102
102
  ngOnInit(): void;
103
103
  ngOnDestroy(): void;
@@ -8,6 +8,7 @@ import { SkyPopoverAnimationState } from './popover-animation-state';
8
8
  import { SkyPopoverContext } from './popover-context';
9
9
  import { SkyPopoverAlignment } from './types/popover-alignment';
10
10
  import { SkyPopoverPlacement } from './types/popover-placement';
11
+ import { SkyPopoverType } from './types/popover-type';
11
12
  import * as i0 from "@angular/core";
12
13
  /**
13
14
  * @internal
@@ -18,23 +19,23 @@ export declare class SkyPopoverContentComponent implements OnInit, OnDestroy {
18
19
  private affixService;
19
20
  private coreAdapterService;
20
21
  private adapterService;
21
- private context?;
22
+ private context;
22
23
  private themeSvc?;
23
24
  get animationState(): SkyPopoverAnimationState;
24
25
  get closed(): Observable<void>;
25
26
  get opened(): Observable<void>;
26
27
  get isMouseEnter(): Observable<boolean>;
27
- affixer: SkyAffixer;
28
- arrowLeft: number;
29
- arrowTop: number;
28
+ affixer: SkyAffixer | undefined;
29
+ arrowLeft: number | undefined;
30
+ arrowTop: number | undefined;
30
31
  dismissOnBlur: boolean;
31
32
  enableAnimations: boolean;
32
33
  horizontalAlignment: SkyPopoverAlignment;
33
34
  isOpen: boolean;
34
- placement: SkyPopoverPlacement;
35
- popoverTitle: string;
36
- popoverType: 'danger' | 'info';
37
- themeName: string;
35
+ placement: SkyPopoverPlacement | null;
36
+ popoverTitle: string | undefined;
37
+ popoverType: SkyPopoverType;
38
+ themeName: string | undefined;
38
39
  private arrowRef;
39
40
  private popoverRef;
40
41
  private contentTarget;
@@ -43,7 +44,7 @@ export declare class SkyPopoverContentComponent implements OnInit, OnDestroy {
43
44
  private _closed;
44
45
  private _isMouseEnter;
45
46
  private _opened;
46
- constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, affixService: SkyAffixService, coreAdapterService: SkyCoreAdapterService, adapterService: SkyPopoverAdapterService, context?: SkyPopoverContext, themeSvc?: SkyThemeService);
47
+ constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, affixService: SkyAffixService, coreAdapterService: SkyCoreAdapterService, adapterService: SkyPopoverAdapterService, context: SkyPopoverContext, themeSvc?: SkyThemeService);
47
48
  ngOnInit(): void;
48
49
  ngOnDestroy(): void;
49
50
  onAnimationEvent(event: AnimationEvent): void;
@@ -53,8 +54,8 @@ export declare class SkyPopoverContentComponent implements OnInit, OnDestroy {
53
54
  horizontalAlignment: SkyPopoverAlignment;
54
55
  isStatic: boolean;
55
56
  placement: SkyPopoverPlacement;
56
- popoverTitle: string;
57
- popoverType?: 'danger' | 'info';
57
+ popoverTitle?: string;
58
+ popoverType: SkyPopoverType;
58
59
  }): void;
59
60
  close(): void;
60
61
  applyFocus(): void;
@@ -62,6 +63,6 @@ export declare class SkyPopoverContentComponent implements OnInit, OnDestroy {
62
63
  private updateArrowOffset;
63
64
  private isFocusLeavingElement;
64
65
  private addEventListeners;
65
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyPopoverContentComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<SkyPopoverContentComponent, [null, null, null, null, null, null, { optional: true; }]>;
66
67
  static ɵcmp: i0.ɵɵComponentDeclaration<SkyPopoverContentComponent, "sky-popover-content", never, {}, {}, never, never>;
67
68
  }
@@ -11,14 +11,14 @@ export declare class SkyPopoverComponent implements OnDestroy {
11
11
  * The `skyPopoverAlignment` property on the popover directive takes precedence over this property when specified.
12
12
  * @default "center"
13
13
  */
14
- set alignment(value: SkyPopoverAlignment);
14
+ set alignment(value: SkyPopoverAlignment | undefined);
15
15
  get alignment(): SkyPopoverAlignment;
16
16
  /**
17
17
  * Indicates whether to close the popover when it loses focus.
18
18
  * To require users to click a trigger button to close the popover, set this input to false.
19
19
  * @default true
20
20
  */
21
- set dismissOnBlur(value: boolean);
21
+ set dismissOnBlur(value: boolean | undefined);
22
22
  get dismissOnBlur(): boolean;
23
23
  /**
24
24
  * Specifies the placement of the popover in relation to the trigger element.
@@ -30,12 +30,13 @@ export declare class SkyPopoverComponent implements OnDestroy {
30
30
  /**
31
31
  * Specifies a title for the popover.
32
32
  */
33
- popoverTitle: string;
33
+ popoverTitle: string | undefined;
34
34
  /**
35
35
  * Specifies the type of popover.
36
36
  * @default "info"
37
37
  */
38
- popoverType: SkyPopoverType;
38
+ set popoverType(value: SkyPopoverType | undefined);
39
+ get popoverType(): SkyPopoverType;
39
40
  /**
40
41
  * Fires when users close the popover.
41
42
  */
@@ -64,6 +65,7 @@ export declare class SkyPopoverComponent implements OnDestroy {
64
65
  private _alignment;
65
66
  private _dismissOnBlur;
66
67
  private _placement;
68
+ private _popoverType;
67
69
  constructor(overlayService: SkyOverlayService);
68
70
  ngOnDestroy(): void;
69
71
  /**
@@ -16,9 +16,8 @@ export declare class SkyPopoverDirective implements OnInit, OnDestroy {
16
16
  skyPopover: SkyPopoverComponent;
17
17
  /**
18
18
  * Specifies the horizontal alignment of the popover in relation to the trigger element.
19
- * @default "center"
20
19
  */
21
- skyPopoverAlignment: SkyPopoverAlignment;
20
+ skyPopoverAlignment: SkyPopoverAlignment | undefined;
22
21
  /**
23
22
  * Provides an RxJS `Subject` to send commands to the popover that respect the `SkyPopoverMessage` type.
24
23
  */
@@ -27,13 +26,12 @@ export declare class SkyPopoverDirective implements OnInit, OnDestroy {
27
26
  private _skyPopoverMessageStream;
28
27
  /**
29
28
  * Specifies the placement of the popover in relation to the trigger element.
30
- * @default "above"
31
29
  */
32
- skyPopoverPlacement: SkyPopoverPlacement;
30
+ skyPopoverPlacement: SkyPopoverPlacement | undefined;
33
31
  /**
34
32
  * Specifies the user action that displays the popover.
35
33
  */
36
- set skyPopoverTrigger(value: SkyPopoverTrigger);
34
+ set skyPopoverTrigger(value: SkyPopoverTrigger | undefined);
37
35
  get skyPopoverTrigger(): SkyPopoverTrigger;
38
36
  private ngUnsubscribe;
39
37
  private _trigger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/popovers",
3
- "version": "5.9.3",
3
+ "version": "5.9.4",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -20,11 +20,11 @@
20
20
  "@angular/common": "^12.2.16",
21
21
  "@angular/core": "^12.2.16",
22
22
  "@angular/platform-browser": "^12.2.16",
23
- "@skyux-sdk/testing": "5.9.3",
24
- "@skyux/core": "5.9.3",
25
- "@skyux/i18n": "5.9.3",
26
- "@skyux/indicators": "5.9.3",
27
- "@skyux/theme": "5.9.3"
23
+ "@skyux-sdk/testing": "5.9.4",
24
+ "@skyux/core": "5.9.4",
25
+ "@skyux/i18n": "5.9.4",
26
+ "@skyux/indicators": "5.9.4",
27
+ "@skyux/theme": "5.9.4"
28
28
  },
29
29
  "dependencies": {
30
30
  "tslib": "^2.3.1"
@@ -12,34 +12,34 @@ export declare class SkyDropdownFixture {
12
12
  /**
13
13
  * Returns information about the dropdown component.
14
14
  */
15
- get dropdown(): SkyPopoversFixtureDropdown;
15
+ get dropdown(): SkyPopoversFixtureDropdown | undefined;
16
16
  /**
17
17
  * Returns the dropdown button's text.
18
18
  */
19
- get dropdownButtonText(): string;
19
+ get dropdownButtonText(): string | undefined;
20
20
  /**
21
21
  * Returns information about the dropdown menu component.
22
22
  */
23
- get dropdownMenu(): SkyPopoversFixtureDropdownMenu;
23
+ get dropdownMenu(): SkyPopoversFixtureDropdownMenu | undefined;
24
24
  /**
25
25
  * Indicates if the dropdown menu is open and visible.
26
26
  */
27
27
  get dropdownMenuIsVisible(): boolean;
28
28
  private get buttonDebugElement();
29
29
  private debugEl;
30
- constructor(fixture: ComponentFixture<any>, skyTestId: string);
30
+ constructor(fixture: ComponentFixture<unknown>, skyTestId: string);
31
31
  /**
32
32
  * Click the dropdown button to open or close the dropdown menu.
33
33
  */
34
- clickDropdownButton(): Promise<any>;
34
+ clickDropdownButton(): Promise<unknown>;
35
35
  /**
36
36
  * Click the dropdown item at the provided index.
37
37
  */
38
- clickDropdownItem(index: number): Promise<any>;
38
+ clickDropdownItem(index: number): Promise<unknown>;
39
39
  /**
40
40
  * Returns information about the dropdown item at the provided index.
41
41
  */
42
- getDropdownItem(index: number): SkyPopoversFixtureDropdownItem;
42
+ getDropdownItem(index: number): SkyPopoversFixtureDropdownItem | undefined;
43
43
  /**
44
44
  * Returns the contents of the dropdown menu.
45
45
  */
@@ -1,6 +1,6 @@
1
1
  export interface SkyPopoversFixtureDropdown {
2
- buttonStyle: string;
3
- buttonType: string;
2
+ buttonStyle?: string;
3
+ buttonType?: string;
4
4
  disabled: boolean;
5
5
  label: string;
6
6
  title: string;
@@ -9,28 +9,28 @@ export declare class SkyPopoverFixture {
9
9
  /**
10
10
  * Returns the popover alignment if the popover is open, otherwise undefined.
11
11
  */
12
- get alignment(): string;
12
+ get alignment(): string | undefined;
13
13
  /**
14
14
  * Returns the popover body element if the popover is open, otherwise undefined.
15
15
  */
16
- get body(): HTMLElement;
16
+ get body(): HTMLElement | undefined;
17
17
  /**
18
18
  * Returns the popover position if the popover is open, otherwise undefined.
19
19
  */
20
- get placement(): string;
20
+ get placement(): string | undefined;
21
21
  /**
22
22
  * Returns the popover title text if the popover is open, otherwise undefined.
23
23
  */
24
- get popoverTitle(): string;
24
+ get popoverTitle(): string | undefined;
25
25
  /**
26
26
  * Indicates if the popover is open and visible.
27
27
  */
28
28
  get popoverIsVisible(): boolean;
29
- constructor(fixture: ComponentFixture<any>);
29
+ constructor(fixture: ComponentFixture<unknown>);
30
30
  /**
31
31
  * Triggers the blur event for the popover.
32
32
  */
33
- blur(): Promise<any>;
33
+ blur(): Promise<unknown>;
34
34
  private get contentElement();
35
35
  private get containerElement();
36
36
  private get titleElement();