@fluid-topics/ft-text-field 0.3.12 → 0.3.14
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.css.d.ts +16 -0
- package/build/ft-text-field.css.js +145 -0
- package/build/ft-text-field.d.ts +1 -25
- package/build/ft-text-field.js +7 -143
- package/build/ft-text-field.light.js +446 -446
- package/build/ft-text-field.min.js +455 -455
- package/build/ft-text-field.properties.d.ts +12 -0
- package/build/ft-text-field.properties.js +2 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/package.json +6 -6
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,s=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=r.prototype.attributeChangedCallback,a=new Set(r.observedAttributes||[]);c(r,a,l);const p={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(r,p);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(s.set(r,p),p.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!p(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,r=o._getDefinition(e);return r?u(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){r.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},c=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),a=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),y.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,s=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=r.prototype.attributeChangedCallback,a=new Set(r.observedAttributes||[]);c(r,a,l);const p={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(r,p);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(s.set(r,p),p.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!p(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,r=o._getDefinition(e);return r?u(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){r.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},c=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),a=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),y.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Qe){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -51,13 +51,13 @@ const a=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShad
|
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var y;const g=window.trustedTypes,
|
|
54
|
+
*/;var y;const g=window.trustedTypes,v=g?g.emptyScript:"",b=window.reactiveElementPolyfillSupport,m={toAttribute(t,e){switch(e){case Boolean:t=t?v: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==
|
|
60
|
+
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==b||b({ReactiveElement:O}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.4");const N=globalThis.trustedTypes,k=N?N.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!==k?k.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=N?N.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=N?N.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
|
|
@@ -88,120 +88,236 @@ var rt,nt;null==ot||ot(V,X),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
88
88
|
* Copyright 2017 Google LLC
|
|
89
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
90
90
|
*/
|
|
91
|
-
const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class
|
|
91
|
+
const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class vt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2018 Google LLC
|
|
95
95
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
96
|
-
*/const
|
|
96
|
+
*/const bt=gt(class extends vt{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 Nt
|
|
101
|
+
*/var Nt;!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"}(Nt||(Nt={}));const kt=at.extend("--ft-typography-font-family",ft.titleFont),Et=at.extend("--ft-typography-font-family",ft.contentFont),Ct={fontFamily:Et,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")},Rt=at.extend("--ft-typography-title-font-family",kt),Mt=at.extend("--ft-typography-title-font-size",Ct.fontSize,"20px"),Ut=at.extend("--ft-typography-title-font-weight",Ct.fontWeight,"normal"),zt=at.extend("--ft-typography-title-letter-spacing",Ct.letterSpacing,"0.15px"),Ft=at.extend("--ft-typography-title-line-height",Ct.lineHeight,"1.2"),jt=at.extend("--ft-typography-title-text-transform",Ct.textTransform,"inherit"),Bt=at.extend("--ft-typography-title-dense-font-family",kt),At=at.extend("--ft-typography-title-dense-font-size",Ct.fontSize,"14px"),Lt=at.extend("--ft-typography-title-dense-font-weight",Ct.fontWeight,"normal"),Tt=at.extend("--ft-typography-title-dense-letter-spacing",Ct.letterSpacing,"0.105px"),Dt=at.extend("--ft-typography-title-dense-line-height",Ct.lineHeight,"1.7"),Pt=at.extend("--ft-typography-title-dense-text-transform",Ct.textTransform,"inherit"),_t=at.extend("--ft-typography-subtitle1-font-family",Et),It=at.extend("--ft-typography-subtitle1-font-size",Ct.fontSize,"16px"),Wt=at.extend("--ft-typography-subtitle1-font-weight",Ct.fontWeight,"600"),Ht=at.extend("--ft-typography-subtitle1-letter-spacing",Ct.letterSpacing,"0.144px"),Kt=at.extend("--ft-typography-subtitle1-line-height",Ct.lineHeight,"1.5"),Zt=at.extend("--ft-typography-subtitle1-text-transform",Ct.textTransform,"inherit"),Vt=at.extend("--ft-typography-subtitle2-font-family",Et),Jt=at.extend("--ft-typography-subtitle2-font-size",Ct.fontSize,"14px"),qt=at.extend("--ft-typography-subtitle2-font-weight",Ct.fontWeight,"normal"),Xt=at.extend("--ft-typography-subtitle2-letter-spacing",Ct.letterSpacing,"0.098px"),Yt=at.extend("--ft-typography-subtitle2-line-height",Ct.lineHeight,"1.7"),Gt=at.extend("--ft-typography-subtitle2-text-transform",Ct.textTransform,"inherit"),Qt={fontFamily:at.extend("--ft-typography-body1-font-family",Et),fontSize:at.extend("--ft-typography-body1-font-size",Ct.fontSize,"16px"),fontWeight:at.extend("--ft-typography-body1-font-weight",Ct.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body1-letter-spacing",Ct.letterSpacing,"0.496px"),lineHeight:at.extend("--ft-typography-body1-line-height",Ct.lineHeight,"1.5"),textTransform:at.extend("--ft-typography-body1-text-transform",Ct.textTransform,"inherit")},te=at.extend("--ft-typography-body2-font-family",Et),ee=at.extend("--ft-typography-body2-font-size",Ct.fontSize,"14px"),ie=at.extend("--ft-typography-body2-font-weight",Ct.fontWeight,"normal"),oe=at.extend("--ft-typography-body2-letter-spacing",Ct.letterSpacing,"0.252px"),re=at.extend("--ft-typography-body2-line-height",Ct.lineHeight,"1.4"),ne=at.extend("--ft-typography-body2-text-transform",Ct.textTransform,"inherit"),se={fontFamily:at.extend("--ft-typography-caption-font-family",Et),fontSize:at.extend("--ft-typography-caption-font-size",Ct.fontSize,"12px"),fontWeight:at.extend("--ft-typography-caption-font-weight",Ct.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-caption-letter-spacing",Ct.letterSpacing,"0.396px"),lineHeight:at.extend("--ft-typography-caption-line-height",Ct.lineHeight,"1.33"),textTransform:at.extend("--ft-typography-caption-text-transform",Ct.textTransform,"inherit")},le=at.extend("--ft-typography-breadcrumb-font-family",Et),ae=at.extend("--ft-typography-breadcrumb-font-size",Ct.fontSize,"10px"),pe=at.extend("--ft-typography-breadcrumb-font-weight",Ct.fontWeight,"normal"),fe=at.extend("--ft-typography-breadcrumb-letter-spacing",Ct.letterSpacing,"0.33px"),he=at.extend("--ft-typography-breadcrumb-line-height",Ct.lineHeight,"1.6"),ce=at.extend("--ft-typography-breadcrumb-text-transform",Ct.textTransform,"inherit"),de=at.extend("--ft-typography-overline-font-family",Et),ue=at.extend("--ft-typography-overline-font-size",Ct.fontSize,"10px"),xe=at.extend("--ft-typography-overline-font-weight",Ct.fontWeight,"normal"),ye=at.extend("--ft-typography-overline-letter-spacing",Ct.letterSpacing,"1.5px"),ge=at.extend("--ft-typography-overline-line-height",Ct.lineHeight,"1.6"),ve=at.extend("--ft-typography-overline-text-transform",Ct.textTransform,"uppercase"),be=at.extend("--ft-typography-button-font-family",Et),me=at.extend("--ft-typography-button-font-size",Ct.fontSize,"14px"),$e=at.extend("--ft-typography-button-font-weight",Ct.fontWeight,"600"),we=at.extend("--ft-typography-button-letter-spacing",Ct.letterSpacing,"1.246px"),Oe=at.extend("--ft-typography-button-line-height",Ct.lineHeight,"1.15"),Se=at.extend("--ft-typography-button-text-transform",Ct.textTransform,"uppercase"),Ne=d`
|
|
102
102
|
.ft-typography--title {
|
|
103
|
-
font-family: ${
|
|
104
|
-
font-size: ${
|
|
105
|
-
font-weight: ${
|
|
106
|
-
letter-spacing: ${
|
|
107
|
-
line-height: ${
|
|
108
|
-
text-transform: ${
|
|
103
|
+
font-family: ${Rt};
|
|
104
|
+
font-size: ${Mt};
|
|
105
|
+
font-weight: ${Ut};
|
|
106
|
+
letter-spacing: ${zt};
|
|
107
|
+
line-height: ${Ft};
|
|
108
|
+
text-transform: ${jt};
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`,ke=d`
|
|
111
111
|
.ft-typography--title-dense {
|
|
112
|
-
font-family: ${
|
|
113
|
-
font-size: ${
|
|
114
|
-
font-weight: ${
|
|
115
|
-
letter-spacing: ${
|
|
116
|
-
line-height: ${
|
|
117
|
-
text-transform: ${
|
|
112
|
+
font-family: ${Bt};
|
|
113
|
+
font-size: ${At};
|
|
114
|
+
font-weight: ${Lt};
|
|
115
|
+
letter-spacing: ${Tt};
|
|
116
|
+
line-height: ${Dt};
|
|
117
|
+
text-transform: ${Pt};
|
|
118
118
|
}
|
|
119
|
-
`,
|
|
119
|
+
`,Ee=d`
|
|
120
120
|
.ft-typography--subtitle1 {
|
|
121
|
-
font-family: ${
|
|
122
|
-
font-size: ${
|
|
123
|
-
font-weight: ${
|
|
124
|
-
letter-spacing: ${
|
|
125
|
-
line-height: ${
|
|
126
|
-
text-transform: ${
|
|
121
|
+
font-family: ${_t};
|
|
122
|
+
font-size: ${It};
|
|
123
|
+
font-weight: ${Wt};
|
|
124
|
+
letter-spacing: ${Ht};
|
|
125
|
+
line-height: ${Kt};
|
|
126
|
+
text-transform: ${Zt};
|
|
127
127
|
}
|
|
128
|
-
`,
|
|
128
|
+
`,Ce=d`
|
|
129
129
|
.ft-typography--subtitle2 {
|
|
130
|
-
font-family: ${
|
|
131
|
-
font-size: ${
|
|
132
|
-
font-weight: ${
|
|
133
|
-
letter-spacing: ${
|
|
134
|
-
line-height: ${
|
|
135
|
-
text-transform: ${
|
|
130
|
+
font-family: ${Vt};
|
|
131
|
+
font-size: ${Jt};
|
|
132
|
+
font-weight: ${qt};
|
|
133
|
+
letter-spacing: ${Xt};
|
|
134
|
+
line-height: ${Yt};
|
|
135
|
+
text-transform: ${Gt};
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
`,
|
|
138
|
+
`,Re=d`
|
|
139
139
|
.ft-typography--body1 {
|
|
140
|
-
font-family: ${
|
|
141
|
-
font-size: ${
|
|
142
|
-
font-weight: ${
|
|
143
|
-
letter-spacing: ${
|
|
144
|
-
line-height: ${
|
|
145
|
-
text-transform: ${
|
|
140
|
+
font-family: ${Qt.fontFamily};
|
|
141
|
+
font-size: ${Qt.fontSize};
|
|
142
|
+
font-weight: ${Qt.fontWeight};
|
|
143
|
+
letter-spacing: ${Qt.letterSpacing};
|
|
144
|
+
line-height: ${Qt.lineHeight};
|
|
145
|
+
text-transform: ${Qt.textTransform};
|
|
146
146
|
}
|
|
147
|
-
`,
|
|
147
|
+
`,Me=d`
|
|
148
148
|
.ft-typography--body2 {
|
|
149
|
-
font-family: ${
|
|
150
|
-
font-size: ${
|
|
151
|
-
font-weight: ${
|
|
152
|
-
letter-spacing: ${
|
|
153
|
-
line-height: ${
|
|
154
|
-
text-transform: ${
|
|
149
|
+
font-family: ${te};
|
|
150
|
+
font-size: ${ee};
|
|
151
|
+
font-weight: ${ie};
|
|
152
|
+
letter-spacing: ${oe};
|
|
153
|
+
line-height: ${re};
|
|
154
|
+
text-transform: ${ne};
|
|
155
155
|
}
|
|
156
|
-
`,
|
|
156
|
+
`,Ue=d`
|
|
157
157
|
.ft-typography--caption {
|
|
158
|
-
font-family: ${
|
|
159
|
-
font-size: ${
|
|
160
|
-
font-weight: ${
|
|
161
|
-
letter-spacing: ${
|
|
162
|
-
line-height: ${
|
|
163
|
-
text-transform: ${
|
|
158
|
+
font-family: ${se.fontFamily};
|
|
159
|
+
font-size: ${se.fontSize};
|
|
160
|
+
font-weight: ${se.fontWeight};
|
|
161
|
+
letter-spacing: ${se.letterSpacing};
|
|
162
|
+
line-height: ${se.lineHeight};
|
|
163
|
+
text-transform: ${se.textTransform};
|
|
164
164
|
}
|
|
165
|
-
`,
|
|
165
|
+
`,ze=d`
|
|
166
166
|
.ft-typography--breadcrumb {
|
|
167
|
-
font-family: ${
|
|
168
|
-
font-size: ${
|
|
169
|
-
font-weight: ${
|
|
170
|
-
letter-spacing: ${
|
|
171
|
-
line-height: ${
|
|
172
|
-
text-transform: ${
|
|
167
|
+
font-family: ${le};
|
|
168
|
+
font-size: ${ae};
|
|
169
|
+
font-weight: ${pe};
|
|
170
|
+
letter-spacing: ${fe};
|
|
171
|
+
line-height: ${he};
|
|
172
|
+
text-transform: ${ce};
|
|
173
173
|
}
|
|
174
|
-
`,
|
|
174
|
+
`,Fe=d`
|
|
175
175
|
.ft-typography--overline {
|
|
176
|
-
font-family: ${
|
|
177
|
-
font-size: ${
|
|
178
|
-
font-weight: ${
|
|
179
|
-
letter-spacing: ${
|
|
180
|
-
line-height: ${
|
|
176
|
+
font-family: ${de};
|
|
177
|
+
font-size: ${ue};
|
|
178
|
+
font-weight: ${xe};
|
|
179
|
+
letter-spacing: ${ye};
|
|
180
|
+
line-height: ${ge};
|
|
181
181
|
text-transform: ${ve};
|
|
182
182
|
}
|
|
183
|
-
`,
|
|
183
|
+
`,je=d`
|
|
184
184
|
.ft-typography--button {
|
|
185
|
-
font-family: ${
|
|
186
|
-
font-size: ${
|
|
187
|
-
font-weight: ${
|
|
188
|
-
letter-spacing: ${
|
|
189
|
-
line-height: ${
|
|
190
|
-
text-transform: ${
|
|
191
|
-
}
|
|
192
|
-
|
|
185
|
+
font-family: ${be};
|
|
186
|
+
font-size: ${me};
|
|
187
|
+
font-weight: ${$e};
|
|
188
|
+
letter-spacing: ${we};
|
|
189
|
+
line-height: ${Oe};
|
|
190
|
+
text-transform: ${Se};
|
|
191
|
+
}
|
|
192
|
+
`,Be=d`
|
|
193
|
+
.ft-typography {
|
|
194
|
+
vertical-align: inherit;
|
|
195
|
+
}
|
|
196
|
+
`;var Ae=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 Le extends ut{constructor(){super(...arguments),this.variant=Nt.body1}render(){return this.element?St`
|
|
193
197
|
<${wt(this.element)}
|
|
194
198
|
class="ft-typography ft-typography--${this.variant}">
|
|
195
199
|
<slot></slot>
|
|
196
200
|
</${wt(this.element)}>
|
|
197
201
|
`:St`
|
|
198
202
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
199
|
-
`}}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
`}}Le.styles=[Ne,ke,Ee,Ce,Re,Me,Ue,ze,Fe,je,Be],Ae([o()],Le.prototype,"element",void 0),Ae([o()],Le.prototype,"variant",void 0),l("ft-typography")(Le);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")},De=d`
|
|
204
|
+
.ft-input-label {
|
|
205
|
+
position: absolute;
|
|
206
|
+
inset: 0;
|
|
207
|
+
display: flex;
|
|
208
|
+
background-color: ${Te.colorSurface};
|
|
209
|
+
border-radius: ${Te.borderRadiusS} ${Te.borderRadiusS} 0 0;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.ft-input-label--outlined {
|
|
213
|
+
border-radius: ${Te.borderRadiusS};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ft-input-label {
|
|
217
|
+
border-color: ${Te.borderColor};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.ft-input-label.ft-input-label--in-error {
|
|
221
|
+
border-color: ${Te.colorError}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.ft-input-label:before,
|
|
225
|
+
.ft-input-label:after {
|
|
226
|
+
content: "";
|
|
227
|
+
display: flex;
|
|
228
|
+
border-bottom-width: 1px;
|
|
229
|
+
border-bottom-style: solid;
|
|
230
|
+
border-color: inherit;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.ft-input-label:before {
|
|
234
|
+
width: ${Te.horizontalSpacing};
|
|
235
|
+
flex-shrink: 0;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.ft-input-label:after {
|
|
239
|
+
flex-grow: 1;
|
|
240
|
+
flex-shrink: 1;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.ft-input-label--text {
|
|
244
|
+
display: flex;
|
|
245
|
+
flex-shrink: 1;
|
|
246
|
+
position: relative;
|
|
247
|
+
border-bottom-width: 1px;
|
|
248
|
+
border-bottom-style: solid;
|
|
249
|
+
border-color: inherit;
|
|
250
|
+
color: ${Te.textColor};
|
|
251
|
+
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
252
|
+
${pt(se.fontSize,Te.fontSize)};
|
|
253
|
+
${pt(se.lineHeight,Te.fontSize)};
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.ft-input-label--in-error .ft-input-label--text {
|
|
257
|
+
color: ${Te.colorError}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.ft-input-label--disabled .ft-input-label--text {
|
|
261
|
+
color: ${Te.disabledTextColor};
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.ft-input-label--hidden-text {
|
|
265
|
+
padding: 0 4px;
|
|
266
|
+
opacity: 0;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.ft-input-label--floating-text {
|
|
270
|
+
position: absolute;
|
|
271
|
+
top: calc(50% - var(--ft-typography-caption-line-height) / 2);
|
|
272
|
+
transition: top 250ms;
|
|
273
|
+
overflow: hidden;
|
|
274
|
+
white-space: nowrap;
|
|
275
|
+
text-overflow: ellipsis;
|
|
276
|
+
padding: ${Te.verticalSpacing} 4px;
|
|
277
|
+
margin: calc(${Te.verticalSpacing} * -1) 0;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.ft-input-label--raised .ft-input-label--text {
|
|
281
|
+
${pt(se.fontSize,Te.raisedFontSize)};
|
|
282
|
+
${pt(se.lineHeight,Te.raisedFontSize)};
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.ft-input-label--raised .ft-input-label--floating-text {
|
|
286
|
+
top: ${Te.verticalSpacing};
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.ft-input-label--outlined .ft-input-label--text,
|
|
290
|
+
.ft-input-label--outlined:before,
|
|
291
|
+
.ft-input-label--outlined:after {
|
|
292
|
+
border-top-width: 1px;
|
|
293
|
+
border-top-style: solid;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.ft-input-label--outlined:before {
|
|
297
|
+
border-left-width: 1px;
|
|
298
|
+
border-left-style: solid;
|
|
299
|
+
border-radius: ${Te.borderRadiusS} 0 0 ${Te.borderRadiusS};
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.ft-input-label--outlined:after {
|
|
303
|
+
border-right-width: 1px;
|
|
304
|
+
border-right-style: solid;
|
|
305
|
+
border-radius: 0 ${Te.borderRadiusS} ${Te.borderRadiusS} 0;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
309
|
+
padding: 2px 4px;
|
|
310
|
+
z-index: ${Te.raisedZIndex};
|
|
311
|
+
background-color: ${Te.colorSurface};
|
|
312
|
+
border-radius: ${Te.borderRadiusS};
|
|
313
|
+
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
317
|
+
border-top: none;
|
|
318
|
+
}
|
|
319
|
+
`;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};class _e 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 _`
|
|
320
|
+
<div class="${bt(t)}">
|
|
205
321
|
${this.text?_`
|
|
206
322
|
<div class="ft-input-label--text ft-typography--caption">
|
|
207
323
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -209,123 +325,96 @@ const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{constructo
|
|
|
209
325
|
</div>
|
|
210
326
|
`:null}
|
|
211
327
|
</div>
|
|
212
|
-
`}}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
border-top-style: solid;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.ft-input-label--outlined:before {
|
|
306
|
-
border-left-width: 1px;
|
|
307
|
-
border-left-style: solid;
|
|
308
|
-
border-radius: ${Te.borderRadiusS} 0 0 ${Te.borderRadiusS};
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.ft-input-label--outlined:after {
|
|
312
|
-
border-right-width: 1px;
|
|
313
|
-
border-right-style: solid;
|
|
314
|
-
border-radius: 0 ${Te.borderRadiusS} ${Te.borderRadiusS} 0;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
318
|
-
padding: 2px 4px;
|
|
319
|
-
z-index: ${Te.raisedZIndex};
|
|
320
|
-
background-color: ${Te.colorSurface};
|
|
321
|
-
border-radius: ${Te.borderRadiusS};
|
|
322
|
-
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
326
|
-
border-top: none;
|
|
327
|
-
}
|
|
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 _`
|
|
328
|
+
`}}_e.elementDefinitions={},_e.styles=[Ue,De],Pe([o({type:String})],_e.prototype,"text",void 0),Pe([o({type:Boolean})],_e.prototype,"raised",void 0),Pe([o({type:Boolean})],_e.prototype,"outlined",void 0),Pe([o({type:Boolean})],_e.prototype,"disabled",void 0),Pe([o({type:Boolean})],_e.prototype,"error",void 0),l("ft-input-label")(_e);const Ie=at.extend("--ft-ripple-color",ft.colorContent),We={color:Ie,backgroundColor:at.extend("--ft-ripple-background-color",Ie),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")},He=at.extend("--ft-ripple-color",ft.colorPrimary),Ke=He,Ze=at.extend("--ft-ripple-background-color",He),Ve=at.extend("--ft-ripple-color",ft.colorSecondary),Je=Ve,qe=at.extend("--ft-ripple-background-color",Ve),Xe=d`
|
|
329
|
+
:host {
|
|
330
|
+
display: contents;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.ft-ripple {
|
|
334
|
+
position: absolute;
|
|
335
|
+
inset: 0;
|
|
336
|
+
pointer-events: none;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
340
|
+
overflow: hidden;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.ft-ripple .ft-ripple--background,
|
|
344
|
+
.ft-ripple .ft-ripple--effect {
|
|
345
|
+
position: absolute;
|
|
346
|
+
opacity: 0;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.ft-ripple .ft-ripple--background {
|
|
350
|
+
background-color: ${We.backgroundColor};
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.ft-ripple .ft-ripple--effect {
|
|
354
|
+
background-color: ${We.color};
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
358
|
+
background-color: ${qe};
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
362
|
+
background-color: ${Je};
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
366
|
+
background-color: ${Ze};
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
370
|
+
background-color: ${Ke};
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.ft-ripple .ft-ripple--background {
|
|
374
|
+
top: 0;
|
|
375
|
+
left: 0;
|
|
376
|
+
height: 100%;
|
|
377
|
+
width: 100%;
|
|
378
|
+
transition: opacity 75ms linear;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.ft-ripple .ft-ripple--effect,
|
|
382
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
383
|
+
border-radius: 50%;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.ft-ripple .ft-ripple--effect {
|
|
387
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
388
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
392
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
393
|
+
left: 50%;
|
|
394
|
+
top: 50%;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
398
|
+
transform: translate(-50%, -50%);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
402
|
+
opacity: ${We.opacityContentOnSurfaceHover};
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
406
|
+
opacity: ${We.opacityContentOnSurfaceSelected};
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
410
|
+
opacity: ${We.opacityContentOnSurfaceFocused};
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
414
|
+
opacity: ${We.opacityContentOnSurfacePressed};
|
|
415
|
+
transform: translate(-50%, -50%) scale(1);
|
|
416
|
+
}
|
|
417
|
+
`;var Ye=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 Ge 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
418
|
<style>
|
|
330
419
|
.ft-ripple .ft-ripple--effect,
|
|
331
420
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -338,149 +427,183 @@ const xt=1,yt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{constructo
|
|
|
338
427
|
top: ${this.originY}px;
|
|
339
428
|
}
|
|
340
429
|
</style>
|
|
341
|
-
<div class="${
|
|
430
|
+
<div class="${bt(t)}">
|
|
342
431
|
<div class="ft-ripple--background"></div>
|
|
343
432
|
<div class="ft-ripple--effect"></div>
|
|
344
433
|
</div>
|
|
345
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
|
|
346
|
-
:host {
|
|
347
|
-
display: contents;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
.ft-ripple {
|
|
351
|
-
position: absolute;
|
|
352
|
-
inset: 0;
|
|
353
|
-
pointer-events: none;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
357
|
-
overflow: hidden;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.ft-ripple .ft-ripple--background,
|
|
361
|
-
.ft-ripple .ft-ripple--effect {
|
|
362
|
-
position: absolute;
|
|
363
|
-
opacity: 0;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
.ft-ripple .ft-ripple--background {
|
|
367
|
-
background-color: ${Ie.backgroundColor};
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.ft-ripple .ft-ripple--effect {
|
|
371
|
-
background-color: ${Ie.color};
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
375
|
-
background-color: ${Je};
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
379
|
-
background-color: ${Ve};
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
383
|
-
background-color: ${Ke};
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
387
|
-
background-color: ${He};
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
.ft-ripple .ft-ripple--background {
|
|
391
|
-
top: 0;
|
|
392
|
-
left: 0;
|
|
393
|
-
height: 100%;
|
|
394
|
-
width: 100%;
|
|
395
|
-
transition: opacity 75ms linear;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
.ft-ripple .ft-ripple--effect,
|
|
399
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
400
|
-
border-radius: 50%;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.ft-ripple .ft-ripple--effect {
|
|
404
|
-
transform: translate(-50%, -50%) scale(0.15);
|
|
405
|
-
transition: transform 300ms ease, opacity 75ms linear;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
409
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
410
|
-
left: 50%;
|
|
411
|
-
top: 50%;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
415
|
-
transform: translate(-50%, -50%);
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
419
|
-
opacity: ${Ie.opacityContentOnSurfaceHover};
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
423
|
-
opacity: ${Ie.opacityContentOnSurfaceSelected};
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
427
|
-
opacity: ${Ie.opacityContentOnSurfaceFocused};
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
431
|
-
opacity: ${Ie.opacityContentOnSurfacePressed};
|
|
432
|
-
transform: translate(-50%, -50%) scale(1);
|
|
433
|
-
}
|
|
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);
|
|
434
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ge.elementDefinitions={},Ge.styles=Xe,Ye([o({type:Boolean})],Ge.prototype,"primary",void 0),Ye([o({type:Boolean})],Ge.prototype,"secondary",void 0),Ye([o({type:Boolean})],Ge.prototype,"unbounded",void 0),Ye([o({type:Boolean})],Ge.prototype,"activated",void 0),Ye([o({type:Boolean})],Ge.prototype,"selected",void 0),Ye([o({type:Boolean})],Ge.prototype,"disabled",void 0),Ye([r()],Ge.prototype,"hovered",void 0),Ye([r()],Ge.prototype,"focused",void 0),Ye([r()],Ge.prototype,"pressed",void 0),Ye([r()],Ge.prototype,"rippling",void 0),Ye([r()],Ge.prototype,"rippleSize",void 0),Ye([r()],Ge.prototype,"originX",void 0),Ye([r()],Ge.prototype,"originY",void 0),Ye([n(".ft-ripple")],Ge.prototype,"ripple",void 0),Ye([n(".ft-ripple--effect")],Ge.prototype,"rippleEffect",void 0),l("ft-ripple")(Ge);
|
|
435
435
|
/**
|
|
436
436
|
* @license
|
|
437
437
|
* Copyright 2017 Google LLC
|
|
438
438
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
439
439
|
*/
|
|
440
|
-
class
|
|
440
|
+
class Qe extends vt{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:[]}}}Qe.directiveName="unsafeHTML",Qe.resultType=1;const ti=gt(Qe);var ei,ii;!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=""}(ei||(ei={})),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=""}(ii||(ii={})),new Map([...["abw"].map((t=>[t,ii.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,ii.AUDIO])),...["avi"].map((t=>[t,ii.AVI])),...["chm","xhs"].map((t=>[t,ii.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,ii.CODE])),...["csv"].map((t=>[t,ii.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ii.DITA])),...["epub"].map((t=>[t,ii.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ii.EXCEL])),...["flac"].map((t=>[t,ii.FLAC])),...["gif"].map((t=>[t,ii.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ii.GZIP])),...["html","htm","xhtml"].map((t=>[t,ii.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,ii.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ii.JPEG])),...["json"].map((t=>[t,ii.JSON])),...["m4a","m4p"].map((t=>[t,ii.M4A])),...["mov","qt"].map((t=>[t,ii.MOV])),...["mp3"].map((t=>[t,ii.MP3])),...["mp4","m4v"].map((t=>[t,ii.MP4])),...["ogg","oga"].map((t=>[t,ii.OGG])),...["pdf","ps"].map((t=>[t,ii.PDF])),...["png"].map((t=>[t,ii.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ii.POWERPOINT])),...["rar"].map((t=>[t,ii.RAR])),...["stp"].map((t=>[t,ii.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ii.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,ii.VIDEO])),...["wav"].map((t=>[t,ii.WAV])),...["wma"].map((t=>[t,ii.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ii.WORD])),...["xml","xsl","rdf"].map((t=>[t,ii.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ii.YAML])),...["zip"].map((t=>[t,ii.ZIP]))]);const oi=at.create("--ft-icon-font-size","SIZE","24px"),ri=at.extend("--ft-icon-fluid-topics-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-icons")),ni=at.extend("--ft-icon-file-format-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-mime")),si=at.extend("--ft-icon-material-font-family",at.create("--ft-icon-font-family","UNKNOWN","Material Icons")),li=at.create("--ft-icon-vertical-align","UNKNOWN","unset"),ai=d`
|
|
441
|
+
:host {
|
|
442
|
+
display: inline-block;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
:host, i.ft-icon {
|
|
446
|
+
width: ${oi};
|
|
447
|
+
height: ${oi};
|
|
448
|
+
text-align: center;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
i.ft-icon {
|
|
452
|
+
font-size: ${oi};
|
|
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
|
+
vertical-align: ${li};
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.ft-icon--fluid-topics {
|
|
467
|
+
font-family: ${ri}, ft-icons, fticons, sans-serif;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.ft-icon--file-format {
|
|
471
|
+
font-family: ${ni}, ft-mime, sans-serif;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.ft-icon--material {
|
|
475
|
+
font-family: ${si}, "Material Icons", sans-serif;
|
|
476
|
+
}
|
|
477
|
+
`;var pi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(pi||(pi={}));var fi=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 hi extends ut{constructor(){super(...arguments),this.variant=pi.fluid_topics,this.resolvedIcon=W}render(){const t="material"!==this.variant||this.value;return _`
|
|
441
478
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
442
|
-
${
|
|
479
|
+
${ti(this.resolvedIcon)}
|
|
443
480
|
<slot ?hidden=${t}></slot>
|
|
444
481
|
</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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
.
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
482
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case pi.file_format:this.resolvedIcon=null!==(t=ii[i.toUpperCase()])&&void 0!==t?t:i;break;case pi.fluid_topics:this.resolvedIcon=null!==(e=ei[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||W}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}hi.elementDefinitions={},hi.styles=ai,fi([o()],hi.prototype,"variant",void 0),fi([o()],hi.prototype,"value",void 0),fi([r()],hi.prototype,"resolvedIcon",void 0),fi([n("slot")],hi.prototype,"slottedContent",void 0),l("ft-icon")(hi);const ci={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)},di=d`
|
|
483
|
+
*:focus {
|
|
484
|
+
outline: none;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.ft-text-field {
|
|
488
|
+
display: flex;
|
|
489
|
+
flex-direction: column;
|
|
490
|
+
align-items: stretch;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
ft-input-label {
|
|
494
|
+
${pt(Te.fontSize,ci.fontSize)};
|
|
495
|
+
${pt(Te.raisedFontSize,ci.labelSize)};
|
|
496
|
+
${pt(Te.verticalSpacing,ci.verticalSpacing)};
|
|
497
|
+
${pt(Te.horizontalSpacing,d`calc(${ci.horizontalSpacing} - 4px)`)};
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.ft-text-field--main-panel {
|
|
501
|
+
position: relative;
|
|
502
|
+
display: flex;
|
|
503
|
+
height: calc(4 * ${ci.verticalSpacing} + ${ci.labelSize} + ${ci.fontSize});
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.ft-text-field--input-panel {
|
|
507
|
+
flex-grow: 1;
|
|
508
|
+
position: relative;
|
|
509
|
+
display: flex;
|
|
510
|
+
align-items: center;
|
|
511
|
+
overflow: hidden;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.ft-text-field--input-panel ft-ripple {
|
|
515
|
+
${pt(We.opacityContentOnSurfaceHover,"0.08")};
|
|
516
|
+
${pt(We.opacityContentOnSurfacePressed,"0.04")};
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.ft-text-field--input-wrapper {
|
|
520
|
+
flex-grow: 1;
|
|
521
|
+
flex-shrink: 1;
|
|
522
|
+
|
|
523
|
+
display: flex;
|
|
524
|
+
align-items: center;
|
|
525
|
+
|
|
526
|
+
${pt(Qt.fontSize,ci.fontSize)};
|
|
527
|
+
${pt(Qt.lineHeight,ci.fontSize)};
|
|
528
|
+
|
|
529
|
+
padding: 0 ${ci.horizontalSpacing};
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
|
|
533
|
+
align-items: flex-end;
|
|
534
|
+
padding: 0 ${ci.horizontalSpacing} ${ci.verticalSpacing} ${ci.horizontalSpacing};
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.ft-text-field--prefix {
|
|
538
|
+
display: none;
|
|
539
|
+
color: ${ci.prefixColor}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
|
|
543
|
+
display: block;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.ft-text-field--input {
|
|
547
|
+
display: block;
|
|
548
|
+
position: relative;
|
|
549
|
+
flex-grow: 1;
|
|
550
|
+
flex-shrink: 1;
|
|
551
|
+
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
552
|
+
|
|
553
|
+
color: ${ci.colorOnSurface};
|
|
554
|
+
padding: calc(2 * ${ci.verticalSpacing}) 0;
|
|
555
|
+
border: none;
|
|
556
|
+
background: none;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
|
|
560
|
+
padding-bottom: 0;
|
|
561
|
+
padding-top: calc(${ci.labelSize} + 2 * ${ci.verticalSpacing});
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
565
|
+
.ft-text-field--input::-webkit-list-button {
|
|
566
|
+
display: none !important;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.ft-text-field--disabled .ft-text-field--input {
|
|
570
|
+
color: ${ci.colorOnSurfaceDisabled};
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
|
|
574
|
+
cursor: pointer;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
578
|
+
${pt(Te.borderColor,ci.colorPrimary)};
|
|
579
|
+
${pt(Te.textColor,ci.colorPrimary)};
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.ft-text-field--filled .ft-text-field--input-panel {
|
|
583
|
+
border-radius: ${ci.borderRadiusS} ${ci.borderRadiusS} 0 0;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
587
|
+
border-radius: ${ci.borderRadiusS};
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.ft-text-field--helper-text {
|
|
591
|
+
padding: 0 12px 0 ${ci.horizontalSpacing};
|
|
592
|
+
color: ${ci.helperColor};
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.ft-text-field--in-error .ft-text-field--input,
|
|
596
|
+
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
597
|
+
.ft-text-field--in-error .ft-text-field--prefix {
|
|
598
|
+
color: ${ci.colorError};
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.ft-text-field--icon {
|
|
602
|
+
padding-right: ${ci.horizontalSpacing};
|
|
603
|
+
color: ${ci.iconColor};
|
|
604
|
+
}
|
|
605
|
+
`;var ui=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 xi 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 _`
|
|
606
|
+
<div class="${bt(t)}">
|
|
484
607
|
<div class="ft-text-field--main-panel">
|
|
485
608
|
<ft-input-label text="${this.label}"
|
|
486
609
|
?disabled=${this.disabled}
|
|
@@ -514,127 +637,4 @@ class Xe extends bt{constructor(t){if(super(t),this.it=W,t.type!==yt)throw Error
|
|
|
514
637
|
<ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
|
|
515
638
|
</ft-typography>`:void 0}
|
|
516
639
|
</div>
|
|
517
|
-
`}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)||""}}
|
|
518
|
-
*:focus {
|
|
519
|
-
outline: none;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.ft-text-field {
|
|
523
|
-
display: flex;
|
|
524
|
-
flex-direction: column;
|
|
525
|
-
align-items: stretch;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
ft-input-label {
|
|
529
|
-
${pt(Te.fontSize,pi.fontSize)};
|
|
530
|
-
${pt(Te.raisedFontSize,pi.labelSize)};
|
|
531
|
-
${pt(Te.verticalSpacing,pi.verticalSpacing)};
|
|
532
|
-
${pt(Te.horizontalSpacing,d`calc(${pi.horizontalSpacing} - 4px)`)};
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
.ft-text-field--main-panel {
|
|
536
|
-
position: relative;
|
|
537
|
-
display: flex;
|
|
538
|
-
height: calc(4 * ${pi.verticalSpacing} + ${pi.labelSize} + ${pi.fontSize});
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
.ft-text-field--input-panel {
|
|
542
|
-
flex-grow: 1;
|
|
543
|
-
position: relative;
|
|
544
|
-
display: flex;
|
|
545
|
-
align-items: center;
|
|
546
|
-
overflow: hidden;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
.ft-text-field--input-panel ft-ripple {
|
|
550
|
-
${pt(Ie.opacityContentOnSurfaceHover,"0.08")};
|
|
551
|
-
${pt(Ie.opacityContentOnSurfacePressed,"0.04")};
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
.ft-text-field--input-wrapper {
|
|
555
|
-
flex-grow: 1;
|
|
556
|
-
flex-shrink: 1;
|
|
557
|
-
|
|
558
|
-
display: flex;
|
|
559
|
-
align-items: center;
|
|
560
|
-
|
|
561
|
-
${pt(te.fontSize,pi.fontSize)};
|
|
562
|
-
${pt(te.lineHeight,pi.fontSize)};
|
|
563
|
-
|
|
564
|
-
padding: 0 ${pi.horizontalSpacing};
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
.ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
|
|
568
|
-
align-items: flex-end;
|
|
569
|
-
padding: 0 ${pi.horizontalSpacing} ${pi.verticalSpacing} ${pi.horizontalSpacing};
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
.ft-text-field--prefix {
|
|
573
|
-
display: none;
|
|
574
|
-
color: ${pi.prefixColor}
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
.ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
|
|
578
|
-
display: block;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
.ft-text-field--input {
|
|
582
|
-
display: block;
|
|
583
|
-
position: relative;
|
|
584
|
-
flex-grow: 1;
|
|
585
|
-
flex-shrink: 1;
|
|
586
|
-
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
587
|
-
|
|
588
|
-
color: ${pi.colorOnSurface};
|
|
589
|
-
padding: calc(2 * ${pi.verticalSpacing}) 0;
|
|
590
|
-
border: none;
|
|
591
|
-
background: none;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
.ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
|
|
595
|
-
padding-bottom: 0;
|
|
596
|
-
padding-top: calc(${pi.labelSize} + 2 * ${pi.verticalSpacing});
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
600
|
-
.ft-text-field--input::-webkit-list-button {
|
|
601
|
-
display: none !important;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
.ft-text-field--disabled .ft-text-field--input {
|
|
605
|
-
color: ${pi.colorOnSurfaceDisabled};
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
.ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
|
|
609
|
-
cursor: pointer;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
613
|
-
${pt(Te.borderColor,pi.colorPrimary)};
|
|
614
|
-
${pt(Te.textColor,pi.colorPrimary)};
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
.ft-text-field--filled .ft-text-field--input-panel {
|
|
618
|
-
border-radius: ${pi.borderRadiusS} ${pi.borderRadiusS} 0 0;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
622
|
-
border-radius: ${pi.borderRadiusS};
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
.ft-text-field--helper-text {
|
|
626
|
-
padding: 0 12px 0 ${pi.horizontalSpacing};
|
|
627
|
-
color: ${pi.helperColor};
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
.ft-text-field--in-error .ft-text-field--input,
|
|
631
|
-
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
632
|
-
.ft-text-field--in-error .ft-text-field--prefix {
|
|
633
|
-
color: ${pi.colorError};
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
.ft-text-field--icon {
|
|
637
|
-
padding-right: ${pi.horizontalSpacing};
|
|
638
|
-
color: ${pi.iconColor};
|
|
639
|
-
}
|
|
640
|
-
`],ai([o({type:String})],fi.prototype,"label",void 0),ai([o({reflect:!0})],fi.prototype,"value",void 0),ai([o({type:String})],fi.prototype,"helper",void 0),ai([o({type:Boolean})],fi.prototype,"outlined",void 0),ai([o({type:Boolean})],fi.prototype,"disabled",void 0),ai([o({type:Boolean})],fi.prototype,"error",void 0),ai([n(".ft-text-field--input")],fi.prototype,"input",void 0),ai([o({type:String})],fi.prototype,"prefix",void 0),ai([o({type:String})],fi.prototype,"icon",void 0),ai([o({type:String})],fi.prototype,"iconVariant",void 0),ai([r()],fi.prototype,"focused",void 0),l("ft-text-field")(fi),t.FtTextField=fi,t.FtTextFieldCssVariables=pi,Object.defineProperty(t,"i",{value:!0})}({});
|
|
640
|
+
`}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)||""}}xi.elementDefinitions={"ft-input-label":_e,"ft-ripple":Ge,"ft-typography":Le,"ft-icon":hi},xi.styles=[Re,di],ui([o({type:String})],xi.prototype,"label",void 0),ui([o({reflect:!0})],xi.prototype,"value",void 0),ui([o({type:String})],xi.prototype,"helper",void 0),ui([o({type:Boolean})],xi.prototype,"outlined",void 0),ui([o({type:Boolean})],xi.prototype,"disabled",void 0),ui([o({type:Boolean})],xi.prototype,"error",void 0),ui([n(".ft-text-field--input")],xi.prototype,"input",void 0),ui([o({type:String})],xi.prototype,"prefix",void 0),ui([o({type:String})],xi.prototype,"icon",void 0),ui([o({type:String})],xi.prototype,"iconVariant",void 0),ui([r()],xi.prototype,"focused",void 0),l("ft-text-field")(xi),t.FtTextField=xi,t.FtTextFieldCssVariables=ci,t.styles=di,Object.defineProperty(t,"i",{value:!0})}({});
|