@fluid-topics/ft-file-button 0.3.64 → 0.3.66

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.
@@ -535,8 +535,8 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
535
535
  ${t}
536
536
  </ft-tooltip>
537
537
  `:t}resolveIcon(){return this.loading?e.html`
538
- <ft-loader></ft-loader> `:this.icon?e.html`
539
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Pi.elementDefinitions={"ft-ripple":y,"ft-tooltip":Ci,"ft-typography":mi,"ft-icon":Ri,"ft-loader":Ai},Pi.styles=[i.safariEllipsisFix,Gi],Li([o.property({type:String,reflect:!0})],Pi.prototype,"role",void 0),Li([o.property({type:Boolean})],Pi.prototype,"primary",void 0),Li([o.property({type:Boolean})],Pi.prototype,"outlined",void 0),Li([o.property({type:Boolean})],Pi.prototype,"disabled",void 0),Li([o.property({type:Boolean})],Pi.prototype,"dense",void 0),Li([o.property({type:Boolean})],Pi.prototype,"round",void 0),Li([o.property({type:String})],Pi.prototype,"label",void 0),Li([o.property({type:String})],Pi.prototype,"icon",void 0),Li([o.property({type:String})],Pi.prototype,"iconVariant",void 0),Li([o.property({type:Boolean})],Pi.prototype,"trailingIcon",void 0),Li([o.property({type:Boolean})],Pi.prototype,"loading",void 0),Li([o.property({type:String})],Pi.prototype,"tooltipPosition",void 0),Li([o.property({type:Boolean})],Pi.prototype,"hideTooltip",void 0),Li([o.property({type:Boolean})],Pi.prototype,"forceTooltip",void 0),Li([o.query(".ft-button")],Pi.prototype,"button",void 0),Li([o.query(".ft-button--label slot")],Pi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Pi);const qi=e.css``;var Vi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Xi extends CustomEvent{constructor(t){super("change",{detail:{file:t}})}}class Yi extends i.FtLitElement{constructor(){super(...arguments),this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.accept=""}render(){return e.html`
538
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
539
+ <ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Pi.elementDefinitions={"ft-ripple":y,"ft-tooltip":Ci,"ft-typography":mi,"ft-icon":Ri,"ft-loader":Ai},Pi.styles=[i.safariEllipsisFix,Gi],Li([o.property({type:String,reflect:!0})],Pi.prototype,"role",void 0),Li([o.property({type:Boolean})],Pi.prototype,"primary",void 0),Li([o.property({type:Boolean})],Pi.prototype,"outlined",void 0),Li([o.property({type:Boolean})],Pi.prototype,"disabled",void 0),Li([o.property({type:Boolean})],Pi.prototype,"dense",void 0),Li([o.property({type:Boolean})],Pi.prototype,"round",void 0),Li([o.property({type:String})],Pi.prototype,"label",void 0),Li([o.property({type:String})],Pi.prototype,"icon",void 0),Li([o.property({type:String})],Pi.prototype,"iconVariant",void 0),Li([o.property({type:Boolean})],Pi.prototype,"trailingIcon",void 0),Li([o.property({type:Boolean})],Pi.prototype,"loading",void 0),Li([o.property({type:String})],Pi.prototype,"tooltipPosition",void 0),Li([o.property({type:Boolean})],Pi.prototype,"hideTooltip",void 0),Li([o.property({type:Boolean})],Pi.prototype,"forceTooltip",void 0),Li([o.query(".ft-button")],Pi.prototype,"button",void 0),Li([o.query(".ft-button--label slot")],Pi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Pi);const qi=e.css``;var Vi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Xi extends CustomEvent{constructor(t){super("change",{detail:{file:t}})}}class Yi extends i.FtLitElement{constructor(){super(...arguments),this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.accept=""}render(){return e.html`
540
540
  <div class="ft-file-button">
541
541
  <ft-button ?disabled=${this.disabled}
542
542
  label="${this.label}"
@@ -663,8 +663,8 @@ class $i extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
663
663
  ${t}
664
664
  </ft-tooltip>
665
665
  `:t}resolveIcon(){return this.loading?V`
666
- <ft-loader></ft-loader> `:this.icon?V`
667
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Li.elementDefinitions={"ft-ripple":_t,"ft-tooltip":xi,"ft-typography":hi,"ft-icon":Mi,"ft-loader":wi},Li.styles=[mt,Ai],Ti([o({type:String,reflect:!0})],Li.prototype,"role",void 0),Ti([o({type:Boolean})],Li.prototype,"primary",void 0),Ti([o({type:Boolean})],Li.prototype,"outlined",void 0),Ti([o({type:Boolean})],Li.prototype,"disabled",void 0),Ti([o({type:Boolean})],Li.prototype,"dense",void 0),Ti([o({type:Boolean})],Li.prototype,"round",void 0),Ti([o({type:String})],Li.prototype,"label",void 0),Ti([o({type:String})],Li.prototype,"icon",void 0),Ti([o({type:String})],Li.prototype,"iconVariant",void 0),Ti([o({type:Boolean})],Li.prototype,"trailingIcon",void 0),Ti([o({type:Boolean})],Li.prototype,"loading",void 0),Ti([o({type:String})],Li.prototype,"tooltipPosition",void 0),Ti([o({type:Boolean})],Li.prototype,"hideTooltip",void 0),Ti([o({type:Boolean})],Li.prototype,"forceTooltip",void 0),Ti([s(".ft-button")],Li.prototype,"button",void 0),Ti([s(".ft-button--label slot")],Li.prototype,"slottedContent",void 0),p("ft-button")(Li);const Pi=b``;var _i=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Di extends CustomEvent{constructor(t){super("change",{detail:{file:t}})}}class Wi extends xt{constructor(){super(...arguments),this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.accept=""}render(){return V`
666
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?V`
667
+ <ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Li.elementDefinitions={"ft-ripple":_t,"ft-tooltip":xi,"ft-typography":hi,"ft-icon":Mi,"ft-loader":wi},Li.styles=[mt,Ai],Ti([o({type:String,reflect:!0})],Li.prototype,"role",void 0),Ti([o({type:Boolean})],Li.prototype,"primary",void 0),Ti([o({type:Boolean})],Li.prototype,"outlined",void 0),Ti([o({type:Boolean})],Li.prototype,"disabled",void 0),Ti([o({type:Boolean})],Li.prototype,"dense",void 0),Ti([o({type:Boolean})],Li.prototype,"round",void 0),Ti([o({type:String})],Li.prototype,"label",void 0),Ti([o({type:String})],Li.prototype,"icon",void 0),Ti([o({type:String})],Li.prototype,"iconVariant",void 0),Ti([o({type:Boolean})],Li.prototype,"trailingIcon",void 0),Ti([o({type:Boolean})],Li.prototype,"loading",void 0),Ti([o({type:String})],Li.prototype,"tooltipPosition",void 0),Ti([o({type:Boolean})],Li.prototype,"hideTooltip",void 0),Ti([o({type:Boolean})],Li.prototype,"forceTooltip",void 0),Ti([s(".ft-button")],Li.prototype,"button",void 0),Ti([s(".ft-button--label slot")],Li.prototype,"slottedContent",void 0),p("ft-button")(Li);const Pi=b``;var _i=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Di extends CustomEvent{constructor(t){super("change",{detail:{file:t}})}}class Wi extends xt{constructor(){super(...arguments),this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.accept=""}render(){return V`
668
668
  <div class="ft-file-button">
669
669
  <ft-button ?disabled=${this.disabled}
670
670
  label="${this.label}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-file-button",
3
- "version": "0.3.64",
3
+ "version": "0.3.66",
4
4
  "description": "File",
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-button": "0.3.64",
23
- "@fluid-topics/ft-wc-utils": "0.3.64",
22
+ "@fluid-topics/ft-button": "0.3.66",
23
+ "@fluid-topics/ft-wc-utils": "0.3.66",
24
24
  "lit": "2.2.8"
25
25
  },
26
- "gitHead": "4f42c34c49255250cddf729582cc01c17b334857"
26
+ "gitHead": "cc454945c8f6b47494dc634da0613dabeed53c14"
27
27
  }