@fluid-topics/ft-filter 0.2.17 → 0.2.20

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.
@@ -130,6 +130,7 @@ export class FtFilterLevel extends FtLitElement {
130
130
  return html `
131
131
  <ft-checkbox name="${this.id}"
132
132
  part="multivalued-option"
133
+ data-value="${option.value}"
133
134
  .checked=${option.selected}
134
135
  .disabled=${this.disabled}
135
136
  .indeterminate=${flatDeep((_a = option.subOptions) !== null && _a !== void 0 ? _a : [], o => { var _a; return (_a = o.subOptions) !== null && _a !== void 0 ? _a : []; }).some(o => o.selected)}
@@ -142,12 +143,12 @@ export class FtFilterLevel extends FtLitElement {
142
143
  return html `
143
144
  <ft-radio name="${this.id + Math.round(Math.random() * 1000000)}"
144
145
  part="monovalued-option"
146
+ data-value="${option.value}"
145
147
  .checked=${option.selected}
146
- ?disabled=${this.disabled}
148
+ .disabled=${this.disabled}
147
149
  @click=${(e) => this.optionsChanged(e, option)}
148
150
  @keyup=${(e) => this.onRadioKeyUp(e, option)}
149
151
  @change=${(e) => e.stopPropagation()}>
150
-
151
152
  ${option.label}
152
153
  </ft-radio>
153
154
  `;
@@ -236,8 +237,8 @@ FtFilterLevel.styles = [
236
237
  margin-left: -10px;
237
238
  word-break: break-word;
238
239
  }
239
-
240
- .ft-filter-level--no-values {
240
+
241
+ .ft-filter-level--no-values {
241
242
  margin: 10px 0;
242
243
  color: ${FtFilterLevelCssVariables.colorOnSurfaceMedium};
243
244
  }
@@ -268,7 +268,6 @@ FtFilter.styles = [
268
268
  max-height: 100%;
269
269
  max-width: 100%;
270
270
  color: ${FtFilterCssVariables.colorOnSurface};
271
- background: ${FtFilterCssVariables.colorSurface};
272
271
  }
273
272
 
274
273
  .ft-filter--header {
@@ -321,10 +320,14 @@ FtFilter.styles = [
321
320
  border: 1px solid ${FtFilterCssVariables.colorOutline};
322
321
  padding: 4px;
323
322
  background-color: ${FtFilterCssVariables.colorSurface};
324
- color: ${FtFilterCssVariables.colorOnSurfaceMedium};
323
+ color: ${FtFilterCssVariables.colorOnSurface};
325
324
  outline-color: ${FtFilterCssVariables.colorPrimary};
326
325
  }
327
326
 
327
+ input::placeholder {
328
+ color: ${FtFilterCssVariables.colorOnSurfaceMedium};
329
+ }
330
+
328
331
  .ft-filter--values {
329
332
  flex-grow: 1;
330
333
  flex-shrink: 1;
@@ -392,7 +392,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
392
392
  box-shadow: 0px 0px 0px transparent;
393
393
  border: 0px solid transparent;
394
394
  text-shadow: 0px 0px 0px transparent;
395
- font-size: inherit;
395
+ font-size: 16px;
396
396
  }
397
397
 
398
398
  button:hover {
@@ -420,7 +420,6 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
420
420
  box-sizing: border-box;
421
421
  border: none;
422
422
  pointer-events: auto;
423
- line-height: 0;
424
423
 
425
424
  --ft-button-internal-font-size: ${Mi.fontSize};
426
425
  --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
@@ -640,7 +639,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
640
639
  .ft-checkbox--indeterminate .ft-checkbox--checkmark {
641
640
  opacity: 1;
642
641
  }
643
- `,Ai([o.property()],Vi.prototype,"name",void 0),Ai([o.property({type:Boolean})],Vi.prototype,"checked",void 0),Ai([o.property({type:Boolean})],Vi.prototype,"indeterminate",void 0),Ai([o.property({type:Boolean})],Vi.prototype,"disabled",void 0),Ai([o.query(".ft-checkbox")],Vi.prototype,"container",void 0),Ai([o.query("ft-ripple")],Vi.prototype,"ripple",void 0),i.customElement("ft-checkbox")(Vi);var Wi=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const Pi=i.FtCssVariable.extend("--ft-radio-text-color",i.designSystemVariables.colorOnSurfaceHigh),Zi=i.FtCssVariable.external(i.designSystemVariables.colorPrimary,"Design system"),Ki=(i.FtCssVariable.external(i.designSystemVariables.colorOnPrimary,"Design system"),i.FtCssVariable.extend("--ft-radio-border-color",i.designSystemVariables.colorOnSurfaceMedium)),Gi=i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system");class qi extends CustomEvent{constructor(t,i){super("change",{detail:{value:t,checked:i},bubbles:!0,composed:!0})}}class Xi extends i.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return e.html`
642
+ `,Ai([o.property()],Vi.prototype,"name",void 0),Ai([o.property({type:Boolean,reflect:!0})],Vi.prototype,"checked",void 0),Ai([o.property({type:Boolean})],Vi.prototype,"indeterminate",void 0),Ai([o.property({type:Boolean})],Vi.prototype,"disabled",void 0),Ai([o.query(".ft-checkbox")],Vi.prototype,"container",void 0),Ai([o.query("ft-ripple")],Vi.prototype,"ripple",void 0),i.customElement("ft-checkbox")(Vi);var Wi=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const Pi=i.FtCssVariable.extend("--ft-radio-text-color",i.designSystemVariables.colorOnSurfaceHigh),Zi=i.FtCssVariable.external(i.designSystemVariables.colorPrimary,"Design system"),Ki=(i.FtCssVariable.external(i.designSystemVariables.colorOnPrimary,"Design system"),i.FtCssVariable.extend("--ft-radio-border-color",i.designSystemVariables.colorOnSurfaceMedium)),Gi=i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system");class qi extends CustomEvent{constructor(t,i){super("change",{detail:{value:t,checked:i},bubbles:!0,composed:!0})}}class Xi extends i.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return e.html`
644
643
  <div class="${r.classMap(t)}">
645
644
  <div class="ft-radio--box-container">
646
645
  <input id="radio-button"
@@ -744,7 +743,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
744
743
  .ft-radio--disabled .ft-radio--box:after {
745
744
  background-color: ${Gi};
746
745
  }
747
- `,Wi([o.property()],Xi.prototype,"value",void 0),Wi([o.property()],Xi.prototype,"name",void 0),Wi([o.property({type:Boolean})],Xi.prototype,"checked",void 0),Wi([o.property({type:Boolean})],Xi.prototype,"disabled",void 0),Wi([o.query(".ft-radio")],Xi.prototype,"container",void 0),Wi([o.query("ft-ripple")],Xi.prototype,"ripple",void 0),Wi([o.query("input")],Xi.prototype,"input",void 0);var Yi=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};class Ji extends i.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return e.html`
746
+ `,Wi([o.property()],Xi.prototype,"value",void 0),Wi([o.property()],Xi.prototype,"name",void 0),Wi([o.property({type:Boolean,reflect:!0})],Xi.prototype,"checked",void 0),Wi([o.property({type:Boolean})],Xi.prototype,"disabled",void 0),Wi([o.query(".ft-radio")],Xi.prototype,"container",void 0),Wi([o.query("ft-ripple")],Xi.prototype,"ripple",void 0),Wi([o.query("input")],Xi.prototype,"input",void 0);var Yi=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};class Ji extends i.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return e.html`
748
747
  <slot @slotchange=${this.onSlotChange}
749
748
  @change=${this.onChange}
750
749
  @keydown=${this.onKeyDown}
@@ -800,6 +799,7 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
800
799
  `}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var i;return e.html`
801
800
  <ft-checkbox name="${this.id}"
802
801
  part="multivalued-option"
802
+ data-value="${t.value}"
803
803
  .checked=${t.selected}
804
804
  .disabled=${this.disabled}
805
805
  .indeterminate=${si(null!==(i=t.subOptions)&&void 0!==i?i:[],(t=>{var i;return null!==(i=t.subOptions)&&void 0!==i?i:[]})).some((t=>t.selected))}
@@ -809,12 +809,12 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
809
809
  `}buildMonoValuedOption(t){return e.html`
810
810
  <ft-radio name="${this.id+Math.round(1e6*Math.random())}"
811
811
  part="monovalued-option"
812
+ data-value="${t.value}"
812
813
  .checked=${t.selected}
813
- ?disabled=${this.disabled}
814
+ .disabled=${this.disabled}
814
815
  @click=${i=>this.optionsChanged(i,t)}
815
816
  @keyup=${i=>this.onRadioKeyUp(i,t)}
816
817
  @change=${t=>t.stopPropagation()}>
817
-
818
818
  ${t.label}
819
819
  </ft-radio>
820
820
  `}onRadioKeyUp(t,i){i.selected&&" "===t.key&&this.optionsChanged(t,i)}optionsChanged(t,i){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:i}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}ie.elementDefinitions={"ft-button":Ii,"ft-ripple":ui,"ft-typography":oi,"ft-checkbox":Vi,"ft-icon":ji,"ft-radio":Xi},ie.styles=[e.css`
@@ -878,8 +878,8 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
878
878
  margin-left: -10px;
879
879
  word-break: break-word;
880
880
  }
