@fluid-topics/ft-text-area 0.3.4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-text-area.light.js +79 -78
- package/build/ft-text-area.min.js +74 -73
- package/package.json +5 -5
|
@@ -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,s=new WeakMap,n=new WeakMap,a=new WeakMap;let l;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 a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const p={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(r,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(n.set(r,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.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=l;if(e)return l=void 0,e;const i=n.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,h=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=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?u(i,r):s.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.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)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,r),i.call(this,s,t,r)}else o.call(this,s,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),l=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&&a.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,s=new WeakMap,n=new WeakMap,a=new WeakMap;let l;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 a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const p={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(r,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(n.set(r,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.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=l;if(e)return l=void 0,e;const i=n.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,h=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=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?u(i,r):s.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.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)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,r),i.call(this,s,t,r)}else o.call(this,s,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),l=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&&a.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 s{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 n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Le){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 l=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 s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(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==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i,o;const r=this.constructor,s=r._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=r.getPropertyOptions(s),n=t.converter,a=null!==(o=null!==(i=null==n?void 0:n.fromAttribute)&&void 0!==i?i:"function"==typeof n?n:null)&&void 0!==o?o:m.fromAttribute;this._$El=s,this[s]=a(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,E=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,k=`lit$${(Math.random()+"").slice(9)}$`,C="?"+k,R=`<${C}>`,z=document,M=(t="")=>z.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,B=/>/g,A=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),L=/'/g,T=/"/g,P=/^(?:script|style|textarea|title)$/i,_=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),W=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),H=new WeakMap,K=z.createTreeWalker(z,129,null,!1),Z=(t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",n=j;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,l=n.exec(i),null!==l);)h=n.lastIndex,n===j?"!--"===l[1]?n=D:void 0!==l[1]?n=B:void 0!==l[2]?(P.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=A):void 0!==l[3]&&(n=A):n===A?">"===l[0]?(n=null!=r?r:j,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?A:'"'===l[3]?T:L):n===T||n===L?n=A:n===D||n===B?n=j:(n=A,r=void 0);const c=n===A&&t[e+1].startsWith("/>")?" ":"";s+=n===j?i+R:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+k+c):i+k+(-2===p?(o.push(void 0),e):c)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(a):a,o]};class V{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,p]=Z(t,e);if(this.el=V.createElement(l,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())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(k)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(k),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?tt:"@"===e[1]?et:Y})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(P.test(o.tagName)){const t=o.textContent.split(k),e=t.length-1;if(e>0){o.textContent=N?N.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],M()),K.nextNode(),a.push({type:2,index:++r});o.append(t[e],M())}}}else if(8===o.nodeType)if(o.data===C)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(k,t+1));)a.push({type:7,index:r}),t+=k.length-1}r++}}static createElement(t,e){const i=z.createElement("template");return i.innerHTML=t,i}}function J(t,e,i=t,o){var r,s,n,a;if(e===W)return e;let l=void 0!==o?null===(r=i._$Cl)||void 0===r?void 0:r[o]:i._$Cu;const p=U(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=J(t,l._$AS(t,e.values),l,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:z).importNode(i,!0);K.currentNode=r;let s=K.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new X(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new it(s,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(s=K.nextNode(),n++)}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=I,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),U(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==W&&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!==I&&U(this._$AH)?this._$AA.nextSibling.data=t:this.k(z.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(M()),this.j(M()),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=I,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=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(void 0===r)t=J(this,t,e,0),s=!U(t)||t!==this._$AH&&t!==W,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=J(this,o[i+n],e,n),a===W&&(a=this._$AH[n]),s||(s=!U(a)||a!==this._$AH[n]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.P(t)}P(t){t===I?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===I?void 0:t}}const Q=N?N.emptyScript:"";class tt extends Y{constructor(){super(...arguments),this.type=4}P(t){t&&t!==I?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:I)===W)return;const o=this._$AH,r=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==I&&(o===I||r);r&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class 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,17 +88,17 @@ var rt,st;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 yt=1,gt=2,
|
|
91
|
+
const yt=1,gt=2,vt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{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 mt=
|
|
96
|
+
*/const mt=vt(class extends bt{constructor(t){var e;if(super(t),t.type!==yt||"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 W}}),$t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void 0:t._$litStatic$},Ot=t=>({_$litStatic$:t,r:$t}),St=new Map,Nt=(t=>(e,...i)=>{const o=i.length;let r,s;const n=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(s=i[p],r=wt(s));)l+=r+e[++p],h=!0;a.push(s),n.push(l),p++}if(p===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=St.get(t))&&(n.raw=n,St.set(t,e=n)),i=a}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 Et,kt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Et||(Et={}));const Ct=lt.extend("--ft-typography-font-family",ht.titleFont),Rt=lt.extend("--ft-typography-font-family",ht.contentFont),zt={fontFamily:Rt,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Mt=lt.extend("--ft-typography-title-font-family",Ct),Ut=lt.extend("--ft-typography-title-font-size",zt.fontSize,"20px"),Ft=lt.extend("--ft-typography-title-font-weight",zt.fontWeight,"normal"),jt=lt.extend("--ft-typography-title-letter-spacing",zt.letterSpacing,"0.15px"),Dt=lt.extend("--ft-typography-title-line-height",zt.lineHeight,"1.2"),Bt=lt.extend("--ft-typography-title-text-transform",zt.textTransform,"inherit"),At=lt.extend("--ft-typography-title-dense-font-family",Ct),Lt=lt.extend("--ft-typography-title-dense-font-size",zt.fontSize,"14px"),Tt=lt.extend("--ft-typography-title-dense-font-weight",zt.fontWeight,"normal"),Pt=lt.extend("--ft-typography-title-dense-letter-spacing",zt.letterSpacing,"0.105px"),_t=lt.extend("--ft-typography-title-dense-line-height",zt.lineHeight,"1.7"),Wt=lt.extend("--ft-typography-title-dense-text-transform",zt.textTransform,"inherit"),It=lt.extend("--ft-typography-subtitle1-font-family",Rt),Ht=lt.extend("--ft-typography-subtitle1-font-size",zt.fontSize,"16px"),Kt=lt.extend("--ft-typography-subtitle1-font-weight",zt.fontWeight,"600"),Zt=lt.extend("--ft-typography-subtitle1-letter-spacing",zt.letterSpacing,"0.144px"),Vt=lt.extend("--ft-typography-subtitle1-line-height",zt.lineHeight,"1.5"),Jt=lt.extend("--ft-typography-subtitle1-text-transform",zt.textTransform,"inherit"),qt=lt.extend("--ft-typography-subtitle2-font-family",Rt),Xt=lt.extend("--ft-typography-subtitle2-font-size",zt.fontSize,"14px"),Yt=lt.extend("--ft-typography-subtitle2-font-weight",zt.fontWeight,"normal"),Gt=lt.extend("--ft-typography-subtitle2-letter-spacing",zt.letterSpacing,"0.098px"),Qt=lt.extend("--ft-typography-subtitle2-line-height",zt.lineHeight,"1.7"),te=lt.extend("--ft-typography-subtitle2-text-transform",zt.textTransform,"inherit"),ee={fontFamily:lt.extend("--ft-typography-body1-font-family",Rt),fontSize:lt.extend("--ft-typography-body1-font-size",zt.fontSize,"16px"),fontWeight:lt.extend("--ft-typography-body1-font-weight",zt.fontWeight,"normal"),letterSpacing:lt.extend("--ft-typography-body1-letter-spacing",zt.letterSpacing,"0.496px"),lineHeight:lt.extend("--ft-typography-body1-line-height",zt.lineHeight,"1.5"),textTransform:lt.extend("--ft-typography-body1-text-transform",zt.textTransform,"inherit")},ie=lt.extend("--ft-typography-body2-font-family",Rt),oe=lt.extend("--ft-typography-body2-font-size",zt.fontSize,"14px"),re=lt.extend("--ft-typography-body2-font-weight",zt.fontWeight,"normal"),se=lt.extend("--ft-typography-body2-letter-spacing",zt.letterSpacing,"0.252px"),ne=lt.extend("--ft-typography-body2-line-height",zt.lineHeight,"1.4"),ae=lt.extend("--ft-typography-body2-text-transform",zt.textTransform,"inherit"),le={fontFamily:lt.extend("--ft-typography-caption-font-family",Rt),fontSize:lt.extend("--ft-typography-caption-font-size",zt.fontSize,"12px"),fontWeight:lt.extend("--ft-typography-caption-font-weight",zt.fontWeight,"normal"),letterSpacing:lt.extend("--ft-typography-caption-letter-spacing",zt.letterSpacing,"0.396px"),lineHeight:lt.extend("--ft-typography-caption-line-height",zt.lineHeight,"1.33"),textTransform:lt.extend("--ft-typography-caption-text-transform",zt.textTransform,"inherit")},pe=lt.extend("--ft-typography-breadcrumb-font-family",Rt),he=lt.extend("--ft-typography-breadcrumb-font-size",zt.fontSize,"10px"),ce=lt.extend("--ft-typography-breadcrumb-font-weight",zt.fontWeight,"normal"),fe=lt.extend("--ft-typography-breadcrumb-letter-spacing",zt.letterSpacing,"0.33px"),de=lt.extend("--ft-typography-breadcrumb-line-height",zt.lineHeight,"1.6"),ue=lt.extend("--ft-typography-breadcrumb-text-transform",zt.textTransform,"inherit"),xe=lt.extend("--ft-typography-overline-font-family",Rt),ye=lt.extend("--ft-typography-overline-font-size",zt.fontSize,"10px"),ge=lt.extend("--ft-typography-overline-font-weight",zt.fontWeight,"normal"),
|
|
101
|
+
*/var Et,kt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Et||(Et={}));const Ct=lt.extend("--ft-typography-font-family",ht.titleFont),Rt=lt.extend("--ft-typography-font-family",ht.contentFont),zt={fontFamily:Rt,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Mt=lt.extend("--ft-typography-title-font-family",Ct),Ut=lt.extend("--ft-typography-title-font-size",zt.fontSize,"20px"),Ft=lt.extend("--ft-typography-title-font-weight",zt.fontWeight,"normal"),jt=lt.extend("--ft-typography-title-letter-spacing",zt.letterSpacing,"0.15px"),Dt=lt.extend("--ft-typography-title-line-height",zt.lineHeight,"1.2"),Bt=lt.extend("--ft-typography-title-text-transform",zt.textTransform,"inherit"),At=lt.extend("--ft-typography-title-dense-font-family",Ct),Lt=lt.extend("--ft-typography-title-dense-font-size",zt.fontSize,"14px"),Tt=lt.extend("--ft-typography-title-dense-font-weight",zt.fontWeight,"normal"),Pt=lt.extend("--ft-typography-title-dense-letter-spacing",zt.letterSpacing,"0.105px"),_t=lt.extend("--ft-typography-title-dense-line-height",zt.lineHeight,"1.7"),Wt=lt.extend("--ft-typography-title-dense-text-transform",zt.textTransform,"inherit"),It=lt.extend("--ft-typography-subtitle1-font-family",Rt),Ht=lt.extend("--ft-typography-subtitle1-font-size",zt.fontSize,"16px"),Kt=lt.extend("--ft-typography-subtitle1-font-weight",zt.fontWeight,"600"),Zt=lt.extend("--ft-typography-subtitle1-letter-spacing",zt.letterSpacing,"0.144px"),Vt=lt.extend("--ft-typography-subtitle1-line-height",zt.lineHeight,"1.5"),Jt=lt.extend("--ft-typography-subtitle1-text-transform",zt.textTransform,"inherit"),qt=lt.extend("--ft-typography-subtitle2-font-family",Rt),Xt=lt.extend("--ft-typography-subtitle2-font-size",zt.fontSize,"14px"),Yt=lt.extend("--ft-typography-subtitle2-font-weight",zt.fontWeight,"normal"),Gt=lt.extend("--ft-typography-subtitle2-letter-spacing",zt.letterSpacing,"0.098px"),Qt=lt.extend("--ft-typography-subtitle2-line-height",zt.lineHeight,"1.7"),te=lt.extend("--ft-typography-subtitle2-text-transform",zt.textTransform,"inherit"),ee={fontFamily:lt.extend("--ft-typography-body1-font-family",Rt),fontSize:lt.extend("--ft-typography-body1-font-size",zt.fontSize,"16px"),fontWeight:lt.extend("--ft-typography-body1-font-weight",zt.fontWeight,"normal"),letterSpacing:lt.extend("--ft-typography-body1-letter-spacing",zt.letterSpacing,"0.496px"),lineHeight:lt.extend("--ft-typography-body1-line-height",zt.lineHeight,"1.5"),textTransform:lt.extend("--ft-typography-body1-text-transform",zt.textTransform,"inherit")},ie=lt.extend("--ft-typography-body2-font-family",Rt),oe=lt.extend("--ft-typography-body2-font-size",zt.fontSize,"14px"),re=lt.extend("--ft-typography-body2-font-weight",zt.fontWeight,"normal"),se=lt.extend("--ft-typography-body2-letter-spacing",zt.letterSpacing,"0.252px"),ne=lt.extend("--ft-typography-body2-line-height",zt.lineHeight,"1.4"),ae=lt.extend("--ft-typography-body2-text-transform",zt.textTransform,"inherit"),le={fontFamily:lt.extend("--ft-typography-caption-font-family",Rt),fontSize:lt.extend("--ft-typography-caption-font-size",zt.fontSize,"12px"),fontWeight:lt.extend("--ft-typography-caption-font-weight",zt.fontWeight,"normal"),letterSpacing:lt.extend("--ft-typography-caption-letter-spacing",zt.letterSpacing,"0.396px"),lineHeight:lt.extend("--ft-typography-caption-line-height",zt.lineHeight,"1.33"),textTransform:lt.extend("--ft-typography-caption-text-transform",zt.textTransform,"inherit")},pe=lt.extend("--ft-typography-breadcrumb-font-family",Rt),he=lt.extend("--ft-typography-breadcrumb-font-size",zt.fontSize,"10px"),ce=lt.extend("--ft-typography-breadcrumb-font-weight",zt.fontWeight,"normal"),fe=lt.extend("--ft-typography-breadcrumb-letter-spacing",zt.letterSpacing,"0.33px"),de=lt.extend("--ft-typography-breadcrumb-line-height",zt.lineHeight,"1.6"),ue=lt.extend("--ft-typography-breadcrumb-text-transform",zt.textTransform,"inherit"),xe=lt.extend("--ft-typography-overline-font-family",Rt),ye=lt.extend("--ft-typography-overline-font-size",zt.fontSize,"10px"),ge=lt.extend("--ft-typography-overline-font-weight",zt.fontWeight,"normal"),ve=lt.extend("--ft-typography-overline-letter-spacing",zt.letterSpacing,"1.5px"),be=lt.extend("--ft-typography-overline-line-height",zt.lineHeight,"1.6"),me=lt.extend("--ft-typography-overline-text-transform",zt.textTransform,"uppercase"),$e=lt.extend("--ft-typography-button-font-family",Rt),we=lt.extend("--ft-typography-button-font-size",zt.fontSize,"14px"),Oe=lt.extend("--ft-typography-button-font-weight",zt.fontWeight,"600"),Se=lt.extend("--ft-typography-button-letter-spacing",zt.letterSpacing,"1.246px"),Ne=lt.extend("--ft-typography-button-line-height",zt.lineHeight,"1.15"),Ee=lt.extend("--ft-typography-button-text-transform",zt.textTransform,"uppercase"),ke=d`
|
|
102
102
|
.ft-typography--title {
|
|
103
103
|
font-family: ${Mt};
|
|
104
104
|
font-size: ${Ut};
|
|
@@ -176,8 +176,8 @@ const yt=1,gt=2,bt=t=>(...e)=>({_$litDirective$:t,values:e});class vt{constructo
|
|
|
176
176
|
font-family: ${xe};
|
|
177
177
|
font-size: ${ye};
|
|
178
178
|
font-weight: ${ge};
|
|
179
|
-
letter-spacing: ${
|
|
180
|
-
line-height: ${
|
|
179
|
+
letter-spacing: ${ve};
|
|
180
|
+
line-height: ${be};
|
|
181
181
|
text-transform: ${me};
|
|
182
182
|
}
|
|
183
183
|
`,Be=d`
|
|
@@ -206,7 +206,7 @@ const yt=1,gt=2,bt=t=>(...e)=>({_$litDirective$:t,values:e});class vt{constructo
|
|
|
206
206
|
* Copyright 2017 Google LLC
|
|
207
207
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
208
208
|
*/
|
|
209
|
-
class Le extends
|
|
209
|
+
class Le extends bt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===I||null==t)return this._t=void 0,this.it=t;if(t===W)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:[]}}}Le.directiveName="unsafeHTML",Le.resultType=1;const Te=vt(Le);var Pe,_e;!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=""}(Pe||(Pe={})),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=""}(_e||(_e={})),new Map([...["abw"].map((t=>[t,_e.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,_e.AUDIO])),...["avi"].map((t=>[t,_e.AVI])),...["chm","xhs"].map((t=>[t,_e.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,_e.CODE])),...["csv"].map((t=>[t,_e.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,_e.DITA])),...["epub"].map((t=>[t,_e.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,_e.EXCEL])),...["flac"].map((t=>[t,_e.FLAC])),...["gif"].map((t=>[t,_e.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,_e.GZIP])),...["html","htm","xhtml"].map((t=>[t,_e.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,_e.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,_e.JPEG])),...["json"].map((t=>[t,_e.JSON])),...["m4a","m4p"].map((t=>[t,_e.M4A])),...["mov","qt"].map((t=>[t,_e.MOV])),...["mp3"].map((t=>[t,_e.MP3])),...["mp4","m4v"].map((t=>[t,_e.MP4])),...["ogg","oga"].map((t=>[t,_e.OGG])),...["pdf","ps"].map((t=>[t,_e.PDF])),...["png"].map((t=>[t,_e.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,_e.POWERPOINT])),...["rar"].map((t=>[t,_e.RAR])),...["stp"].map((t=>[t,_e.STP])),...["txt","rtf","md","mdown"].map((t=>[t,_e.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,_e.VIDEO])),...["wav"].map((t=>[t,_e.WAV])),...["wma"].map((t=>[t,_e.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,_e.WORD])),...["xml","xsl","rdf"].map((t=>[t,_e.XML])),...["yaml","yml","x-yaml"].map((t=>[t,_e.YAML])),...["zip"].map((t=>[t,_e.ZIP]))]);var We,Ie=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(We||(We={}));const He=lt.create("--ft-icon-font-size","SIZE","24px"),Ke=lt.extend("--ft-icon-fluid-topics-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ze=lt.extend("--ft-icon-file-format-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ve=lt.extend("--ft-icon-material-font-family",lt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Je=lt.create("--ft-icon-vertical-align","UNKNOWN","unset");class qe extends ft{constructor(){super(...arguments),this.variant=We.fluid_topics}getStyles(){return d`
|
|
210
210
|
:host {
|
|
211
211
|
display: inline-block;
|
|
212
212
|
}
|
|
@@ -229,6 +229,7 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
229
229
|
text-rendering: auto;
|
|
230
230
|
-webkit-font-smoothing: antialiased;
|
|
231
231
|
-moz-osx-font-smoothing: grayscale;
|
|
232
|
+
vertical-align: ${Je};
|
|
232
233
|
}
|
|
233
234
|
|
|
234
235
|
.ft-icon--fluid-topics {
|
|
@@ -247,7 +248,7 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
247
248
|
${Te(this.getIcon())}
|
|
248
249
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
249
250
|
</i>
|
|
250
|
-
`}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===We.file_format?null!==(t=_e[i.toUpperCase()])&&void 0!==t?t:i:this.variant===We.fluid_topics?null!==(e=Pe[i.toUpperCase()])&&void 0!==e?e:i:I}}
|
|
251
|
+
`}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===We.file_format?null!==(t=_e[i.toUpperCase()])&&void 0!==t?t:i:this.variant===We.fluid_topics?null!==(e=Pe[i.toUpperCase()])&&void 0!==e?e:i:I}}qe.elementDefinitions={},Ie([o()],qe.prototype,"variant",void 0),Ie([s("slot")],qe.prototype,"slottedContent",void 0),a("ft-icon")(qe);var Xe=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class Ye extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}const Ge=lt.external(ht.colorOutline,"Design system"),Qe=lt.external(ht.colorOnSurfaceMedium,"Design system");class ti extends ft{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return _`
|
|
251
252
|
<style>
|
|
252
253
|
.ft-resizer {
|
|
253
254
|
cursor: ${f(this.cursor)}
|
|
@@ -258,7 +259,7 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
258
259
|
@touchstart=${this.initDragFromTouch}>
|
|
259
260
|
<ft-icon variant="material">${this.icon}</ft-icon>
|
|
260
261
|
</div>
|
|
261
|
-
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new
|
|
262
|
+
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new Ye(i,o))}}ti.elementDefinitions={"ft-icon":qe},ti.styles=[dt,d`
|
|
262
263
|
:host {
|
|
263
264
|
display: block;
|
|
264
265
|
}
|
|
@@ -269,14 +270,14 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
269
270
|
|
|
270
271
|
ft-icon {
|
|
271
272
|
transform: rotate(-45deg);
|
|
272
|
-
color: ${
|
|
273
|
+
color: ${Ge};
|
|
273
274
|
}
|
|
274
275
|
|
|
275
276
|
.ft-resizer--dragging ft-icon,
|
|
276
277
|
.ft-resizer:hover ft-icon {
|
|
277
|
-
color: ${
|
|
278
|
+
color: ${Qe};
|
|
278
279
|
}
|
|
279
|
-
`],
|
|
280
|
+
`],Xe([o({type:Number})],ti.prototype,"initialWidth",void 0),Xe([o({type:Number})],ti.prototype,"initialHeight",void 0),Xe([o()],ti.prototype,"icon",void 0),Xe([o()],ti.prototype,"cursor",void 0),Xe([r()],ti.prototype,"dragging",void 0),a("ft-resizer")(ti);var ei=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const ii={fontSize:lt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:lt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:lt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:lt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:lt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:lt.extend("--ft-input-label-border-color",ht.colorOutline),textColor:lt.extend("--ft-input-label-text-color",ht.colorOnSurfaceMedium),disabledTextColor:lt.extend("--ft-input-label-disabled-text-color",ht.colorOnSurfaceDisabled),colorSurface:lt.external(ht.colorSurface,"Design system"),borderRadiusS:lt.external(ht.borderRadiusS,"Design system"),colorError:lt.external(ht.colorError,"Design system")};class oi extends ft{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 _`
|
|
280
281
|
<div class="${mt(t)}">
|
|
281
282
|
${this.text?_`
|
|
282
283
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -285,25 +286,25 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
285
286
|
</div>
|
|
286
287
|
`:null}
|
|
287
288
|
</div>
|
|
288
|
-
`}}
|
|
289
|
+
`}}oi.elementDefinitions={},oi.styles=[Fe,d`
|
|
289
290
|
.ft-input-label {
|
|
290
291
|
position: absolute;
|
|
291
292
|
inset: 0;
|
|
292
293
|
display: flex;
|
|
293
|
-
background-color: ${
|
|
294
|
-
border-radius: ${
|
|
294
|
+
background-color: ${ii.colorSurface};
|
|
295
|
+
border-radius: ${ii.borderRadiusS} ${ii.borderRadiusS} 0 0;
|
|
295
296
|
}
|
|
296
297
|
|
|
297
298
|
.ft-input-label--outlined {
|
|
298
|
-
border-radius: ${
|
|
299
|
+
border-radius: ${ii.borderRadiusS};
|
|
299
300
|
}
|
|
300
301
|
|
|
301
302
|
.ft-input-label {
|
|
302
|
-
border-color: ${
|
|
303
|
+
border-color: ${ii.borderColor};
|
|
303
304
|
}
|
|
304
305
|
|
|
305
306
|
.ft-input-label.ft-input-label--in-error {
|
|
306
|
-
border-color: ${
|
|
307
|
+
border-color: ${ii.colorError}
|
|
307
308
|
}
|
|
308
309
|
|
|
309
310
|
.ft-input-label:before,
|
|
@@ -316,7 +317,7 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
316
317
|
}
|
|
317
318
|
|
|
318
319
|
.ft-input-label:before {
|
|
319
|
-
width: ${
|
|
320
|
+
width: ${ii.horizontalSpacing};
|
|
320
321
|
flex-shrink: 0;
|
|
321
322
|
}
|
|
322
323
|
|
|
@@ -332,18 +333,18 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
332
333
|
border-bottom-width: 1px;
|
|
333
334
|
border-bottom-style: solid;
|
|
334
335
|
border-color: inherit;
|
|
335
|
-
color: ${
|
|
336
|
+
color: ${ii.textColor};
|
|
336
337
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
337
|
-
${pt(le.fontSize,
|
|
338
|
-
${pt(le.lineHeight,
|
|
338
|
+
${pt(le.fontSize,ii.fontSize)};
|
|
339
|
+
${pt(le.lineHeight,ii.fontSize)};
|
|
339
340
|
}
|
|
340
341
|
|
|
341
342
|
.ft-input-label--in-error .ft-input-label--text {
|
|
342
|
-
color: ${
|
|
343
|
+
color: ${ii.colorError}
|
|
343
344
|
}
|
|
344
345
|
|
|
345
346
|
.ft-input-label--disabled .ft-input-label--text {
|
|
346
|
-
color: ${
|
|
347
|
+
color: ${ii.disabledTextColor};
|
|
347
348
|
}
|
|
348
349
|
|
|
349
350
|
.ft-input-label--hidden-text {
|
|
@@ -358,17 +359,17 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
358
359
|
overflow: hidden;
|
|
359
360
|
white-space: nowrap;
|
|
360
361
|
text-overflow: ellipsis;
|
|
361
|
-
padding: ${
|
|
362
|
-
margin: calc(${
|
|
362
|
+
padding: ${ii.verticalSpacing} 4px;
|
|
363
|
+
margin: calc(${ii.verticalSpacing} * -1) 0;
|
|
363
364
|
}
|
|
364
365
|
|
|
365
366
|
.ft-input-label--raised .ft-input-label--text {
|
|
366
|
-
${pt(le.fontSize,
|
|
367
|
-
${pt(le.lineHeight,
|
|
367
|
+
${pt(le.fontSize,ii.raisedFontSize)};
|
|
368
|
+
${pt(le.lineHeight,ii.raisedFontSize)};
|
|
368
369
|
}
|
|
369
370
|
|
|
370
371
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
371
|
-
top: ${
|
|
372
|
+
top: ${ii.verticalSpacing};
|
|
372
373
|
}
|
|
373
374
|
|
|
374
375
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -381,27 +382,27 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
381
382
|
.ft-input-label--outlined:before {
|
|
382
383
|
border-left-width: 1px;
|
|
383
384
|
border-left-style: solid;
|
|
384
|
-
border-radius: ${
|
|
385
|
+
border-radius: ${ii.borderRadiusS} 0 0 ${ii.borderRadiusS};
|
|
385
386
|
}
|
|
386
387
|
|
|
387
388
|
.ft-input-label--outlined:after {
|
|
388
389
|
border-right-width: 1px;
|
|
389
390
|
border-right-style: solid;
|
|
390
|
-
border-radius: 0 ${
|
|
391
|
+
border-radius: 0 ${ii.borderRadiusS} ${ii.borderRadiusS} 0;
|
|
391
392
|
}
|
|
392
393
|
|
|
393
394
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
394
395
|
padding: 2px 4px;
|
|
395
|
-
z-index: ${
|
|
396
|
-
background-color: ${
|
|
397
|
-
border-radius: ${
|
|
396
|
+
z-index: ${ii.raisedZIndex};
|
|
397
|
+
background-color: ${ii.colorSurface};
|
|
398
|
+
border-radius: ${ii.borderRadiusS};
|
|
398
399
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
399
400
|
}
|
|
400
401
|
|
|
401
402
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
402
403
|
border-top: none;
|
|
403
404
|
}
|
|
404
|
-
`],
|
|
405
|
+
`],ei([o({type:String})],oi.prototype,"text",void 0),ei([o({type:Boolean})],oi.prototype,"raised",void 0),ei([o({type:Boolean})],oi.prototype,"outlined",void 0),ei([o({type:Boolean})],oi.prototype,"disabled",void 0),ei([o({type:Boolean})],oi.prototype,"error",void 0),a("ft-input-label")(oi);var ri=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const si=lt.extend("--ft-ripple-color",ht.colorContent),ni={color:si,backgroundColor:lt.extend("--ft-ripple-background-color",si),opacityContentOnSurfacePressed:lt.external(ht.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:lt.external(ht.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:lt.external(ht.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:lt.external(ht.opacityContentOnSurfaceSelected,"Design system")},ai=lt.extend("--ft-ripple-color",ht.colorPrimary),li=ai,pi=lt.extend("--ft-ripple-background-color",ai),hi=lt.extend("--ft-ripple-color",ht.colorSecondary),ci=hi,fi=lt.extend("--ft-ripple-background-color",hi);class di extends ft{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),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return _`
|
|
405
406
|
<style>
|
|
406
407
|
.ft-ripple .ft-ripple--effect,
|
|
407
408
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -418,7 +419,7 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
418
419
|
<div class="ft-ripple--background"></div>
|
|
419
420
|
<div class="ft-ripple--effect"></div>
|
|
420
421
|
</div>
|
|
421
|
-
`}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()}}
|
|
422
|
+
`}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()}}di.elementDefinitions={},di.styles=d`
|
|
422
423
|
:host {
|
|
423
424
|
display: contents;
|
|
424
425
|
}
|
|
@@ -440,27 +441,27 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
440
441
|
}
|
|
441
442
|
|
|
442
443
|
.ft-ripple .ft-ripple--background {
|
|
443
|
-
background-color: ${
|
|
444
|
+
background-color: ${ni.backgroundColor};
|
|
444
445
|
}
|
|
445
446
|
|
|
446
447
|
.ft-ripple .ft-ripple--effect {
|
|
447
|
-
background-color: ${
|
|
448
|
+
background-color: ${ni.color};
|
|
448
449
|
}
|
|
449
450
|
|
|
450
451
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
451
|
-
background-color: ${
|
|
452
|
+
background-color: ${fi};
|
|
452
453
|
}
|
|
453
454
|
|
|
454
455
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
455
|
-
background-color: ${
|
|
456
|
+
background-color: ${ci};
|
|
456
457
|
}
|
|
457
458
|
|
|
458
459
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
459
|
-
background-color: ${
|
|
460
|
+
background-color: ${pi};
|
|
460
461
|
}
|
|
461
462
|
|
|
462
463
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
463
|
-
background-color: ${
|
|
464
|
+
background-color: ${li};
|
|
464
465
|
}
|
|
465
466
|
|
|
466
467
|
.ft-ripple .ft-ripple--background {
|
|
@@ -492,25 +493,25 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
492
493
|
}
|
|
493
494
|
|
|
494
495
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
495
|
-
opacity: ${
|
|
496
|
+
opacity: ${ni.opacityContentOnSurfaceHover};
|
|
496
497
|
}
|
|
497
498
|
|
|
498
499
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
499
|
-
opacity: ${
|
|
500
|
+
opacity: ${ni.opacityContentOnSurfaceSelected};
|
|
500
501
|
}
|
|
501
502
|
|
|
502
503
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
503
|
-
opacity: ${
|
|
504
|
+
opacity: ${ni.opacityContentOnSurfaceFocused};
|
|
504
505
|
}
|
|
505
506
|
|
|
506
507
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
507
|
-
opacity: ${
|
|
508
|
+
opacity: ${ni.opacityContentOnSurfacePressed};
|
|
508
509
|
transform: translate(-50%, -50%) scale(1);
|
|
509
510
|
}
|
|
510
|
-
`,
|
|
511
|
+
`,ri([o({type:Boolean})],di.prototype,"primary",void 0),ri([o({type:Boolean})],di.prototype,"secondary",void 0),ri([o({type:Boolean})],di.prototype,"unbounded",void 0),ri([o({type:Boolean})],di.prototype,"activated",void 0),ri([o({type:Boolean})],di.prototype,"selected",void 0),ri([o({type:Boolean})],di.prototype,"disabled",void 0),ri([r()],di.prototype,"hovered",void 0),ri([r()],di.prototype,"focused",void 0),ri([r()],di.prototype,"pressed",void 0),ri([r()],di.prototype,"rippling",void 0),ri([r()],di.prototype,"rippleSize",void 0),ri([r()],di.prototype,"originX",void 0),ri([r()],di.prototype,"originY",void 0),ri([s(".ft-ripple")],di.prototype,"ripple",void 0),ri([s(".ft-ripple--effect")],di.prototype,"rippleEffect",void 0),a("ft-ripple")(di);var ui=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const xi={fontSize:lt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:lt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:lt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:lt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:lt.extend("--ft-text-area-helper-color",ht.colorOnSurfaceMedium),colorPrimary:lt.external(ht.colorPrimary,"Design system"),colorOnSurface:lt.external(ht.colorOnSurface,"Design system"),colorOnSurfaceDisabled:lt.external(ht.colorOnSurfaceDisabled,"Design system"),borderRadiusS:lt.external(ht.borderRadiusS,"Design system"),colorError:lt.external(ht.colorError,"Design system")};class yi extends ft{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return _`
|
|
511
512
|
<style>
|
|
512
513
|
.ft-text-area--main-panel {
|
|
513
|
-
height: calc(4 * ${
|
|
514
|
+
height: calc(4 * ${xi.verticalSpacing} + ${xi.labelSize} + ${xi.fontSize} + ${this.height}px);
|
|
514
515
|
}
|
|
515
516
|
</style>
|
|
516
517
|
<div class="${mt(t)}">
|
|
@@ -545,7 +546,7 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
545
546
|
${this.helper}
|
|
546
547
|
</ft-typography>`:void 0}
|
|
547
548
|
</div>
|
|
548
|
-
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}
|
|
549
|
+
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}yi.elementDefinitions={"ft-input-label":oi,"ft-resizer":ti,"ft-ripple":di,"ft-typography":Ae},yi.styles=[Me,d`
|
|
549
550
|
*:focus {
|
|
550
551
|
outline: none;
|
|
551
552
|
}
|
|
@@ -557,10 +558,10 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
557
558
|
}
|
|
558
559
|
|
|
559
560
|
ft-input-label {
|
|
560
|
-
${pt(
|
|
561
|
-
${pt(
|
|
562
|
-
${pt(
|
|
563
|
-
${pt(
|
|
561
|
+
${pt(ii.fontSize,xi.fontSize)};
|
|
562
|
+
${pt(ii.raisedFontSize,xi.labelSize)};
|
|
563
|
+
${pt(ii.verticalSpacing,xi.verticalSpacing)};
|
|
564
|
+
${pt(ii.horizontalSpacing,d`calc(${xi.horizontalSpacing} - 4px)`)};
|
|
564
565
|
}
|
|
565
566
|
|
|
566
567
|
.ft-text-area--main-panel {
|
|
@@ -578,8 +579,8 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
578
579
|
}
|
|
579
580
|
|
|
580
581
|
.ft-text-area--input-panel ft-ripple {
|
|
581
|
-
${pt(
|
|
582
|
-
${pt(
|
|
582
|
+
${pt(ni.opacityContentOnSurfaceHover,"0.08")};
|
|
583
|
+
${pt(ni.opacityContentOnSurfacePressed,"0.04")};
|
|
583
584
|
}
|
|
584
585
|
|
|
585
586
|
.ft-text-area--input {
|
|
@@ -591,12 +592,12 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
591
592
|
align-self: stretch;
|
|
592
593
|
resize: none;
|
|
593
594
|
|
|
594
|
-
${pt(ee.fontSize,
|
|
595
|
-
${pt(ee.lineHeight,
|
|
596
|
-
color: ${
|
|
595
|
+
${pt(ee.fontSize,xi.fontSize)};
|
|
596
|
+
${pt(ee.lineHeight,xi.fontSize)};
|
|
597
|
+
color: ${xi.colorOnSurface};
|
|
597
598
|
|
|
598
|
-
padding: 0 ${
|
|
599
|
-
margin: calc(${
|
|
599
|
+
padding: 0 ${xi.horizontalSpacing};
|
|
600
|
+
margin: calc(${xi.verticalSpacing} + ${xi.labelSize} / 2) 0 ${xi.verticalSpacing} 0;
|
|
600
601
|
|
|
601
602
|
border: none;
|
|
602
603
|
background: none;
|
|
@@ -605,7 +606,7 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
605
606
|
}
|
|
606
607
|
|
|
607
608
|
.ft-text-area--disabled .ft-text-area--input {
|
|
608
|
-
color: ${
|
|
609
|
+
color: ${xi.colorOnSurfaceDisabled};
|
|
609
610
|
}
|
|
610
611
|
|
|
611
612
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -613,32 +614,32 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
613
614
|
}
|
|
614
615
|
|
|
615
616
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
616
|
-
${pt(
|
|
617
|
-
${pt(
|
|
617
|
+
${pt(ii.borderColor,xi.colorPrimary)};
|
|
618
|
+
${pt(ii.textColor,xi.colorPrimary)};
|
|
618
619
|
}
|
|
619
620
|
|
|
620
621
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
621
|
-
border-radius: ${
|
|
622
|
+
border-radius: ${xi.borderRadiusS} ${xi.borderRadiusS} 0 0;
|
|
622
623
|
}
|
|
623
624
|
|
|
624
625
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
625
626
|
align-self: stretch;
|
|
626
|
-
margin-bottom: ${
|
|
627
|
-
margin-top: calc(${
|
|
627
|
+
margin-bottom: ${xi.verticalSpacing};
|
|
628
|
+
margin-top: calc(${xi.labelSize} + 2 * ${xi.verticalSpacing});
|
|
628
629
|
}
|
|
629
630
|
|
|
630
631
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
631
|
-
border-radius: ${
|
|
632
|
+
border-radius: ${xi.borderRadiusS};
|
|
632
633
|
}
|
|
633
634
|
|
|
634
635
|
.ft-text-area--helper-text {
|
|
635
|
-
padding: 0 12px 0 ${
|
|
636
|
-
color: ${
|
|
636
|
+
padding: 0 12px 0 ${xi.horizontalSpacing};
|
|
637
|
+
color: ${xi.helperColor};
|
|
637
638
|
}
|
|
638
639
|
|
|
639
640
|
.ft-text-area--in-error .ft-text-area--input,
|
|
640
641
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
641
|
-
color: ${
|
|
642
|
+
color: ${xi.colorError};
|
|
642
643
|
}
|
|
643
644
|
|
|
644
645
|
ft-resizer {
|
|
@@ -646,4 +647,4 @@ class Le extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
646
647
|
right: 0;
|
|
647
648
|
bottom: 0;
|
|
648
649
|
}
|
|
649
|
-
`],
|
|
650
|
+
`],ui([o({type:String})],yi.prototype,"label",void 0),ui([o({reflect:!0})],yi.prototype,"value",void 0),ui([o({type:String})],yi.prototype,"helper",void 0),ui([o({type:Boolean})],yi.prototype,"outlined",void 0),ui([o({type:Boolean})],yi.prototype,"disabled",void 0),ui([o({type:Boolean})],yi.prototype,"error",void 0),ui([o({type:Number,reflect:!0})],yi.prototype,"height",void 0),ui([s("textarea")],yi.prototype,"textarea",void 0),ui([r()],yi.prototype,"focused",void 0),a("ft-text-area")(yi),t.FtTextArea=yi,t.FtTextAreaCssVariables=xi,Object.defineProperty(t,"i",{value:!0})}({});
|