@fluid-topics/ft-filter 0.3.50 → 0.3.52

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 {
@@ -535,6 +537,7 @@ const V=Symbol.for(""),H=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t
535
537
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
536
538
  <ft-typography part="label"
537
539
  variant="button"
540
+ element="span"
538
541
  class="ft-button--label"
539
542
  ?hidden=${!this.hasTextContent()}>
540
543
  <slot @slotchange=${this.onSlotchange}></slot>
@@ -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 {
@@ -654,6 +656,7 @@ class Ni extends qe{constructor(t){if(super(t),this.it=Y,t.type!==Ze)throw Error
654
656
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
655
657
  <ft-typography part="label"
656
658
  variant="button"
659
+ element="span"
657
660
  class="ft-button--label"
658
661
  ?hidden=${!this.hasTextContent()}>
659
662
  <slot @slotchange=${this.onSlotchange}></slot>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-filter",
3
- "version": "0.3.50",
3
+ "version": "0.3.52",
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.50",
23
- "@fluid-topics/ft-checkbox": "0.3.50",
24
- "@fluid-topics/ft-icon": "0.3.50",
25
- "@fluid-topics/ft-radio": "0.3.50",
26
- "@fluid-topics/ft-ripple": "0.3.50",
27
- "@fluid-topics/ft-snap-scroll": "0.3.50",
28
- "@fluid-topics/ft-typography": "0.3.50",
29
- "@fluid-topics/ft-wc-utils": "0.3.50",
22
+ "@fluid-topics/ft-button": "0.3.52",
23
+ "@fluid-topics/ft-checkbox": "0.3.52",
24
+ "@fluid-topics/ft-icon": "0.3.52",
25
+ "@fluid-topics/ft-radio": "0.3.52",
26
+ "@fluid-topics/ft-ripple": "0.3.52",
27
+ "@fluid-topics/ft-snap-scroll": "0.3.52",
28
+ "@fluid-topics/ft-typography": "0.3.52",
29
+ "@fluid-topics/ft-wc-utils": "0.3.52",
30
30
  "lit": "2.2.8"
31
31
  },
32
- "gitHead": "ed73266ceb5360df2eefd4cbb314c1b9b2e811dc"
32
+ "gitHead": "746cdd6b34c2fa25220ed735914fb1dff9c0fde7"
33
33
  }