@fluid-topics/ft-confirm-button 1.2.35 → 1.2.37
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.
|
@@ -3,6 +3,7 @@ import { FtIcons } from "@fluid-topics/ft-icon";
|
|
|
3
3
|
import { FtdsModalConfirm } from "@fluid-topics/ft-modal";
|
|
4
4
|
import { FtdsConfirmButtonProperties } from "./ftds-confirm-button.properties";
|
|
5
5
|
import { DesignSystemSize } from "@fluid-topics/design-system-variables";
|
|
6
|
+
import { Position } from "@fluid-topics/ft-tooltip";
|
|
6
7
|
export declare class ConfirmEvent extends CustomEvent<void> {
|
|
7
8
|
constructor();
|
|
8
9
|
}
|
|
@@ -14,6 +15,9 @@ export declare class FtdsConfirmButton extends FtLitElement implements FtdsConfi
|
|
|
14
15
|
buttonText: string;
|
|
15
16
|
buttonIcon: FtIcons;
|
|
16
17
|
buttonSize: DesignSystemSize;
|
|
18
|
+
buttonForceTooltip: boolean;
|
|
19
|
+
buttonTooltipPosition: Position;
|
|
20
|
+
buttonLabel: string;
|
|
17
21
|
heading: string;
|
|
18
22
|
text: string;
|
|
19
23
|
confirmText: string;
|
|
@@ -23,6 +23,9 @@ let FtdsConfirmButton = class FtdsConfirmButton extends FtLitElement {
|
|
|
23
23
|
this.secondary = false;
|
|
24
24
|
this.buttonIcon = FtIcons.CLOSE;
|
|
25
25
|
this.buttonSize = DesignSystemSize.medium;
|
|
26
|
+
this.buttonForceTooltip = false;
|
|
27
|
+
this.buttonTooltipPosition = "bottom";
|
|
28
|
+
this.buttonLabel = "";
|
|
26
29
|
this.heading = "";
|
|
27
30
|
this.text = "";
|
|
28
31
|
this.confirmText = "";
|
|
@@ -39,6 +42,9 @@ let FtdsConfirmButton = class FtdsConfirmButton extends FtLitElement {
|
|
|
39
42
|
?secondary=${this.secondary}
|
|
40
43
|
?loading=${this.loading}
|
|
41
44
|
?disabled=${this.disabled}
|
|
45
|
+
?forceTooltip=${this.buttonForceTooltip}
|
|
46
|
+
tooltipPosition=${this.buttonTooltipPosition}
|
|
47
|
+
.label=${this.buttonLabel}
|
|
42
48
|
size=${this.buttonSize}
|
|
43
49
|
@click=${() => this.askConfirmation()}>
|
|
44
50
|
${this.buttonText}
|
|
@@ -79,6 +85,15 @@ __decorate([
|
|
|
79
85
|
__decorate([
|
|
80
86
|
property()
|
|
81
87
|
], FtdsConfirmButton.prototype, "buttonSize", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
property({ type: Boolean })
|
|
90
|
+
], FtdsConfirmButton.prototype, "buttonForceTooltip", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
property()
|
|
93
|
+
], FtdsConfirmButton.prototype, "buttonTooltipPosition", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
property()
|
|
96
|
+
], FtdsConfirmButton.prototype, "buttonLabel", void 0);
|
|
82
97
|
__decorate([
|
|
83
98
|
property()
|
|
84
99
|
], FtdsConfirmButton.prototype, "heading", void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-confirm-button",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.37",
|
|
4
4
|
"description": "A two step confirmation button",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.2.37",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@fluid-topics/ft-wc-test-utils": "1.2.
|
|
26
|
+
"@fluid-topics/ft-wc-test-utils": "1.2.37"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "5e3e862fb02153f9318a9ac3439617694151a43c"
|
|
29
29
|
}
|