@fluid-topics/ft-text-area 0.1.18 → 0.2.2
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-text-area.inline-styles.js +194 -182
- package/build/ft-text-area.light.js +157 -145
- package/build/ft-text-area.min.js +188 -176
- package/package.json +5 -5
|
@@ -1,144 +1,156 @@
|
|
|
1
|
-
!function(t,e,i,o,s){
|
|
1
|
+
!function(t,e,i,o,s,r){
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var
|
|
7
|
+
var n;const l=globalThis.trustedTypes,a=l?l.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,h="?"+p,f=`<${h}>`,d=document,c=(t="")=>d.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g=/-->/g,m=/>/g,b=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,v=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),S=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),O=new WeakMap,j=d.createTreeWalker(d,129,null,!1),E=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=y;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,d=0;for(;d<i.length&&(n.lastIndex=d,a=n.exec(i),null!==a);)d=n.lastIndex,n===y?"!--"===a[1]?n=g:void 0!==a[1]?n=m:void 0!==a[2]?(w.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=b):void 0!==a[3]&&(n=b):n===b?">"===a[0]?(n=null!=s?s:y,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?b:'"'===a[3]?$:v):n===$||n===v?n=b:n===g||n===m?n=y:(n=b,s=void 0);const c=n===b&&t[e+1].startsWith("/>")?" ":"";r+=n===y?i+f:h>=0?(o.push(l),i.slice(0,h)+"$lit$"+i.slice(h)+p+c):i+p+(-2===h?(o.push(void 0),e):c)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==a?a.createHTML(l):l,o]};class N{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[f,d]=E(t,e);if(this.el=N.createElement(f,i),j.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=j.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(p)){const i=d[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(p),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?M:"@"===e[1]?T:A})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(w.test(o.tagName)){const t=o.textContent.split(p),e=t.length-1;if(e>0){o.textContent=l?l.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],c()),j.nextNode(),a.push({type:2,index:++s});o.append(t[e],c())}}}else if(8===o.nodeType)if(o.data===h)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(p,t+1));)a.push({type:7,index:s}),t+=p.length-1}s++}}static createElement(t,e){const i=d.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,o){var s,r,n,l;if(e===S)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=u(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Cl)&&void 0!==n?n:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=I(t,a._$AS(t,e.values),a,o)),e}class C{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:d).importNode(i,!0);j.currentNode=s;let r=j.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new D(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new B(r,this,t)),this.v.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=j.nextNode(),n++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class D{constructor(t,e,i,o){var s;this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}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=I(this,t,e),u(t)?t===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==S&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return x(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==k&&u(this._$AH)?this._$AA.nextSibling.data=t:this.S(d.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=N.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new C(s,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=O.get(t.strings);return void 0===e&&O.set(t.strings,e=new N(t)),e}A(t){x(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new D(this.M(c()),this.M(c()),this,this.options)):i=e[o],i._$AI(s),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._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class A{constructor(t,e,i,o,s){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=k}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=I(this,t,e,0),r=!u(t)||t!==this._$AH&&t!==S,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=I(this,o[i+n],e,n),l===S&&(l=this._$AH[n]),r||(r=!u(l)||l!==this._$AH[n]),l===k?t=k:t!==k&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.k(t)}k(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends A{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===k?void 0:t}}const Z=l?l.emptyScript:"";class M extends A{constructor(){super(...arguments),this.type=4}k(t){t&&t!==k?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class T extends A{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=I(this,t,e,0))&&void 0!==i?i:k)===S)return;const o=this._$AH,s=t===k&&o!==k||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==k&&(o===k||s);s&&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 B{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){I(this,t)}}const F=window.litHtmlPolyfillSupport;null==F||F(N,D),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.1.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const U=t=>({_$litStatic$:t}),W=new Map,R=(t=>(e,...i)=>{var o;const s=i.length;let r,n;const l=[],a=[];let p,h=0,f=!1;for(;h<s;){for(p=e[h];h<s&&void 0!==(n=i[h],r=null===(o=n)||void 0===o?void 0:o._$litStatic$);)p+=r+e[++h],f=!0;a.push(n),l.push(p),h++}if(h===s&&l.push(e[s]),f){const t=l.join("$$lit$$");void 0===(e=W.get(t))&&(l.raw=l,W.set(t,e=l)),i=a}return t(e,...i)})(z);var H,K=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!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"}(H||(H={}));const G=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),q=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),L={fontFamily:q,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},P=e.FtCssVariable.extend("--ft-typography-title-font-family",G),V=e.FtCssVariable.extend("--ft-typography-title-font-size",L.fontSize,"20px"),X=e.FtCssVariable.extend("--ft-typography-title-font-weight",L.fontWeight,"normal"),Y=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",L.letterSpacing,"0.15px"),J=e.FtCssVariable.extend("--ft-typography-title-line-height",L.lineHeight,"24px"),Q=e.FtCssVariable.extend("--ft-typography-title-text-transform",L.textTransform,"inherit"),tt=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",G),et=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",L.fontSize,"14px"),it=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",L.fontWeight,"normal"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",L.letterSpacing,"0.105px"),st=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",L.lineHeight,"24px"),rt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",L.textTransform,"inherit"),nt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",q),lt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",L.fontSize,"16px"),at=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",L.fontWeight,"600"),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",L.letterSpacing,"0.144px"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",L.lineHeight,"24px"),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",L.textTransform,"inherit"),dt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",q),ct=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",L.fontSize,"14px"),ut=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",L.fontWeight,"normal"),xt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",L.letterSpacing,"0.098px"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",L.lineHeight,"24px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",L.textTransform,"inherit"),mt={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",q),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",L.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",L.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",L.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",L.lineHeight,"24px"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",L.textTransform,"inherit")},bt=e.FtCssVariable.extend("--ft-typography-body2-font-family",q),vt=e.FtCssVariable.extend("--ft-typography-body2-font-size",L.fontSize,"14px"),$t=e.FtCssVariable.extend("--ft-typography-body2-font-weight",L.fontWeight,"normal"),wt=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",L.letterSpacing,"0.252px"),zt=e.FtCssVariable.extend("--ft-typography-body2-line-height",L.lineHeight,"20px"),St=e.FtCssVariable.extend("--ft-typography-body2-text-transform",L.textTransform,"inherit"),kt={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",q),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",L.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",L.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",L.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",L.lineHeight,"16px"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",L.textTransform,"inherit")},Ot=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",q),jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",L.fontSize,"10px"),Et=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",L.fontWeight,"normal"),Nt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",L.letterSpacing,"0.33px"),It=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",L.lineHeight,"16px"),Ct=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",L.textTransform,"inherit"),Dt=e.FtCssVariable.extend("--ft-typography-overline-font-family",q),At=e.FtCssVariable.extend("--ft-typography-overline-font-size",L.fontSize,"10px"),_t=e.FtCssVariable.extend("--ft-typography-overline-font-weight",L.fontWeight,"normal"),Zt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",L.letterSpacing,"1.5px"),Mt=e.FtCssVariable.extend("--ft-typography-overline-line-height",L.lineHeight,"16px"),Tt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",L.textTransform,"uppercase"),Bt=e.FtCssVariable.extend("--ft-typography-button-font-family",q),Ft=e.FtCssVariable.extend("--ft-typography-button-font-size",L.fontSize,"14px"),Ut=e.FtCssVariable.extend("--ft-typography-button-font-weight",L.fontWeight,"600"),Wt=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",L.letterSpacing,"1.246px"),Rt=e.FtCssVariable.extend("--ft-typography-button-line-height",L.lineHeight,"16px"),Ht=e.FtCssVariable.extend("--ft-typography-button-text-transform",L.textTransform,"uppercase"),Kt=i.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${P};
|
|
16
16
|
font-size: ${V};
|
|
17
17
|
font-weight: ${X};
|
|
18
18
|
letter-spacing: ${Y};
|
|
19
|
-
line-height: ${
|
|
20
|
-
text-transform: ${
|
|
19
|
+
line-height: ${J};
|
|
20
|
+
text-transform: ${Q};
|
|
21
21
|
}
|
|
22
22
|
`,Gt=i.css`
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
|
-
font-family: ${
|
|
25
|
-
font-size: ${
|
|
26
|
-
font-weight: ${
|
|
27
|
-
letter-spacing: ${
|
|
28
|
-
line-height: ${
|
|
29
|
-
text-transform: ${
|
|
24
|
+
font-family: ${tt};
|
|
25
|
+
font-size: ${et};
|
|
26
|
+
font-weight: ${it};
|
|
27
|
+
letter-spacing: ${ot};
|
|
28
|
+
line-height: ${st};
|
|
29
|
+
text-transform: ${rt};
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,qt=i.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
|
-
font-family: ${
|
|
34
|
-
font-size: ${
|
|
35
|
-
font-weight: ${
|
|
36
|
-
letter-spacing: ${
|
|
37
|
-
line-height: ${
|
|
38
|
-
text-transform: ${
|
|
33
|
+
font-family: ${nt};
|
|
34
|
+
font-size: ${lt};
|
|
35
|
+
font-weight: ${at};
|
|
36
|
+
letter-spacing: ${pt};
|
|
37
|
+
line-height: ${ht};
|
|
38
|
+
text-transform: ${ft};
|
|
39
39
|
}
|
|
40
40
|
`,Lt=i.css`
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
|
-
font-family: ${
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
42
|
+
font-family: ${dt};
|
|
43
|
+
font-size: ${ct};
|
|
44
|
+
font-weight: ${ut};
|
|
45
|
+
letter-spacing: ${xt};
|
|
46
46
|
line-height: ${yt};
|
|
47
47
|
text-transform: ${gt};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
`,Pt=i.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
|
-
font-family: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
font-weight: ${
|
|
55
|
-
letter-spacing: ${
|
|
56
|
-
line-height: ${
|
|
57
|
-
text-transform: ${
|
|
52
|
+
font-family: ${mt.fontFamily};
|
|
53
|
+
font-size: ${mt.fontSize};
|
|
54
|
+
font-weight: ${mt.fontWeight};
|
|
55
|
+
letter-spacing: ${mt.letterSpacing};
|
|
56
|
+
line-height: ${mt.lineHeight};
|
|
57
|
+
text-transform: ${mt.textTransform};
|
|
58
58
|
}
|
|
59
59
|
`,Vt=i.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
61
|
-
font-family: ${
|
|
62
|
-
font-size: ${
|
|
63
|
-
font-weight: ${
|
|
64
|
-
letter-spacing: ${
|
|
65
|
-
line-height: ${
|
|
66
|
-
text-transform: ${
|
|
61
|
+
font-family: ${bt};
|
|
62
|
+
font-size: ${vt};
|
|
63
|
+
font-weight: ${$t};
|
|
64
|
+
letter-spacing: ${wt};
|
|
65
|
+
line-height: ${zt};
|
|
66
|
+
text-transform: ${St};
|
|
67
67
|
}
|
|
68
68
|
`,Xt=i.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
|
-
font-family: ${
|
|
71
|
-
font-size: ${
|
|
72
|
-
font-weight: ${
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
70
|
+
font-family: ${kt.fontFamily};
|
|
71
|
+
font-size: ${kt.fontSize};
|
|
72
|
+
font-weight: ${kt.fontWeight};
|
|
73
|
+
letter-spacing: ${kt.letterSpacing};
|
|
74
|
+
line-height: ${kt.lineHeight};
|
|
75
|
+
text-transform: ${kt.textTransform};
|
|
76
76
|
}
|
|
77
77
|
`,Yt=i.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
79
|
+
font-family: ${Ot};
|
|
80
|
+
font-size: ${jt};
|
|
81
|
+
font-weight: ${Et};
|
|
82
|
+
letter-spacing: ${Nt};
|
|
83
83
|
line-height: ${It};
|
|
84
|
-
text-transform: ${
|
|
84
|
+
text-transform: ${Ct};
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,Jt=i.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
89
|
-
font-size: ${
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
92
|
-
line-height: ${
|
|
88
|
+
font-family: ${Dt};
|
|
89
|
+
font-size: ${At};
|
|
90
|
+
font-weight: ${_t};
|
|
91
|
+
letter-spacing: ${Zt};
|
|
92
|
+
line-height: ${Mt};
|
|
93
93
|
text-transform: ${Tt};
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`,Qt=i.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
97
|
font-family: ${Bt};
|
|
98
98
|
font-size: ${Ft};
|
|
99
|
-
font-weight: ${
|
|
100
|
-
letter-spacing: ${
|
|
101
|
-
line-height: ${
|
|
99
|
+
font-weight: ${Ut};
|
|
100
|
+
letter-spacing: ${Wt};
|
|
101
|
+
line-height: ${Rt};
|
|
102
102
|
text-transform: ${Ht};
|
|
103
103
|
}
|
|
104
|
-
`;class
|
|
105
|
-
<${
|
|
104
|
+
`;class te extends e.FtLitElement{constructor(){super(...arguments),this.variant=H.body1}render(){return this.element?R`
|
|
105
|
+
<${U(this.element)}
|
|
106
106
|
class="ft-typography ft-typography--${this.variant}">
|
|
107
107
|
<slot></slot>
|
|
108
|
-
</${
|
|
109
|
-
`:
|
|
108
|
+
</${U(this.element)}>
|
|
109
|
+
`:R`
|
|
110
110
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
111
|
-
`}}
|
|
111
|
+
`}}var ee,ie;te.styles=[Kt,Gt,qt,Lt,Pt,Vt,Xt,Yt,Jt,Qt,i.css`
|
|
112
112
|
.ft-typography {
|
|
113
113
|
vertical-align: inherit;
|
|
114
114
|
}
|
|
115
|
-
`],
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
115
|
+
`],K([o.property()],te.prototype,"element",void 0),K([o.property()],te.prototype,"variant",void 0),e.customElement("ft-typography")(te),function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(ee||(ee={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(ie||(ie={})),new Map([...["abw"].map((t=>[t,ie.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ie.AUDIO])),...["avi"].map((t=>[t,ie.AVI])),...["chm","xhs"].map((t=>[t,ie.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ie.CODE])),...["csv"].map((t=>[t,ie.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ie.DITA])),...["epub"].map((t=>[t,ie.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ie.EXCEL])),...["flac"].map((t=>[t,ie.FLAC])),...["gif"].map((t=>[t,ie.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ie.GZIP])),...["html","htm","xhtml"].map((t=>[t,ie.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ie.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ie.JPEG])),...["json"].map((t=>[t,ie.JSON])),...["m4a","m4p"].map((t=>[t,ie.M4A])),...["mov","qt"].map((t=>[t,ie.MOV])),...["mp3"].map((t=>[t,ie.MP3])),...["mp4","m4v"].map((t=>[t,ie.MP4])),...["ogg","oga"].map((t=>[t,ie.OGG])),...["pdf","ps"].map((t=>[t,ie.PDF])),...["png"].map((t=>[t,ie.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ie.POWERPOINT])),...["rar"].map((t=>[t,ie.RAR])),...["stp"].map((t=>[t,ie.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ie.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ie.VIDEO])),...["wav"].map((t=>[t,ie.WAV])),...["wma"].map((t=>[t,ie.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ie.WORD])),...["xml","xsl","rdf"].map((t=>[t,ie.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ie.YAML])),...["zip"].map((t=>[t,ie.ZIP]))]);var oe,se=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(oe||(oe={}));const re=e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),ne=e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),le=e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),ae=e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class pe extends e.FtLitElement{constructor(){super(...arguments),this.variant=oe.fluid_topics}render(){return i.html`
|
|
116
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
117
|
+
${r.unsafeHTML(this.getIcon())}
|
|
118
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
119
|
+
</i>
|
|
120
|
+
`}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:""}getIcon(){var t,e;let o=this.textContent;return this.variant===oe.file_format?null!==(t=ie[o.toUpperCase()])&&void 0!==t?t:o:this.variant===oe.fluid_topics?null!==(e=ee[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}pe.elementDefinitions={},pe.styles=i.css`
|
|
121
|
+
:host, i.ft-icon {
|
|
122
|
+
display: inline-block;
|
|
123
|
+
width: ${re};
|
|
124
|
+
height: ${re};
|
|
125
|
+
text-align: center;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
i.ft-icon {
|
|
129
|
+
font-size: ${re};
|
|
130
|
+
line-height: 1;
|
|
131
|
+
font-weight: normal;
|
|
132
|
+
text-transform: none;
|
|
133
|
+
font-style: normal;
|
|
134
|
+
font-variant: normal;
|
|
135
|
+
speak: none;
|
|
136
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
137
|
+
text-rendering: auto;
|
|
138
|
+
-webkit-font-smoothing: antialiased;
|
|
139
|
+
-moz-osx-font-smoothing: grayscale;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.ft-icon--fluid-topics {
|
|
143
|
+
font-family: ${ne}, ft-icons, fticons, sans-serif;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ft-icon--file-format {
|
|
147
|
+
font-family: ${le}, ft-mime, sans-serif;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ft-icon--material {
|
|
151
|
+
font-family: ${ae}, "Material Icons", sans-serif;
|
|
152
|
+
}
|
|
153
|
+
`,se([o.property()],pe.prototype,"variant",void 0),se([o.query("slot")],pe.prototype,"slottedContent",void 0),e.customElement("ft-icon")(pe);var he=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class fe extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}const de=e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),ce=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system");class ue extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return i.html`
|
|
142
154
|
<style>
|
|
143
155
|
.ft-resizer {
|
|
144
156
|
cursor: ${i.unsafeCSS(this.cursor)}
|
|
@@ -147,9 +159,9 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
147
159
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
148
160
|
@mousedown=${this.initDragFromMouse}
|
|
149
161
|
@touchstart=${this.initDragFromTouch}>
|
|
150
|
-
<
|
|
162
|
+
<ft-icon variant="material">${this.icon}</ft-icon>
|
|
151
163
|
</div>
|
|
152
|
-
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new
|
|
164
|
+
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new fe(i,o))}}ue.elementDefinitions={"ft-icon":pe},ue.styles=[e.noTextSelect,i.css`
|
|
153
165
|
:host {
|
|
154
166
|
display: block;
|
|
155
167
|
}
|
|
@@ -158,16 +170,16 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
158
170
|
display: flex;
|
|
159
171
|
}
|
|
160
172
|
|
|
161
|
-
|
|
173
|
+
ft-icon {
|
|
162
174
|
transform: rotate(-45deg);
|
|
163
|
-
color: ${
|
|
175
|
+
color: ${de};
|
|
164
176
|
}
|
|
165
177
|
|
|
166
|
-
.ft-resizer--dragging
|
|
167
|
-
.ft-resizer:hover
|
|
168
|
-
color: ${
|
|
178
|
+
.ft-resizer--dragging ft-icon,
|
|
179
|
+
.ft-resizer:hover ft-icon {
|
|
180
|
+
color: ${ce};
|
|
169
181
|
}
|
|
170
|
-
`],
|
|
182
|
+
`],he([o.property({type:Number})],ue.prototype,"initialWidth",void 0),he([o.property({type:Number})],ue.prototype,"initialHeight",void 0),he([o.property()],ue.prototype,"icon",void 0),he([o.property()],ue.prototype,"cursor",void 0),he([o.state()],ue.prototype,"dragging",void 0),e.customElement("ft-resizer")(ue);var xe=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const ye={fontSize:e.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariable.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariable.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariable.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system")};class ge extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return i.html`
|
|
171
183
|
<div class="${s.classMap(t)}">
|
|
172
184
|
${this.text?i.html`
|
|
173
185
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -176,7 +188,7 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
176
188
|
</div>
|
|
177
189
|
`:null}
|
|
178
190
|
</div>
|
|
179
|
-
`}}
|
|
191
|
+
`}}ge.elementDefinitions={},ge.styles=[Xt,i.css`
|
|
180
192
|
.ft-input-label {
|
|
181
193
|
position: absolute;
|
|
182
194
|
inset: 0;
|
|
@@ -184,7 +196,7 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
184
196
|
}
|
|
185
197
|
|
|
186
198
|
.ft-input-label {
|
|
187
|
-
border-color: ${
|
|
199
|
+
border-color: ${ye.borderColor};
|
|
188
200
|
}
|
|
189
201
|
|
|
190
202
|
.ft-input-label:before,
|
|
@@ -197,7 +209,7 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
197
209
|
}
|
|
198
210
|
|
|
199
211
|
.ft-input-label:before {
|
|
200
|
-
width: ${
|
|
212
|
+
width: ${ye.horizontalSpacing};
|
|
201
213
|
flex-shrink: 0;
|
|
202
214
|
}
|
|
203
215
|
|
|
@@ -213,14 +225,14 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
213
225
|
border-bottom-width: 1px;
|
|
214
226
|
border-bottom-style: solid;
|
|
215
227
|
border-color: inherit;
|
|
216
|
-
color: ${
|
|
228
|
+
color: ${ye.textColor};
|
|
217
229
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
218
|
-
${e.setVariable(
|
|
219
|
-
${e.setVariable(
|
|
230
|
+
${e.setVariable(kt.fontSize,ye.fontSize)};
|
|
231
|
+
${e.setVariable(kt.lineHeight,ye.fontSize)};
|
|
220
232
|
}
|
|
221
233
|
|
|
222
234
|
.ft-input-label--disabled .ft-input-label--text {
|
|
223
|
-
color: ${
|
|
235
|
+
color: ${ye.disabledTextColor};
|
|
224
236
|
}
|
|
225
237
|
|
|
226
238
|
.ft-input-label--hidden-text {
|
|
@@ -236,17 +248,17 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
236
248
|
overflow: hidden;
|
|
237
249
|
white-space: nowrap;
|
|
238
250
|
text-overflow: ellipsis;
|
|
239
|
-
padding: ${
|
|
240
|
-
margin: calc(${
|
|
251
|
+
padding: ${ye.verticalSpacing} 4px;
|
|
252
|
+
margin: calc(${ye.verticalSpacing} * -1) 0;
|
|
241
253
|
}
|
|
242
254
|
|
|
243
255
|
.ft-input-label--raised .ft-input-label--text {
|
|
244
|
-
${e.setVariable(
|
|
245
|
-
${e.setVariable(
|
|
256
|
+
${e.setVariable(kt.fontSize,ye.raisedFontSize)};
|
|
257
|
+
${e.setVariable(kt.lineHeight,ye.raisedFontSize)};
|
|
246
258
|
}
|
|
247
259
|
|
|
248
260
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
249
|
-
top: ${
|
|
261
|
+
top: ${ye.verticalSpacing};
|
|
250
262
|
}
|
|
251
263
|
|
|
252
264
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -259,27 +271,27 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
259
271
|
.ft-input-label--outlined:before {
|
|
260
272
|
border-left-width: 1px;
|
|
261
273
|
border-left-style: solid;
|
|
262
|
-
border-radius: ${
|
|
274
|
+
border-radius: ${ye.borderRadiusS} 0 0 ${ye.borderRadiusS};
|
|
263
275
|
}
|
|
264
276
|
|
|
265
277
|
.ft-input-label--outlined:after {
|
|
266
278
|
border-right-width: 1px;
|
|
267
279
|
border-right-style: solid;
|
|
268
|
-
border-radius: 0 ${
|
|
280
|
+
border-radius: 0 ${ye.borderRadiusS} ${ye.borderRadiusS} 0;
|
|
269
281
|
}
|
|
270
282
|
|
|
271
283
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
272
284
|
padding: 2px 4px;
|
|
273
|
-
z-index: ${
|
|
274
|
-
background-color: ${
|
|
275
|
-
border-radius: ${
|
|
285
|
+
z-index: ${ye.raisedZIndex};
|
|
286
|
+
background-color: ${ye.colorSurface};
|
|
287
|
+
border-radius: ${ye.borderRadiusS};
|
|
276
288
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
277
289
|
}
|
|
278
290
|
|
|
279
291
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
280
292
|
border-top: none;
|
|
281
293
|
}
|
|
282
|
-
`],
|
|
294
|
+
`],xe([o.property({type:String})],ge.prototype,"text",void 0),xe([o.property({type:Boolean})],ge.prototype,"raised",void 0),xe([o.property({type:Boolean})],ge.prototype,"outlined",void 0),xe([o.property({type:Boolean})],ge.prototype,"disabled",void 0),e.customElement("ft-input-label")(ge);var me=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const be={color:e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorContent),primaryColor:e.FtCssVariable.extend("--ft-ripple-primary-color",e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary)),secondaryColor:e.FtCssVariable.extend("--ft-ripple-secondary-color",e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")};class ve extends e.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.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=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!=s?s-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 i.html`
|
|
283
295
|
<style>
|
|
284
296
|
.ft-ripple .ft-ripple--effect,
|
|
285
297
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -296,7 +308,7 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
296
308
|
<div class="ft-ripple--background"></div>
|
|
297
309
|
<div class="ft-ripple--effect"></div>
|
|
298
310
|
</div>
|
|
299
|
-
`}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){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),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(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){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"),s=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",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",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",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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()}}
|
|
311
|
+
`}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){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),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(){var t;super.connectedCallback();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"),s=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",s),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",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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()}}ve.elementDefinitions={},ve.styles=i.css`
|
|
300
312
|
:host {
|
|
301
313
|
display: contents;
|
|
302
314
|
}
|
|
@@ -315,17 +327,17 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
315
327
|
.ft-ripple .ft-ripple--effect {
|
|
316
328
|
position: absolute;
|
|
317
329
|
opacity: 0;
|
|
318
|
-
background-color: ${
|
|
330
|
+
background-color: ${be.color};
|
|
319
331
|
}
|
|
320
332
|
|
|
321
333
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background,
|
|
322
334
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
323
|
-
background-color: ${
|
|
335
|
+
background-color: ${be.secondaryColor};
|
|
324
336
|
}
|
|
325
337
|
|
|
326
338
|
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
327
339
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
328
|
-
background-color: ${
|
|
340
|
+
background-color: ${be.primaryColor};
|
|
329
341
|
}
|
|
330
342
|
|
|
331
343
|
.ft-ripple .ft-ripple--background {
|
|
@@ -356,25 +368,25 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
356
368
|
}
|
|
357
369
|
|
|
358
370
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
359
|
-
opacity: ${
|
|
371
|
+
opacity: ${be.opacityContentOnSurfaceHover};
|
|
360
372
|
}
|
|
361
373
|
|
|
362
374
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
363
|
-
opacity: ${
|
|
375
|
+
opacity: ${be.opacityContentOnSurfaceSelected};
|
|
364
376
|
}
|
|
365
377
|
|
|
366
378
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
367
|
-
opacity: ${
|
|
379
|
+
opacity: ${be.opacityContentOnSurfaceFocused};
|
|
368
380
|
}
|
|
369
381
|
|
|
370
382
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
371
|
-
opacity: ${
|
|
383
|
+
opacity: ${be.opacityContentOnSurfacePressed};
|
|
372
384
|
transform: translate(-50%, -50%) scale(1);
|
|
373
385
|
}
|
|
374
|
-
`,
|
|
386
|
+
`,me([o.property({type:Boolean})],ve.prototype,"primary",void 0),me([o.property({type:Boolean})],ve.prototype,"secondary",void 0),me([o.property({type:Boolean})],ve.prototype,"unbounded",void 0),me([o.property({type:Boolean})],ve.prototype,"activated",void 0),me([o.property({type:Boolean})],ve.prototype,"selected",void 0),me([o.property({type:Boolean})],ve.prototype,"disabled",void 0),me([o.state()],ve.prototype,"hovered",void 0),me([o.state()],ve.prototype,"focused",void 0),me([o.state()],ve.prototype,"pressed",void 0),me([o.state()],ve.prototype,"rippling",void 0),me([o.state()],ve.prototype,"rippleSize",void 0),me([o.state()],ve.prototype,"originX",void 0),me([o.state()],ve.prototype,"originY",void 0),me([o.query(".ft-ripple")],ve.prototype,"ripple",void 0),me([o.query(".ft-ripple--effect")],ve.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ve);var $e=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const we={fontSize:e.FtCssVariable.create("--ft-text-area-font-size","SIZE","14px"),labelSize:e.FtCssVariable.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariable.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariable.extend("--ft-text-area-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system")};class ze extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label};return i.html`
|
|
375
387
|
<style>
|
|
376
388
|
.ft-text-area--main-panel {
|
|
377
|
-
height: calc(4 * ${
|
|
389
|
+
height: calc(4 * ${we.verticalSpacing} + ${we.labelSize} + ${we.fontSize} + ${this.height}px);
|
|
378
390
|
}
|
|
379
391
|
</style>
|
|
380
392
|
<div class="${s.classMap(t)}">
|
|
@@ -408,7 +420,7 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
408
420
|
${this.helper}
|
|
409
421
|
</ft-typography>`:void 0}
|
|
410
422
|
</div>
|
|
411
|
-
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}
|
|
423
|
+
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}ze.elementDefinitions={"ft-input-label":ge,"ft-resizer":ue,"ft-ripple":ve,"ft-typography":te},ze.styles=[Pt,i.css`
|
|
412
424
|
*:focus {
|
|
413
425
|
outline: none;
|
|
414
426
|
}
|
|
@@ -420,10 +432,10 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
420
432
|
}
|
|
421
433
|
|
|
422
434
|
ft-input-label {
|
|
423
|
-
${e.setVariable(
|
|
424
|
-
${e.setVariable(
|
|
425
|
-
${e.setVariable(
|
|
426
|
-
${e.setVariable(
|
|
435
|
+
${e.setVariable(ye.fontSize,we.fontSize)};
|
|
436
|
+
${e.setVariable(ye.raisedFontSize,we.labelSize)};
|
|
437
|
+
${e.setVariable(ye.verticalSpacing,we.verticalSpacing)};
|
|
438
|
+
${e.setVariable(ye.horizontalSpacing,i.css`calc(${we.horizontalSpacing} - 4px)`)};
|
|
427
439
|
}
|
|
428
440
|
|
|
429
441
|
.ft-text-area--main-panel {
|
|
@@ -441,8 +453,8 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
441
453
|
}
|
|
442
454
|
|
|
443
455
|
.ft-text-area--input-panel ft-ripple {
|
|
444
|
-
${e.setVariable(
|
|
445
|
-
${e.setVariable(
|
|
456
|
+
${e.setVariable(be.opacityContentOnSurfaceHover,"0.08")};
|
|
457
|
+
${e.setVariable(be.opacityContentOnSurfacePressed,"0.04")};
|
|
446
458
|
}
|
|
447
459
|
|
|
448
460
|
.ft-text-area--input {
|
|
@@ -453,12 +465,12 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
453
465
|
align-self: stretch;
|
|
454
466
|
resize: none;
|
|
455
467
|
|
|
456
|
-
${e.setVariable(
|
|
457
|
-
${e.setVariable(
|
|
458
|
-
color: ${
|
|
468
|
+
${e.setVariable(mt.fontSize,we.fontSize)};
|
|
469
|
+
${e.setVariable(mt.lineHeight,we.fontSize)};
|
|
470
|
+
color: ${we.colorOnSurface};
|
|
459
471
|
|
|
460
|
-
padding: 0 ${
|
|
461
|
-
margin: calc(${
|
|
472
|
+
padding: 0 ${we.horizontalSpacing};
|
|
473
|
+
margin: calc(${we.verticalSpacing} + ${we.labelSize} / 2) 0 ${we.verticalSpacing} 0;
|
|
462
474
|
|
|
463
475
|
border: none;
|
|
464
476
|
background: none;
|
|
@@ -467,7 +479,7 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
467
479
|
}
|
|
468
480
|
|
|
469
481
|
.ft-text-area--disabled .ft-text-area--input {
|
|
470
|
-
color: ${
|
|
482
|
+
color: ${we.colorOnSurfaceDisabled};
|
|
471
483
|
}
|
|
472
484
|
|
|
473
485
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -475,27 +487,27 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
475
487
|
}
|
|
476
488
|
|
|
477
489
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
478
|
-
${e.setVariable(
|
|
479
|
-
${e.setVariable(
|
|
490
|
+
${e.setVariable(ye.borderColor,we.colorPrimary)};
|
|
491
|
+
${e.setVariable(ye.textColor,we.colorPrimary)};
|
|
480
492
|
}
|
|
481
493
|
|
|
482
494
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
483
|
-
border-radius: ${
|
|
495
|
+
border-radius: ${we.borderRadiusS} ${we.borderRadiusS} 0 0;
|
|
484
496
|
}
|
|
485
497
|
|
|
486
498
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
487
499
|
align-self: stretch;
|
|
488
|
-
margin-bottom: ${
|
|
489
|
-
margin-top: calc(${
|
|
500
|
+
margin-bottom: ${we.verticalSpacing};
|
|
501
|
+
margin-top: calc(${we.labelSize} + 2 * ${we.verticalSpacing});
|
|
490
502
|
}
|
|
491
503
|
|
|
492
504
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
493
|
-
border-radius: ${
|
|
505
|
+
border-radius: ${we.borderRadiusS};
|
|
494
506
|
}
|
|
495
507
|
|
|
496
508
|
.ft-text-area--helper-text {
|
|
497
|
-
padding: 0 12px 0 ${
|
|
498
|
-
color: ${
|
|
509
|
+
padding: 0 12px 0 ${we.horizontalSpacing};
|
|
510
|
+
color: ${we.helperColor};
|
|
499
511
|
}
|
|
500
512
|
|
|
501
513
|
ft-resizer {
|
|
@@ -503,4 +515,4 @@ function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnP
|
|
|
503
515
|
right: 0;
|
|
504
516
|
bottom: 0;
|
|
505
517
|
}
|
|
506
|
-
`]
|
|
518
|
+
`],$e([o.property({type:String})],ze.prototype,"label",void 0),$e([o.property({reflect:!0})],ze.prototype,"value",void 0),$e([o.property({type:String})],ze.prototype,"helper",void 0),$e([o.property({type:Boolean})],ze.prototype,"outlined",void 0),$e([o.property({type:Boolean})],ze.prototype,"disabled",void 0),$e([o.property({type:Number,reflect:!0})],ze.prototype,"height",void 0),$e([o.query("textarea")],ze.prototype,"textarea",void 0),$e([o.state()],ze.prototype,"focused",void 0),e.customElement("ft-text-area")(ze),t.FtTextArea=ze,t.FtTextAreaCssVariables=we,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|