@fluid-topics/ft-filterable-table 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.
@@ -353,7 +353,8 @@ const H=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
353
353
  :host, i.ft-icon {
354
354
  display: inline-flex;
355
355
  align-items: center;
356
- justify-content: center;
356
+ flex-shrink: 0;
357
+ flex-grow: 0;
357
358
  }
358
359
 
359
360
  :host {
@@ -385,6 +386,7 @@ const H=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
385
386
  font-size: calc(0.9 * ${ve.size});
386
387
  position: relative;
387
388
  top: -5%;
389
+ justify-content: center;
388
390
  }
389
391
 
390
392
  .ft-icon--file-format {
@@ -76,7 +76,7 @@ var ut,vt;class xt extends R{constructor(){super(...arguments),this.renderOption
76
76
  <style>${t}</style>
77
77
  `))}
78
78
  ${this.getTemplate()}
79
- `}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,n,s,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 p=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!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}$t([o()],wt.prototype,"exportpartsPrefix",void 0),$t([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],wt.prototype,"exportpartsPrefixes",void 0);const Ot=y`
79
+ `}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,n,s,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 p=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!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}$t([o()],wt.prototype,"exportpartsPrefix",void 0),$t([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],wt.prototype,"exportpartsPrefixes",void 0),$t([o()],wt.prototype,"customStylesheet",void 0);const Ot=y`
80
80
  .ft-no-text-select {
81
81
  -webkit-touch-callout: none;
82
82
  -webkit-user-select: none;
@@ -466,7 +466,8 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
466
466
  :host, i.ft-icon {
467
467
  display: inline-flex;
468
468
  align-items: center;
469
- justify-content: center;
469
+ flex-shrink: 0;
470
+ flex-grow: 0;
470
471
  }
471
472
 
472
473
  :host {
@@ -498,6 +499,7 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
498
499
  font-size: calc(0.9 * ${yi.size});
499
500
  position: relative;
500
501
  top: -5%;
502
+ justify-content: center;
501
503
  }
502
504
 
503
505
  .ft-icon--file-format {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-filterable-table",
3
- "version": "0.3.51",
3
+ "version": "0.3.53",
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.3.51",
26
- "@fluid-topics/ft-select": "0.3.51",
27
- "@fluid-topics/ft-text-field": "0.3.51",
28
- "@fluid-topics/ft-wc-utils": "0.3.51",
25
+ "@fluid-topics/ft-button": "0.3.53",
26
+ "@fluid-topics/ft-select": "0.3.53",
27
+ "@fluid-topics/ft-text-field": "0.3.53",
28
+ "@fluid-topics/ft-wc-utils": "0.3.53",
29
29
  "lit": "2.2.8"
30
30
  },
31
- "gitHead": "6396591dbb377dbb8b05e6328135168279c99417"
31
+ "gitHead": "cf1f6c836c7bcacfd0a9abbd39a185077341036e"
32
32
  }