@fluid-topics/ft-text-field 0.2.22 → 0.3.0
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-field.d.ts +13 -13
- package/build/ft-text-field.js +14 -14
- package/build/ft-text-field.light.js +88 -87
- package/build/ft-text-field.min.js +94 -93
- package/package.json +7 -7
package/build/ft-text-field.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropertyValues } from "lit";
|
|
2
|
-
import { ElementDefinitionsMap,
|
|
2
|
+
import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
3
3
|
export interface FtTextFieldProperties {
|
|
4
4
|
label: string;
|
|
5
5
|
value?: string;
|
|
@@ -12,18 +12,18 @@ export interface FtTextFieldProperties {
|
|
|
12
12
|
iconVariant?: string;
|
|
13
13
|
}
|
|
14
14
|
export declare const FtTextFieldCssVariables: {
|
|
15
|
-
fontSize: FtCssVariable;
|
|
16
|
-
labelSize: FtCssVariable;
|
|
17
|
-
verticalSpacing: FtCssVariable;
|
|
18
|
-
horizontalSpacing: FtCssVariable;
|
|
19
|
-
helperColor: FtCssVariable;
|
|
20
|
-
colorPrimary: FtCssVariable;
|
|
21
|
-
colorOnSurface: FtCssVariable;
|
|
22
|
-
colorOnSurfaceDisabled: FtCssVariable;
|
|
23
|
-
borderRadiusS: FtCssVariable;
|
|
24
|
-
colorError: FtCssVariable;
|
|
25
|
-
prefixColor: FtCssVariable;
|
|
26
|
-
iconColor: FtCssVariable;
|
|
15
|
+
fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
16
|
+
labelSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
17
|
+
verticalSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
18
|
+
horizontalSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
19
|
+
helperColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
20
|
+
colorPrimary: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
21
|
+
colorOnSurface: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
22
|
+
colorOnSurfaceDisabled: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
23
|
+
borderRadiusS: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
24
|
+
colorError: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
25
|
+
prefixColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
26
|
+
iconColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
27
27
|
};
|
|
28
28
|
export declare class FtTextField extends FtLitElement implements FtTextFieldProperties {
|
|
29
29
|
static elementDefinitions: ElementDefinitionsMap;
|
package/build/ft-text-field.js
CHANGED
|
@@ -7,24 +7,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { css, html } from "lit";
|
|
8
8
|
import { property, query, state } from "lit/decorators.js";
|
|
9
9
|
import { classMap } from "lit/directives/class-map.js";
|
|
10
|
-
import { designSystemVariables,
|
|
10
|
+
import { designSystemVariables, FtCssVariableFactory, FtLitElement, setVariable } from "@fluid-topics/ft-wc-utils";
|
|
11
11
|
import { FtTypography, FtTypographyBody1, FtTypographyBody1CssVariables } from "@fluid-topics/ft-typography";
|
|
12
12
|
import { FtInputLabel, FtInputLabelCssVariables } from "@fluid-topics/ft-input-label";
|
|
13
13
|
import { FtRipple, FtRippleCssVariables } from "@fluid-topics/ft-ripple";
|
|
14
14
|
import { FtIcon } from "@fluid-topics/ft-icon";
|
|
15
15
|
export const FtTextFieldCssVariables = {
|
|
16
|
-
fontSize:
|
|
17
|
-
labelSize:
|
|
18
|
-
verticalSpacing:
|
|
19
|
-
horizontalSpacing:
|
|
20
|
-
helperColor:
|
|
21
|
-
colorPrimary:
|
|
22
|
-
colorOnSurface:
|
|
23
|
-
colorOnSurfaceDisabled:
|
|
24
|
-
borderRadiusS:
|
|
25
|
-
colorError:
|
|
26
|
-
prefixColor:
|
|
27
|
-
iconColor:
|
|
16
|
+
fontSize: FtCssVariableFactory.create("--ft-text-field-font-size", "SIZE", "14px"),
|
|
17
|
+
labelSize: FtCssVariableFactory.create("--ft-text-field-label-size", "SIZE", "11px"),
|
|
18
|
+
verticalSpacing: FtCssVariableFactory.create("--ft-text-field-vertical-spacing", "SIZE", "4px"),
|
|
19
|
+
horizontalSpacing: FtCssVariableFactory.create("--ft-text-field-horizontal-spacing", "SIZE", "16px"),
|
|
20
|
+
helperColor: FtCssVariableFactory.extend("--ft-text-field-helper-color", designSystemVariables.colorOnSurfaceMedium),
|
|
21
|
+
colorPrimary: FtCssVariableFactory.external(designSystemVariables.colorPrimary, "Design system"),
|
|
22
|
+
colorOnSurface: FtCssVariableFactory.external(designSystemVariables.colorOnSurface, "Design system"),
|
|
23
|
+
colorOnSurfaceDisabled: FtCssVariableFactory.external(designSystemVariables.colorOnSurfaceDisabled, "Design system"),
|
|
24
|
+
borderRadiusS: FtCssVariableFactory.external(designSystemVariables.borderRadiusS, "Design system"),
|
|
25
|
+
colorError: FtCssVariableFactory.external(designSystemVariables.colorError, "Design system"),
|
|
26
|
+
prefixColor: FtCssVariableFactory.extend("--ft-text-field-prefix-color", designSystemVariables.colorOnSurfaceMedium),
|
|
27
|
+
iconColor: FtCssVariableFactory.extend("--ft-text-field-icon-color", designSystemVariables.colorOnSurfaceMedium),
|
|
28
28
|
};
|
|
29
29
|
export class FtTextField extends FtLitElement {
|
|
30
30
|
constructor() {
|
|
@@ -170,7 +170,7 @@ FtTextField.styles = [
|
|
|
170
170
|
|
|
171
171
|
.ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
|
|
172
172
|
align-items: flex-end;
|
|
173
|
-
|
|
173
|
+
padding: 0 ${FtTextFieldCssVariables.horizontalSpacing} ${FtTextFieldCssVariables.verticalSpacing} ${FtTextFieldCssVariables.horizontalSpacing};
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.ft-text-field--prefix {
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var r;const n=globalThis.trustedTypes,p=n?n.createPolicy("lit-html",{createHTML:t=>t}):void 0,
|
|
7
|
+
var r;const n=globalThis.trustedTypes,p=n?n.createPolicy("lit-html",{createHTML:t=>t}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,a="?"+f,h=`<${a}>`,d=document,c=(t="")=>d.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g=/-->/g,b=/>/g,v=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),m=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,k=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),z=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),E=new WeakMap,j=d.createTreeWalker(d,129,null,!1),O=(t,e)=>{const i=t.length-1,o=[];let l,s=2===e?"<svg>":"",r=y;for(let e=0;e<i;e++){const i=t[e];let n,p,a=-1,d=0;for(;d<i.length&&(r.lastIndex=d,p=r.exec(i),null!==p);)d=r.lastIndex,r===y?"!--"===p[1]?r=g:void 0!==p[1]?r=b:void 0!==p[2]?(w.test(p[2])&&(l=RegExp("</"+p[2],"g")),r=v):void 0!==p[3]&&(r=v):r===v?">"===p[0]?(r=null!=l?l:y,a=-1):void 0===p[1]?a=-2:(a=r.lastIndex-p[2].length,n=p[1],r=void 0===p[3]?v:'"'===p[3]?$:m):r===$||r===m?r=v:r===g||r===b?r=y:(r=v,l=void 0);const c=r===v&&t[e+1].startsWith("/>")?" ":"";s+=r===y?i+h:a>=0?(o.push(n),i.slice(0,a)+"$lit$"+i.slice(a)+f+c):i+f+(-2===a?(o.push(void 0),e):c)}const n=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==p?p.createHTML(n):n,o]};class C{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let l=0,s=0;const r=t.length-1,p=this.parts,[h,d]=O(t,e);if(this.el=C.createElement(h,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())&&p.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(f)){const i=d[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(f),e=/([.?@])?(.*)/.exec(i);p.push({type:1,index:l,name:e[2],strings:t,ctor:"."===e[1]?B:"?"===e[1]?D:"@"===e[1]?M:_})}else p.push({type:6,index:l})}for(const e of t)o.removeAttribute(e)}if(w.test(o.tagName)){const t=o.textContent.split(f),e=t.length-1;if(e>0){o.textContent=n?n.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],c()),j.nextNode(),p.push({type:2,index:++l});o.append(t[e],c())}}}else if(8===o.nodeType)if(o.data===a)p.push({type:2,index:l});else{let t=-1;for(;-1!==(t=o.data.indexOf(f,t+1));)p.push({type:7,index:l}),t+=f.length-1}l++}}static createElement(t,e){const i=d.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,o){var l,s,r,n;if(e===z)return e;let p=void 0!==o?null===(l=i._$Cl)||void 0===l?void 0:l[o]:i._$Cu;const f=x(e)?void 0:e._$litDirective$;return(null==p?void 0:p.constructor)!==f&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===f?p=void 0:(p=new f(t),p._$AT(t,i,o)),void 0!==o?(null!==(r=(n=i)._$Cl)&&void 0!==r?r:n._$Cl=[])[o]=p:i._$Cu=p),void 0!==p&&(e=I(t,p._$AS(t,e.values),p,o)),e}class N{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,l=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:d).importNode(i,!0);j.currentNode=l;let s=j.nextNode(),r=0,n=0,p=o[0];for(;void 0!==p;){if(r===p.index){let e;2===p.type?e=new A(s,s.nextSibling,this,t):1===p.type?e=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(e=new T(s,this,t)),this.v.push(e),p=o[++n]}r!==(null==p?void 0:p.index)&&(s=j.nextNode(),r++)}return l}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 A{constructor(t,e,i,o){var l;this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(l=null==o?void 0:o.isConnected)||void 0===l||l}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}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),x(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==z&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>u(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==S&&x(this._$AH)?this._$AA.nextSibling.data=t:this.k(d.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,l="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=C.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===l)this._$AH.m(i);else{const t=new N(l,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new C(t)),e}S(t){u(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const l of t)o===e.length?e.push(i=new A(this.j(c()),this.j(c()),this,this.options)):i=e[o],i._$AI(l),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._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class _{constructor(t,e,i,o,l){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=l,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const l=this.strings;let s=!1;if(void 0===l)t=I(this,t,e,0),s=!x(t)||t!==this._$AH&&t!==z,s&&(this._$AH=t);else{const o=t;let r,n;for(t=l[0],r=0;r<l.length-1;r++)n=I(this,o[i+r],e,r),n===z&&(n=this._$AH[r]),s||(s=!x(n)||n!==this._$AH[r]),n===S?t=S:t!==S&&(t+=(null!=n?n:"")+l[r+1]),this._$AH[r]=n}s&&!o&&this.P(t)}P(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class B extends _{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===S?void 0:t}}const Z=n?n.emptyScript:"";class D extends _{constructor(){super(...arguments),this.type=4}P(t){t&&t!==S?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class M extends _{constructor(t,e,i,o,l){super(t,e,i,o,l),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=I(this,t,e,0))&&void 0!==i?i:S)===z)return;const o=this._$AH,l=t===S&&o!==S||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==S&&(o===S||l);l&&this.element.removeEventListener(this.name,this,o),s&&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 T{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 U=window.litHtmlPolyfillSupport;null==U||U(C,A),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const F=Symbol.for(""),R=t=>{
|
|
13
|
+
const F=Symbol.for(""),R=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t._$litStatic$},W=t=>({_$litStatic$:t,r:F}),G=new Map,H=(t=>(e,...i)=>{const o=i.length;let l,s;const r=[],n=[];let p,f=0,a=!1;for(;f<o;){for(p=e[f];f<o&&void 0!==(s=i[f],l=R(s));)p+=l+e[++f],a=!0;n.push(s),r.push(p),f++}if(f===o&&r.push(e[o]),a){const t=r.join("$$lit$$");void 0===(e=G.get(t))&&(r.raw=r,G.set(t,e=r)),i=n}return t(e,...i)})(k);var K,P=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!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"}(K||(K={}));const V=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),L={fontFamily:q,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},X=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",V),Y=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",L.fontSize,"20px"),J=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",L.fontWeight,"normal"),Q=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",L.letterSpacing,"0.15px"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",L.lineHeight,"1.2"),et=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",L.textTransform,"inherit"),it=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",V),ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",L.fontSize,"14px"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",L.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",L.letterSpacing,"0.105px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",L.lineHeight,"1.7"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",L.textTransform,"inherit"),pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",q),ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",L.fontSize,"16px"),at=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",L.fontWeight,"600"),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",L.letterSpacing,"0.144px"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",L.lineHeight,"1.5"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",L.textTransform,"inherit"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",q),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",L.fontSize,"14px"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",L.fontWeight,"normal"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",L.letterSpacing,"0.098px"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",L.lineHeight,"1.7"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",L.textTransform,"inherit"),mt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",L.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",L.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",L.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",L.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",L.textTransform,"inherit")},$t=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",q),wt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",L.fontSize,"14px"),kt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",L.fontWeight,"normal"),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",L.letterSpacing,"0.252px"),St=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",L.lineHeight,"1.4"),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",L.textTransform,"inherit"),jt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",L.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",L.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",L.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",L.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",L.textTransform,"inherit")},Ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",q),Ct=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",L.fontSize,"10px"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",L.fontWeight,"normal"),Nt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",L.letterSpacing,"0.33px"),At=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",L.lineHeight,"1.6"),_t=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",L.textTransform,"inherit"),Bt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",q),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",L.fontSize,"10px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",L.fontWeight,"normal"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",L.letterSpacing,"1.5px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",L.lineHeight,"1.6"),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",L.textTransform,"uppercase"),Ft=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",q),Rt=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",L.fontSize,"14px"),Wt=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",L.fontWeight,"600"),Gt=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",L.letterSpacing,"1.246px"),Ht=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",L.lineHeight,"1.15"),Kt=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",L.textTransform,"uppercase"),Pt=i.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${X};
|
|
16
16
|
font-size: ${Y};
|
|
@@ -19,7 +19,7 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
19
19
|
line-height: ${tt};
|
|
20
20
|
text-transform: ${et};
|
|
21
21
|
}
|
|
22
|
-
`,
|
|
22
|
+
`,Vt=i.css`
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
24
|
font-family: ${it};
|
|
25
25
|
font-size: ${ot};
|
|
@@ -28,11 +28,11 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
28
28
|
line-height: ${rt};
|
|
29
29
|
text-transform: ${nt};
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,qt=i.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
33
|
font-family: ${pt};
|
|
34
|
-
font-size: ${
|
|
35
|
-
font-weight: ${
|
|
34
|
+
font-size: ${ft};
|
|
35
|
+
font-weight: ${at};
|
|
36
36
|
letter-spacing: ${ht};
|
|
37
37
|
line-height: ${dt};
|
|
38
38
|
text-transform: ${ct};
|
|
@@ -63,21 +63,21 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
63
63
|
font-weight: ${kt};
|
|
64
64
|
letter-spacing: ${zt};
|
|
65
65
|
line-height: ${St};
|
|
66
|
-
text-transform: ${
|
|
66
|
+
text-transform: ${Et};
|
|
67
67
|
}
|
|
68
68
|
`,Jt=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: ${jt.fontFamily};
|
|
71
|
+
font-size: ${jt.fontSize};
|
|
72
|
+
font-weight: ${jt.fontWeight};
|
|
73
|
+
letter-spacing: ${jt.letterSpacing};
|
|
74
|
+
line-height: ${jt.lineHeight};
|
|
75
|
+
text-transform: ${jt.textTransform};
|
|
76
76
|
}
|
|
77
77
|
`,Qt=i.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
79
|
font-family: ${Ot};
|
|
80
|
-
font-size: ${
|
|
80
|
+
font-size: ${Ct};
|
|
81
81
|
font-weight: ${It};
|
|
82
82
|
letter-spacing: ${Nt};
|
|
83
83
|
line-height: ${At};
|
|
@@ -86,9 +86,9 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
86
86
|
`,te=i.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
88
|
font-family: ${Bt};
|
|
89
|
-
font-size: ${
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
89
|
+
font-size: ${Zt};
|
|
90
|
+
font-weight: ${Dt};
|
|
91
|
+
letter-spacing: ${Mt};
|
|
92
92
|
line-height: ${Tt};
|
|
93
93
|
text-transform: ${Ut};
|
|
94
94
|
}
|
|
@@ -108,11 +108,11 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
108
108
|
</${W(this.element)}>
|
|
109
109
|
`:H`
|
|
110
110
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
111
|
-
`}}ie.styles=[Vt,qt,
|
|
111
|
+
`}}ie.styles=[Pt,Vt,qt,Lt,Xt,Yt,Jt,Qt,te,ee,i.css`
|
|
112
112
|
.ft-typography {
|
|
113
113
|
vertical-align: inherit;
|
|
114
114
|
}
|
|
115
|
-
`],
|
|
115
|
+
`],P([o.property()],ie.prototype,"element",void 0),P([o.property()],ie.prototype,"variant",void 0),e.customElement("ft-typography")(ie);var oe=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const le={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")};class se extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!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,"ft-input-label--in-error":this.error};return i.html`
|
|
116
116
|
<div class="${l.classMap(t)}">
|
|
117
117
|
${this.text?i.html`
|
|
118
118
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -170,8 +170,8 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
170
170
|
border-color: inherit;
|
|
171
171
|
color: ${le.textColor};
|
|
172
172
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
173
|
-
${e.setVariable(
|
|
174
|
-
${e.setVariable(
|
|
173
|
+
${e.setVariable(jt.fontSize,le.fontSize)};
|
|
174
|
+
${e.setVariable(jt.lineHeight,le.fontSize)};
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -199,8 +199,8 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
.ft-input-label--raised .ft-input-label--text {
|
|
202
|
-
${e.setVariable(
|
|
203
|
-
${e.setVariable(
|
|
202
|
+
${e.setVariable(jt.fontSize,le.raisedFontSize)};
|
|
203
|
+
${e.setVariable(jt.lineHeight,le.raisedFontSize)};
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -237,7 +237,7 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
237
237
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
238
238
|
border-top: none;
|
|
239
239
|
}
|
|
240
|
-
`],oe([o.property({type:String})],se.prototype,"text",void 0),oe([o.property({type:Boolean})],se.prototype,"raised",void 0),oe([o.property({type:Boolean})],se.prototype,"outlined",void 0),oe([o.property({type:Boolean})],se.prototype,"disabled",void 0),oe([o.property({type:Boolean})],se.prototype,"error",void 0),e.customElement("ft-input-label")(se);var re=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const ne=e.
|
|
240
|
+
`],oe([o.property({type:String})],se.prototype,"text",void 0),oe([o.property({type:Boolean})],se.prototype,"raised",void 0),oe([o.property({type:Boolean})],se.prototype,"outlined",void 0),oe([o.property({type:Boolean})],se.prototype,"disabled",void 0),oe([o.property({type:Boolean})],se.prototype,"error",void 0),e.customElement("ft-input-label")(se);var re=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const ne=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),pe={color:ne,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",ne),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},fe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),ae=fe,he=e.FtCssVariableFactory.extend("--ft-ripple-background-color",fe),de=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),ce=de,xe=e.FtCssVariableFactory.extend("--ft-ripple-background-color",de);class ue 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.debouncer=new e.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.moveRipple=t=>{var e,i;let{x:o,y:l}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=l?l-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 i.html`
|
|
241
241
|
<style>
|
|
242
242
|
.ft-ripple .ft-ripple--effect,
|
|
243
243
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -296,7 +296,7 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
299
|
-
background-color: ${
|
|
299
|
+
background-color: ${ae};
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
.ft-ripple .ft-ripple--background {
|
|
@@ -343,47 +343,48 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
343
343
|
opacity: ${pe.opacityContentOnSurfacePressed};
|
|
344
344
|
transform: translate(-50%, -50%) scale(1);
|
|
345
345
|
}
|
|
346
|
-
`,re([o.property({type:Boolean})],ue.prototype,"primary",void 0),re([o.property({type:Boolean})],ue.prototype,"secondary",void 0),re([o.property({type:Boolean})],ue.prototype,"unbounded",void 0),re([o.property({type:Boolean})],ue.prototype,"activated",void 0),re([o.property({type:Boolean})],ue.prototype,"selected",void 0),re([o.property({type:Boolean})],ue.prototype,"disabled",void 0),re([o.state()],ue.prototype,"hovered",void 0),re([o.state()],ue.prototype,"focused",void 0),re([o.state()],ue.prototype,"pressed",void 0),re([o.state()],ue.prototype,"rippling",void 0),re([o.state()],ue.prototype,"rippleSize",void 0),re([o.state()],ue.prototype,"originX",void 0),re([o.state()],ue.prototype,"originY",void 0),re([o.query(".ft-ripple")],ue.prototype,"ripple",void 0),re([o.query(".ft-ripple--effect")],ue.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ue),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=""}(ye||(ye={})),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=""}(ge||(ge={})),new Map([...["abw"].map((t=>[t,ge.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,ge.AUDIO])),...["avi"].map((t=>[t,ge.AVI])),...["chm","xhs"].map((t=>[t,ge.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,ge.CODE])),...["csv"].map((t=>[t,ge.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ge.DITA])),...["epub"].map((t=>[t,ge.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ge.EXCEL])),...["flac"].map((t=>[t,ge.FLAC])),...["gif"].map((t=>[t,ge.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ge.GZIP])),...["html","htm","xhtml"].map((t=>[t,ge.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,ge.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ge.JPEG])),...["json"].map((t=>[t,ge.JSON])),...["m4a","m4p"].map((t=>[t,ge.M4A])),...["mov","qt"].map((t=>[t,ge.MOV])),...["mp3"].map((t=>[t,ge.MP3])),...["mp4","m4v"].map((t=>[t,ge.MP4])),...["ogg","oga"].map((t=>[t,ge.OGG])),...["pdf","ps"].map((t=>[t,ge.PDF])),...["png"].map((t=>[t,ge.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ge.POWERPOINT])),...["rar"].map((t=>[t,ge.RAR])),...["stp"].map((t=>[t,ge.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ge.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,ge.VIDEO])),...["wav"].map((t=>[t,ge.WAV])),...["wma"].map((t=>[t,ge.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ge.WORD])),...["xml","xsl","rdf"].map((t=>[t,ge.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ge.YAML])),...["zip"].map((t=>[t,ge.ZIP]))]);var be,ve=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(be||(be={}));const me=e.
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
</i>
|
|
351
|
-
`}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===be.file_format?null!==(t=ge[o.toUpperCase()])&&void 0!==t?t:o:this.variant===be.fluid_topics?null!==(e=ye[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}ze.elementDefinitions={},ze.styles=i.css`
|
|
352
|
-
:host {
|
|
353
|
-
display: inline-block;
|
|
354
|
-
}
|
|
355
|
-
:host, i.ft-icon {
|
|
356
|
-
width: ${me};
|
|
357
|
-
height: ${me};
|
|
358
|
-
text-align: center;
|
|
359
|
-
}
|
|
346
|
+
`,re([o.property({type:Boolean})],ue.prototype,"primary",void 0),re([o.property({type:Boolean})],ue.prototype,"secondary",void 0),re([o.property({type:Boolean})],ue.prototype,"unbounded",void 0),re([o.property({type:Boolean})],ue.prototype,"activated",void 0),re([o.property({type:Boolean})],ue.prototype,"selected",void 0),re([o.property({type:Boolean})],ue.prototype,"disabled",void 0),re([o.state()],ue.prototype,"hovered",void 0),re([o.state()],ue.prototype,"focused",void 0),re([o.state()],ue.prototype,"pressed",void 0),re([o.state()],ue.prototype,"rippling",void 0),re([o.state()],ue.prototype,"rippleSize",void 0),re([o.state()],ue.prototype,"originX",void 0),re([o.state()],ue.prototype,"originY",void 0),re([o.query(".ft-ripple")],ue.prototype,"ripple",void 0),re([o.query(".ft-ripple--effect")],ue.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ue),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=""}(ye||(ye={})),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=""}(ge||(ge={})),new Map([...["abw"].map((t=>[t,ge.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,ge.AUDIO])),...["avi"].map((t=>[t,ge.AVI])),...["chm","xhs"].map((t=>[t,ge.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,ge.CODE])),...["csv"].map((t=>[t,ge.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ge.DITA])),...["epub"].map((t=>[t,ge.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ge.EXCEL])),...["flac"].map((t=>[t,ge.FLAC])),...["gif"].map((t=>[t,ge.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ge.GZIP])),...["html","htm","xhtml"].map((t=>[t,ge.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,ge.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ge.JPEG])),...["json"].map((t=>[t,ge.JSON])),...["m4a","m4p"].map((t=>[t,ge.M4A])),...["mov","qt"].map((t=>[t,ge.MOV])),...["mp3"].map((t=>[t,ge.MP3])),...["mp4","m4v"].map((t=>[t,ge.MP4])),...["ogg","oga"].map((t=>[t,ge.OGG])),...["pdf","ps"].map((t=>[t,ge.PDF])),...["png"].map((t=>[t,ge.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ge.POWERPOINT])),...["rar"].map((t=>[t,ge.RAR])),...["stp"].map((t=>[t,ge.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ge.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,ge.VIDEO])),...["wav"].map((t=>[t,ge.WAV])),...["wma"].map((t=>[t,ge.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ge.WORD])),...["xml","xsl","rdf"].map((t=>[t,ge.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ge.YAML])),...["zip"].map((t=>[t,ge.ZIP]))]);var be,ve=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(be||(be={}));const me=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),$e=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),we=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),ke=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class ze extends e.FtLitElement{constructor(){super(...arguments),this.variant=be.fluid_topics}getStyles(){return i.css`
|
|
347
|
+
:host {
|
|
348
|
+
display: inline-block;
|
|
349
|
+
}
|
|
360
350
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
font-style: normal;
|
|
367
|
-
font-variant: normal;
|
|
368
|
-
speak: none;
|
|
369
|
-
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
370
|
-
text-rendering: auto;
|
|
371
|
-
-webkit-font-smoothing: antialiased;
|
|
372
|
-
-moz-osx-font-smoothing: grayscale;
|
|
373
|
-
}
|
|
351
|
+
:host, i.ft-icon {
|
|
352
|
+
width: ${me};
|
|
353
|
+
height: ${me};
|
|
354
|
+
text-align: center;
|
|
355
|
+
}
|
|
374
356
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
357
|
+
i.ft-icon {
|
|
358
|
+
font-size: ${me};
|
|
359
|
+
line-height: 1;
|
|
360
|
+
font-weight: normal;
|
|
361
|
+
text-transform: none;
|
|
362
|
+
font-style: normal;
|
|
363
|
+
font-variant: normal;
|
|
364
|
+
speak: none;
|
|
365
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
366
|
+
text-rendering: auto;
|
|
367
|
+
-webkit-font-smoothing: antialiased;
|
|
368
|
+
-moz-osx-font-smoothing: grayscale;
|
|
369
|
+
}
|
|
378
370
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
371
|
+
.ft-icon--fluid-topics {
|
|
372
|
+
font-family: ${$e}, ft-icons, fticons, sans-serif;
|
|
373
|
+
}
|
|
382
374
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
375
|
+
.ft-icon--file-format {
|
|
376
|
+
font-family: ${we}, ft-mime, sans-serif;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.ft-icon--material {
|
|
380
|
+
font-family: ${ke}, "Material Icons", sans-serif;
|
|
381
|
+
}
|
|
382
|
+
`}getTemplate(){return i.html`
|
|
383
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
384
|
+
${s.unsafeHTML(this.getIcon())}
|
|
385
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
386
|
+
</i>
|
|
387
|
+
`}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===be.file_format?null!==(t=ge[o.toUpperCase()])&&void 0!==t?t:o:this.variant===be.fluid_topics?null!==(e=ye[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}ze.elementDefinitions={},ve([o.property()],ze.prototype,"variant",void 0),ve([o.query("slot")],ze.prototype,"slottedContent",void 0),e.customElement("ft-icon")(ze);var Se=function(t,e,i,o){for(var l,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(l=t[n])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Ee={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color",e.designSystemVariables.colorOnSurfaceMedium)};class je extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return i.html`
|
|
387
388
|
<div class="${l.classMap(t)}">
|
|
388
389
|
<div class="ft-text-field--main-panel">
|
|
389
390
|
<ft-input-label text="${this.label}"
|
|
@@ -418,7 +419,7 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
418
419
|
<ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
|
|
419
420
|
</ft-typography>`:void 0}
|
|
420
421
|
</div>
|
|
421
|
-
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}
|
|
422
|
+
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}je.elementDefinitions={"ft-input-label":se,"ft-ripple":ue,"ft-typography":ie,"ft-icon":ze},je.styles=[Xt,i.css`
|
|
422
423
|
*:focus {
|
|
423
424
|
outline: none;
|
|
424
425
|
}
|
|
@@ -430,16 +431,16 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
430
431
|
}
|
|
431
432
|
|
|
432
433
|
ft-input-label {
|
|
433
|
-
${e.setVariable(le.fontSize,
|
|
434
|
-
${e.setVariable(le.raisedFontSize,
|
|
435
|
-
${e.setVariable(le.verticalSpacing,
|
|
436
|
-
${e.setVariable(le.horizontalSpacing,i.css`calc(${
|
|
434
|
+
${e.setVariable(le.fontSize,Ee.fontSize)};
|
|
435
|
+
${e.setVariable(le.raisedFontSize,Ee.labelSize)};
|
|
436
|
+
${e.setVariable(le.verticalSpacing,Ee.verticalSpacing)};
|
|
437
|
+
${e.setVariable(le.horizontalSpacing,i.css`calc(${Ee.horizontalSpacing} - 4px)`)};
|
|
437
438
|
}
|
|
438
439
|
|
|
439
440
|
.ft-text-field--main-panel {
|
|
440
441
|
position: relative;
|
|
441
442
|
display: flex;
|
|
442
|
-
height: calc(4 * ${
|
|
443
|
+
height: calc(4 * ${Ee.verticalSpacing} + ${Ee.labelSize} + ${Ee.fontSize});
|
|
443
444
|
}
|
|
444
445
|
|
|
445
446
|
.ft-text-field--input-panel {
|
|
@@ -462,20 +463,20 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
462
463
|
display: flex;
|
|
463
464
|
align-items: center;
|
|
464
465
|
|
|
465
|
-
${e.setVariable(mt.fontSize,
|
|
466
|
-
${e.setVariable(mt.lineHeight,
|
|
466
|
+
${e.setVariable(mt.fontSize,Ee.fontSize)};
|
|
467
|
+
${e.setVariable(mt.lineHeight,Ee.fontSize)};
|
|
467
468
|
|
|
468
|
-
padding: 0 ${
|
|
469
|
+
padding: 0 ${Ee.horizontalSpacing};
|
|
469
470
|
}
|
|
470
471
|
|
|
471
472
|
.ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
|
|
472
473
|
align-items: flex-end;
|
|
473
|
-
|
|
474
|
+
padding: 0 ${Ee.horizontalSpacing} ${Ee.verticalSpacing} ${Ee.horizontalSpacing};
|
|
474
475
|
}
|
|
475
476
|
|
|
476
477
|
.ft-text-field--prefix {
|
|
477
478
|
display: none;
|
|
478
|
-
color: ${
|
|
479
|
+
color: ${Ee.prefixColor}
|
|
479
480
|
}
|
|
480
481
|
|
|
481
482
|
.ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
|
|
@@ -489,15 +490,15 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
489
490
|
flex-shrink: 1;
|
|
490
491
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
491
492
|
|
|
492
|
-
color: ${
|
|
493
|
-
padding: calc(2 * ${
|
|
493
|
+
color: ${Ee.colorOnSurface};
|
|
494
|
+
padding: calc(2 * ${Ee.verticalSpacing}) 0;
|
|
494
495
|
border: none;
|
|
495
496
|
background: none;
|
|
496
497
|
}
|
|
497
498
|
|
|
498
499
|
.ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
|
|
499
500
|
padding-bottom: 0;
|
|
500
|
-
padding-top: calc(${
|
|
501
|
+
padding-top: calc(${Ee.labelSize} + 2 * ${Ee.verticalSpacing});
|
|
501
502
|
}
|
|
502
503
|
|
|
503
504
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -506,7 +507,7 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
506
507
|
}
|
|
507
508
|
|
|
508
509
|
.ft-text-field--disabled .ft-text-field--input {
|
|
509
|
-
color: ${
|
|
510
|
+
color: ${Ee.colorOnSurfaceDisabled};
|
|
510
511
|
}
|
|
511
512
|
|
|
512
513
|
.ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
|
|
@@ -514,31 +515,31 @@ const F=Symbol.for(""),R=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
514
515
|
}
|
|
515
516
|
|
|
516
517
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
517
|
-
${e.setVariable(le.borderColor,
|
|
518
|
-
${e.setVariable(le.textColor,
|
|
518
|
+
${e.setVariable(le.borderColor,Ee.colorPrimary)};
|
|
519
|
+
${e.setVariable(le.textColor,Ee.colorPrimary)};
|
|
519
520
|
}
|
|
520
521
|
|
|
521
522
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
522
|
-
border-radius: ${
|
|
523
|
+
border-radius: ${Ee.borderRadiusS} ${Ee.borderRadiusS} 0 0;
|
|
523
524
|
}
|
|
524
525
|
|
|
525
526
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
526
|
-
border-radius: ${
|
|
527
|
+
border-radius: ${Ee.borderRadiusS};
|
|
527
528
|
}
|
|
528
529
|
|
|
529
530
|
.ft-text-field--helper-text {
|
|
530
|
-
padding: 0 12px 0 ${
|
|
531
|
-
color: ${
|
|
531
|
+
padding: 0 12px 0 ${Ee.horizontalSpacing};
|
|
532
|
+
color: ${Ee.helperColor};
|
|
532
533
|
}
|
|
533
534
|
|
|
534
535
|
.ft-text-field--in-error .ft-text-field--input,
|
|
535
536
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
536
537
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
537
|
-
color: ${
|
|
538
|
+
color: ${Ee.colorError};
|
|
538
539
|
}
|
|
539
540
|
|
|
540
541
|
.ft-text-field--icon {
|
|
541
|
-
padding-right: ${
|
|
542
|
-
color: ${
|
|
542
|
+
padding-right: ${Ee.horizontalSpacing};
|
|
543
|
+
color: ${Ee.iconColor};
|
|
543
544
|
}
|
|
544
|
-
`],Se([o.property({type:String})],
|
|
545
|
+
`],Se([o.property({type:String})],je.prototype,"label",void 0),Se([o.property({reflect:!0})],je.prototype,"value",void 0),Se([o.property({type:String})],je.prototype,"helper",void 0),Se([o.property({type:Boolean})],je.prototype,"outlined",void 0),Se([o.property({type:Boolean})],je.prototype,"disabled",void 0),Se([o.property({type:Boolean})],je.prototype,"error",void 0),Se([o.query(".ft-text-field--input")],je.prototype,"input",void 0),Se([o.property({type:String})],je.prototype,"prefix",void 0),Se([o.property({type:String})],je.prototype,"icon",void 0),Se([o.property({type:String})],je.prototype,"iconVariant",void 0),Se([o.state()],je.prototype,"focused",void 0),e.customElement("ft-text-field")(je),t.FtTextField=je,t.FtTextFieldCssVariables=Ee,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|