@fluid-topics/ft-search-type 1.3.58 → 1.3.59

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,8 @@ export interface SearchTypeMessages extends I18nMessages {
3
3
  label(): string;
4
4
  documentTitlesOnly(): string;
5
5
  matchAllKeywords(): string;
6
+ clear(): string;
7
+ noFilterValuesAvailable(): string;
6
8
  }
7
9
  export declare const searchTypeContext: I18nMessageContext<SearchTypeMessages>;
8
10
  export declare const searchTypeDefaultMessages: DefaultI18nMessages<SearchTypeMessages>;
@@ -1,7 +1,9 @@
1
- import { I18nMessageContext } from "@fluid-topics/ft-i18n/build/generator/I18nMessageContext";
1
+ import { I18nMessageContext, } from "@fluid-topics/ft-i18n/build/generator/I18nMessageContext";
2
2
  export const searchTypeContext = I18nMessageContext.build("designedSearchType");
3
3
  export const searchTypeDefaultMessages = {
4
4
  label: "Search scope",
5
5
  documentTitlesOnly: "Search in document titles only",
6
6
  matchAllKeywords: "Match all search terms",
7
+ clear: "Clear",
8
+ noFilterValuesAvailable: "No values available",
7
9
  };
@@ -5,14 +5,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { html } from "lit";
8
- import { redux } from "@fluid-topics/ft-wc-utils";
8
+ import { redux, } from "@fluid-topics/ft-wc-utils";
9
9
  import { styles } from "./ft-search-type.styles";
10
10
  import { FtFilter } from "@fluid-topics/ft-filter";
11
11
  import { withI18n } from "@fluid-topics/ft-i18n";
12
12
  import { FtSearchComponent } from "@fluid-topics/ft-search-context/build/registration";
13
- import { searchTypeContext, searchTypeDefaultMessages } from "./FtSearchTypeMessages";
14
- import { property, query } from "lit/decorators.js";
15
- import { keywordMatchSelector, searchInDocumentTitlesOnlySelector } from "@fluid-topics/ft-search-context";
13
+ import { searchTypeContext, searchTypeDefaultMessages, } from "./FtSearchTypeMessages";
14
+ import { property, query, } from "lit/decorators.js";
15
+ import { keywordMatchSelector, searchInDocumentTitlesOnlySelector, } from "@fluid-topics/ft-search-context";
16
16
  import { FtSearchKeywordMatch } from "@fluid-topics/public-api";
17
17
  class FtSearchType extends withI18n(FtSearchComponent) {
18
18
  constructor() {
@@ -42,6 +42,8 @@ class FtSearchType extends withI18n(FtSearchComponent) {
42
42
  return html `
43
43
  <ft-filter
44
44
  label="${searchTypeContext.messages.label()}"
45
+ clearButtonLabel="${searchTypeContext.messages.clear()}"
46
+ noValuesLabel="${searchTypeContext.messages.noFilterValuesAvailable()}"
45
47
  .options=${options}
46
48
  part="filter"
47
49
  .exportpartsPrefixes=${["filter"]}