@fluid-topics/ft-search-input 1.4.1 → 1.4.3

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 { FtSearchInputProperties } from "./ft-search-input.properties";
3
3
  import { FtSearchComponent } from "@fluid-topics/ft-search-context/build/registration";
4
4
  import { FtSearchRequest, FtSuggestResult } from "@fluid-topics/public-api";
5
5
  import { FtSearchInputSuggestionManager } from "./ft-search-input-suggestion";
6
+ import { I18nAttributeValue } from "@fluid-topics/ft-i18n/build/decorators/i18nAttribute";
6
7
  declare const FtSearchInput_base: typeof FtSearchComponent & import("@fluid-topics/ft-wc-utils").Constructor<import("@fluid-topics/ft-i18n").FtLitElementWithI18nInterface>;
7
8
  export declare class FtSearchInput extends FtSearchInput_base implements FtSearchInputProperties {
8
9
  static elementDefinitions: ElementDefinitionsMap;
@@ -15,7 +16,7 @@ export declare class FtSearchInput extends FtSearchInput_base implements FtSearc
15
16
  displaySuggestListbox: boolean;
16
17
  selectedSuggestOptionId?: string;
17
18
  launchSearchPath?: string;
18
- placeholder: string;
19
+ placeholder?: I18nAttributeValue;
19
20
  useCustomSearchPath: boolean;
20
21
  triggerSearchOnClear: boolean;
21
22
  focusOnDisplay: boolean;
@@ -16,13 +16,13 @@ import { FtSearchInputSuggestionManager } from "./ft-search-input-suggestion";
16
16
  import { FtButton } from "@fluid-topics/ft-button";
17
17
  import { FtTypographyBody2 } from "@fluid-topics/ft-typography";
18
18
  import { SearchPlaceConverterProvider } from "@fluid-topics/ft-app-context";
19
+ import { i18nAttribute, } from "@fluid-topics/ft-i18n/build/decorators/i18nAttribute";
19
20
  class FtSearchInput extends withI18n(FtSearchComponent) {
20
21
  constructor() {
21
22
  super();
22
23
  this.liveQuery = "";
23
24
  this.forceCloseSuggestion = false;
24
25
  this.displaySuggestListbox = false;
25
- this.placeholder = searchInputContext.messages.placeholder();
26
26
  this.useCustomSearchPath = false;
27
27
  this.triggerSearchOnClear = false;
28
28
  this.focusOnDisplay = false;
@@ -55,7 +55,7 @@ class FtSearchInput extends withI18n(FtSearchComponent) {
55
55
  <input class="ft-search-input--input ft-typography--body2"
56
56
  part="input"
57
57
  type="search"
58
- placeholder="${this.placeholder}"
58
+ placeholder="${this.placeholder ? this.placeholder.message : searchInputContext.messages.placeholder()}"
59
59
  .value=${this.liveQuery}
60
60
  role="combobox"
61
61
  aria-autocomplete="list"
@@ -256,7 +256,7 @@ __decorate([
256
256
  property()
257
257
  ], FtSearchInput.prototype, "launchSearchPath", void 0);
258
258
  __decorate([
259
- property()
259
+ i18nAttribute()
260
260
  ], FtSearchInput.prototype, "placeholder", void 0);
261
261
  __decorate([
262
262
  property({ type: Boolean })