@fluid-topics/ft-popover 1.1.115 → 1.1.117
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/build/ft-popover.light.js +408 -187
- package/build/ft-popover.min.js +500 -279
- package/build/ftds-popover.d.ts +1 -0
- package/build/ftds-popover.js +7 -4
- package/build/ftds-popover.styles.js +1 -1
- package/package.json +8 -8
package/build/ftds-popover.d.ts
CHANGED
package/build/ftds-popover.js
CHANGED
|
@@ -22,7 +22,7 @@ class FtdsPopover extends FtLitElement {
|
|
|
22
22
|
this.openButtonTooltipPosition = "bottom";
|
|
23
23
|
this.opened = false;
|
|
24
24
|
this.openButtonSize = DesignSystemSize.medium;
|
|
25
|
-
this.openButtonFamily = DesignSystemFamily.
|
|
25
|
+
this.openButtonFamily = DesignSystemFamily.info;
|
|
26
26
|
this.watchFocusIn = (event) => {
|
|
27
27
|
if (!event.composedPath().includes(this.popoverWrapper)) {
|
|
28
28
|
this.close();
|
|
@@ -30,10 +30,13 @@ class FtdsPopover extends FtLitElement {
|
|
|
30
30
|
};
|
|
31
31
|
this.watchEscapeKey = (event) => {
|
|
32
32
|
if (event.key === "Escape") {
|
|
33
|
-
this.
|
|
34
|
-
this.openingButton.focus();
|
|
33
|
+
this.closeAndFocusOpeningButton();
|
|
35
34
|
}
|
|
36
35
|
};
|
|
36
|
+
this.closeAndFocusOpeningButton = () => {
|
|
37
|
+
this.close();
|
|
38
|
+
this.openingButton.focus();
|
|
39
|
+
};
|
|
37
40
|
}
|
|
38
41
|
render() {
|
|
39
42
|
const classes = {
|
|
@@ -83,7 +86,7 @@ class FtdsPopover extends FtLitElement {
|
|
|
83
86
|
return html `
|
|
84
87
|
<div class="ftds-popover--closing-button">
|
|
85
88
|
<ftds-button icon="${FtIcons.CLOSE}" size="${DesignSystemSize.small}" family="${DesignSystemFamily.neutral}"
|
|
86
|
-
part="closing-button" label="${this.closeButtonLabel}" @click=${this.
|
|
89
|
+
part="closing-button" label="${this.closeButtonLabel}" @click=${this.closeAndFocusOpeningButton}></ftds-button>
|
|
87
90
|
</div>
|
|
88
91
|
`;
|
|
89
92
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-popover",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.117",
|
|
4
4
|
"description": "A simple popover component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/design-system-variables": "0.
|
|
23
|
-
"@fluid-topics/ft-button": "1.1.
|
|
24
|
-
"@fluid-topics/ft-icon": "1.1.
|
|
25
|
-
"@fluid-topics/ft-link": "1.1.
|
|
26
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/design-system-variables": "0.1.2",
|
|
23
|
+
"@fluid-topics/ft-button": "1.1.117",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.1.117",
|
|
25
|
+
"@fluid-topics/ft-link": "1.1.117",
|
|
26
|
+
"@fluid-topics/ft-typography": "1.1.117",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.1.117",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "061a8cebc72403790111ca8292208f4213b84312"
|
|
31
31
|
}
|