@fluid-topics/ft-popover 1.1.121 → 1.2.1
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/ftds-popover.d.ts
CHANGED
|
@@ -5,11 +5,13 @@ import { DesignSystemFamily, DesignSystemSize } from "@fluid-topics/design-syste
|
|
|
5
5
|
import { Position } from "@fluid-topics/ft-tooltip";
|
|
6
6
|
export declare class FtdsPopover extends FtLitElement implements FtdsPopoverProperties {
|
|
7
7
|
static elementDefinitions: ElementDefinitionsMap;
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
8
9
|
heading: string;
|
|
9
10
|
closeButtonLabel: string;
|
|
10
11
|
openButtonLabel: string;
|
|
11
12
|
openButtonTooltipPosition: Position;
|
|
12
13
|
opened: boolean;
|
|
14
|
+
hidden: boolean;
|
|
13
15
|
openButtonSize: DesignSystemSize;
|
|
14
16
|
openButtonFamily: DesignSystemFamily;
|
|
15
17
|
private openingButton;
|
|
@@ -17,11 +19,10 @@ export declare class FtdsPopover extends FtLitElement implements FtdsPopoverProp
|
|
|
17
19
|
private popoverWrapper;
|
|
18
20
|
private slottedLinkContent;
|
|
19
21
|
private popoverLinkTypography;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
renderPopover(): import("lit").TemplateResult<1> | typeof nothing;
|
|
22
|
+
protected render(): typeof nothing | import("lit").TemplateResult<1>;
|
|
23
|
+
renderPopover(): typeof nothing | import("lit").TemplateResult<1>;
|
|
23
24
|
renderClosingButton(): import("lit").TemplateResult<1>;
|
|
24
|
-
renderHeading(): import("lit").TemplateResult<1
|
|
25
|
+
renderHeading(): typeof nothing | import("lit").TemplateResult<1>;
|
|
25
26
|
updated(properties: PropertyValues<FtdsPopover>): void;
|
|
26
27
|
close(): void;
|
|
27
28
|
open(): void;
|
package/build/ftds-popover.js
CHANGED
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { html, nothing } from "lit";
|
|
8
|
-
import { property, query
|
|
8
|
+
import { property, query } from "lit/decorators.js";
|
|
9
9
|
import { computeFlipOffsetPosition, 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";
|
|
@@ -21,6 +21,7 @@ class FtdsPopover extends FtLitElement {
|
|
|
21
21
|
this.openButtonLabel = "more info";
|
|
22
22
|
this.openButtonTooltipPosition = "bottom";
|
|
23
23
|
this.opened = false;
|
|
24
|
+
this.hidden = false;
|
|
24
25
|
this.openButtonSize = DesignSystemSize.medium;
|
|
25
26
|
this.openButtonFamily = DesignSystemFamily.info;
|
|
26
27
|
this.watchFocusIn = (event) => {
|
|
@@ -43,7 +44,7 @@ class FtdsPopover extends FtLitElement {
|
|
|
43
44
|
"ftds-popover": true,
|
|
44
45
|
"ftds-popover--opened": this.opened
|
|
45
46
|
};
|
|
46
|
-
return html `
|
|
47
|
+
return this.hidden ? nothing : html `
|
|
47
48
|
<div part="container" class="${classMap(classes)}">
|
|
48
49
|
<ftds-button @focusin="${this.close}"
|
|
49
50
|
part="opening-button"
|
|
@@ -158,6 +159,9 @@ __decorate([
|
|
|
158
159
|
__decorate([
|
|
159
160
|
property({ type: Boolean })
|
|
160
161
|
], FtdsPopover.prototype, "opened", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
property({ type: Boolean })
|
|
164
|
+
], FtdsPopover.prototype, "hidden", void 0);
|
|
161
165
|
__decorate([
|
|
162
166
|
property({ type: DesignSystemSize })
|
|
163
167
|
], FtdsPopover.prototype, "openButtonSize", void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-popover",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
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.1.
|
|
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.5",
|
|
23
|
+
"@fluid-topics/ft-button": "1.2.1",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.2.1",
|
|
25
|
+
"@fluid-topics/ft-link": "1.2.1",
|
|
26
|
+
"@fluid-topics/ft-typography": "1.2.1",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.2.1",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "bbad4c991ddc3e9bbff3b1120c7e56bc0bd6c916"
|
|
31
31
|
}
|