@fluid-topics/ft-search-bar 0.1.15 → 0.1.16
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.js
CHANGED
|
@@ -337,9 +337,9 @@ let FtSearchBar = class FtSearchBar extends FtLitElement {
|
|
|
337
337
|
<ft-select outlined
|
|
338
338
|
class="ft-search-bar--content-locale ft-search-bar--left-action"
|
|
339
339
|
part="content-locale"
|
|
340
|
-
@change=${(e) => this.contentLocale = e.detail}>
|
|
340
|
+
@change=${(e) => this.contentLocale = e.detail == null ? undefined : e.detail}>
|
|
341
341
|
${repeat(this.availableContentLocales, l => l.lang, l => html `
|
|
342
|
-
<ft-select-option value
|
|
342
|
+
<ft-select-option .value=${l.lang}
|
|
343
343
|
label="${l.label}"
|
|
344
344
|
?selected=${l.lang === this.contentLocale}>
|
|
345
345
|
</ft-select-option>
|
|
@@ -1724,14 +1724,14 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
|
|
|
1724
1724
|
padding: 0 12px 0 16px;
|
|
1725
1725
|
color: ${mo.helperColor};
|
|
1726
1726
|
}
|
|
1727
|
-
`]}getTemplate(){var t,i,a,c,n;let s=!this.disabled&&this.optionsDisplayed&&this.hasOptions,l=this.disabled||!this.hasOptions;const d={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-
|
|
1728
|
-
<div class="${r.classMap(
|
|
1727
|
+
`]}getTemplate(){var t,i,a,c,n;let s=!this.disabled&&this.optionsDisplayed&&this.hasOptions,l=this.disabled||!this.hasOptions;const d=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(a=null===(i=this.selectedOption)||void 0===i?void 0:i.label)&&void 0!==a?a:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label};return e.html`
|
|
1728
|
+
<div class="${r.classMap(p)}" part="container">
|
|
1729
1729
|
<div class="ft-select--main-panel" part="main-panel">
|
|
1730
1730
|
<ft-input-label text="${this.label}"
|
|
1731
1731
|
part="label"
|
|
1732
1732
|
?disabled=${l}
|
|
1733
1733
|
?outlined=${this.outlined}
|
|
1734
|
-
?raised=${
|
|
1734
|
+
?raised=${d||s}
|
|
1735
1735
|
></ft-input-label>
|
|
1736
1736
|
<div class="ft-select--input-panel"
|
|
1737
1737
|
part="selected-value"
|
|
@@ -1743,7 +1743,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
|
|
|
1743
1743
|
aria-expanded="${s}">
|
|
1744
1744
|
<ft-ripple ?disabled=${l} ?activated=${!this.outlined}></ft-ripple>
|
|
1745
1745
|
<ft-typography variant="body1" class="ft-select--selected-option">
|
|
1746
|
-
${null
|
|
1746
|
+
${null!==(n=null===(c=this.selectedOption)||void 0===c?void 0:c.label)&&void 0!==n?n:""}
|
|
1747
1747
|
</ft-typography>
|
|
1748
1748
|
<mwc-icon>${s?"expand_less":"expand_more"}</mwc-icon>
|
|
1749
1749
|
</div>
|
|
@@ -2261,9 +2261,9 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
|
|
|
2261
2261
|
<ft-select outlined
|
|
2262
2262
|
class="ft-search-bar--content-locale ft-search-bar--left-action"
|
|
2263
2263
|
part="content-locale"
|
|
2264
|
-
@change=${t=>this.contentLocale=t.detail}>
|
|
2264
|
+
@change=${t=>this.contentLocale=null==t.detail?void 0:t.detail}>
|
|
2265
2265
|
${o.repeat(this.availableContentLocales,(t=>t.lang),(t=>e.html`
|
|
2266
|
-
<ft-select-option value
|
|
2266
|
+
<ft-select-option .value=${t.lang}
|
|
2267
2267
|
label="${t.label}"
|
|
2268
2268
|
?selected=${t.lang===this.contentLocale}>
|
|
2269
2269
|
</ft-select-option>
|
|
@@ -1839,14 +1839,14 @@ class Nr extends vt{constructor(t){if(super(t),this.it=M,t.type!==mt)throw Error
|
|
|
1839
1839
|
padding: 0 12px 0 16px;
|
|
1840
1840
|
color: ${bo.helperColor};
|
|
1841
1841
|
}
|
|
1842
|
-
`]}getTemplate(){var t,e,i,r,o;let n=!this.disabled&&this.optionsDisplayed&&this.hasOptions,a=this.disabled||!this.hasOptions;const c={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":n,"ft-select--has-
|
|
1843
|
-
<div class="${Ot(
|
|
1842
|
+
`]}getTemplate(){var t,e,i,r,o;let n=!this.disabled&&this.optionsDisplayed&&this.hasOptions,a=this.disabled||!this.hasOptions;const c=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,s={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":n,"ft-select--has-option-selected":c,"ft-select--no-label":!this.label};return A`
|
|
1843
|
+
<div class="${Ot(s)}" part="container">
|
|
1844
1844
|
<div class="ft-select--main-panel" part="main-panel">
|
|
1845
1845
|
<ft-input-label text="${this.label}"
|
|
1846
1846
|
part="label"
|
|
1847
1847
|
?disabled=${a}
|
|
1848
1848
|
?outlined=${this.outlined}
|
|
1849
|
-
?raised=${
|
|
1849
|
+
?raised=${c||n}
|
|
1850
1850
|
></ft-input-label>
|
|
1851
1851
|
<div class="ft-select--input-panel"
|
|
1852
1852
|
part="selected-value"
|
|
@@ -1858,7 +1858,7 @@ class Nr extends vt{constructor(t){if(super(t),this.it=M,t.type!==mt)throw Error
|
|
|
1858
1858
|
aria-expanded="${n}">
|
|
1859
1859
|
<ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
|
|
1860
1860
|
<ft-typography variant="body1" class="ft-select--selected-option">
|
|
1861
|
-
${null
|
|
1861
|
+
${null!==(o=null===(r=this.selectedOption)||void 0===r?void 0:r.label)&&void 0!==o?o:""}
|
|
1862
1862
|
</ft-typography>
|
|
1863
1863
|
<mwc-icon>${n?"expand_less":"expand_more"}</mwc-icon>
|
|
1864
1864
|
</div>
|
|
@@ -2376,9 +2376,9 @@ class Nr extends vt{constructor(t){if(super(t),this.it=M,t.type!==mt)throw Error
|
|
|
2376
2376
|
<ft-select outlined
|
|
2377
2377
|
class="ft-search-bar--content-locale ft-search-bar--left-action"
|
|
2378
2378
|
part="content-locale"
|
|
2379
|
-
@change=${t=>this.contentLocale=t.detail}>
|
|
2379
|
+
@change=${t=>this.contentLocale=null==t.detail?void 0:t.detail}>
|
|
2380
2380
|
${St(this.availableContentLocales,(t=>t.lang),(t=>A`
|
|
2381
|
-
<ft-select-option value
|
|
2381
|
+
<ft-select-option .value=${t.lang}
|
|
2382
2382
|
label="${t.label}"
|
|
2383
2383
|
?selected=${t.lang===this.contentLocale}>
|
|
2384
2384
|
</ft-select-option>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-bar",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Search bar component using Fluid Topics public API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-accordion": "^0.1.
|
|
23
|
-
"@fluid-topics/ft-button": "^0.1.
|
|
24
|
-
"@fluid-topics/ft-chip": "^0.1.
|
|
25
|
-
"@fluid-topics/ft-filter": "^0.1.
|
|
26
|
-
"@fluid-topics/ft-icon": "^0.1.
|
|
27
|
-
"@fluid-topics/ft-select": "^0.1.
|
|
28
|
-
"@fluid-topics/ft-size-watcher": "^0.1.
|
|
29
|
-
"@fluid-topics/ft-snap-scroll": "^0.1.
|
|
30
|
-
"@fluid-topics/ft-tooltip": "^0.1.
|
|
31
|
-
"@fluid-topics/ft-typography": "^0.1.
|
|
32
|
-
"@fluid-topics/ft-wc-utils": "^0.1.
|
|
22
|
+
"@fluid-topics/ft-accordion": "^0.1.16",
|
|
23
|
+
"@fluid-topics/ft-button": "^0.1.16",
|
|
24
|
+
"@fluid-topics/ft-chip": "^0.1.16",
|
|
25
|
+
"@fluid-topics/ft-filter": "^0.1.16",
|
|
26
|
+
"@fluid-topics/ft-icon": "^0.1.16",
|
|
27
|
+
"@fluid-topics/ft-select": "^0.1.16",
|
|
28
|
+
"@fluid-topics/ft-size-watcher": "^0.1.16",
|
|
29
|
+
"@fluid-topics/ft-snap-scroll": "^0.1.16",
|
|
30
|
+
"@fluid-topics/ft-tooltip": "^0.1.16",
|
|
31
|
+
"@fluid-topics/ft-typography": "^0.1.16",
|
|
32
|
+
"@fluid-topics/ft-wc-utils": "^0.1.16",
|
|
33
33
|
"@material/mwc-icon": "^0.25.3",
|
|
34
34
|
"lit": "2.1.3"
|
|
35
35
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@fluid-topics/public-api": "1.0.15"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "cd0a3cb28ec86c2c93fcaecf99cdd1c51e83c8c9"
|
|
43
43
|
}
|