@fluid-topics/ft-reader-search-in-document 1.2.31 → 1.2.33

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.
@@ -15,6 +15,7 @@ export declare class FtReaderSearchInDocument extends FtReaderSearchInDocument_b
15
15
  private hideResultBreadcrumb;
16
16
  private hideResultAbstract;
17
17
  private hideResultsNumber;
18
+ private emptyResultOnClear;
18
19
  private userHasDoneManualAction;
19
20
  private uniqueId;
20
21
  private get filters();
@@ -22,6 +22,7 @@ class FtReaderSearchInDocument extends withI18n(FtReaderComponent) {
22
22
  this.hideResultBreadcrumb = false;
23
23
  this.hideResultAbstract = false;
24
24
  this.hideResultsNumber = false;
25
+ this.emptyResultOnClear = false;
25
26
  this.userHasDoneManualAction = false;
26
27
  this.uniqueId = "search-in-document-" + ("" + Math.round(Math.random() * 999000)).padStart(6, "0");
27
28
  this.addI18nContext(readerSearchInDocumentContext);
@@ -83,6 +84,7 @@ class FtReaderSearchInDocument extends withI18n(FtReaderComponent) {
83
84
  }}>
84
85
  <div class="ft-search-in-doc--container">
85
86
  <ft-search-input placeholder=${readerSearchInDocumentContext.messages.placeholder()}
87
+ ?triggerSearchOnClear=${this.emptyResultOnClear}
86
88
  @change="${(e) => {
87
89
  var _a;
88
90
  this.userHasDoneManualAction = true;
@@ -148,4 +150,7 @@ __decorate([
148
150
  __decorate([
149
151
  property({ type: Boolean })
150
152
  ], FtReaderSearchInDocument.prototype, "hideResultsNumber", void 0);
153
+ __decorate([
154
+ property({ type: Boolean })
155
+ ], FtReaderSearchInDocument.prototype, "emptyResultOnClear", void 0);
151
156
  export { FtReaderSearchInDocument };