@fluid-topics/ft-popover 1.2.34 → 1.2.36
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 +33 -33
- package/build/ft-popover.min.js +221 -221
- package/build/ftds-popover.js +2 -2
- package/package.json +7 -7
package/build/ftds-popover.js
CHANGED
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { html, nothing } from "lit";
|
|
8
8
|
import { property, query } from "lit/decorators.js";
|
|
9
|
-
import {
|
|
9
|
+
import { computeOffsetAutoPosition, FtLitElement, unslotText } from "@fluid-topics/ft-wc-utils";
|
|
10
10
|
import { FtTypography } from "@fluid-topics/ft-typography";
|
|
11
11
|
import { FtdsButton } from "@fluid-topics/ft-button";
|
|
12
12
|
import { styles } from "./ftds-popover.styles";
|
|
@@ -134,7 +134,7 @@ class FtdsPopover extends FtLitElement {
|
|
|
134
134
|
this.popoverWrapper.style.top = "";
|
|
135
135
|
const reference = this.openingButton;
|
|
136
136
|
const fallbackPlacements = ["right-start", "bottom-end", "right-end", "left-start", "left-end", "top-start", "top-end"];
|
|
137
|
-
const { x, y } = await
|
|
137
|
+
const { x, y } = await computeOffsetAutoPosition(reference, this.popoverWrapper, "bottom-start", fallbackPlacements, "fixed");
|
|
138
138
|
this.popoverWrapper.style.left = `${x}px`;
|
|
139
139
|
this.popoverWrapper.style.top = `${y}px`;
|
|
140
140
|
this.popoverWrapper.classList.add("ftds-popover--wrapper-positioned");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-popover",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.36",
|
|
4
4
|
"description": "A simple popover component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@fluid-topics/design-system-variables": "0.1.92",
|
|
23
|
-
"@fluid-topics/ft-button": "1.2.
|
|
24
|
-
"@fluid-topics/ft-icon": "1.2.
|
|
25
|
-
"@fluid-topics/ft-link": "1.2.
|
|
26
|
-
"@fluid-topics/ft-typography": "1.2.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
23
|
+
"@fluid-topics/ft-button": "1.2.36",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.2.36",
|
|
25
|
+
"@fluid-topics/ft-link": "1.2.36",
|
|
26
|
+
"@fluid-topics/ft-typography": "1.2.36",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.2.36",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "a4046ed3696479764bf4bd5210100a5eed70f40a"
|
|
31
31
|
}
|