@fluid-topics/ft-search-bar 0.2.2 → 0.2.6
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.d.ts +3 -1
- package/build/ft-search-bar.inline-styles.js +414 -334
- package/build/ft-search-bar.js +52 -33
- package/build/ft-search-bar.light.js +405 -325
- package/build/ft-search-bar.min.js +415 -335
- package/package.json +15 -15
|
@@ -108,7 +108,18 @@ export const searchBarCss = css `
|
|
|
108
108
|
min-width: 250px;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
.ft-search-bar
|
|
111
|
+
.ft-search-bar--actions {
|
|
112
|
+
flex-shrink: 0;
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: row;
|
|
115
|
+
align-items: center;
|
|
116
|
+
height: 100%;
|
|
117
|
+
|
|
118
|
+
--ft-tooltip-z-index: 3;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ft-search-bar > ft-button,
|
|
122
|
+
.ft-search-bar--actions ft-button {
|
|
112
123
|
flex-shrink: 0;
|
|
113
124
|
}
|
|
114
125
|
|
|
@@ -276,7 +287,7 @@ export const facetsCss = css `
|
|
|
276
287
|
padding-left: 0;
|
|
277
288
|
padding-right: 0;
|
|
278
289
|
}
|
|
279
|
-
|
|
290
|
+
|
|
280
291
|
.ft-search-bar--floating-panel .ft-search-bar--launch-search {
|
|
281
292
|
margin: 0;
|
|
282
293
|
}
|
|
@@ -371,6 +382,10 @@ export const suggestionsCss = css `
|
|
|
371
382
|
min-height: 52px;
|
|
372
383
|
}
|
|
373
384
|
|
|
385
|
+
.ft-search-bar--suggestion > *:not(ft-ripple) {
|
|
386
|
+
position: relative;
|
|
387
|
+
}
|
|
388
|
+
|
|
374
389
|
.ft-search-bar--desktop .ft-search-bar--suggestion {
|
|
375
390
|
min-height: 44px;
|
|
376
391
|
}
|
package/build/ft-search-bar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropertyValues } from "lit";
|
|
2
2
|
import { ElementDefinitionsMap, FtLitElement, ParametrizedLabels } from "@fluid-topics/ft-wc-utils";
|
|
3
|
-
import { FluidTopicsApi, FtSearchFacetConf, FtSearchPreset, FtSearchRequest, FtSuggestRequest } from "@fluid-topics/public-api";
|
|
3
|
+
import { FluidTopicsApi, FtSearchFacetConf, FtSearchPreset, FtSearchPrior, FtSearchRequest, FtSuggestRequest } from "@fluid-topics/public-api";
|
|
4
4
|
declare global {
|
|
5
5
|
interface Window {
|
|
6
6
|
fluidtopics?: {
|
|
@@ -32,6 +32,7 @@ export interface FtSearchBarProperties {
|
|
|
32
32
|
uiLocale?: string;
|
|
33
33
|
displayedFilters?: Array<string>;
|
|
34
34
|
presets?: Array<FtSearchPreset>;
|
|
35
|
+
priors?: Array<FtSearchPrior>;
|
|
35
36
|
selectedPreset?: string;
|
|
36
37
|
dense: boolean;
|
|
37
38
|
}
|
|
@@ -55,6 +56,7 @@ export declare class FtSearchBar extends FtLitElement implements FtSearchBarProp
|
|
|
55
56
|
private labelResolver;
|
|
56
57
|
displayedFilters: Array<string>;
|
|
57
58
|
presets: Array<FtSearchPreset>;
|
|
59
|
+
priors: Array<FtSearchPrior>;
|
|
58
60
|
selectedPreset?: string;
|
|
59
61
|
searchRequestSerializer: (request: FtSearchRequest) => string;
|
|
60
62
|
private searchFilters;
|