@fluid-topics/ft-search-input 1.1.82 → 1.1.84
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,7 +10,6 @@ export declare class FtSearchInput extends FtSearchInput_base implements FtSearc
|
|
|
10
10
|
private liveQuery;
|
|
11
11
|
private suggestResults?;
|
|
12
12
|
private forceCloseSuggestion;
|
|
13
|
-
private placeholder;
|
|
14
13
|
private input;
|
|
15
14
|
private suggestion;
|
|
16
15
|
protected render(): import("lit").TemplateResult<1>;
|
package/build/ft-search-input.js
CHANGED
|
@@ -10,7 +10,7 @@ import { styles } from "./ft-search-input.styles";
|
|
|
10
10
|
import { FtSearchComponent } from "@fluid-topics/ft-search-context/build/registration";
|
|
11
11
|
import { withI18n } from "@fluid-topics/ft-i18n";
|
|
12
12
|
import { searchInputContext } from "./SearchInputMessages";
|
|
13
|
-
import {
|
|
13
|
+
import { query, state } from "lit/decorators.js";
|
|
14
14
|
import { classMap } from "lit/directives/class-map.js";
|
|
15
15
|
import { FtSearchInputSuggestion } from "./ft-search-input-suggestion";
|
|
16
16
|
import { FtButton } from "@fluid-topics/ft-button";
|
|
@@ -20,7 +20,6 @@ class FtSearchInput extends withI18n(FtSearchComponent) {
|
|
|
20
20
|
super();
|
|
21
21
|
this.liveQuery = "";
|
|
22
22
|
this.forceCloseSuggestion = false;
|
|
23
|
-
this.placeholder = searchInputContext.messages.placeholder();
|
|
24
23
|
this.addI18nContext(searchInputContext);
|
|
25
24
|
}
|
|
26
25
|
render() {
|
|
@@ -37,7 +36,7 @@ class FtSearchInput extends withI18n(FtSearchComponent) {
|
|
|
37
36
|
<input class="ft-search-input--input ft-typography--body2"
|
|
38
37
|
part="input"
|
|
39
38
|
type="search"
|
|
40
|
-
placeholder="${
|
|
39
|
+
placeholder="${searchInputContext.messages.placeholder()}"
|
|
41
40
|
.value="${this.liveQuery}"
|
|
42
41
|
@input=${(e) => this.onInput(e)}
|
|
43
42
|
@keydown=${(e) => this.onSearchBarKeyDown(e)}
|
|
@@ -129,9 +128,6 @@ __decorate([
|
|
|
129
128
|
__decorate([
|
|
130
129
|
state()
|
|
131
130
|
], FtSearchInput.prototype, "forceCloseSuggestion", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
property({ type: String })
|
|
134
|
-
], FtSearchInput.prototype, "placeholder", void 0);
|
|
135
131
|
__decorate([
|
|
136
132
|
query(".ft-search-input--input")
|
|
137
133
|
], FtSearchInput.prototype, "input", void 0);
|