@fluid-topics/ft-search-bar 0.2.3 → 0.2.4
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/build/ft-search-bar.css.js +17 -2
- package/build/ft-search-bar.inline-styles.js +335 -255
- package/build/ft-search-bar.js +40 -31
- package/build/ft-search-bar.light.js +321 -241
- package/build/ft-search-bar.min.js +335 -255
- package/package.json +13 -13
package/build/ft-search-bar.js
CHANGED
|
@@ -180,7 +180,7 @@ export class FtSearchBar extends FtLitElement {
|
|
|
180
180
|
${this.displayFacets ? this.renderMobileFacets() : this.renderSuggestions()}
|
|
181
181
|
${this.mobileMenuOpen || this.displayFacets ? html `
|
|
182
182
|
<ft-button class="ft-search-bar--launch-search"
|
|
183
|
-
part="search-
|
|
183
|
+
part="launch-search-in-panel"
|
|
184
184
|
icon="search"
|
|
185
185
|
@click=${this.launchSearch}>
|
|
186
186
|
${this.labelResolver.resolve("searchButton")}
|
|
@@ -191,27 +191,33 @@ export class FtSearchBar extends FtLitElement {
|
|
|
191
191
|
renderMobileSearchBarButtons() {
|
|
192
192
|
if (this.query || this.mobileMenuOpen) {
|
|
193
193
|
return html `
|
|
194
|
-
<
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
194
|
+
<div class="ft-search-bar--actions"
|
|
195
|
+
part="search-bar-actions">
|
|
196
|
+
<ft-button class="ft-search-bar--clear-query"
|
|
197
|
+
part="clear-query"
|
|
198
|
+
icon="close"
|
|
199
|
+
round
|
|
200
|
+
label="${this.labelResolver.resolve("clearInputButton")}"
|
|
201
|
+
@click=${() => {
|
|
200
202
|
this.setQuery("");
|
|
201
203
|
this.mobileMenuOpen = false;
|
|
202
204
|
this.displayFacets = false;
|
|
203
205
|
}}
|
|
204
|
-
|
|
206
|
+
></ft-button>
|
|
207
|
+
</div>
|
|
205
208
|
`;
|
|
206
209
|
}
|
|
207
210
|
return html `
|
|
208
|
-
<
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
211
|
+
<div class="ft-search-bar--actions"
|
|
212
|
+
part="search-bar-actions">
|
|
213
|
+
<ft-button class="ft-search-bar--launch-search"
|
|
214
|
+
part="launch-search-in-bar"
|
|
215
|
+
icon="search"
|
|
216
|
+
round
|
|
217
|
+
label="${this.labelResolver.resolve("searchButton")}"
|
|
218
|
+
@click=${() => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }}
|
|
219
|
+
></ft-button>
|
|
220
|
+
</div>
|
|
215
221
|
`;
|
|
216
222
|
}
|
|
217
223
|
renderMobileFacets() {
|
|
@@ -295,7 +301,7 @@ export class FtSearchBar extends FtLitElement {
|
|
|
295
301
|
${this.renderDesktopFacets()}
|
|
296
302
|
<div class="ft-search-bar--facets-actions">
|
|
297
303
|
<ft-button class="ft-search-bar--launch-search"
|
|
298
|
-
part="search-
|
|
304
|
+
part="launch-search-in-panel"
|
|
299
305
|
icon="search"
|
|
300
306
|
@click=${this.launchSearch}>
|
|
301
307
|
${this.labelResolver.resolve("searchButton")}
|
|
@@ -341,23 +347,26 @@ export class FtSearchBar extends FtLitElement {
|
|
|
341
347
|
}
|
|
342
348
|
renderDesktopSearchBarButtons() {
|
|
343
349
|
return html `
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
350
|
+
<div class="ft-search-bar--actions"
|
|
351
|
+
part="search-bar-actions">
|
|
352
|
+
${this.query ? html `
|
|
353
|
+
<ft-button class="ft-search-bar--clear-query"
|
|
354
|
+
part="clear-query"
|
|
355
|
+
icon="close"
|
|
356
|
+
round dense
|
|
357
|
+
label="${this.labelResolver.resolve("clearInputButton")}"
|
|
358
|
+
@click=${() => this.setQuery("")}
|
|
359
|
+
></ft-button>
|
|
360
|
+
<div class="ft-search-bar--separator"></div>
|
|
361
|
+
` : null}
|
|
362
|
+
<ft-button class="ft-search-bar--launch-search"
|
|
363
|
+
part="launch-search-in-bar"
|
|
364
|
+
icon="search"
|
|
348
365
|
round dense
|
|
349
|
-
label="${this.labelResolver.resolve("
|
|
350
|
-
@click=${
|
|
366
|
+
label="${this.labelResolver.resolve("searchButton")}"
|
|
367
|
+
@click=${this.launchSearch}
|
|
351
368
|
></ft-button>
|
|
352
|
-
|
|
353
|
-
` : null}
|
|
354
|
-
<ft-button class="ft-search-bar--launch-search"
|
|
355
|
-
part="search-bar-actions"
|
|
356
|
-
icon="search"
|
|
357
|
-
round dense
|
|
358
|
-
label="${this.labelResolver.resolve("searchButton")}"
|
|
359
|
-
@click=${this.launchSearch}
|
|
360
|
-
></ft-button>
|
|
369
|
+
</div>
|
|
361
370
|
`;
|
|
362
371
|
}
|
|
363
372
|
renderFacetsActions() {
|