881
-
882
- .ft-filter-level--no-values {
881
+
882
+ .ft-filter-level--no-values {
883
883
  margin: 10px 0;
884
884
  color: ${te.colorOnSurfaceMedium};
885
885
  }
@@ -1115,7 +1115,6 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
1115
1115
  max-height: 100%;
1116
1116
  max-width: 100%;
1117
1117
  color: ${le.colorOnSurface};
1118
- background: ${le.colorSurface};
1119
1118
  }
1120
1119
 
1121
1120
  .ft-filter--header {
@@ -1168,10 +1167,14 @@ const H=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
1168
1167
  border: 1px solid ${le.colorOutline};
1169
1168
  padding: 4px;
1170
1169
  background-color: ${le.colorSurface};
1171
- color: ${le.colorOnSurfaceMedium};
1170
+ color: ${le.colorOnSurface};
1172
1171
  outline-color: ${le.colorPrimary};
1173
1172
  }
1174
1173
 
1174
+ input::placeholder {
1175
+ color: ${le.colorOnSurfaceMedium};
1176
+ }
1177
+
1175
1178
  .ft-filter--values {
1176
1179
  flex-grow: 1;
1177
1180
  flex-shrink: 1;
@@ -82,7 +82,7 @@ var ct,pt;null==ht||ht(G,et),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?
82
82
  <style>${t}</style>
83
83
  `))}
84
84
  ${this.getTemplate()}
85
- `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,s,n,r;let l=[];for(let a of t){let t=null==a?void 0:a.trim();if(t)for(let a of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){let e=null!==(s=null===(o=a.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=a.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];const h=[...new Set([...e,...i])].filter((t=>null!=t&&t.trim().length>0)).map((t=>t.trim())).map((e=>`${e}:${t}--${e}`));l.push(...h)}}this.setAttribute("exportparts",l.join(", "))}contentAvailableCallback(t){}}xt([o()],yt.prototype,"exportpartsPrefix",void 0),xt([p([])],yt.prototype,"exportpartsPrefixes",void 0);const gt=x`
85
+ `}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}xt([o()],yt.prototype,"exportpartsPrefix",void 0),xt([p([])],yt.prototype,"exportpartsPrefixes",void 0);const gt=x`
86
86
  .ft-no-text-select {
87
87
  -webkit-touch-callout: none;
88
88
  -webkit-user-select: none;
@@ -499,7 +499,7 @@ class mi extends Ke{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
499
499
  box-shadow: 0px 0px 0px transparent;
500
500
  border: 0px solid transparent;
501
501
  text-shadow: 0px 0px 0px transparent;
502
- font-size: inherit;
502
+ font-size: 16px;
503
503
  }
504
504
 
505
505
  button:hover {
@@ -527,7 +527,6 @@ class mi extends Ke{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
527
527
  box-sizing: border-box;
528
528
  border: none;
529
529
  pointer-events: auto;
530
- line-height: 0;
531
530
 
532
531
  --ft-button-internal-font-size: ${Mi.fontSize};
533
532
  --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
@@ -747,7 +746,7 @@ class mi extends Ke{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
747
746
  .ft-checkbox--indeterminate .ft-checkbox--checkmark {
748
747
  opacity: 1;
749
748
  }
750
- `,Ui([o()],Pi.prototype,"name",void 0),Ui([o({type:Boolean})],Pi.prototype,"checked",void 0),Ui([o({type:Boolean})],Pi.prototype,"indeterminate",void 0),Ui([o({type:Boolean})],Pi.prototype,"disabled",void 0),Ui([r(".ft-checkbox")],Pi.prototype,"container",void 0),Ui([r("ft-ripple")],Pi.prototype,"ripple",void 0),c("ft-checkbox")(Pi);var Ii=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Hi=ut.extend("--ft-radio-text-color",bt.colorOnSurfaceHigh),Wi=ut.external(bt.colorPrimary,"Design system"),Ki=(ut.external(bt.colorOnPrimary,"Design system"),ut.extend("--ft-radio-border-color",bt.colorOnSurfaceMedium)),Vi=ut.external(bt.colorOnSurfaceDisabled,"Design system");class Zi extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Ji extends yt{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return V`
749
+ `,Ui([o()],Pi.prototype,"name",void 0),Ui([o({type:Boolean,reflect:!0})],Pi.prototype,"checked",void 0),Ui([o({type:Boolean})],Pi.prototype,"indeterminate",void 0),Ui([o({type:Boolean})],Pi.prototype,"disabled",void 0),Ui([r(".ft-checkbox")],Pi.prototype,"container",void 0),Ui([r("ft-ripple")],Pi.prototype,"ripple",void 0),c("ft-checkbox")(Pi);var Ii=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Hi=ut.extend("--ft-radio-text-color",bt.colorOnSurfaceHigh),Wi=ut.external(bt.colorPrimary,"Design system"),Ki=(ut.external(bt.colorOnPrimary,"Design system"),ut.extend("--ft-radio-border-color",bt.colorOnSurfaceMedium)),Vi=ut.external(bt.colorOnSurfaceDisabled,"Design system");class Zi extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Ji extends yt{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return V`
751
750
  <div class="${ti(t)}">
752
751
  <div class="ft-radio--box-container">
753
752
  <input id="radio-button"
@@ -851,7 +850,7 @@ class mi extends Ke{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
851
850
  .ft-radio--disabled .ft-radio--box:after {
852
851
  background-color: ${Vi};
853
852
  }
854
- `,Ii([o()],Ji.prototype,"value",void 0),Ii([o()],Ji.prototype,"name",void 0),Ii([o({type:Boolean})],Ji.prototype,"checked",void 0),Ii([o({type:Boolean})],Ji.prototype,"disabled",void 0),Ii([r(".ft-radio")],Ji.prototype,"container",void 0),Ii([r("ft-ripple")],Ji.prototype,"ripple",void 0),Ii([r("input")],Ji.prototype,"input",void 0);var qi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Xi extends yt{constructor(){super(...arguments),this.name=""}render(){return V`
853
+ `,Ii([o()],Ji.prototype,"value",void 0),Ii([o()],Ji.prototype,"name",void 0),Ii([o({type:Boolean,reflect:!0})],Ji.prototype,"checked",void 0),Ii([o({type:Boolean})],Ji.prototype,"disabled",void 0),Ii([r(".ft-radio")],Ji.prototype,"container",void 0),Ii([r("ft-ripple")],Ji.prototype,"ripple",void 0),Ii([r("input")],Ji.prototype,"input",void 0);var qi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Xi extends yt{constructor(){super(...arguments),this.name=""}render(){return V`
855
854
  <slot @slotchange=${this.onSlotChange}
856
855
  @change=${this.onChange}
857
856
  @keydown=${this.onKeyDown}
@@ -907,6 +906,7 @@ class mi extends Ke{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
907
906
  `}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return V`
908
907
  <ft-checkbox name="${this.id}"
909
908
  part="multivalued-option"
909
+ data-value="${t.value}"
910
910
  .checked=${t.selected}
911
911
  .disabled=${this.disabled}
912
912
  .indeterminate=${Pe(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
@@ -916,12 +916,12 @@ class mi extends Ke{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
916
916
  `}buildMonoValuedOption(t){return V`
917
917
  <ft-radio name="${this.id+Math.round(1e6*Math.random())}"
918
918
  part="monovalued-option"
919
+ data-value="${t.value}"
919
920
  .checked=${t.selected}
920
- ?disabled=${this.disabled}
921
+ .disabled=${this.disabled}
921
922
  @click=${e=>this.optionsChanged(e,t)}
922
923
  @keyup=${e=>this.onRadioKeyUp(e,t)}
923
924
  @change=${t=>t.stopPropagation()}>
924
-
925
925
  ${t.label}
926
926
  </ft-radio>
927
927
  `}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}Qi.elementDefinitions={"ft-button":ji,"ft-ripple":ci,"ft-typography":_e,"ft-checkbox":Pi,"ft-icon":Ei,"ft-radio":Ji},Qi.styles=[x`
@@ -985,8 +985,8 @@ class mi extends Ke{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
985
985
  margin-left: -10px;
986
986
  word-break: break-word;
987
987
  }
988
-
989
- .ft-filter-level--no-values {
988
+
989
+ .ft-filter-level--no-values {
990
990
  margin: 10px 0;
991
991
  color: ${Gi.colorOnSurfaceMedium};
992
992
  }
@@ -1222,7 +1222,6 @@ class mi extends Ke{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
1222
1222
  max-height: 100%;
1223
1223
  max-width: 100%;
1224
1224
  color: ${no.colorOnSurface};
1225
- background: ${no.colorSurface};
1226
1225
  }
1227
1226
 
1228
1227
  .ft-filter--header {
@@ -1275,10 +1274,14 @@ class mi extends Ke{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
1275
1274
  border: 1px solid ${no.colorOutline};
1276
1275
  padding: 4px;
1277
1276
  background-color: ${no.colorSurface};
1278
- color: ${no.colorOnSurfaceMedium};
1277
+ color: ${no.colorOnSurface};
1279
1278
  outline-color: ${no.colorPrimary};
1280
1279
  }
1281
1280
 
1281
+ input::placeholder {
1282
+ color: ${no.colorOnSurfaceMedium};
1283
+ }
1284
+
1282
1285
  .ft-filter--values {
1283
1286
  flex-grow: 1;
1284
1287
  flex-shrink: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-filter",
3
- "version": "0.2.17",
3
+ "version": "0.2.20",
4
4
  "description": "Flat selector for multivalued or monovalued filters",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,15 +19,15 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "^0.2.17",
23
- "@fluid-topics/ft-checkbox": "^0.2.17",
24
- "@fluid-topics/ft-icon": "^0.2.17",
25
- "@fluid-topics/ft-radio": "^0.2.17",
26
- "@fluid-topics/ft-ripple": "^0.2.17",
27
- "@fluid-topics/ft-snap-scroll": "^0.2.17",
28
- "@fluid-topics/ft-typography": "^0.2.17",
29
- "@fluid-topics/ft-wc-utils": "^0.2.17",
22
+ "@fluid-topics/ft-button": "^0.2.20",
23
+ "@fluid-topics/ft-checkbox": "^0.2.20",
24
+ "@fluid-topics/ft-icon": "^0.2.20",
25
+ "@fluid-topics/ft-radio": "^0.2.20",
26
+ "@fluid-topics/ft-ripple": "^0.2.20",
27
+ "@fluid-topics/ft-snap-scroll": "^0.2.20",
28
+ "@fluid-topics/ft-typography": "^0.2.20",
29
+ "@fluid-topics/ft-wc-utils": "^0.2.20",
30
30
  "lit": "2.1.3"
31
31
  },
32
- "gitHead": "7f1e7d4377a6bac24d6d797b342f25166ee44031"
32
+ "gitHead": "12b770753cd907c340153c5f9fed0909ecb1eefc"
33
33
  }