@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
|
@@ -46,30 +46,30 @@ function n(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var r;if(void 0===o)
|
|
|
46
46
|
* Copyright 2019 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
const a=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),f=new
|
|
49
|
+
const a=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),f=new WeakMap;class h{constructor(t,e,i){if(this._$cssResult$=!0,i!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(a&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&f.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new h("string"==typeof t?t:t+"",void 0,p),d=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new h(i,t,p)},u=(t,e)=>{a?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var y;const g=window.trustedTypes,b=g?g.emptyScript:"",v=window.reactiveElementPolyfillSupport,m={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},$=(t,e)=>e!==t&&(e==e||t==t),w={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:$};class O extends HTMLElement{constructor(){super(),this._$
|
|
54
|
+
*/;var y;const g=window.trustedTypes,b=g?g.emptyScript:"",v=window.reactiveElementPolyfillSupport,m={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},$=(t,e)=>e!==t&&(e==e||t==t),w={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:$};class O extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return u(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=w){var o,r;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const s=(null!==(r=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==r?r:m.toAttribute)(e,i.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i,o;const r=this.constructor,n=r._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=r.getPropertyOptions(n),s=t.converter,l=null!==(o=null!==(i=null==s?void 0:s.fromAttribute)&&void 0!==i?i:"function"==typeof s?s:null)&&void 0!==o?o:m.fromAttribute;this._$El=n,this[n]=l(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||$)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:O}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.
|
|
60
|
+
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:O}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.4");const k=globalThis.trustedTypes,N=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,C="?"+E,R=`<${C}>`,M=document,U=(t="")=>M.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,A=/>/g,L=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,D=/"/g,P=/^(?:script|style|textarea|title)$/i,_=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),H=new WeakMap,K=M.createTreeWalker(M,129,null,!1),Z=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",s=j;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,f=0;for(;f<i.length&&(s.lastIndex=f,a=s.exec(i),null!==a);)f=s.lastIndex,s===j?"!--"===a[1]?s=B:void 0!==a[1]?s=A:void 0!==a[2]?(P.test(a[2])&&(r=RegExp("</"+a[2],"g")),s=L):void 0!==a[3]&&(s=L):s===L?">"===a[0]?(s=null!=r?r:j,p=-1):void 0===a[1]?p=-2:(p=s.lastIndex-a[2].length,l=a[1],s=void 0===a[3]?L:'"'===a[3]?D:T):s===D||s===T?s=L:s===B||s===A?s=j:(s=L,r=void 0);const h=s===L&&t[e+1].startsWith("/>")?" ":"";n+=s===j?i+R:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+E+h):i+E+(-2===p?(o.push(void 0),e):h)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(l):l,o]};class V{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const s=t.length-1,l=this.parts,[a,p]=Z(t,e);if(this.el=V.createElement(a,i),K.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=K.nextNode())&&l.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?tt:"@"===e[1]?et:Y})}else l.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(P.test(o.tagName)){const t=o.textContent.split(E),e=t.length-1;if(e>0){o.textContent=k?k.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),K.nextNode(),l.push({type:2,index:++r});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===C)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)l.push({type:7,index:r}),t+=E.length-1}r++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function J(t,e,i=t,o){var r,n,s,l;if(e===I)return e;let a=void 0!==o?null===(r=i._$Cl)||void 0===r?void 0:r[o]:i._$Cu;const p=z(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(s=(l=i)._$Cl)&&void 0!==s?s:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=J(t,a._$AS(t,e.values),a,o)),e}class q{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,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);K.currentNode=r;let n=K.nextNode(),s=0,l=0,a=o[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new X(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new it(n,this,t)),this.v.push(e),a=o[++l]}s!==(null==a?void 0:a.index)&&(n=K.nextNode(),s++)}return r}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 X{constructor(t,e,i,o){var r;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}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=J(this,t,e),z(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==I&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>F(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!==W&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(M.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=V.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{const t=new q(r,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new V(t)),e}S(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new X(this.j(U()),this.j(U()),this,this.options)):i=e[o],i._$AI(r),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 Y{constructor(t,e,i,o,r){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=J(this,t,e,0),n=!z(t)||t!==this._$AH&&t!==I,n&&(this._$AH=t);else{const o=t;let s,l;for(t=r[0],s=0;s<r.length-1;s++)l=J(this,o[i+s],e,s),l===I&&(l=this._$AH[s]),n||(n=!z(l)||l!==this._$AH[s]),l===W?t=W:t!==W&&(t+=(null!=l?l:"")+r[s+1]),this._$AH[s]=l}n&&!o&&this.P(t)}P(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends Y{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===W?void 0:t}}const Q=k?k.emptyScript:"";class tt extends Y{constructor(){super(...arguments),this.type=4}P(t){t&&t!==W?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class et extends Y{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=J(this,t,e,0))&&void 0!==i?i:W)===I)return;const o=this._$AH,r=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==W&&(o===W||r);r&&this.element.removeEventListener(this.name,this,o),n&&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 it{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){J(this,t)}}const ot=window.litHtmlPolyfillSupport;
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
var rt,nt;null==ot||ot(V,X),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S:globalThis.litHtmlVersions=[]).push("2.2.
|
|
66
|
+
var rt,nt;null==ot||ot(V,X),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S:globalThis.litHtmlVersions=[]).push("2.2.7");class st extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=n._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;n._$litPart$=s=new X(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return I}}st.finalized=!0,st._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:st});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:st}),(null!==(nt=globalThis.litElementVersions)&&void 0!==nt?nt:globalThis.litElementVersions=[]).push("3.2.2");class at{static create(t,e,i){let o=t=>c(null!=t?t:i),r=d`var(${c(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>d`var(${c(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=d`var(${c(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>d`var(${c(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):c(null!=e?e:t.defaultValue),o=d`var(${c(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>d`var(${c(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function pt(t,e){return c(`${t.name}: ${e}`)}const ft={colorPrimary:at.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:at.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:at.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:at.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:at.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:at.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:at.create("--ft-color-error","COLOR","#B00020"),colorOutline:at.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:at.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:at.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:at.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:at.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:at.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:at.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:at.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:at.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:at.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:at.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:at.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:at.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:at.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:at.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:at.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:at.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:at.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:at.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:at.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:at.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:at.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:at.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:at.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:at.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:at.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:at.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:at.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:at.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:at.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:at.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:at.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:at.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:at.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:at.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:at.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:at.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:at.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:at.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:at.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:at.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:at.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:at.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:at.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:at.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:at.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:at.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:at.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:at.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:at.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:at.create("--ft-border-radius-XL","SIZE","16px"),titleFont:at.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:at.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:at.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:at.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
67
67
|
/**
|
|
68
68
|
* @license
|
|
69
69
|
* Copyright 2021 Google LLC
|
|
70
70
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
71
|
-
*/var ht,ct,dt=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class ut extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return u(r,this.constructor.elementStyles),r}}}(st)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),
|
|
72
|
-
${t.map((t=>
|
|
71
|
+
*/var ht,ct,dt=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class ut extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return u(r,this.constructor.elementStyles),r}}}(st)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),_`
|
|
72
|
+
${t.map((t=>_`
|
|
73
73
|
<style>${t}</style>
|
|
74
74
|
`))}
|
|
75
75
|
${this.getTemplate()}
|
|
@@ -93,12 +93,12 @@ const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{constructo
|
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2018 Google LLC
|
|
95
95
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
96
|
-
*/const vt=gt(class extends bt{constructor(t){var e;if(super(t),t.type!==xt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.
|
|
96
|
+
*/const vt=gt(class extends bt{constructor(t){var e;if(super(t),t.type!==xt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const r=t.element.classList;this.nt.forEach((t=>{t in e||(r.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return I}}),mt=Symbol.for(""),$t=t=>{if((null==t?void 0:t.r)===mt)return null==t?void 0:t._$litStatic$},wt=t=>({_$litStatic$:t,r:mt}),Ot=new Map,St=(t=>(e,...i)=>{const o=i.length;let r,n;const s=[],l=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],r=$t(n));)a+=r+e[++p],f=!0;l.push(n),s.push(a),p++}if(p===o&&s.push(e[o]),f){const t=s.join("$$lit$$");void 0===(e=Ot.get(t))&&(s.raw=s,Ot.set(t,e=s)),i=l}return t(e,...i)})(_);
|
|
97
97
|
/**
|
|
98
98
|
* @license
|
|
99
99
|
* Copyright 2020 Google LLC
|
|
100
100
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
|
-
*/var
|
|
101
|
+
*/var kt,Nt=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};!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"}(kt||(kt={}));const Et=at.extend("--ft-typography-font-family",ft.titleFont),Ct=at.extend("--ft-typography-font-family",ft.contentFont),Rt={fontFamily:Ct,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:at.create("--ft-typography-text-transform","UNKNOWN","inherit")},Mt=at.extend("--ft-typography-title-font-family",Et),Ut=at.extend("--ft-typography-title-font-size",Rt.fontSize,"20px"),zt=at.extend("--ft-typography-title-font-weight",Rt.fontWeight,"normal"),Ft=at.extend("--ft-typography-title-letter-spacing",Rt.letterSpacing,"0.15px"),jt=at.extend("--ft-typography-title-line-height",Rt.lineHeight,"1.2"),Bt=at.extend("--ft-typography-title-text-transform",Rt.textTransform,"inherit"),At=at.extend("--ft-typography-title-dense-font-family",Et),Lt=at.extend("--ft-typography-title-dense-font-size",Rt.fontSize,"14px"),Tt=at.extend("--ft-typography-title-dense-font-weight",Rt.fontWeight,"normal"),Dt=at.extend("--ft-typography-title-dense-letter-spacing",Rt.letterSpacing,"0.105px"),Pt=at.extend("--ft-typography-title-dense-line-height",Rt.lineHeight,"1.7"),_t=at.extend("--ft-typography-title-dense-text-transform",Rt.textTransform,"inherit"),It=at.extend("--ft-typography-subtitle1-font-family",Ct),Wt=at.extend("--ft-typography-subtitle1-font-size",Rt.fontSize,"16px"),Ht=at.extend("--ft-typography-subtitle1-font-weight",Rt.fontWeight,"600"),Kt=at.extend("--ft-typography-subtitle1-letter-spacing",Rt.letterSpacing,"0.144px"),Zt=at.extend("--ft-typography-subtitle1-line-height",Rt.lineHeight,"1.5"),Vt=at.extend("--ft-typography-subtitle1-text-transform",Rt.textTransform,"inherit"),Jt=at.extend("--ft-typography-subtitle2-font-family",Ct),qt=at.extend("--ft-typography-subtitle2-font-size",Rt.fontSize,"14px"),Xt=at.extend("--ft-typography-subtitle2-font-weight",Rt.fontWeight,"normal"),Yt=at.extend("--ft-typography-subtitle2-letter-spacing",Rt.letterSpacing,"0.098px"),Gt=at.extend("--ft-typography-subtitle2-line-height",Rt.lineHeight,"1.7"),Qt=at.extend("--ft-typography-subtitle2-text-transform",Rt.textTransform,"inherit"),te={fontFamily:at.extend("--ft-typography-body1-font-family",Ct),fontSize:at.extend("--ft-typography-body1-font-size",Rt.fontSize,"16px"),fontWeight:at.extend("--ft-typography-body1-font-weight",Rt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body1-letter-spacing",Rt.letterSpacing,"0.496px"),lineHeight:at.extend("--ft-typography-body1-line-height",Rt.lineHeight,"1.5"),textTransform:at.extend("--ft-typography-body1-text-transform",Rt.textTransform,"inherit")},ee=at.extend("--ft-typography-body2-font-family",Ct),ie=at.extend("--ft-typography-body2-font-size",Rt.fontSize,"14px"),oe=at.extend("--ft-typography-body2-font-weight",Rt.fontWeight,"normal"),re=at.extend("--ft-typography-body2-letter-spacing",Rt.letterSpacing,"0.252px"),ne=at.extend("--ft-typography-body2-line-height",Rt.lineHeight,"1.4"),se=at.extend("--ft-typography-body2-text-transform",Rt.textTransform,"inherit"),le={fontFamily:at.extend("--ft-typography-caption-font-family",Ct),fontSize:at.extend("--ft-typography-caption-font-size",Rt.fontSize,"12px"),fontWeight:at.extend("--ft-typography-caption-font-weight",Rt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-caption-letter-spacing",Rt.letterSpacing,"0.396px"),lineHeight:at.extend("--ft-typography-caption-line-height",Rt.lineHeight,"1.33"),textTransform:at.extend("--ft-typography-caption-text-transform",Rt.textTransform,"inherit")},ae=at.extend("--ft-typography-breadcrumb-font-family",Ct),pe=at.extend("--ft-typography-breadcrumb-font-size",Rt.fontSize,"10px"),fe=at.extend("--ft-typography-breadcrumb-font-weight",Rt.fontWeight,"normal"),he=at.extend("--ft-typography-breadcrumb-letter-spacing",Rt.letterSpacing,"0.33px"),ce=at.extend("--ft-typography-breadcrumb-line-height",Rt.lineHeight,"1.6"),de=at.extend("--ft-typography-breadcrumb-text-transform",Rt.textTransform,"inherit"),ue=at.extend("--ft-typography-overline-font-family",Ct),xe=at.extend("--ft-typography-overline-font-size",Rt.fontSize,"10px"),ye=at.extend("--ft-typography-overline-font-weight",Rt.fontWeight,"normal"),ge=at.extend("--ft-typography-overline-letter-spacing",Rt.letterSpacing,"1.5px"),be=at.extend("--ft-typography-overline-line-height",Rt.lineHeight,"1.6"),ve=at.extend("--ft-typography-overline-text-transform",Rt.textTransform,"uppercase"),me=at.extend("--ft-typography-button-font-family",Ct),$e=at.extend("--ft-typography-button-font-size",Rt.fontSize,"14px"),we=at.extend("--ft-typography-button-font-weight",Rt.fontWeight,"600"),Oe=at.extend("--ft-typography-button-letter-spacing",Rt.letterSpacing,"1.246px"),Se=at.extend("--ft-typography-button-line-height",Rt.lineHeight,"1.15"),ke=at.extend("--ft-typography-button-text-transform",Rt.textTransform,"uppercase"),Ne=d`
|
|
102
102
|
.ft-typography--title {
|
|
103
103
|
font-family: ${Mt};
|
|
104
104
|
font-size: ${Ut};
|
|
@@ -107,16 +107,16 @@ const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{constructo
|
|
|
107
107
|
line-height: ${jt};
|
|
108
108
|
text-transform: ${Bt};
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`,Ee=d`
|
|
111
111
|
.ft-typography--title-dense {
|
|
112
112
|
font-family: ${At};
|
|
113
|
-
font-size: ${
|
|
114
|
-
font-weight: ${
|
|
115
|
-
letter-spacing: ${
|
|
116
|
-
line-height: ${
|
|
117
|
-
text-transform: ${
|
|
113
|
+
font-size: ${Lt};
|
|
114
|
+
font-weight: ${Tt};
|
|
115
|
+
letter-spacing: ${Dt};
|
|
116
|
+
line-height: ${Pt};
|
|
117
|
+
text-transform: ${_t};
|
|
118
118
|
}
|
|
119
|
-
`,
|
|
119
|
+
`,Ce=d`
|
|
120
120
|
.ft-typography--subtitle1 {
|
|
121
121
|
font-family: ${It};
|
|
122
122
|
font-size: ${Wt};
|
|
@@ -187,47 +187,47 @@ const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{constructo
|
|
|
187
187
|
font-weight: ${we};
|
|
188
188
|
letter-spacing: ${Oe};
|
|
189
189
|
line-height: ${Se};
|
|
190
|
-
text-transform: ${
|
|
190
|
+
text-transform: ${ke};
|
|
191
191
|
}
|
|
192
|
-
`;class Ae extends ut{constructor(){super(...arguments),this.variant=
|
|
192
|
+
`;class Ae extends ut{constructor(){super(...arguments),this.variant=kt.body1}render(){return this.element?St`
|
|
193
193
|
<${wt(this.element)}
|
|
194
194
|
class="ft-typography ft-typography--${this.variant}">
|
|
195
195
|
<slot></slot>
|
|
196
196
|
</${wt(this.element)}>
|
|
197
197
|
`:St`
|
|
198
198
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
199
|
-
`}}Ae.styles=[Ne,
|
|
199
|
+
`}}Ae.styles=[Ne,Ee,Ce,Re,Me,Ue,ze,Fe,je,Be,d`
|
|
200
200
|
.ft-typography {
|
|
201
201
|
vertical-align: inherit;
|
|
202
202
|
}
|
|
203
|
-
`],Nt([o()],Ae.prototype,"element",void 0),Nt([o()],Ae.prototype,"variant",void 0),l("ft-typography")(Ae);var
|
|
203
|
+
`],Nt([o()],Ae.prototype,"element",void 0),Nt([o()],Ae.prototype,"variant",void 0),l("ft-typography")(Ae);var Le=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const Te={fontSize:at.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:at.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:at.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:at.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:at.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:at.extend("--ft-input-label-border-color",ft.colorOutline),textColor:at.extend("--ft-input-label-text-color",ft.colorOnSurfaceMedium),disabledTextColor:at.extend("--ft-input-label-disabled-text-color",ft.colorOnSurfaceDisabled),colorSurface:at.external(ft.colorSurface,"Design system"),borderRadiusS:at.external(ft.borderRadiusS,"Design system"),colorError:at.external(ft.colorError,"Design system")};class De extends ut{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 _`
|
|
204
204
|
<div class="${vt(t)}">
|
|
205
|
-
${this.text?
|
|
205
|
+
${this.text?_`
|
|
206
206
|
<div class="ft-input-label--text ft-typography--caption">
|
|
207
207
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
208
208
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
209
209
|
</div>
|
|
210
210
|
`:null}
|
|
211
211
|
</div>
|
|
212
|
-
`}}
|
|
212
|
+
`}}De.elementDefinitions={},De.styles=[ze,d`
|
|
213
213
|
.ft-input-label {
|
|
214
214
|
position: absolute;
|
|
215
215
|
inset: 0;
|
|
216
216
|
display: flex;
|
|
217
|
-
background-color: ${
|
|
218
|
-
border-radius: ${
|
|
217
|
+
background-color: ${Te.colorSurface};
|
|
218
|
+
border-radius: ${Te.borderRadiusS} ${Te.borderRadiusS} 0 0;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.ft-input-label--outlined {
|
|
222
|
-
border-radius: ${
|
|
222
|
+
border-radius: ${Te.borderRadiusS};
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
.ft-input-label {
|
|
226
|
-
border-color: ${
|
|
226
|
+
border-color: ${Te.borderColor};
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.ft-input-label.ft-input-label--in-error {
|
|
230
|
-
border-color: ${
|
|
230
|
+
border-color: ${Te.colorError}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.ft-input-label:before,
|
|
@@ -240,7 +240,7 @@ const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{constructo
|
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
.ft-input-label:before {
|
|
243
|
-
width: ${
|
|
243
|
+
width: ${Te.horizontalSpacing};
|
|
244
244
|
flex-shrink: 0;
|
|
245
245
|
}
|
|
246
246
|
|
|
@@ -256,18 +256,18 @@ const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{constructo
|
|
|
256
256
|
border-bottom-width: 1px;
|
|
257
257
|
border-bottom-style: solid;
|
|
258
258
|
border-color: inherit;
|
|
259
|
-
color: ${
|
|
259
|
+
color: ${Te.textColor};
|
|
260
260
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
261
|
-
${pt(le.fontSize,
|
|
262
|
-
${pt(le.lineHeight,
|
|
261
|
+
${pt(le.fontSize,Te.fontSize)};
|
|
262
|
+
${pt(le.lineHeight,Te.fontSize)};
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
.ft-input-label--in-error .ft-input-label--text {
|
|
266
|
-
color: ${
|
|
266
|
+
color: ${Te.colorError}
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
.ft-input-label--disabled .ft-input-label--text {
|
|
270
|
-
color: ${
|
|
270
|
+
color: ${Te.disabledTextColor};
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
.ft-input-label--hidden-text {
|
|
@@ -282,17 +282,17 @@ const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{constructo
|
|
|
282
282
|
overflow: hidden;
|
|
283
283
|
white-space: nowrap;
|
|
284
284
|
text-overflow: ellipsis;
|
|
285
|
-
padding: ${
|
|
286
|
-
margin: calc(${
|
|
285
|
+
padding: ${Te.verticalSpacing} 4px;
|
|
286
|
+
margin: calc(${Te.verticalSpacing} * -1) 0;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
.ft-input-label--raised .ft-input-label--text {
|
|
290
|
-
${pt(le.fontSize,
|
|
291
|
-
${pt(le.lineHeight,
|
|
290
|
+
${pt(le.fontSize,Te.raisedFontSize)};
|
|
291
|
+
${pt(le.lineHeight,Te.raisedFontSize)};
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
295
|
-
top: ${
|
|
295
|
+
top: ${Te.verticalSpacing};
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -305,27 +305,27 @@ const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{constructo
|
|
|
305
305
|
.ft-input-label--outlined:before {
|
|
306
306
|
border-left-width: 1px;
|
|
307
307
|
border-left-style: solid;
|
|
308
|
-
border-radius: ${
|
|
308
|
+
border-radius: ${Te.borderRadiusS} 0 0 ${Te.borderRadiusS};
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
.ft-input-label--outlined:after {
|
|
312
312
|
border-right-width: 1px;
|
|
313
313
|
border-right-style: solid;
|
|
314
|
-
border-radius: 0 ${
|
|
314
|
+
border-radius: 0 ${Te.borderRadiusS} ${Te.borderRadiusS} 0;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
318
318
|
padding: 2px 4px;
|
|
319
|
-
z-index: ${
|
|
320
|
-
background-color: ${
|
|
321
|
-
border-radius: ${
|
|
319
|
+
z-index: ${Te.raisedZIndex};
|
|
320
|
+
background-color: ${Te.colorSurface};
|
|
321
|
+
border-radius: ${Te.borderRadiusS};
|
|
322
322
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
326
326
|
border-top: none;
|
|
327
327
|
}
|
|
328
|
-
`],
|
|
328
|
+
`],Le([o({type:String})],De.prototype,"text",void 0),Le([o({type:Boolean})],De.prototype,"raised",void 0),Le([o({type:Boolean})],De.prototype,"outlined",void 0),Le([o({type:Boolean})],De.prototype,"disabled",void 0),Le([o({type:Boolean})],De.prototype,"error",void 0),l("ft-input-label")(De);var Pe=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const _e=at.extend("--ft-ripple-color",ft.colorContent),Ie={color:_e,backgroundColor:at.extend("--ft-ripple-background-color",_e),opacityContentOnSurfacePressed:at.external(ft.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:at.external(ft.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:at.external(ft.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:at.external(ft.opacityContentOnSurfaceSelected,"Design system")},We=at.extend("--ft-ripple-color",ft.colorPrimary),He=We,Ke=at.extend("--ft-ripple-background-color",We),Ze=at.extend("--ft-ripple-color",ft.colorSecondary),Ve=Ze,Je=at.extend("--ft-ripple-background-color",Ze);class qe extends ut{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.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 _`
|
|
329
329
|
<style>
|
|
330
330
|
.ft-ripple .ft-ripple--effect,
|
|
331
331
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -431,53 +431,54 @@ const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{constructo
|
|
|
431
431
|
opacity: ${Ie.opacityContentOnSurfacePressed};
|
|
432
432
|
transform: translate(-50%, -50%) scale(1);
|
|
433
433
|
}
|
|
434
|
-
`,
|
|
434
|
+
`,Pe([o({type:Boolean})],qe.prototype,"primary",void 0),Pe([o({type:Boolean})],qe.prototype,"secondary",void 0),Pe([o({type:Boolean})],qe.prototype,"unbounded",void 0),Pe([o({type:Boolean})],qe.prototype,"activated",void 0),Pe([o({type:Boolean})],qe.prototype,"selected",void 0),Pe([o({type:Boolean})],qe.prototype,"disabled",void 0),Pe([r()],qe.prototype,"hovered",void 0),Pe([r()],qe.prototype,"focused",void 0),Pe([r()],qe.prototype,"pressed",void 0),Pe([r()],qe.prototype,"rippling",void 0),Pe([r()],qe.prototype,"rippleSize",void 0),Pe([r()],qe.prototype,"originX",void 0),Pe([r()],qe.prototype,"originY",void 0),Pe([n(".ft-ripple")],qe.prototype,"ripple",void 0),Pe([n(".ft-ripple--effect")],qe.prototype,"rippleEffect",void 0),l("ft-ripple")(qe);
|
|
435
435
|
/**
|
|
436
436
|
* @license
|
|
437
437
|
* Copyright 2017 Google LLC
|
|
438
438
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
439
439
|
*/
|
|
440
|
-
class Xe extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this.
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
</i>
|
|
445
|
-
`}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 i=this.textContent;return this.variant===ti.file_format?null!==(t=Qe[i.toUpperCase()])&&void 0!==t?t:i:this.variant===ti.fluid_topics?null!==(e=Ge[i.toUpperCase()])&&void 0!==e?e:i:W}}si.elementDefinitions={},si.styles=d`
|
|
446
|
-
:host {
|
|
447
|
-
display: inline-block;
|
|
448
|
-
}
|
|
449
|
-
:host, i.ft-icon {
|
|
450
|
-
width: ${ii};
|
|
451
|
-
height: ${ii};
|
|
452
|
-
text-align: center;
|
|
453
|
-
}
|
|
440
|
+
class Xe extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this._t=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Xe.directiveName="unsafeHTML",Xe.resultType=1;const Ye=gt(Xe);var Ge,Qe;!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=""}(Ge||(Ge={})),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=""}(Qe||(Qe={})),new Map([...["abw"].map((t=>[t,Qe.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,Qe.AUDIO])),...["avi"].map((t=>[t,Qe.AVI])),...["chm","xhs"].map((t=>[t,Qe.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,Qe.CODE])),...["csv"].map((t=>[t,Qe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Qe.DITA])),...["epub"].map((t=>[t,Qe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Qe.EXCEL])),...["flac"].map((t=>[t,Qe.FLAC])),...["gif"].map((t=>[t,Qe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Qe.GZIP])),...["html","htm","xhtml"].map((t=>[t,Qe.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,Qe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Qe.JPEG])),...["json"].map((t=>[t,Qe.JSON])),...["m4a","m4p"].map((t=>[t,Qe.M4A])),...["mov","qt"].map((t=>[t,Qe.MOV])),...["mp3"].map((t=>[t,Qe.MP3])),...["mp4","m4v"].map((t=>[t,Qe.MP4])),...["ogg","oga"].map((t=>[t,Qe.OGG])),...["pdf","ps"].map((t=>[t,Qe.PDF])),...["png"].map((t=>[t,Qe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Qe.POWERPOINT])),...["rar"].map((t=>[t,Qe.RAR])),...["stp"].map((t=>[t,Qe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Qe.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,Qe.VIDEO])),...["wav"].map((t=>[t,Qe.WAV])),...["wma"].map((t=>[t,Qe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Qe.WORD])),...["xml","xsl","rdf"].map((t=>[t,Qe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Qe.YAML])),...["zip"].map((t=>[t,Qe.ZIP]))]);var ti,ei=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ti||(ti={}));const ii=at.create("--ft-icon-font-size","SIZE","24px"),oi=at.extend("--ft-icon-fluid-topics-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-icons")),ri=at.extend("--ft-icon-file-format-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-mime")),ni=at.extend("--ft-icon-material-font-family",at.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class si extends ut{constructor(){super(...arguments),this.variant=ti.fluid_topics}getStyles(){return d`
|
|
441
|
+
:host {
|
|
442
|
+
display: inline-block;
|
|
443
|
+
}
|
|
454
444
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
font-style: normal;
|
|
461
|
-
font-variant: normal;
|
|
462
|
-
speak: none;
|
|
463
|
-
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
464
|
-
text-rendering: auto;
|
|
465
|
-
-webkit-font-smoothing: antialiased;
|
|
466
|
-
-moz-osx-font-smoothing: grayscale;
|
|
467
|
-
}
|
|
445
|
+
:host, i.ft-icon {
|
|
446
|
+
width: ${ii};
|
|
447
|
+
height: ${ii};
|
|
448
|
+
text-align: center;
|
|
449
|
+
}
|
|
468
450
|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
451
|
+
i.ft-icon {
|
|
452
|
+
font-size: ${ii};
|
|
453
|
+
line-height: 1;
|
|
454
|
+
font-weight: normal;
|
|
455
|
+
text-transform: none;
|
|
456
|
+
font-style: normal;
|
|
457
|
+
font-variant: normal;
|
|
458
|
+
speak: none;
|
|
459
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
460
|
+
text-rendering: auto;
|
|
461
|
+
-webkit-font-smoothing: antialiased;
|
|
462
|
+
-moz-osx-font-smoothing: grayscale;
|
|
463
|
+
}
|
|
472
464
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
465
|
+
.ft-icon--fluid-topics {
|
|
466
|
+
font-family: ${oi}, ft-icons, fticons, sans-serif;
|
|
467
|
+
}
|
|
476
468
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
469
|
+
.ft-icon--file-format {
|
|
470
|
+
font-family: ${ri}, ft-mime, sans-serif;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.ft-icon--material {
|
|
474
|
+
font-family: ${ni}, "Material Icons", sans-serif;
|
|
475
|
+
}
|
|
476
|
+
`}getTemplate(){return _`
|
|
477
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
478
|
+
${Ye(this.getIcon())}
|
|
479
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
480
|
+
</i>
|
|
481
|
+
`}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 i=this.textContent;return this.variant===ti.file_format?null!==(t=Qe[i.toUpperCase()])&&void 0!==t?t:i:this.variant===ti.fluid_topics?null!==(e=Ge[i.toUpperCase()])&&void 0!==e?e:i:W}}si.elementDefinitions={},ei([o()],si.prototype,"variant",void 0),ei([n("slot")],si.prototype,"slottedContent",void 0),l("ft-icon")(si);var li=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const ai={fontSize:at.create("--ft-text-field-font-size","SIZE","14px"),labelSize:at.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:at.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:at.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:at.extend("--ft-text-field-helper-color",ft.colorOnSurfaceMedium),colorPrimary:at.external(ft.colorPrimary,"Design system"),colorOnSurface:at.external(ft.colorOnSurface,"Design system"),colorOnSurfaceDisabled:at.external(ft.colorOnSurfaceDisabled,"Design system"),borderRadiusS:at.external(ft.borderRadiusS,"Design system"),colorError:at.external(ft.colorError,"Design system"),prefixColor:at.extend("--ft-text-field-prefix-color",ft.colorOnSurfaceMedium),iconColor:at.extend("--ft-text-field-icon-color",ft.colorOnSurfaceMedium)};class pi extends ut{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 _`
|
|
481
482
|
<div class="${vt(t)}">
|
|
482
483
|
<div class="ft-text-field--main-panel">
|
|
483
484
|
<ft-input-label text="${this.label}"
|
|
@@ -488,7 +489,7 @@ class Xe extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
488
489
|
></ft-input-label>
|
|
489
490
|
<div class="ft-text-field--input-panel"
|
|
490
491
|
aria-label="${this.label}">
|
|
491
|
-
${this.outlined?null:
|
|
492
|
+
${this.outlined?null:_`
|
|
492
493
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
493
494
|
`}
|
|
494
495
|
<div class="ft-text-field--input-wrapper">
|
|
@@ -503,16 +504,16 @@ class Xe extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
503
504
|
@focusout=${()=>this.focused=!1}
|
|
504
505
|
/>
|
|
505
506
|
</div>
|
|
506
|
-
${this.icon?
|
|
507
|
+
${this.icon?_`
|
|
507
508
|
<ft-icon class="ft-text-field--icon" variant="${this.iconVariant}">${this.icon}
|
|
508
509
|
</ft-icon>`:void 0}
|
|
509
510
|
</div>
|
|
510
511
|
</div>
|
|
511
|
-
${this.helper?
|
|
512
|
+
${this.helper?_`
|
|
512
513
|
<ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
|
|
513
514
|
</ft-typography>`:void 0}
|
|
514
515
|
</div>
|
|
515
|
-
`}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)||""}}pi.elementDefinitions={"ft-input-label":
|
|
516
|
+
`}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)||""}}pi.elementDefinitions={"ft-input-label":De,"ft-ripple":qe,"ft-typography":Ae,"ft-icon":si},pi.styles=[Me,d`
|
|
516
517
|
*:focus {
|
|
517
518
|
outline: none;
|
|
518
519
|
}
|
|
@@ -524,10 +525,10 @@ class Xe extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
524
525
|
}
|
|
525
526
|
|
|
526
527
|
ft-input-label {
|
|
527
|
-
${pt(
|
|
528
|
-
${pt(
|
|
529
|
-
${pt(
|
|
530
|
-
${pt(
|
|
528
|
+
${pt(Te.fontSize,ai.fontSize)};
|
|
529
|
+
${pt(Te.raisedFontSize,ai.labelSize)};
|
|
530
|
+
${pt(Te.verticalSpacing,ai.verticalSpacing)};
|
|
531
|
+
${pt(Te.horizontalSpacing,d`calc(${ai.horizontalSpacing} - 4px)`)};
|
|
531
532
|
}
|
|
532
533
|
|
|
533
534
|
.ft-text-field--main-panel {
|
|
@@ -564,7 +565,7 @@ class Xe extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
564
565
|
|
|
565
566
|
.ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
|
|
566
567
|
align-items: flex-end;
|
|
567
|
-
|
|
568
|
+
padding: 0 ${ai.horizontalSpacing} ${ai.verticalSpacing} ${ai.horizontalSpacing};
|
|
568
569
|
}
|
|
569
570
|
|
|
570
571
|
.ft-text-field--prefix {
|
|
@@ -608,8 +609,8 @@ class Xe extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
608
609
|
}
|
|
609
610
|
|
|
610
611
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
611
|
-
${pt(
|
|
612
|
-
${pt(
|
|
612
|
+
${pt(Te.borderColor,ai.colorPrimary)};
|
|
613
|
+
${pt(Te.textColor,ai.colorPrimary)};
|
|
613
614
|
}
|
|
614
615
|
|
|
615
616
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
@@ -635,4 +636,4 @@ class Xe extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
635
636
|
padding-right: ${ai.horizontalSpacing};
|
|
636
637
|
color: ${ai.iconColor};
|
|
637
638
|
}
|
|
638
|
-
`],li([o({type:String})],pi.prototype,"label",void 0),li([o({reflect:!0})],pi.prototype,"value",void 0),li([o({type:String})],pi.prototype,"helper",void 0),li([o({type:Boolean})],pi.prototype,"outlined",void 0),li([o({type:Boolean})],pi.prototype,"disabled",void 0),li([o({type:Boolean})],pi.prototype,"error",void 0),li([n(".ft-text-field--input")],pi.prototype,"input",void 0),li([o({type:String})],pi.prototype,"prefix",void 0),li([o({type:String})],pi.prototype,"icon",void 0),li([o({type:String})],pi.prototype,"iconVariant",void 0),li([r()],pi.prototype,"focused",void 0),l("ft-text-field")(pi),t.FtTextField=pi,t.FtTextFieldCssVariables=ai,Object.defineProperty(t,"
|
|
639
|
+
`],li([o({type:String})],pi.prototype,"label",void 0),li([o({reflect:!0})],pi.prototype,"value",void 0),li([o({type:String})],pi.prototype,"helper",void 0),li([o({type:Boolean})],pi.prototype,"outlined",void 0),li([o({type:Boolean})],pi.prototype,"disabled",void 0),li([o({type:Boolean})],pi.prototype,"error",void 0),li([n(".ft-text-field--input")],pi.prototype,"input",void 0),li([o({type:String})],pi.prototype,"prefix",void 0),li([o({type:String})],pi.prototype,"icon",void 0),li([o({type:String})],pi.prototype,"iconVariant",void 0),li([r()],pi.prototype,"focused",void 0),l("ft-text-field")(pi),t.FtTextField=pi,t.FtTextFieldCssVariables=ai,Object.defineProperty(t,"i",{value:!0})}({});
|