@skyux/popovers 8.2.6 → 8.3.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.
- package/documentation.json +1447 -332
- package/esm2020/lib/modules/popover/popover-content.component.mjs +8 -4
- package/esm2020/lib/modules/popover/popover.component.mjs +4 -1
- package/esm2020/lib/modules/popover/popover.directive.mjs +29 -6
- package/esm2020/testing/popover/harness/popover-body-harness.mjs +42 -0
- package/esm2020/testing/popover/harness/popover-content-harness-filters.mjs +2 -0
- package/esm2020/testing/popover/harness/popover-content-harness.mjs +100 -0
- package/esm2020/testing/popover/harness/popover-harness-filters.mjs +2 -0
- package/esm2020/testing/popover/harness/popover-harness.mjs +56 -0
- package/esm2020/testing/public-api.mjs +5 -1
- package/fesm2015/skyux-popovers-testing.mjs +232 -2
- package/fesm2015/skyux-popovers-testing.mjs.map +1 -1
- package/fesm2015/skyux-popovers.mjs +39 -9
- package/fesm2015/skyux-popovers.mjs.map +1 -1
- package/fesm2020/skyux-popovers-testing.mjs +192 -2
- package/fesm2020/skyux-popovers-testing.mjs.map +1 -1
- package/fesm2020/skyux-popovers.mjs +39 -9
- package/fesm2020/skyux-popovers.mjs.map +1 -1
- package/lib/modules/popover/popover-content.component.d.ts +2 -0
- package/lib/modules/popover/popover.component.d.ts +1 -0
- package/lib/modules/popover/popover.directive.d.ts +12 -1
- package/package.json +6 -6
- package/testing/popover/harness/popover-body-harness.d.ts +31 -0
- package/testing/popover/harness/popover-content-harness-filters.d.ts +7 -0
- package/testing/popover/harness/popover-content-harness.d.ts +53 -0
- package/testing/popover/harness/popover-harness-filters.d.ts +6 -0
- package/testing/popover/harness/popover-harness.d.ts +31 -0
- package/testing/public-api.d.ts +4 -0
|
@@ -15,6 +15,7 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class SkyPopoverContentComponent implements OnInit, OnDestroy {
|
|
17
17
|
#private;
|
|
18
|
+
protected popoverId: string | undefined;
|
|
18
19
|
animationState: SkyPopoverAnimationState;
|
|
19
20
|
get closed(): Observable<void>;
|
|
20
21
|
get opened(): Observable<void>;
|
|
@@ -42,6 +43,7 @@ export declare class SkyPopoverContentComponent implements OnInit, OnDestroy {
|
|
|
42
43
|
dismissOnBlur: boolean;
|
|
43
44
|
enableAnimations: boolean;
|
|
44
45
|
horizontalAlignment: SkyPopoverAlignment;
|
|
46
|
+
id: string;
|
|
45
47
|
isStatic: boolean;
|
|
46
48
|
placement: SkyPopoverPlacement;
|
|
47
49
|
popoverTitle?: string;
|
|
@@ -57,6 +57,7 @@ export declare class SkyPopoverComponent implements OnDestroy {
|
|
|
57
57
|
*/
|
|
58
58
|
enableAnimations: boolean;
|
|
59
59
|
isMouseEnter: boolean;
|
|
60
|
+
popoverId: string;
|
|
60
61
|
templateRef: TemplateRef<unknown> | undefined;
|
|
61
62
|
constructor(overlayService: SkyOverlayService, stackingContext?: SkyStackingContext);
|
|
62
63
|
ngOnDestroy(): void;
|
|
@@ -8,11 +8,22 @@ import { SkyPopoverTrigger } from './types/popover-trigger';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class SkyPopoverDirective implements OnInit, OnDestroy {
|
|
10
10
|
#private;
|
|
11
|
+
/**
|
|
12
|
+
* Appends the `sky-popover-trigger` class to the trigger element.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
protected directiveClass: string;
|
|
16
|
+
/**
|
|
17
|
+
* Appends the `data-popover-id` attribute to the trigger element set to a unique ID generated by the popover component.
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
protected popoverId: string | undefined;
|
|
11
21
|
/**
|
|
12
22
|
* The popover component to display. Add this directive to the trigger element that opens the popover.
|
|
13
23
|
* @required
|
|
14
24
|
*/
|
|
15
|
-
skyPopover: SkyPopoverComponent | undefined;
|
|
25
|
+
set skyPopover(value: SkyPopoverComponent | undefined);
|
|
26
|
+
get skyPopover(): SkyPopoverComponent | undefined;
|
|
16
27
|
/**
|
|
17
28
|
* The horizontal alignment of the popover in relation to the trigger element.
|
|
18
29
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/popovers",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@angular/common": "^15.2.9",
|
|
46
46
|
"@angular/core": "^15.2.9",
|
|
47
47
|
"@angular/platform-browser": "^15.2.9",
|
|
48
|
-
"@skyux-sdk/testing": "8.
|
|
49
|
-
"@skyux/core": "8.
|
|
50
|
-
"@skyux/i18n": "8.
|
|
51
|
-
"@skyux/indicators": "8.
|
|
52
|
-
"@skyux/theme": "8.
|
|
48
|
+
"@skyux-sdk/testing": "8.3.0",
|
|
49
|
+
"@skyux/core": "8.3.0",
|
|
50
|
+
"@skyux/i18n": "8.3.0",
|
|
51
|
+
"@skyux/indicators": "8.3.0",
|
|
52
|
+
"@skyux/theme": "8.3.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"tslib": "^2.5.0"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComponentHarness, HarnessQuery, TestElement } from '@angular/cdk/testing';
|
|
2
|
+
/**
|
|
3
|
+
* Harness for interacting with a popover body in tests.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class SkyPopoverBodyHarness extends ComponentHarness {
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
static hostSelector: string;
|
|
11
|
+
/**
|
|
12
|
+
* Returns a child harness.
|
|
13
|
+
*/
|
|
14
|
+
queryHarness<T extends ComponentHarness>(harness: HarnessQuery<T>): Promise<T | null>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns child harnesses.
|
|
17
|
+
*/
|
|
18
|
+
queryHarnesses<T extends ComponentHarness>(harness: HarnessQuery<T>): Promise<T[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns a child test element.
|
|
21
|
+
*/
|
|
22
|
+
querySelector(selector: string): Promise<TestElement | null>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns child test elements.
|
|
25
|
+
*/
|
|
26
|
+
querySelectorAll(selector: string): Promise<TestElement[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Gets the text of the popover content body.
|
|
29
|
+
*/
|
|
30
|
+
getText(): Promise<string>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ComponentHarness, HarnessPredicate, HarnessQuery, TestElement } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyPopoverContentHarnessFilters } from './popover-content-harness-filters';
|
|
3
|
+
/**
|
|
4
|
+
* Harness for interacting with a popover content component in tests.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SkyPopoverContentHarness extends ComponentHarness {
|
|
7
|
+
#private;
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
static hostSelector: string;
|
|
12
|
+
/**
|
|
13
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
14
|
+
* `SkyPopoverContentHarness` that meets certain criteria.
|
|
15
|
+
*/
|
|
16
|
+
static with(filters: SkyPopoverContentHarnessFilters): HarnessPredicate<SkyPopoverContentHarness>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns a child harness.
|
|
19
|
+
*/
|
|
20
|
+
queryHarness<T extends ComponentHarness>(harness: HarnessQuery<T>): Promise<T | null>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns child harnesses.
|
|
23
|
+
*/
|
|
24
|
+
queryHarnesses<T extends ComponentHarness>(harness: HarnessQuery<T>): Promise<T[]>;
|
|
25
|
+
/**
|
|
26
|
+
* Returns a child test element.
|
|
27
|
+
*/
|
|
28
|
+
querySelector(selector: string): Promise<TestElement | null>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns child test elements.
|
|
31
|
+
*/
|
|
32
|
+
querySelectorAll(selector: string): Promise<TestElement[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Gets the placement of the popover content.
|
|
35
|
+
*/
|
|
36
|
+
getPlacement(): Promise<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Gets the alignment of the popover content.
|
|
39
|
+
*/
|
|
40
|
+
getAlignment(): Promise<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Gets the text of the popover content title.
|
|
43
|
+
*/
|
|
44
|
+
getTitleText(): Promise<string | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* Gets the text of the popover content body.
|
|
47
|
+
*/
|
|
48
|
+
getBodyText(): Promise<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Clicks out of the popover. If `dismissOnBlur` property is set to false, then the popover does not close.
|
|
51
|
+
*/
|
|
52
|
+
clickOut(): Promise<void>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkyPopoverContentHarness } from './popover-content-harness';
|
|
4
|
+
import { SkyPopoverHarnessFilters } from './popover-harness-filters';
|
|
5
|
+
/**
|
|
6
|
+
* Harness for interacting with a popover component in tests.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SkyPopoverHarness extends SkyComponentHarness {
|
|
9
|
+
#private;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
static hostSelector: string;
|
|
14
|
+
/**
|
|
15
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
16
|
+
* `SkyPopoverHarness` that meets certain criteria.
|
|
17
|
+
*/
|
|
18
|
+
static with(filters: SkyPopoverHarnessFilters): HarnessPredicate<SkyPopoverHarness>;
|
|
19
|
+
/**
|
|
20
|
+
* Toggles a popover open or closed.
|
|
21
|
+
*/
|
|
22
|
+
clickPopoverButton(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the popover content component.
|
|
25
|
+
*/
|
|
26
|
+
getPopoverContent(): Promise<SkyPopoverContentHarness>;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the popover is open.
|
|
29
|
+
*/
|
|
30
|
+
isOpen(): Promise<boolean>;
|
|
31
|
+
}
|
package/testing/public-api.d.ts
CHANGED
|
@@ -11,3 +11,7 @@ export * from './dropdown/harness/dropdown-menu-harness';
|
|
|
11
11
|
export * from './dropdown/harness/dropdown-menu-harness.filters';
|
|
12
12
|
export * from './dropdown/harness/dropdown-item-harness';
|
|
13
13
|
export * from './dropdown/harness/dropdown-item-harness.filters';
|
|
14
|
+
export * from './popover/harness/popover-content-harness';
|
|
15
|
+
export * from './popover/harness/popover-content-harness-filters';
|
|
16
|
+
export * from './popover/harness/popover-harness';
|
|
17
|
+
export * from './popover/harness/popover-harness-filters';
|