@fluid-topics/ft-file-button 1.0.61 → 1.0.62
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.
|
@@ -574,7 +574,7 @@ const zo=Symbol.for(""),Fo=t=>{if((null==t?void 0:t.r)===zo)return null==t?void
|
|
|
574
574
|
</ft-tooltip>
|
|
575
575
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
576
576
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
577
|
-
<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}}ne.elementDefinitions={"ft-ripple":Jt,"ft-tooltip":oe,"ft-typography":jo,"ft-icon":re,"ft-loader":ae},ie([r.property({type:String,reflect:!0})],ne.prototype,"role",void 0),ie([r.property()],ne.prototype,"type",void 0),ie([r.property({type:Boolean})],ne.prototype,"disabled",void 0),ie([r.property()],ne.prototype,"label",void 0),ie([r.property()],ne.prototype,"icon",void 0),ie([r.property()],ne.prototype,"iconVariant",void 0),ie([r.property({type:Boolean})],ne.prototype,"trailingIcon",void 0),ie([r.property({type:Boolean})],ne.prototype,"loading",void 0),ie([r.property()],ne.prototype,"tooltipPosition",void 0),ie([r.property({type:Boolean})],ne.prototype,"hideTooltip",void 0),ie([r.property({type:Boolean})],ne.prototype,"forceTooltip",void 0),ie([r.query(".ft-button")],ne.prototype,"button",void 0),ie([r.query(".ft-button--label slot")],ne.prototype,"slottedContent",void 0);var le=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class ce extends ne{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.
|
|
577
|
+
<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}}ne.elementDefinitions={"ft-ripple":Jt,"ft-tooltip":oe,"ft-typography":jo,"ft-icon":re,"ft-loader":ae},ie([r.property({type:String,reflect:!0})],ne.prototype,"role",void 0),ie([r.property()],ne.prototype,"type",void 0),ie([r.property({type:Boolean})],ne.prototype,"disabled",void 0),ie([r.property()],ne.prototype,"label",void 0),ie([r.property()],ne.prototype,"icon",void 0),ie([r.property()],ne.prototype,"iconVariant",void 0),ie([r.property({type:Boolean})],ne.prototype,"trailingIcon",void 0),ie([r.property({type:Boolean})],ne.prototype,"loading",void 0),ie([r.property()],ne.prototype,"tooltipPosition",void 0),ie([r.property({type:Boolean})],ne.prototype,"hideTooltip",void 0),ie([r.property({type:Boolean})],ne.prototype,"forceTooltip",void 0),ie([r.query(".ft-button")],ne.prototype,"button",void 0),ie([r.query(".ft-button--label slot")],ne.prototype,"slottedContent",void 0);var le=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class ce extends ne{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}ce.styles=[o.safariEllipsisFix,Vt],le([r.property({type:Boolean})],ce.prototype,"primary",void 0),le([r.property({type:Boolean})],ce.prototype,"outlined",void 0),le([r.property({type:Boolean})],ce.prototype,"dense",void 0),le([r.property({type:Boolean})],ce.prototype,"round",void 0);const pe=[e.css`
|
|
578
578
|
:host {
|
|
579
579
|
display: inline-block;
|
|
580
580
|
max-width: 100%;
|
|
@@ -687,7 +687,7 @@ class _e extends $e{constructor(t){if(super(t),this.et=q,t.type!==we)throw Error
|
|
|
687
687
|
</ft-tooltip>
|
|
688
688
|
`:t}resolveIcon(){return this.loading?V`
|
|
689
689
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?V`
|
|
690
|
-
<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}}er.elementDefinitions={"ft-ripple":Ue,"ft-tooltip":Ge,"ft-typography":ze,"ft-icon":Qe,"ft-loader":tr},or([r({type:String,reflect:!0})],er.prototype,"role",void 0),or([r()],er.prototype,"type",void 0),or([r({type:Boolean})],er.prototype,"disabled",void 0),or([r()],er.prototype,"label",void 0),or([r()],er.prototype,"icon",void 0),or([r()],er.prototype,"iconVariant",void 0),or([r({type:Boolean})],er.prototype,"trailingIcon",void 0),or([r({type:Boolean})],er.prototype,"loading",void 0),or([r()],er.prototype,"tooltipPosition",void 0),or([r({type:Boolean})],er.prototype,"hideTooltip",void 0),or([r({type:Boolean})],er.prototype,"forceTooltip",void 0),or([n(".ft-button")],er.prototype,"button",void 0),or([n(".ft-button--label slot")],er.prototype,"slottedContent",void 0);var rr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ir extends er{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.
|
|
690
|
+
<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}}er.elementDefinitions={"ft-ripple":Ue,"ft-tooltip":Ge,"ft-typography":ze,"ft-icon":Qe,"ft-loader":tr},or([r({type:String,reflect:!0})],er.prototype,"role",void 0),or([r()],er.prototype,"type",void 0),or([r({type:Boolean})],er.prototype,"disabled",void 0),or([r()],er.prototype,"label",void 0),or([r()],er.prototype,"icon",void 0),or([r()],er.prototype,"iconVariant",void 0),or([r({type:Boolean})],er.prototype,"trailingIcon",void 0),or([r({type:Boolean})],er.prototype,"loading",void 0),or([r()],er.prototype,"tooltipPosition",void 0),or([r({type:Boolean})],er.prototype,"hideTooltip",void 0),or([r({type:Boolean})],er.prototype,"forceTooltip",void 0),or([n(".ft-button")],er.prototype,"button",void 0),or([n(".ft-button--label slot")],er.prototype,"slottedContent",void 0);var rr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ir extends er{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}ir.styles=[Wt,Ne],rr([r({type:Boolean})],ir.prototype,"primary",void 0),rr([r({type:Boolean})],ir.prototype,"outlined",void 0),rr([r({type:Boolean})],ir.prototype,"dense",void 0),rr([r({type:Boolean})],ir.prototype,"round",void 0);const ar=[b`
|
|
691
691
|
:host {
|
|
692
692
|
display: inline-block;
|
|
693
693
|
max-width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-file-button",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.62",
|
|
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": "1.0.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-button": "1.0.62",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.0.62",
|
|
24
24
|
"lit": "2.7.2"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "44e9005773fe47b2e6a9ada16802918052a146cf"
|
|
27
27
|
}
|