@fluid-topics/ft-filter 0.3.51 → 0.3.53

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.
@@ -348,7 +348,8 @@ const V=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
348
348
  :host, i.ft-icon {
349
349
  display: inline-flex;
350
350
  align-items: center;
351
- justify-content: center;
351
+ flex-shrink: 0;
352
+ flex-grow: 0;
352
353
  }
353
354
 
354
355
  :host {
@@ -380,6 +381,7 @@ const V=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
380
381
  font-size: calc(0.9 * ${Ni.size});
381
382
  position: relative;
382
383
  top: -5%;
384
+ justify-content: center;
383
385
  }
384
386
 
385
387
  .ft-icon--file-format {
@@ -82,7 +82,7 @@ var ft,ut;class vt extends z{constructor(){super(...arguments),this.renderOption
82
82
  <style>${t}</style>
83
83
  `))}
84
84
  ${this.getTemplate()}
85
- `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,r,n;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!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];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(", "))}}mt([o()],$t.prototype,"exportpartsPrefix",void 0),mt([p([])],$t.prototype,"exportpartsPrefixes",void 0);const wt=y`
85
+ `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,r,n;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!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];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(", "))}}mt([o()],$t.prototype,"exportpartsPrefix",void 0),mt([p([])],$t.prototype,"exportpartsPrefixes",void 0),mt([o()],$t.prototype,"customStylesheet",void 0);const wt=y`
86
86
  .ft-no-text-select {
87
87
  -webkit-touch-callout: none;
88
88
  -webkit-user-select: none;
@@ -467,7 +467,8 @@ class Ni extends qe{constructor(t){if(super(t),this.it=Y,t.type!==Ze)throw Error
467
467
  :host, i.ft-icon {
468
468
  display: inline-flex;
469
469
  align-items: center;
470
- justify-content: center;
470
+ flex-shrink: 0;
471
+ flex-grow: 0;
471
472
  }
472
473
 
473
474
  :host {
@@ -499,6 +500,7 @@ class Ni extends qe{constructor(t){if(super(t),this.it=Y,t.type!==Ze)throw Error
499
500
  font-size: calc(0.9 * ${Bi.size});
500
501
  position: relative;
501
502
  top: -5%;
503
+ justify-content: center;
502
504
  }
503
505
 
504
506
  .ft-icon--file-format {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-filter",
3
- "version": "0.3.51",
3
+ "version": "0.3.53",
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.3.51",
23
- "@fluid-topics/ft-checkbox": "0.3.51",
24
- "@fluid-topics/ft-icon": "0.3.51",
25
- "@fluid-topics/ft-radio": "0.3.51",
26
- "@fluid-topics/ft-ripple": "0.3.51",
27
- "@fluid-topics/ft-snap-scroll": "0.3.51",
28
- "@fluid-topics/ft-typography": "0.3.51",
29
- "@fluid-topics/ft-wc-utils": "0.3.51",
22
+ "@fluid-topics/ft-button": "0.3.53",
23
+ "@fluid-topics/ft-checkbox": "0.3.53",
24
+ "@fluid-topics/ft-icon": "0.3.53",
25
+ "@fluid-topics/ft-radio": "0.3.53",
26
+ "@fluid-topics/ft-ripple": "0.3.53",
27
+ "@fluid-topics/ft-snap-scroll": "0.3.53",
28
+ "@fluid-topics/ft-typography": "0.3.53",
29
+ "@fluid-topics/ft-wc-utils": "0.3.53",
30
30
  "lit": "2.2.8"
31
31
  },
32
- "gitHead": "6396591dbb377dbb8b05e6328135168279c99417"
32
+ "gitHead": "cf1f6c836c7bcacfd0a9abbd39a185077341036e"
33
33
  }