@fluid-topics/ft-file-drop 0.3.51 → 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.
@@ -216,7 +216,8 @@ const Q=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===Q)return null==t?void 0:t
216
216
  :host, i.ft-icon {
217
217
  display: inline-flex;
218
218
  align-items: center;
219
- justify-content: center;
219
+ flex-shrink: 0;
220
+ flex-grow: 0;
220
221
  }
221
222
 
222
223
  :host {
@@ -248,6 +249,7 @@ const Q=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===Q)return null==t?void 0:t
248
249
  font-size: calc(0.9 * ${ki.size});
249
250
  position: relative;
250
251
  top: -5%;
252
+ justify-content: center;
251
253
  }
252
254
 
253
255
  .ft-icon--file-format {
@@ -73,7 +73,7 @@ var at,lt;class ct extends k{constructor(){super(...arguments),this.renderOption
73
73
  <style>${t}</style>
74
74
  `))}
75
75
  ${this.getTemplate()}
76
- `}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 i,e,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}ut([o()],yt.prototype,"exportpartsPrefix",void 0),ut([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],yt.prototype,"exportpartsPrefixes",void 0);const vt=u`
76
+ `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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 i,e,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}ut([o()],yt.prototype,"exportpartsPrefix",void 0),ut([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],yt.prototype,"exportpartsPrefixes",void 0),ut([o()],yt.prototype,"customStylesheet",void 0);const vt=u`
77
77
  .ft-no-text-select {
78
78
  -webkit-touch-callout: none;
79
79
  -webkit-user-select: none;
@@ -328,7 +328,8 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
328
328
  :host, i.ft-icon {
329
329
  display: inline-flex;
330
330
  align-items: center;
331
- justify-content: center;
331
+ flex-shrink: 0;
332
+ flex-grow: 0;
332
333
  }
333
334
 
334
335
  :host {
@@ -360,6 +361,7 @@ class se extends St{constructor(t){if(super(t),this.it=Z,t.type!==$t)throw Error
360
361
  font-size: calc(0.9 * ${he.size});
361
362
  position: relative;
362
363
  top: -5%;
364
+ justify-content: center;
363
365
  }
364
366
 
365
367
  .ft-icon--file-format {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-file-drop",
3
- "version": "0.3.51",
3
+ "version": "0.3.52",
4
4
  "description": "Container that accepts dropping files",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-chip": "0.3.51",
23
- "@fluid-topics/ft-wc-utils": "0.3.51",
22
+ "@fluid-topics/ft-chip": "0.3.52",
23
+ "@fluid-topics/ft-wc-utils": "0.3.52",
24
24
  "lit": "2.2.8"
25
25
  },
26
- "gitHead": "6396591dbb377dbb8b05e6328135168279c99417"
26
+ "gitHead": "746cdd6b34c2fa25220ed735914fb1dff9c0fde7"
27
27
  }