@fluid-topics/ft-filterable-table 0.1.14 → 0.1.17
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.
|
@@ -524,14 +524,14 @@ const Se=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
524
524
|
padding: 0 12px 0 16px;
|
|
525
525
|
color: ${Te.helperColor};
|
|
526
526
|
}
|
|
527
|
-
`]}getTemplate(){var t,i,o,a,s;let l=!this.disabled&&this.optionsDisplayed&&this.hasOptions,p=this.disabled||!this.hasOptions;const c={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":p,"ft-select--options-displayed":l,"ft-select--has-
|
|
528
|
-
<div class="${n.classMap(
|
|
527
|
+
`]}getTemplate(){var t,i,o,a,s;let l=!this.disabled&&this.optionsDisplayed&&this.hasOptions,p=this.disabled||!this.hasOptions;const c=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(i=this.selectedOption)||void 0===i?void 0:i.label)&&void 0!==o?o:"").length>0,d={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":p,"ft-select--options-displayed":l,"ft-select--has-option-selected":c,"ft-select--no-label":!this.label};return e.html`
|
|
528
|
+
<div class="${n.classMap(d)}" part="container">
|
|
529
529
|
<div class="ft-select--main-panel" part="main-panel">
|
|
530
530
|
<ft-input-label text="${this.label}"
|
|
531
531
|
part="label"
|
|
532
532
|
?disabled=${p}
|
|
533
533
|
?outlined=${this.outlined}
|
|
534
|
-
?raised=${
|
|
534
|
+
?raised=${c||l}
|
|
535
535
|
></ft-input-label>
|
|
536
536
|
<div class="ft-select--input-panel"
|
|
537
537
|
part="selected-value"
|
|
@@ -543,7 +543,7 @@ const Se=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
543
543
|
aria-expanded="${l}">
|
|
544
544
|
<ft-ripple ?disabled=${p} ?activated=${!this.outlined}></ft-ripple>
|
|
545
545
|
<ft-typography variant="body1" class="ft-select--selected-option">
|
|
546
|
-
${null
|
|
546
|
+
${null!==(s=null===(a=this.selectedOption)||void 0===a?void 0:a.label)&&void 0!==s?s:""}
|
|
547
547
|
</ft-typography>
|
|
548
548
|
<mwc-icon>${l?"expand_less":"expand_more"}</mwc-icon>
|
|
549
549
|
</div>
|
|
@@ -617,14 +617,14 @@ const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
617
617
|
padding: 0 12px 0 16px;
|
|
618
618
|
color: ${Si.helperColor};
|
|
619
619
|
}
|
|
620
|
-
`]}getTemplate(){var t,e,i,r,o;let n=!this.disabled&&this.optionsDisplayed&&this.hasOptions,s=this.disabled||!this.hasOptions;const a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":s,"ft-select--options-displayed":n,"ft-select--has-
|
|
621
|
-
<div class="${Dt(
|
|
620
|
+
`]}getTemplate(){var t,e,i,r,o;let n=!this.disabled&&this.optionsDisplayed&&this.hasOptions,s=this.disabled||!this.hasOptions;const a=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,l={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":s,"ft-select--options-displayed":n,"ft-select--has-option-selected":a,"ft-select--no-label":!this.label};return j`
|
|
621
|
+
<div class="${Dt(l)}" part="container">
|
|
622
622
|
<div class="ft-select--main-panel" part="main-panel">
|
|
623
623
|
<ft-input-label text="${this.label}"
|
|
624
624
|
part="label"
|
|
625
625
|
?disabled=${s}
|
|
626
626
|
?outlined=${this.outlined}
|
|
627
|
-
?raised=${
|
|
627
|
+
?raised=${a||n}
|
|
628
628
|
></ft-input-label>
|
|
629
629
|
<div class="ft-select--input-panel"
|
|
630
630
|
part="selected-value"
|
|
@@ -636,7 +636,7 @@ const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
636
636
|
aria-expanded="${n}">
|
|
637
637
|
<ft-ripple ?disabled=${s} ?activated=${!this.outlined}></ft-ripple>
|
|
638
638
|
<ft-typography variant="body1" class="ft-select--selected-option">
|
|
639
|
-
${null
|
|
639
|
+
${null!==(o=null===(r=this.selectedOption)||void 0===r?void 0:r.label)&&void 0!==o?o:""}
|
|
640
640
|
</ft-typography>
|
|
641
641
|
<mwc-icon>${n?"expand_less":"expand_more"}</mwc-icon>
|
|
642
642
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-filterable-table",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "A dynamic table with filters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@fluid-topics/ft-button": "^0.1.
|
|
26
|
-
"@fluid-topics/ft-select": "^0.1.
|
|
27
|
-
"@fluid-topics/ft-text-field": "^0.1.
|
|
28
|
-
"@fluid-topics/ft-wc-utils": "^0.1.
|
|
25
|
+
"@fluid-topics/ft-button": "^0.1.17",
|
|
26
|
+
"@fluid-topics/ft-select": "^0.1.17",
|
|
27
|
+
"@fluid-topics/ft-text-field": "^0.1.17",
|
|
28
|
+
"@fluid-topics/ft-wc-utils": "^0.1.17",
|
|
29
29
|
"lit": "2.1.3"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "59fc7ad4bb79bb7a36b5edc8217d1279abf471f3"
|
|
32
32
|
}
|