@fluid-topics/ft-file-button 0.3.61 → 0.3.63

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.
@@ -513,7 +513,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
513
513
  ${i.setVariable(Bi.size,Zi.iconSize)};
514
514
  ${i.setVariable(Bi.color,"var(--ft-button-internal-color)")};
515
515
  }
516
- `];var Li=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 Pi extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Mi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
516
+ `];var Li=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 Pi extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Mi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
517
517
  <button part="button"
518
518
  class="${n.classMap(t)}"
519
519
  aria-label="${this.getLabel()}"
@@ -536,7 +536,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
536
536
  </ft-tooltip>
537
537
  `:t}resolveIcon(){return this.loading?e.html`
538
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: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`
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`
540
540
  <div class="ft-file-button">
541
541
  <ft-button ?disabled=${this.disabled}
542
542
  label="${this.label}"
@@ -641,7 +641,7 @@ class $i extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
641
641
  ${vt(gi.size,Ui.iconSize)};
642
642
  ${vt(gi.color,"var(--ft-button-internal-color)")};
643
643
  }
644
- `];var Ti=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 Li extends xt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ei.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(V`
644
+ `];var Ti=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 Li extends xt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ei.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(V`
645
645
  <button part="button"
646
646
  class="${Rt(t)}"
647
647
  aria-label="${this.getLabel()}"
@@ -664,7 +664,7 @@ class $i extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
664
664
  </ft-tooltip>
665
665
  `:t}resolveIcon(){return this.loading?V`
666
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: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`
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`
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.61",
3
+ "version": "0.3.63",
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.61",
23
- "@fluid-topics/ft-wc-utils": "0.3.61",
22
+ "@fluid-topics/ft-button": "0.3.63",
23
+ "@fluid-topics/ft-wc-utils": "0.3.63",
24
24
  "lit": "2.2.8"
25
25
  },
26
- "gitHead": "12a4024fb3084b17772a3aef10723d22ae56c877"
26
+ "gitHead": "0f9703a51261fa203c190b1852718e829ae31b7c"
27
27
  }