@fluid-topics/ft-button 0.3.67 → 0.3.69
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.css.d.ts +4 -0
- package/build/ft-button.css.js +31 -16
- package/build/ft-button.light.js +65 -54
- package/build/ft-button.min.js +66 -55
- package/package.json +8 -8
package/build/ft-button.css.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const FtButtonCssVariables: {
|
|
|
7
7
|
rippleColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
8
8
|
verticalPadding: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
9
9
|
horizontalPadding: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
10
|
+
iconPadding: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
10
11
|
opacityDisabled: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
11
12
|
};
|
|
12
13
|
export declare const FtButtonPrimaryCssVariables: {
|
|
@@ -16,6 +17,9 @@ export declare const FtButtonPrimaryCssVariables: {
|
|
|
16
17
|
};
|
|
17
18
|
export declare const FtButtonDenseCssVariables: {
|
|
18
19
|
borderRadius: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
20
|
+
verticalPadding: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
21
|
+
horizontalPadding: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
22
|
+
iconPadding: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
19
23
|
};
|
|
20
24
|
export declare const styles: import("lit").CSSResult[];
|
|
21
25
|
//# sourceMappingURL=ft-button.css.d.ts.map
|
package/build/ft-button.css.js
CHANGED
|
@@ -14,6 +14,7 @@ export const FtButtonCssVariables = {
|
|
|
14
14
|
rippleColor: FtCssVariableFactory.extend("--ft-button-ripple-color", buttonColor),
|
|
15
15
|
verticalPadding: FtCssVariableFactory.create("--ft-button-vertical-padding", "SIZE", "6px"),
|
|
16
16
|
horizontalPadding: FtCssVariableFactory.create("--ft-button-horizontal-padding", "SIZE", "8px"),
|
|
17
|
+
iconPadding: FtCssVariableFactory.create("--ft-button-icon-padding", "SIZE", "8px"),
|
|
17
18
|
opacityDisabled: FtCssVariableFactory.external(designSystemVariables.colorOpacityDisabled, "Design system")
|
|
18
19
|
};
|
|
19
20
|
const buttonPrimaryColor = FtCssVariableFactory.extend("--ft-button-primary-color", FtCssVariableFactory.extend("--ft-button-color", designSystemVariables.colorOnPrimary));
|
|
@@ -24,6 +25,9 @@ export const FtButtonPrimaryCssVariables = {
|
|
|
24
25
|
};
|
|
25
26
|
export const FtButtonDenseCssVariables = {
|
|
26
27
|
borderRadius: FtCssVariableFactory.extend("--ft-button-dense-border-radius", FtCssVariableFactory.extend("--ft-button-border-radius", designSystemVariables.borderRadiusM)),
|
|
28
|
+
verticalPadding: FtCssVariableFactory.create("--ft-button-dense-vertical-padding", "SIZE", "2px"),
|
|
29
|
+
horizontalPadding: FtCssVariableFactory.create("--ft-button-dense-horizontal-padding", "SIZE", "4px"),
|
|
30
|
+
iconPadding: FtCssVariableFactory.create("--ft-button-dense-icon-padding", "SIZE", "4px"),
|
|
27
31
|
};
|
|
28
32
|
//language=css
|
|
29
33
|
export const styles = [
|
|
@@ -67,12 +71,11 @@ export const styles = [
|
|
|
67
71
|
box-sizing: border-box;
|
|
68
72
|
border: none;
|
|
69
73
|
pointer-events: auto;
|
|
74
|
+
gap: ${FtButtonCssVariables.iconPadding};
|
|
70
75
|
|
|
71
76
|
--ft-button-internal-line-height: calc(${FtButtonCssVariables.fontSize} + 2px);
|
|
72
77
|
--ft-button-internal-color: ${FtButtonCssVariables.color};
|
|
73
78
|
${setVariable(FtIconCssVariables.size, FtButtonCssVariables.iconSize)};
|
|
74
|
-
--ft-button-internal-vertical-padding: 6px;
|
|
75
|
-
--ft-button-internal-horizontal-padding: 8px;
|
|
76
79
|
${setVariable(FtRippleCssVariables.color, FtButtonCssVariables.rippleColor)};
|
|
77
80
|
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${FtButtonCssVariables.iconSize});
|
|
78
81
|
|
|
@@ -83,18 +86,31 @@ export const styles = [
|
|
|
83
86
|
-webkit-mask-image: radial-gradient(white, black);
|
|
84
87
|
}
|
|
85
88
|
|
|
89
|
+
.ft-button.ft-button--outlined {
|
|
90
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
91
|
+
padding: calc(${FtButtonCssVariables.verticalPadding} - 1px) calc(${FtButtonCssVariables.horizontalPadding} - 1px);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ft-button.ft-button--dense {
|
|
95
|
+
padding: ${FtButtonDenseCssVariables.verticalPadding} ${FtButtonDenseCssVariables.horizontalPadding};
|
|
96
|
+
border-radius: ${FtButtonDenseCssVariables.borderRadius};
|
|
97
|
+
gap: ${FtButtonDenseCssVariables.iconPadding};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ft-button.ft-button--dense.ft-button--outlined {
|
|
101
|
+
padding: calc(${FtButtonDenseCssVariables.verticalPadding} - 1px) calc(${FtButtonDenseCssVariables.horizontalPadding} - 1px);
|
|
102
|
+
}
|
|
103
|
+
|
|
86
104
|
.ft-button:not([disabled]):hover {
|
|
87
105
|
cursor: pointer;
|
|
88
106
|
}
|
|
89
107
|
|
|
90
|
-
.ft-button--
|
|
91
|
-
--ft-button-internal-
|
|
92
|
-
--ft-button-internal-horizontal-padding: 4px;
|
|
93
|
-
border-radius: ${FtButtonDenseCssVariables.borderRadius};
|
|
108
|
+
.ft-button--round {
|
|
109
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${FtButtonCssVariables.verticalPadding});
|
|
94
110
|
}
|
|
95
111
|
|
|
96
|
-
.ft-button--round {
|
|
97
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 +
|
|
112
|
+
.ft-button--round.ft-button--dense {
|
|
113
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${FtButtonDenseCssVariables.verticalPadding});
|
|
98
114
|
}
|
|
99
115
|
|
|
100
116
|
.ft-button[disabled] {
|
|
@@ -108,11 +124,6 @@ export const styles = [
|
|
|
108
124
|
${setVariable(FtRippleCssVariables.color, FtButtonPrimaryCssVariables.rippleColor)};
|
|
109
125
|
}
|
|
110
126
|
|
|
111
|
-
.ft-button.ft-button--outlined {
|
|
112
|
-
border: 1px solid var(--ft-button-internal-color);
|
|
113
|
-
padding: calc(${FtButtonCssVariables.verticalPadding} - 1px) calc(${FtButtonCssVariables.horizontalPadding} - 1px);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
127
|
.ft-button:focus {
|
|
117
128
|
outline: none;
|
|
118
129
|
}
|
|
@@ -123,7 +134,6 @@ export const styles = [
|
|
|
123
134
|
white-space: nowrap;
|
|
124
135
|
text-overflow: ellipsis;
|
|
125
136
|
display: block;
|
|
126
|
-
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
127
137
|
${setVariable(FtTypographyButtonCssVariables.fontSize, "1em")};
|
|
128
138
|
${setVariable(FtTypographyButtonCssVariables.lineHeight, "var(--ft-button-internal-content-height)")};
|
|
129
139
|
}
|
|
@@ -138,8 +148,13 @@ export const styles = [
|
|
|
138
148
|
}
|
|
139
149
|
|
|
140
150
|
.ft-button--label[hidden] + ft-icon {
|
|
141
|
-
margin: 0 calc(
|
|
142
|
-
padding: 0
|
|
151
|
+
margin: 0 calc(${FtButtonCssVariables.horizontalPadding} * -1);
|
|
152
|
+
padding: 0 ${FtButtonCssVariables.verticalPadding};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
156
|
+
margin: 0 calc(${FtButtonDenseCssVariables.horizontalPadding} * -1);
|
|
157
|
+
padding: 0 ${FtButtonDenseCssVariables.verticalPadding};
|
|
143
158
|
}
|
|
144
159
|
|
|
145
160
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
package/build/ft-button.light.js
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
opacity: ${l.opacityContentOnSurfacePressed};
|
|
88
88
|
transform: translate(-50%, -50%) scale(1);
|
|
89
89
|
}
|
|
90
|
-
`;var x,
|
|
90
|
+
`;var x,g=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 y extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
91
91
|
<style>
|
|
92
92
|
.ft-ripple .ft-ripple--effect,
|
|
93
93
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -104,13 +104,13 @@
|
|
|
104
104
|
<div class="ft-ripple--background"></div>
|
|
105
105
|
<div class="ft-ripple--effect"></div>
|
|
106
106
|
</div>
|
|
107
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}g.elementDefinitions={},g.styles=u,y([o.property({type:Boolean})],g.prototype,"primary",void 0),y([o.property({type:Boolean})],g.prototype,"secondary",void 0),y([o.property({type:Boolean})],g.prototype,"unbounded",void 0),y([o.property({type:Boolean})],g.prototype,"activated",void 0),y([o.property({type:Boolean})],g.prototype,"selected",void 0),y([o.property({type:Boolean})],g.prototype,"disabled",void 0),y([o.state()],g.prototype,"hovered",void 0),y([o.state()],g.prototype,"focused",void 0),y([o.state()],g.prototype,"pressed",void 0),y([o.state()],g.prototype,"rippling",void 0),y([o.state()],g.prototype,"rippleSize",void 0),y([o.state()],g.prototype,"originX",void 0),y([o.state()],g.prototype,"originY",void 0),y([o.query(".ft-ripple")],g.prototype,"ripple",void 0),y([o.query(".ft-ripple--effect")],g.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(g);const b=window,v=b.trustedTypes,m=v?v.createPolicy("lit-html",{createHTML:t=>t}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,w="?"+$,k=`<${w}>`,z=document,S=(t="")=>z.createComment(t),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,I=/>/g,E=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),A=/'/g,B=/"/g,T=/^(?:script|style|textarea|title)$/i,_=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),F=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),U=new WeakMap,R=z.createTreeWalker(z,129,null,!1),Z=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=j;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===j?"!--"===a[1]?r=C:void 0!==a[1]?r=I:void 0!==a[2]?(T.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=E):void 0!==a[3]&&(r=E):r===E?">"===a[0]?(r=null!=n?n:j,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?E:'"'===a[3]?B:A):r===B||r===A?r=E:r===C||r===I?r=j:(r=E,n=void 0);const f=r===E&&t[i+1].startsWith("/>")?" ":"";s+=r===j?e+k:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+$+f):e+$+(-2===p?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(l):l,o]};class W{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=Z(t,i);if(this.el=W.createElement(a,e),R.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=R.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith($)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split($),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?L:"?"===i[1]?q:"@"===i[1]?V:G})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(T.test(o.tagName)){const t=o.textContent.split($),i=t.length-1;if(i>0){o.textContent=v?v.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],S()),R.nextNode(),l.push({type:2,index:++n});o.append(t[i],S())}}}else if(8===o.nodeType)if(o.data===w)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf($,t+1));)l.push({type:7,index:n}),t+=$.length-1}n++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function D(t,i,e=t,o){var n,s,r,l;if(i===F)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=N(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=D(t,a._$AS(t,i.values),a,o)),i}class H{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);R.currentNode=n;let s=R.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new K(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new X(s,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=R.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class K{constructor(t,i,e,o){var n;this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=D(this,t,i),N(t)?t===M||null==t||""===t?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==F&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>O(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==M&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=W.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new H(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=U.get(t.strings);return void 0===i&&U.set(t.strings,i=new W(t)),i}k(t){O(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new K(this.O(S()),this.O(S()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,n){this.type=1,this._$AH=M,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=D(this,t,i,0),s=!N(t)||t!==this._$AH&&t!==F,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=D(this,o[e+r],i,r),l===F&&(l=this._$AH[r]),s||(s=!N(l)||l!==this._$AH[r]),l===M?t=M:t!==M&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class L extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}}const P=v?v.emptyScript:"";class q extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==M?this.element.setAttribute(this.name,P):this.element.removeAttribute(this.name)}}class V extends G{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=D(this,t,i,0))&&void 0!==e?e:M)===F)return;const o=this._$AH,n=t===M&&o!==M||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==M&&(o===M||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}}const Y=b.litHtmlPolyfillSupport;null==Y||Y(W,K),(null!==(x=b.litHtmlVersions)&&void 0!==x?x:b.litHtmlVersions=[]).push("2.4.0");
|
|
107
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}y.elementDefinitions={},y.styles=u,g([o.property({type:Boolean})],y.prototype,"primary",void 0),g([o.property({type:Boolean})],y.prototype,"secondary",void 0),g([o.property({type:Boolean})],y.prototype,"unbounded",void 0),g([o.property({type:Boolean})],y.prototype,"activated",void 0),g([o.property({type:Boolean})],y.prototype,"selected",void 0),g([o.property({type:Boolean})],y.prototype,"disabled",void 0),g([o.state()],y.prototype,"hovered",void 0),g([o.state()],y.prototype,"focused",void 0),g([o.state()],y.prototype,"pressed",void 0),g([o.state()],y.prototype,"rippling",void 0),g([o.state()],y.prototype,"rippleSize",void 0),g([o.state()],y.prototype,"originX",void 0),g([o.state()],y.prototype,"originY",void 0),g([o.query(".ft-ripple")],y.prototype,"ripple",void 0),g([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const b=window,v=b.trustedTypes,m=v?v.createPolicy("lit-html",{createHTML:t=>t}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,w="?"+$,k=`<${w}>`,z=document,S=(t="")=>z.createComment(t),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,I=/>/g,E=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),A=/'/g,B=/"/g,T=/^(?:script|style|textarea|title)$/i,_=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),F=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),M=new WeakMap,U=z.createTreeWalker(z,129,null,!1),R=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=j;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===j?"!--"===a[1]?r=C:void 0!==a[1]?r=I:void 0!==a[2]?(T.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=E):void 0!==a[3]&&(r=E):r===E?">"===a[0]?(r=null!=n?n:j,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?E:'"'===a[3]?B:A):r===B||r===A?r=E:r===C||r===I?r=j:(r=E,n=void 0);const f=r===E&&t[i+1].startsWith("/>")?" ":"";s+=r===j?e+k:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+$+f):e+$+(-2===p?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(l):l,o]};class P{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=R(t,i);if(this.el=P.createElement(a,e),U.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=U.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith($)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split($),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?G:"?"===i[1]?q:"@"===i[1]?V:K})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(T.test(o.tagName)){const t=o.textContent.split($),i=t.length-1;if(i>0){o.textContent=v?v.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],S()),U.nextNode(),l.push({type:2,index:++n});o.append(t[i],S())}}}else if(8===o.nodeType)if(o.data===w)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf($,t+1));)l.push({type:7,index:n}),t+=$.length-1}n++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function W(t,i,e=t,o){var n,s,r,l;if(i===F)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=N(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=W(t,a._$AS(t,i.values),a,o)),i}class D{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);U.currentNode=n;let s=U.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new H(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new X(s,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=U.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class H{constructor(t,i,e,o){var n;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=W(this,t,i),N(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==F&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>O(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Z&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=P.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new D(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=M.get(t.strings);return void 0===i&&M.set(t.strings,i=new P(t)),i}k(t){O(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new H(this.O(S()),this.O(S()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class K{constructor(t,i,e,o,n){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=W(this,t,i,0),s=!N(t)||t!==this._$AH&&t!==F,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=W(this,o[e+r],i,r),l===F&&(l=this._$AH[r]),s||(s=!N(l)||l!==this._$AH[r]),l===Z?t=Z:t!==Z&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends K{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}const L=v?v.emptyScript:"";class q extends K{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Z?this.element.setAttribute(this.name,L):this.element.removeAttribute(this.name)}}class V extends K{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=W(this,t,i,0))&&void 0!==e?e:Z)===F)return;const o=this._$AH,n=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==Z&&(o===Z||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){W(this,t)}}const Y=b.litHtmlPolyfillSupport;null==Y||Y(P,H),(null!==(x=b.litHtmlVersions)&&void 0!==x?x:b.litHtmlVersions=[]).push("2.4.0");
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright 2020 Google LLC
|
|
111
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
112
|
*/
|
|
113
|
-
const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},tt=t=>({_$litStatic$:t,r:J}),it=new Map,et=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=Q(s));)a+=n+i[++p],h=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=it.get(t))&&(r.raw=r,it.set(t,i=r)),e=l}return t(i,...e)})(_);var ot;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ot||(ot={}));const nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),rt={fontFamily:st,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",nt),at=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",rt.fontSize,"20px"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",rt.fontWeight,"normal"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",rt.letterSpacing,"0.15px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",rt.lineHeight,"1.2"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",rt.textTransform,"inherit"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",nt),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",rt.fontSize,"14px"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",rt.fontWeight,"normal"),
|
|
113
|
+
const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},tt=t=>({_$litStatic$:t,r:J}),it=new Map,et=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=Q(s));)a+=n+i[++p],h=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=it.get(t))&&(r.raw=r,it.set(t,i=r)),e=l}return t(i,...e)})(_);var ot;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ot||(ot={}));const nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),rt={fontFamily:st,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",nt),at=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",rt.fontSize,"20px"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",rt.fontWeight,"normal"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",rt.letterSpacing,"0.15px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",rt.lineHeight,"1.2"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",rt.textTransform,"inherit"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",nt),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",rt.fontSize,"14px"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",rt.fontWeight,"normal"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",rt.letterSpacing,"0.105px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",rt.lineHeight,"1.7"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",rt.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",st),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",rt.fontSize,"16px"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",rt.fontWeight,"600"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",rt.letterSpacing,"0.144px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",rt.lineHeight,"1.5"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",rt.textTransform,"inherit"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",st),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",rt.fontSize,"14px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",rt.fontWeight,"normal"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",rt.letterSpacing,"0.098px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",rt.lineHeight,"1.7"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",rt.textTransform,"inherit"),Et=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",st),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",rt.fontSize,"16px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",rt.fontWeight,"normal"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",rt.letterSpacing,"0.496px"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",rt.lineHeight,"1.5"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",rt.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",st),Mt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",rt.fontSize,"14px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",rt.fontWeight,"normal"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",rt.letterSpacing,"0.252px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",rt.lineHeight,"1.4"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",rt.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",st),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",rt.fontSize,"12px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",rt.fontWeight,"normal"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",rt.letterSpacing,"0.396px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",rt.lineHeight,"1.33"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",rt.textTransform,"inherit"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",st),Xt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",rt.fontSize,"10px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",rt.fontWeight,"normal"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",rt.letterSpacing,"0.33px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",rt.lineHeight,"1.6"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",rt.textTransform,"inherit"),ii=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",st),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",rt.fontSize,"10px"),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",rt.fontWeight,"normal"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",rt.letterSpacing,"1.5px"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",rt.lineHeight,"1.6"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",rt.textTransform,"uppercase"),li={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",st),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",rt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",rt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",rt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",rt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",rt.textTransform,"uppercase")},ai=e.css`
|
|
114
114
|
.ft-typography--title {
|
|
115
115
|
font-family: ${lt};
|
|
116
116
|
font-size: ${at};
|
|
@@ -124,8 +124,8 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
124
124
|
font-family: ${ct};
|
|
125
125
|
font-size: ${ut};
|
|
126
126
|
font-weight: ${xt};
|
|
127
|
-
letter-spacing: ${
|
|
128
|
-
line-height: ${
|
|
127
|
+
letter-spacing: ${gt};
|
|
128
|
+
line-height: ${yt};
|
|
129
129
|
text-transform: ${bt};
|
|
130
130
|
}
|
|
131
131
|
`,hi=e.css`
|
|
@@ -158,20 +158,20 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
158
158
|
}
|
|
159
159
|
`,ci=e.css`
|
|
160
160
|
.ft-typography--body2 {
|
|
161
|
-
font-family: ${
|
|
162
|
-
font-size: ${
|
|
163
|
-
font-weight: ${
|
|
164
|
-
letter-spacing: ${
|
|
165
|
-
line-height: ${
|
|
166
|
-
text-transform: ${
|
|
161
|
+
font-family: ${Zt};
|
|
162
|
+
font-size: ${Mt};
|
|
163
|
+
font-weight: ${Ut};
|
|
164
|
+
letter-spacing: ${Rt};
|
|
165
|
+
line-height: ${Pt};
|
|
166
|
+
text-transform: ${Wt};
|
|
167
167
|
}
|
|
168
168
|
`,ui=e.css`
|
|
169
169
|
.ft-typography--caption {
|
|
170
|
-
font-family: ${
|
|
171
|
-
font-size: ${
|
|
172
|
-
font-weight: ${
|
|
173
|
-
letter-spacing: ${
|
|
174
|
-
line-height: ${
|
|
170
|
+
font-family: ${Dt};
|
|
171
|
+
font-size: ${Ht};
|
|
172
|
+
font-weight: ${Kt};
|
|
173
|
+
letter-spacing: ${Gt};
|
|
174
|
+
line-height: ${Lt};
|
|
175
175
|
text-transform: ${qt};
|
|
176
176
|
}
|
|
177
177
|
`,xi=e.css`
|
|
@@ -183,7 +183,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
183
183
|
line-height: ${Qt};
|
|
184
184
|
text-transform: ${ti};
|
|
185
185
|
}
|
|
186
|
-
`,
|
|
186
|
+
`,gi=e.css`
|
|
187
187
|
.ft-typography--overline {
|
|
188
188
|
font-family: ${ii};
|
|
189
189
|
font-size: ${ei};
|
|
@@ -192,7 +192,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
192
192
|
line-height: ${si};
|
|
193
193
|
text-transform: ${ri};
|
|
194
194
|
}
|
|
195
|
-
`,
|
|
195
|
+
`,yi=e.css`
|
|
196
196
|
.ft-typography--button {
|
|
197
197
|
font-family: ${li.fontFamily};
|
|
198
198
|
font-size: ${li.fontSize};
|
|
@@ -212,7 +212,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
212
212
|
</${tt(this.element)}>
|
|
213
213
|
`:et`
|
|
214
214
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
215
|
-
`}}mi.styles=[ai,pi,hi,fi,di,ci,ui,xi,yi,
|
|
215
|
+
`}}mi.styles=[ai,pi,hi,fi,di,ci,ui,xi,gi,yi,bi],vi([o.property()],mi.prototype,"element",void 0),vi([o.property()],mi.prototype,"variant",void 0),i.customElement("ft-typography")(mi);const $i=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),wi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),ki=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),zi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Si=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Ni=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Oi=e.css`
|
|
216
216
|
.ft-tooltip--container {
|
|
217
217
|
display: block;
|
|
218
218
|
position: relative;
|
|
@@ -385,12 +385,12 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
385
385
|
.ft-icon--material {
|
|
386
386
|
font-family: ${_i.materialFontFamily}, "Material Icons", sans-serif;
|
|
387
387
|
}
|
|
388
|
-
`;var
|
|
388
|
+
`;var Zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Zi||(Zi={}));var Mi=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 Ui extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:Zi.fluid_topics,o="material"!==i||this.value;return e.html`
|
|
389
389
|
<i class="ft-icon ${"ft-icon--"+i}">
|
|
390
390
|
${s.unsafeHTML(this.resolvedIcon)}
|
|
391
391
|
<slot ?hidden=${o}></slot>
|
|
392
392
|
</i>
|
|
393
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case
|
|
393
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Zi.file_format:this.resolvedIcon=null!==(t=Ti[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Zi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Bi[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ui.elementDefinitions={},Ui.styles=Fi,Mi([o.property()],Ui.prototype,"variant",void 0),Mi([o.property()],Ui.prototype,"value",void 0),Mi([o.state()],Ui.prototype,"resolvedIcon",void 0),Mi([o.query("slot")],Ui.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ui);const Ri=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Pi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Ri,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",li.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Ri),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Wi=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Di={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Wi,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Wi)},Hi={borderRadius:i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),verticalPadding:i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px")},Ki=[i.noTextSelect,e.css`
|
|
394
394
|
:host {
|
|
395
395
|
display: inline-block;
|
|
396
396
|
max-width: 100%;
|
|
@@ -401,7 +401,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
401
401
|
box-shadow: 0px 0px 0px transparent;
|
|
402
402
|
border: 0px solid transparent;
|
|
403
403
|
text-shadow: 0px 0px 0px transparent;
|
|
404
|
-
font-size: ${
|
|
404
|
+
font-size: ${Pi.fontSize};
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
button:hover {
|
|
@@ -429,50 +429,57 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
429
429
|
box-sizing: border-box;
|
|
430
430
|
border: none;
|
|
431
431
|
pointer-events: auto;
|
|
432
|
+
gap: ${Pi.iconPadding};
|
|
432
433
|
|
|
433
|
-
--ft-button-internal-line-height: calc(${
|
|
434
|
-
--ft-button-internal-color: ${
|
|
435
|
-
${i.setVariable(_i.size,
|
|
436
|
-
|
|
437
|
-
--ft-button-internal-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
padding: ${Wi.verticalPadding} ${Wi.horizontalPadding};
|
|
443
|
-
background-color: ${Wi.backgroundColor};
|
|
434
|
+
--ft-button-internal-line-height: calc(${Pi.fontSize} + 2px);
|
|
435
|
+
--ft-button-internal-color: ${Pi.color};
|
|
436
|
+
${i.setVariable(_i.size,Pi.iconSize)};
|
|
437
|
+
${i.setVariable(l.color,Pi.rippleColor)};
|
|
438
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Pi.iconSize});
|
|
439
|
+
|
|
440
|
+
border-radius: ${Pi.borderRadius};
|
|
441
|
+
padding: ${Pi.verticalPadding} ${Pi.horizontalPadding};
|
|
442
|
+
background-color: ${Pi.backgroundColor};
|
|
444
443
|
color: var(--ft-button-internal-color);
|
|
445
444
|
-webkit-mask-image: radial-gradient(white, black);
|
|
446
445
|
}
|
|
447
446
|
|
|
447
|
+
.ft-button.ft-button--outlined {
|
|
448
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
449
|
+
padding: calc(${Pi.verticalPadding} - 1px) calc(${Pi.horizontalPadding} - 1px);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.ft-button.ft-button--dense {
|
|
453
|
+
padding: ${Hi.verticalPadding} ${Hi.horizontalPadding};
|
|
454
|
+
border-radius: ${Hi.borderRadius};
|
|
455
|
+
gap: ${Hi.iconPadding};
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.ft-button.ft-button--dense.ft-button--outlined {
|
|
459
|
+
padding: calc(${Hi.verticalPadding} - 1px) calc(${Hi.horizontalPadding} - 1px);
|
|
460
|
+
}
|
|
461
|
+
|
|
448
462
|
.ft-button:not([disabled]):hover {
|
|
449
463
|
cursor: pointer;
|
|
450
464
|
}
|
|
451
465
|
|
|
452
|
-
.ft-button--
|
|
453
|
-
--ft-button-internal-
|
|
454
|
-
--ft-button-internal-horizontal-padding: 4px;
|
|
455
|
-
border-radius: ${Ki.borderRadius};
|
|
466
|
+
.ft-button--round {
|
|
467
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Pi.verticalPadding});
|
|
456
468
|
}
|
|
457
469
|
|
|
458
|
-
.ft-button--round {
|
|
459
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 +
|
|
470
|
+
.ft-button--round.ft-button--dense {
|
|
471
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Hi.verticalPadding});
|
|
460
472
|
}
|
|
461
473
|
|
|
462
474
|
.ft-button[disabled] {
|
|
463
475
|
filter: grayscale(1);
|
|
464
|
-
opacity: ${
|
|
476
|
+
opacity: ${Pi.opacityDisabled};
|
|
465
477
|
}
|
|
466
478
|
|
|
467
479
|
.ft-button.ft-button--primary {
|
|
468
|
-
background-color: ${
|
|
469
|
-
--ft-button-internal-color: ${
|
|
470
|
-
${i.setVariable(l.color,
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
.ft-button.ft-button--outlined {
|
|
474
|
-
border: 1px solid var(--ft-button-internal-color);
|
|
475
|
-
padding: calc(${Wi.verticalPadding} - 1px) calc(${Wi.horizontalPadding} - 1px);
|
|
480
|
+
background-color: ${Di.backgroundColor};
|
|
481
|
+
--ft-button-internal-color: ${Di.color};
|
|
482
|
+
${i.setVariable(l.color,Di.rippleColor)};
|
|
476
483
|
}
|
|
477
484
|
|
|
478
485
|
.ft-button:focus {
|
|
@@ -485,7 +492,6 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
485
492
|
white-space: nowrap;
|
|
486
493
|
text-overflow: ellipsis;
|
|
487
494
|
display: block;
|
|
488
|
-
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
489
495
|
${i.setVariable(li.fontSize,"1em")};
|
|
490
496
|
${i.setVariable(li.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
491
497
|
}
|
|
@@ -500,8 +506,13 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
500
506
|
}
|
|
501
507
|
|
|
502
508
|
.ft-button--label[hidden] + ft-icon {
|
|
503
|
-
margin: 0 calc(
|
|
504
|
-
padding: 0
|
|
509
|
+
margin: 0 calc(${Pi.horizontalPadding} * -1);
|
|
510
|
+
padding: 0 ${Pi.verticalPadding};
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
514
|
+
margin: 0 calc(${Hi.horizontalPadding} * -1);
|
|
515
|
+
padding: 0 ${Hi.verticalPadding};
|
|
505
516
|
}
|
|
506
517
|
|
|
507
518
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -510,10 +521,10 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
510
521
|
}
|
|
511
522
|
|
|
512
523
|
ft-loader {
|
|
513
|
-
${i.setVariable(Ii.size,
|
|
524
|
+
${i.setVariable(Ii.size,Pi.iconSize)};
|
|
514
525
|
${i.setVariable(Ii.color,"var(--ft-button-internal-color)")};
|
|
515
526
|
}
|
|
516
|
-
`];var
|
|
527
|
+
`];var Gi=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 Li 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=Zi.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
528
|
<button part="button"
|
|
518
529
|
class="${n.classMap(t)}"
|
|
519
530
|
aria-label="${this.getLabel()}"
|
|
@@ -536,4 +547,4 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
536
547
|
</ft-tooltip>
|
|
537
548
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
538
549
|
<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}}
|
|
550
|
+
<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}}Li.elementDefinitions={"ft-ripple":y,"ft-tooltip":Ci,"ft-typography":mi,"ft-icon":Ui,"ft-loader":Ai},Li.styles=[i.safariEllipsisFix,Ki],Gi([o.property({type:String,reflect:!0})],Li.prototype,"role",void 0),Gi([o.property({type:Boolean})],Li.prototype,"primary",void 0),Gi([o.property({type:Boolean})],Li.prototype,"outlined",void 0),Gi([o.property({type:Boolean})],Li.prototype,"disabled",void 0),Gi([o.property({type:Boolean})],Li.prototype,"dense",void 0),Gi([o.property({type:Boolean})],Li.prototype,"round",void 0),Gi([o.property({type:String})],Li.prototype,"label",void 0),Gi([o.property({type:String})],Li.prototype,"icon",void 0),Gi([o.property({type:String})],Li.prototype,"iconVariant",void 0),Gi([o.property({type:Boolean})],Li.prototype,"trailingIcon",void 0),Gi([o.property({type:Boolean})],Li.prototype,"loading",void 0),Gi([o.property({type:String})],Li.prototype,"tooltipPosition",void 0),Gi([o.property({type:Boolean})],Li.prototype,"hideTooltip",void 0),Gi([o.property({type:Boolean})],Li.prototype,"forceTooltip",void 0),Gi([o.query(".ft-button")],Li.prototype,"button",void 0),Gi([o.query(".ft-button--label slot")],Li.prototype,"slottedContent",void 0),i.customElement("ft-button")(Li),t.FtButton=Li,t.FtButtonCssVariables=Pi,t.FtButtonDenseCssVariables=Hi,t.FtButtonPrimaryCssVariables=Di,t.styles=Ki,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
package/build/ft-button.min.js
CHANGED
|
@@ -56,13 +56,13 @@ const c=window,f=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"
|
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const M=window,
|
|
59
|
+
var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const M=window,U=M.trustedTypes,z=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,F=`lit$${(Math.random()+"").slice(9)}$`,j="?"+F,B=`<${j}>`,A=document,P=(t="")=>A.createComment(t),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,D=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=A.createTreeWalker(A,129,null,!1),G=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=_;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===_?"!--"===l[1]?s=I:void 0!==l[1]?s=D:void 0!==l[2]?(Z.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=W):void 0!==l[3]&&(s=W):s===W?">"===l[0]?(s=null!=n?n:_,p=-1):void 0===l[1]?p=-2:(p=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?W:'"'===l[3]?K:H):s===K||s===H?s=W:s===I||s===D?s=_:(s=W,n=void 0);const c=s===W&&t[e+1].startsWith("/>")?" ":"";r+=s===_?i+B:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+F+c):i+F+(-2===p?(o.push(void 0),e):c)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(a):a,o]};class Q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,p]=G(t,e);if(this.el=Q.createElement(l,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Y.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(F)){const i=p[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(F),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?st:"@"===e[1]?at:ot})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(Z.test(o.tagName)){const t=o.textContent.split(F),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],P()),Y.nextNode(),a.push({type:2,index:++n});o.append(t[e],P())}}}else if(8===o.nodeType)if(o.data===j)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function tt(t,e,i=t,o){var n,r,s,a;if(e===J)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const p=T(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=tt(t,l._$AS(t,e.values),l,o)),e}class et{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(i,!0);Y.currentNode=n;let r=Y.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new it(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new lt(r,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Y.nextNode(),s++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class it{constructor(t,e,i,o){var n;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),T(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==q&&T(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new et(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new Q(t)),e}k(t){L(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new it(this.O(P()),this.O(P()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ot{constructor(t,e,i,o,n){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=tt(this,t,e,0),r=!T(t)||t!==this._$AH&&t!==J,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=tt(this,o[i+s],e,s),a===J&&(a=this._$AH[s]),r||(r=!T(a)||a!==this._$AH[s]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const rt=U?U.emptyScript:"";class st extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class at extends ot{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=tt(this,t,e,0))&&void 0!==i?i:q)===J)return;const o=this._$AH,n=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==q&&(o===q||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const pt=M.litHtmlPolyfillSupport;null==pt||pt(Q,it),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.4.0");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var ht,ct;class ft extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new it(e.insertBefore(
|
|
65
|
+
var ht,ct;class ft extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new it(e.insertBefore(P(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}ft.finalized=!0,ft._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:ft});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ft}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.2.2");class ut{static create(t,e,i){let o=t=>v(null!=t?t:i),n=x`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>x`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=x`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>x`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):v(null!=e?e:t.defaultValue),o=x`var(${v(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>x`var(${v(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function yt(t,e){return v(`${t.name}: ${e}`)}const vt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ut.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ut.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ut.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ut.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ut.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ut.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ut.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ut.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ut.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
@@ -114,7 +114,7 @@ var ht,ct;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
114
114
|
* @license
|
|
115
115
|
* Copyright 2018 Google LLC
|
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
-
*/const Rt=Ct(class extends Et{constructor(t){var e;if(super(t),t.type!==kt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}}),Mt=ut.extend("--ft-ripple-color",vt.colorContent),
|
|
117
|
+
*/const Rt=Ct(class extends Et{constructor(t){var e;if(super(t),t.type!==kt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}}),Mt=ut.extend("--ft-ripple-color",vt.colorContent),Ut={color:Mt,backgroundColor:ut.extend("--ft-ripple-background-color",Mt),opacityContentOnSurfacePressed:ut.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(vt.opacityContentOnSurfaceSelected,"Design system")},zt=ut.extend("--ft-ripple-color",vt.colorPrimary),Ft=zt,jt=ut.extend("--ft-ripple-background-color",zt),Bt=ut.extend("--ft-ripple-color",vt.colorSecondary),At=Bt,Pt=ut.extend("--ft-ripple-background-color",Bt),Tt=x`
|
|
118
118
|
:host {
|
|
119
119
|
display: contents;
|
|
120
120
|
}
|
|
@@ -136,15 +136,15 @@ var ht,ct;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.ft-ripple .ft-ripple--background {
|
|
139
|
-
background-color: ${
|
|
139
|
+
background-color: ${Ut.backgroundColor};
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.ft-ripple .ft-ripple--effect {
|
|
143
|
-
background-color: ${
|
|
143
|
+
background-color: ${Ut.color};
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
147
|
-
background-color: ${
|
|
147
|
+
background-color: ${Pt};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
@@ -188,22 +188,22 @@ var ht,ct;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
191
|
-
opacity: ${
|
|
191
|
+
opacity: ${Ut.opacityContentOnSurfaceHover};
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
195
|
-
opacity: ${
|
|
195
|
+
opacity: ${Ut.opacityContentOnSurfaceSelected};
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
199
|
-
opacity: ${
|
|
199
|
+
opacity: ${Ut.opacityContentOnSurfaceFocused};
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
203
|
-
opacity: ${
|
|
203
|
+
opacity: ${Ut.opacityContentOnSurfacePressed};
|
|
204
204
|
transform: translate(-50%, -50%) scale(1);
|
|
205
205
|
}
|
|
206
|
-
`;var
|
|
206
|
+
`;var Lt=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 _t extends bt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return V`
|
|
207
207
|
<style>
|
|
208
208
|
.ft-ripple .ft-ripple--effect,
|
|
209
209
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -220,13 +220,13 @@ var ht,ct;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
220
220
|
<div class="ft-ripple--background"></div>
|
|
221
221
|
<div class="ft-ripple--effect"></div>
|
|
222
222
|
</div>
|
|
223
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}_t.elementDefinitions={},_t.styles=Lt
|
|
223
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}_t.elementDefinitions={},_t.styles=Tt,Lt([o({type:Boolean})],_t.prototype,"primary",void 0),Lt([o({type:Boolean})],_t.prototype,"secondary",void 0),Lt([o({type:Boolean})],_t.prototype,"unbounded",void 0),Lt([o({type:Boolean})],_t.prototype,"activated",void 0),Lt([o({type:Boolean})],_t.prototype,"selected",void 0),Lt([o({type:Boolean})],_t.prototype,"disabled",void 0),Lt([n()],_t.prototype,"hovered",void 0),Lt([n()],_t.prototype,"focused",void 0),Lt([n()],_t.prototype,"pressed",void 0),Lt([n()],_t.prototype,"rippling",void 0),Lt([n()],_t.prototype,"rippleSize",void 0),Lt([n()],_t.prototype,"originX",void 0),Lt([n()],_t.prototype,"originY",void 0),Lt([s(".ft-ripple")],_t.prototype,"ripple",void 0),Lt([s(".ft-ripple--effect")],_t.prototype,"rippleEffect",void 0),h("ft-ripple")(_t);
|
|
224
224
|
/**
|
|
225
225
|
* @license
|
|
226
226
|
* Copyright 2020 Google LLC
|
|
227
227
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
228
228
|
*/
|
|
229
|
-
const
|
|
229
|
+
const It=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===It)return null==t?void 0:t._$litStatic$},Wt=t=>({_$litStatic$:t,r:It}),Ht=new Map,Kt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(r=i[p],n=Dt(r));)l+=n+e[++p],h=!0;a.push(r),s.push(l),p++}if(p===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=Ht.get(t))&&(s.raw=s,Ht.set(t,e=s)),i=a}return t(e,...i)})(V);var Zt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Zt||(Zt={}));const Vt=ut.extend("--ft-typography-font-family",vt.titleFont),Jt=ut.extend("--ft-typography-font-family",vt.contentFont),qt={fontFamily:Jt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=ut.extend("--ft-typography-title-font-family",Vt),Yt=ut.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=ut.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=ut.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),te=ut.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ee=ut.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ie=ut.extend("--ft-typography-title-dense-font-family",Vt),oe=ut.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),ne=ut.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),re=ut.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),se=ut.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),ae=ut.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),le=ut.extend("--ft-typography-subtitle1-font-family",Jt),pe=ut.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),he=ut.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),ce=ut.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fe=ut.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),de=ut.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ue=ut.extend("--ft-typography-subtitle2-font-family",Jt),ye=ut.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),ve=ut.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),xe=ut.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),be=ut.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),ge=ut.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),me=ut.extend("--ft-typography-body1-font-family",Jt),we=ut.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),$e=ut.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),Oe=ut.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),Se=ut.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),ke=ut.extend("--ft-typography-body1-text-transform",qt.textTransform,"inherit"),Ne=ut.extend("--ft-typography-body2-font-family",Jt),Ce=ut.extend("--ft-typography-body2-font-size",qt.fontSize,"14px"),Ee=ut.extend("--ft-typography-body2-font-weight",qt.fontWeight,"normal"),Re=ut.extend("--ft-typography-body2-letter-spacing",qt.letterSpacing,"0.252px"),Me=ut.extend("--ft-typography-body2-line-height",qt.lineHeight,"1.4"),Ue=ut.extend("--ft-typography-body2-text-transform",qt.textTransform,"inherit"),ze=ut.extend("--ft-typography-caption-font-family",Jt),Fe=ut.extend("--ft-typography-caption-font-size",qt.fontSize,"12px"),je=ut.extend("--ft-typography-caption-font-weight",qt.fontWeight,"normal"),Be=ut.extend("--ft-typography-caption-letter-spacing",qt.letterSpacing,"0.396px"),Ae=ut.extend("--ft-typography-caption-line-height",qt.lineHeight,"1.33"),Pe=ut.extend("--ft-typography-caption-text-transform",qt.textTransform,"inherit"),Te=ut.extend("--ft-typography-breadcrumb-font-family",Jt),Le=ut.extend("--ft-typography-breadcrumb-font-size",qt.fontSize,"10px"),_e=ut.extend("--ft-typography-breadcrumb-font-weight",qt.fontWeight,"normal"),Ie=ut.extend("--ft-typography-breadcrumb-letter-spacing",qt.letterSpacing,"0.33px"),De=ut.extend("--ft-typography-breadcrumb-line-height",qt.lineHeight,"1.6"),We=ut.extend("--ft-typography-breadcrumb-text-transform",qt.textTransform,"inherit"),He=ut.extend("--ft-typography-overline-font-family",Jt),Ke=ut.extend("--ft-typography-overline-font-size",qt.fontSize,"10px"),Ze=ut.extend("--ft-typography-overline-font-weight",qt.fontWeight,"normal"),Ve=ut.extend("--ft-typography-overline-letter-spacing",qt.letterSpacing,"1.5px"),Je=ut.extend("--ft-typography-overline-line-height",qt.lineHeight,"1.6"),qe=ut.extend("--ft-typography-overline-text-transform",qt.textTransform,"uppercase"),Xe={fontFamily:ut.extend("--ft-typography-button-font-family",Jt),fontSize:ut.extend("--ft-typography-button-font-size",qt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",qt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",qt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",qt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",qt.textTransform,"uppercase")},Ye=x`
|
|
230
230
|
.ft-typography--title {
|
|
231
231
|
font-family: ${Xt};
|
|
232
232
|
font-size: ${Yt};
|
|
@@ -279,25 +279,25 @@ const Dt=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void
|
|
|
279
279
|
font-weight: ${Ee};
|
|
280
280
|
letter-spacing: ${Re};
|
|
281
281
|
line-height: ${Me};
|
|
282
|
-
text-transform: ${
|
|
282
|
+
text-transform: ${Ue};
|
|
283
283
|
}
|
|
284
284
|
`,oi=x`
|
|
285
285
|
.ft-typography--caption {
|
|
286
|
-
font-family: ${
|
|
286
|
+
font-family: ${ze};
|
|
287
287
|
font-size: ${Fe};
|
|
288
288
|
font-weight: ${je};
|
|
289
289
|
letter-spacing: ${Be};
|
|
290
290
|
line-height: ${Ae};
|
|
291
|
-
text-transform: ${
|
|
291
|
+
text-transform: ${Pe};
|
|
292
292
|
}
|
|
293
293
|
`,ni=x`
|
|
294
294
|
.ft-typography--breadcrumb {
|
|
295
|
-
font-family: ${
|
|
296
|
-
font-size: ${
|
|
295
|
+
font-family: ${Te};
|
|
296
|
+
font-size: ${Le};
|
|
297
297
|
font-weight: ${_e};
|
|
298
|
-
letter-spacing: ${
|
|
299
|
-
line-height: ${
|
|
300
|
-
text-transform: ${
|
|
298
|
+
letter-spacing: ${Ie};
|
|
299
|
+
line-height: ${De};
|
|
300
|
+
text-transform: ${We};
|
|
301
301
|
}
|
|
302
302
|
`,ri=x`
|
|
303
303
|
.ft-typography--overline {
|
|
@@ -322,10 +322,10 @@ const Dt=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void
|
|
|
322
322
|
vertical-align: inherit;
|
|
323
323
|
}
|
|
324
324
|
`;var li=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 pi extends bt{constructor(){super(...arguments),this.variant=Zt.body1}render(){return this.element?Kt`
|
|
325
|
-
<${
|
|
325
|
+
<${Wt(this.element)}
|
|
326
326
|
class="ft-typography ft-typography--${this.variant}">
|
|
327
327
|
<slot></slot>
|
|
328
|
-
</${
|
|
328
|
+
</${Wt(this.element)}>
|
|
329
329
|
`:Kt`
|
|
330
330
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
331
331
|
`}}pi.styles=[Ye,Ge,Qe,ti,ei,ii,oi,ni,ri,si,ai],li([o()],pi.prototype,"element",void 0),li([o()],pi.prototype,"variant",void 0),h("ft-typography")(pi);const hi=ut.create("--ft-tooltip-distance","SIZE","4px"),ci=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),fi=ut.create("--ft-tooltip-background-color","COLOR","#666666"),di=ut.create("--ft-tooltip-z-index","NUMBER","1"),ui=ut.external(vt.borderRadiusS,"Design system"),yi=ut.create("--ft-tooltip-max-width","SIZE","150px"),vi=x`
|
|
@@ -518,7 +518,7 @@ class $i extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
|
|
|
518
518
|
${Oi(this.resolvedIcon)}
|
|
519
519
|
<slot ?hidden=${i}></slot>
|
|
520
520
|
</i>
|
|
521
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ei.file_format:this.resolvedIcon=null!==(t=ki[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ei.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(e=Si[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Mi.elementDefinitions={},Mi.styles=Ci,Ri([o()],Mi.prototype,"variant",void 0),Ri([o()],Mi.prototype,"value",void 0),Ri([n()],Mi.prototype,"resolvedIcon",void 0),Ri([s("slot")],Mi.prototype,"slottedContent",void 0),h("ft-icon")(Mi);const
|
|
521
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ei.file_format:this.resolvedIcon=null!==(t=ki[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ei.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(e=Si[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Mi.elementDefinitions={},Mi.styles=Ci,Ri([o()],Mi.prototype,"variant",void 0),Ri([o()],Mi.prototype,"value",void 0),Ri([n()],Mi.prototype,"resolvedIcon",void 0),Ri([s("slot")],Mi.prototype,"slottedContent",void 0),h("ft-icon")(Mi);const Ui=ut.extend("--ft-button-color",vt.colorPrimary),zi={backgroundColor:ut.extend("--ft-button-background-color",vt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",vt.borderRadiusL),color:Ui,fontSize:ut.extend("--ft-button-font-size",Xe.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Ui),verticalPadding:ut.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:ut.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:ut.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:ut.external(vt.colorOpacityDisabled,"Design system")},Fi=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",vt.colorOnPrimary)),ji={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",vt.colorPrimary)),color:Fi,rippleColor:ut.extend("--ft-button-primary-ripple-color",Fi)},Bi={borderRadius:ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",vt.borderRadiusM)),verticalPadding:ut.create("--ft-button-dense-vertical-padding","SIZE","2px"),horizontalPadding:ut.create("--ft-button-dense-horizontal-padding","SIZE","4px"),iconPadding:ut.create("--ft-button-dense-icon-padding","SIZE","4px")},Ai=[gt,x`
|
|
522
522
|
:host {
|
|
523
523
|
display: inline-block;
|
|
524
524
|
max-width: 100%;
|
|
@@ -529,7 +529,7 @@ class $i extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
|
|
|
529
529
|
box-shadow: 0px 0px 0px transparent;
|
|
530
530
|
border: 0px solid transparent;
|
|
531
531
|
text-shadow: 0px 0px 0px transparent;
|
|
532
|
-
font-size: ${
|
|
532
|
+
font-size: ${zi.fontSize};
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
button:hover {
|
|
@@ -557,50 +557,57 @@ class $i extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
|
|
|
557
557
|
box-sizing: border-box;
|
|
558
558
|
border: none;
|
|
559
559
|
pointer-events: auto;
|
|
560
|
+
gap: ${zi.iconPadding};
|
|
560
561
|
|
|
561
|
-
--ft-button-internal-line-height: calc(${
|
|
562
|
-
--ft-button-internal-color: ${
|
|
563
|
-
${yt(Ni.size,
|
|
564
|
-
|
|
565
|
-
--ft-button-internal-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
padding: ${Ui.verticalPadding} ${Ui.horizontalPadding};
|
|
571
|
-
background-color: ${Ui.backgroundColor};
|
|
562
|
+
--ft-button-internal-line-height: calc(${zi.fontSize} + 2px);
|
|
563
|
+
--ft-button-internal-color: ${zi.color};
|
|
564
|
+
${yt(Ni.size,zi.iconSize)};
|
|
565
|
+
${yt(Ut.color,zi.rippleColor)};
|
|
566
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${zi.iconSize});
|
|
567
|
+
|
|
568
|
+
border-radius: ${zi.borderRadius};
|
|
569
|
+
padding: ${zi.verticalPadding} ${zi.horizontalPadding};
|
|
570
|
+
background-color: ${zi.backgroundColor};
|
|
572
571
|
color: var(--ft-button-internal-color);
|
|
573
572
|
-webkit-mask-image: radial-gradient(white, black);
|
|
574
573
|
}
|
|
575
574
|
|
|
575
|
+
.ft-button.ft-button--outlined {
|
|
576
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
577
|
+
padding: calc(${zi.verticalPadding} - 1px) calc(${zi.horizontalPadding} - 1px);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.ft-button.ft-button--dense {
|
|
581
|
+
padding: ${Bi.verticalPadding} ${Bi.horizontalPadding};
|
|
582
|
+
border-radius: ${Bi.borderRadius};
|
|
583
|
+
gap: ${Bi.iconPadding};
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.ft-button.ft-button--dense.ft-button--outlined {
|
|
587
|
+
padding: calc(${Bi.verticalPadding} - 1px) calc(${Bi.horizontalPadding} - 1px);
|
|
588
|
+
}
|
|
589
|
+
|
|
576
590
|
.ft-button:not([disabled]):hover {
|
|
577
591
|
cursor: pointer;
|
|
578
592
|
}
|
|
579
593
|
|
|
580
|
-
.ft-button--
|
|
581
|
-
--ft-button-internal-
|
|
582
|
-
--ft-button-internal-horizontal-padding: 4px;
|
|
583
|
-
border-radius: ${Bi.borderRadius};
|
|
594
|
+
.ft-button--round {
|
|
595
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${zi.verticalPadding});
|
|
584
596
|
}
|
|
585
597
|
|
|
586
|
-
.ft-button--round {
|
|
587
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 +
|
|
598
|
+
.ft-button--round.ft-button--dense {
|
|
599
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Bi.verticalPadding});
|
|
588
600
|
}
|
|
589
601
|
|
|
590
602
|
.ft-button[disabled] {
|
|
591
603
|
filter: grayscale(1);
|
|
592
|
-
opacity: ${
|
|
604
|
+
opacity: ${zi.opacityDisabled};
|
|
593
605
|
}
|
|
594
606
|
|
|
595
607
|
.ft-button.ft-button--primary {
|
|
596
608
|
background-color: ${ji.backgroundColor};
|
|
597
609
|
--ft-button-internal-color: ${ji.color};
|
|
598
|
-
${yt(
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
.ft-button.ft-button--outlined {
|
|
602
|
-
border: 1px solid var(--ft-button-internal-color);
|
|
603
|
-
padding: calc(${Ui.verticalPadding} - 1px) calc(${Ui.horizontalPadding} - 1px);
|
|
610
|
+
${yt(Ut.color,ji.rippleColor)};
|
|
604
611
|
}
|
|
605
612
|
|
|
606
613
|
.ft-button:focus {
|
|
@@ -613,7 +620,6 @@ class $i extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
|
|
|
613
620
|
white-space: nowrap;
|
|
614
621
|
text-overflow: ellipsis;
|
|
615
622
|
display: block;
|
|
616
|
-
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
617
623
|
${yt(Xe.fontSize,"1em")};
|
|
618
624
|
${yt(Xe.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
619
625
|
}
|
|
@@ -628,8 +634,13 @@ class $i extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
|
|
|
628
634
|
}
|
|
629
635
|
|
|
630
636
|
.ft-button--label[hidden] + ft-icon {
|
|
631
|
-
margin: 0 calc(
|
|
632
|
-
padding: 0
|
|
637
|
+
margin: 0 calc(${zi.horizontalPadding} * -1);
|
|
638
|
+
padding: 0 ${zi.verticalPadding};
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
642
|
+
margin: 0 calc(${Bi.horizontalPadding} * -1);
|
|
643
|
+
padding: 0 ${Bi.verticalPadding};
|
|
633
644
|
}
|
|
634
645
|
|
|
635
646
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -638,10 +649,10 @@ class $i extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
|
|
|
638
649
|
}
|
|
639
650
|
|
|
640
651
|
ft-loader {
|
|
641
|
-
${yt(gi.size,
|
|
652
|
+
${yt(gi.size,zi.iconSize)};
|
|
642
653
|
${yt(gi.color,"var(--ft-button-internal-color)")};
|
|
643
654
|
}
|
|
644
|
-
`];var
|
|
655
|
+
`];var Pi=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 Ti extends bt{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
656
|
<button part="button"
|
|
646
657
|
class="${Rt(t)}"
|
|
647
658
|
aria-label="${this.getLabel()}"
|
|
@@ -664,4 +675,4 @@ class $i extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
|
|
|
664
675
|
</ft-tooltip>
|
|
665
676
|
`:t}resolveIcon(){return this.loading?V`
|
|
666
677
|
<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}}
|
|
678
|
+
<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}}Ti.elementDefinitions={"ft-ripple":_t,"ft-tooltip":bi,"ft-typography":pi,"ft-icon":Mi,"ft-loader":wi},Ti.styles=[mt,Ai],Pi([o({type:String,reflect:!0})],Ti.prototype,"role",void 0),Pi([o({type:Boolean})],Ti.prototype,"primary",void 0),Pi([o({type:Boolean})],Ti.prototype,"outlined",void 0),Pi([o({type:Boolean})],Ti.prototype,"disabled",void 0),Pi([o({type:Boolean})],Ti.prototype,"dense",void 0),Pi([o({type:Boolean})],Ti.prototype,"round",void 0),Pi([o({type:String})],Ti.prototype,"label",void 0),Pi([o({type:String})],Ti.prototype,"icon",void 0),Pi([o({type:String})],Ti.prototype,"iconVariant",void 0),Pi([o({type:Boolean})],Ti.prototype,"trailingIcon",void 0),Pi([o({type:Boolean})],Ti.prototype,"loading",void 0),Pi([o({type:String})],Ti.prototype,"tooltipPosition",void 0),Pi([o({type:Boolean})],Ti.prototype,"hideTooltip",void 0),Pi([o({type:Boolean})],Ti.prototype,"forceTooltip",void 0),Pi([s(".ft-button")],Ti.prototype,"button",void 0),Pi([s(".ft-button--label slot")],Ti.prototype,"slottedContent",void 0),h("ft-button")(Ti),t.FtButton=Ti,t.FtButtonCssVariables=zi,t.FtButtonDenseCssVariables=Bi,t.FtButtonPrimaryCssVariables=ji,t.styles=Ai,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-button",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.69",
|
|
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": "0.3.
|
|
23
|
-
"@fluid-topics/ft-loader": "0.3.
|
|
24
|
-
"@fluid-topics/ft-ripple": "0.3.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "0.3.
|
|
26
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.69",
|
|
23
|
+
"@fluid-topics/ft-loader": "0.3.69",
|
|
24
|
+
"@fluid-topics/ft-ripple": "0.3.69",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "0.3.69",
|
|
26
|
+
"@fluid-topics/ft-typography": "0.3.69",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "0.3.69",
|
|
28
28
|
"lit": "2.2.8"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "f177be3c8737642e9938649a08fc705ed824c5cb"
|
|
31
31
|
}
|