@fluid-topics/ft-button 1.0.61 → 1.0.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.
package/build/ft-button.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { ClassInfo } from "lit/directives/class-map.js";
|
|
|
4
4
|
export declare class FtButton extends FtBaseButton implements FtButtonProperties {
|
|
5
5
|
primary: boolean;
|
|
6
6
|
outlined: boolean;
|
|
7
|
-
disabled: boolean;
|
|
8
7
|
dense: boolean;
|
|
9
8
|
round: boolean;
|
|
10
9
|
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
package/build/ft-button.js
CHANGED
|
@@ -13,7 +13,6 @@ class FtButton extends FtBaseButton {
|
|
|
13
13
|
super(...arguments);
|
|
14
14
|
this.primary = false;
|
|
15
15
|
this.outlined = false;
|
|
16
|
-
this.disabled = false;
|
|
17
16
|
this.dense = false;
|
|
18
17
|
this.round = false;
|
|
19
18
|
}
|
|
@@ -43,9 +42,6 @@ __decorate([
|
|
|
43
42
|
__decorate([
|
|
44
43
|
property({ type: Boolean })
|
|
45
44
|
], FtButton.prototype, "outlined", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
property({ type: Boolean })
|
|
48
|
-
], FtButton.prototype, "disabled", void 0);
|
|
49
45
|
__decorate([
|
|
50
46
|
property({ type: Boolean })
|
|
51
47
|
], FtButton.prototype, "dense", void 0);
|
package/build/ft-button.light.js
CHANGED
|
@@ -574,7 +574,7 @@ const Lo=Symbol.for(""),Ko=t=>{if((null==t?void 0:t.r)===Lo)return null==t?void
|
|
|
574
574
|
</ft-tooltip>
|
|
575
575
|
`:t}resolveIcon(){return this.loading?r.html`
|
|
576
576
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?r.html`
|
|
577
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:r.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}}re.elementDefinitions={"ft-ripple":Vt,"ft-tooltip":Jo,"ft-typography":Ho,"ft-icon":te,"ft-loader":oe},ee([e.property({type:String,reflect:!0})],re.prototype,"role",void 0),ee([e.property()],re.prototype,"type",void 0),ee([e.property({type:Boolean})],re.prototype,"disabled",void 0),ee([e.property()],re.prototype,"label",void 0),ee([e.property()],re.prototype,"icon",void 0),ee([e.property()],re.prototype,"iconVariant",void 0),ee([e.property({type:Boolean})],re.prototype,"trailingIcon",void 0),ee([e.property({type:Boolean})],re.prototype,"loading",void 0),ee([e.property()],re.prototype,"tooltipPosition",void 0),ee([e.property({type:Boolean})],re.prototype,"hideTooltip",void 0),ee([e.property({type:Boolean})],re.prototype,"forceTooltip",void 0),ee([e.query(".ft-button")],re.prototype,"button",void 0),ee([e.query(".ft-button--label slot")],re.prototype,"slottedContent",void 0);var ae=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 ie extends re{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.
|
|
577
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:r.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}}re.elementDefinitions={"ft-ripple":Vt,"ft-tooltip":Jo,"ft-typography":Ho,"ft-icon":te,"ft-loader":oe},ee([e.property({type:String,reflect:!0})],re.prototype,"role",void 0),ee([e.property()],re.prototype,"type",void 0),ee([e.property({type:Boolean})],re.prototype,"disabled",void 0),ee([e.property()],re.prototype,"label",void 0),ee([e.property()],re.prototype,"icon",void 0),ee([e.property()],re.prototype,"iconVariant",void 0),ee([e.property({type:Boolean})],re.prototype,"trailingIcon",void 0),ee([e.property({type:Boolean})],re.prototype,"loading",void 0),ee([e.property()],re.prototype,"tooltipPosition",void 0),ee([e.property({type:Boolean})],re.prototype,"hideTooltip",void 0),ee([e.property({type:Boolean})],re.prototype,"forceTooltip",void 0),ee([e.query(".ft-button")],re.prototype,"button",void 0),ee([e.query(".ft-button--label slot")],re.prototype,"slottedContent",void 0);var ae=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 ie extends re{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"}}ie.styles=[o.safariEllipsisFix,Tt],ae([e.property({type:Boolean})],ie.prototype,"primary",void 0),ae([e.property({type:Boolean})],ie.prototype,"outlined",void 0),ae([e.property({type:Boolean})],ie.prototype,"dense",void 0),ae([e.property({type:Boolean})],ie.prototype,"round",void 0);const ne=[r.css`
|
|
578
578
|
:host {
|
|
579
579
|
display: inline-block;
|
|
580
580
|
max-width: 100%;
|
package/build/ft-button.min.js
CHANGED
|
@@ -687,7 +687,7 @@ class Pe extends Se{constructor(t){if(super(t),this.et=q,t.type!==ve)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}}Qe.elementDefinitions={"ft-ripple":$e,"ft-tooltip":je,"ft-typography":Ke,"ft-icon":Je,"ft-loader":qe},Xe([r({type:String,reflect:!0})],Qe.prototype,"role",void 0),Xe([r()],Qe.prototype,"type",void 0),Xe([r({type:Boolean})],Qe.prototype,"disabled",void 0),Xe([r()],Qe.prototype,"label",void 0),Xe([r()],Qe.prototype,"icon",void 0),Xe([r()],Qe.prototype,"iconVariant",void 0),Xe([r({type:Boolean})],Qe.prototype,"trailingIcon",void 0),Xe([r({type:Boolean})],Qe.prototype,"loading",void 0),Xe([r()],Qe.prototype,"tooltipPosition",void 0),Xe([r({type:Boolean})],Qe.prototype,"hideTooltip",void 0),Xe([r({type:Boolean})],Qe.prototype,"forceTooltip",void 0),Xe([n(".ft-button")],Qe.prototype,"button",void 0),Xe([n(".ft-button--label slot")],Qe.prototype,"slottedContent",void 0);var tr=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 or extends Qe{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}}Qe.elementDefinitions={"ft-ripple":$e,"ft-tooltip":je,"ft-typography":Ke,"ft-icon":Je,"ft-loader":qe},Xe([r({type:String,reflect:!0})],Qe.prototype,"role",void 0),Xe([r()],Qe.prototype,"type",void 0),Xe([r({type:Boolean})],Qe.prototype,"disabled",void 0),Xe([r()],Qe.prototype,"label",void 0),Xe([r()],Qe.prototype,"icon",void 0),Xe([r()],Qe.prototype,"iconVariant",void 0),Xe([r({type:Boolean})],Qe.prototype,"trailingIcon",void 0),Xe([r({type:Boolean})],Qe.prototype,"loading",void 0),Xe([r()],Qe.prototype,"tooltipPosition",void 0),Xe([r({type:Boolean})],Qe.prototype,"hideTooltip",void 0),Xe([r({type:Boolean})],Qe.prototype,"forceTooltip",void 0),Xe([n(".ft-button")],Qe.prototype,"button",void 0),Xe([n(".ft-button--label slot")],Qe.prototype,"slottedContent",void 0);var tr=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 or extends Qe{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"}}or.styles=[Wt,xe],tr([r({type:Boolean})],or.prototype,"primary",void 0),tr([r({type:Boolean})],or.prototype,"outlined",void 0),tr([r({type:Boolean})],or.prototype,"dense",void 0),tr([r({type:Boolean})],or.prototype,"round",void 0);const er=[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-button",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.63",
|
|
4
4
|
"description": "A generic Fluid Topics tag",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "1.0.
|
|
23
|
-
"@fluid-topics/ft-loader": "1.0.
|
|
24
|
-
"@fluid-topics/ft-ripple": "1.0.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "1.0.
|
|
26
|
-
"@fluid-topics/ft-typography": "1.0.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.0.63",
|
|
23
|
+
"@fluid-topics/ft-loader": "1.0.63",
|
|
24
|
+
"@fluid-topics/ft-ripple": "1.0.63",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "1.0.63",
|
|
26
|
+
"@fluid-topics/ft-typography": "1.0.63",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.0.63",
|
|
28
28
|
"lit": "2.7.2"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "020d13bf82a28437f4d7a7395ad9b628bc4342f1"
|
|
31
31
|
}
|