@fluid-topics/ft-floating-menu 1.1.26 → 1.1.28
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.
|
@@ -10,6 +10,7 @@ export declare class FtFloatingMenuItem extends FtLitElement implements FtFloati
|
|
|
10
10
|
iconVariant?: FtIconVariants;
|
|
11
11
|
icon?: string;
|
|
12
12
|
value: string;
|
|
13
|
+
notFocusable: boolean;
|
|
13
14
|
protected render(): import("lit").TemplateResult<1>;
|
|
14
15
|
private onClick;
|
|
15
16
|
private onKeyDown;
|
|
@@ -20,11 +20,12 @@ class FtFloatingMenuItem extends FtLitElement {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
this.value = "";
|
|
23
|
+
this.notFocusable = false;
|
|
23
24
|
}
|
|
24
25
|
render() {
|
|
25
26
|
return html `
|
|
26
27
|
<div class="ft-floating-menu-item"
|
|
27
|
-
tabindex
|
|
28
|
+
tabindex=${this.notFocusable ? "-1" : "0"}
|
|
28
29
|
@keydown=${(e) => this.onKeyDown(e)}
|
|
29
30
|
@click=${this.onClick}>
|
|
30
31
|
<ft-ripple></ft-ripple>
|
|
@@ -63,4 +64,7 @@ __decorate([
|
|
|
63
64
|
__decorate([
|
|
64
65
|
property()
|
|
65
66
|
], FtFloatingMenuItem.prototype, "value", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
property({ type: Boolean })
|
|
69
|
+
], FtFloatingMenuItem.prototype, "notFocusable", void 0);
|
|
66
70
|
export { FtFloatingMenuItem };
|