@searchstax-inc/searchstudio-ux-angular 4.2.2 → 4.2.10

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.
package/README.md CHANGED
@@ -290,8 +290,11 @@ It receives the following props:
290
290
  let-onMouseLeave="onMouseLeave"
291
291
  let-onMouseOver="onMouseOver"
292
292
  let-onMouseClick="onMouseClick"
293
+ let-onClearClick="onClearClick"
293
294
  let-context="context"
294
295
  let-locationWidgetConfig="locationWidgetConfig"
296
+ let-hasInputValue="hasInputValue"
297
+
295
298
  >
296
299
  <div class="searchstax-search-input-wrapper">
297
300
  <input
@@ -301,6 +304,16 @@ It receives the following props:
301
304
  placeholder="SEARCH FOR..."
302
305
  aria-label="search"
303
306
  />
307
+ @if (hasInputValue) {
308
+ <button
309
+ (click)="onClearClick($event, context)"
310
+ id="searchstax-clear-input-action-button"
311
+ class="searchstax-cross-icon hidden"
312
+ aria-label="clear input"
313
+ role="button">
314
+ </button>
315
+ <span id="searchstax-separator-icon" class="searchstax-separator hidden"></span>
316
+ }
304
317
  <div
305
318
  class="searchstax-autosuggest-container"
306
319
  [ngClass]="{ hidden: suggestions.length === 0 }"