@fluid-topics/ft-button 1.1.26 → 1.1.27
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-base-button.d.ts +1 -1
- package/build/ft-base-button.js +3 -3
- package/build/ft-button.light.js +57 -57
- package/build/ft-button.min.js +50 -50
- package/package.json +8 -8
|
@@ -32,10 +32,10 @@ export declare abstract class FtBaseButton extends FtBaseButton_base implements
|
|
|
32
32
|
private slottedContent?;
|
|
33
33
|
abstract get buttonClasses(): ClassInfo;
|
|
34
34
|
abstract get typographyVariant(): string;
|
|
35
|
+
constructor();
|
|
35
36
|
protected render(): HTMLTemplateResult;
|
|
36
37
|
private addTooltipIfNeeded;
|
|
37
38
|
private resolveIcon;
|
|
38
|
-
onclick: (e: MouseEvent) => void;
|
|
39
39
|
focus(): void;
|
|
40
40
|
private getLabel;
|
|
41
41
|
get textContent(): string;
|
package/build/ft-base-button.js
CHANGED
|
@@ -15,7 +15,7 @@ import { classMap } from "lit/directives/class-map.js";
|
|
|
15
15
|
import { property, query } from "lit/decorators.js";
|
|
16
16
|
class FtBaseButton extends toFtFormComponent(FtLitElement, "button") {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(
|
|
18
|
+
super();
|
|
19
19
|
this.role = "button";
|
|
20
20
|
this.type = "button";
|
|
21
21
|
this.disabled = false;
|
|
@@ -26,7 +26,7 @@ class FtBaseButton extends toFtFormComponent(FtLitElement, "button") {
|
|
|
26
26
|
this.tooltipPosition = "bottom";
|
|
27
27
|
this.hideTooltip = false;
|
|
28
28
|
this.forceTooltip = false;
|
|
29
|
-
this.
|
|
29
|
+
this.addEventListener("click", (e) => {
|
|
30
30
|
var _a;
|
|
31
31
|
if (this.isDisabled()) {
|
|
32
32
|
e.preventDefault();
|
|
@@ -36,7 +36,7 @@ class FtBaseButton extends toFtFormComponent(FtLitElement, "button") {
|
|
|
36
36
|
else if (this.type == "submit") {
|
|
37
37
|
(_a = this.form) === null || _a === void 0 ? void 0 : _a.requestSubmit();
|
|
38
38
|
}
|
|
39
|
-
};
|
|
39
|
+
});
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
42
|
return this.addTooltipIfNeeded(html `
|