@fluid-topics/ft-text-area 0.3.19 → 0.3.21
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 +140 -140
- package/build/ft-text-area.min.js +178 -178
- 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(We){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(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
|
|
@@ -46,34 +46,34 @@ function s(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var r;if(void 0===o)
|
|
|
46
46
|
* Copyright 2019 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
const l=window.ShadowRoot&&(void 0===
|
|
49
|
+
const l=window,p=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),c=new WeakMap;class f{constructor(t,e,i){if(this._$cssResult$=!0,i!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(p&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&c.set(e,t))}return t}toString(){return this.cssText}}const d=t=>new f("string"==typeof t?t:t+"",void 0,h),u=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new f(i,t,h)},x=(t,e)=>{p?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=l.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},y=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return d(e)})(t):t
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var
|
|
54
|
+
*/;var g;const v=window,b=v.trustedTypes,m=b?b.emptyScript:"",$=v.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?m: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}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:O};class k 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=S){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)||S}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(y(t))}else void 0!==t&&e.push(y(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 x(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=S){var o;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:w).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:w;this._$El=r,this[r]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||O)(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
|
|
60
|
+
var N;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:k}),(null!==(g=v.reactiveElementVersions)&&void 0!==g?g:v.reactiveElementVersions=[]).push("1.4.1");const E=window,C=E.trustedTypes,R=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,z=`lit$${(Math.random()+"").slice(9)}$`,M="?"+z,U=`<${M}>`,F=document,j=(t="")=>F.createComment(t),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,_=/>/g,P=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,W=/"/g,I=/^(?:script|style|textarea|title)$/i,H=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),K=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),V=new WeakMap,J=F.createTreeWalker(F,129,null,!1),q=(t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",n=B;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===B?"!--"===l[1]?n=L:void 0!==l[1]?n=_:void 0!==l[2]?(I.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=P):void 0!==l[3]&&(n=P):n===P?">"===l[0]?(n=null!=r?r:B,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?P:'"'===l[3]?W:T):n===W||n===T?n=P:n===L||n===_?n=B:(n=P,r=void 0);const c=n===P&&t[e+1].startsWith("/>")?" ":"";s+=n===B?i+U:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+z+c):i+z+(-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!==R?R.createHTML(a):a,o]};class X{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]=q(t,e);if(this.el=X.createElement(l,i),J.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=J.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(z)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(z),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?ot:"@"===e[1]?rt:tt})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(I.test(o.tagName)){const t=o.textContent.split(z),e=t.length-1;if(e>0){o.textContent=C?C.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],j()),J.nextNode(),a.push({type:2,index:++r});o.append(t[e],j())}}}else if(8===o.nodeType)if(o.data===M)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(z,t+1));)a.push({type:7,index:r}),t+=z.length-1}r++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,o){var r,s,n,a;if(e===K)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const p=D(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)._$Co)&&void 0!==n?n:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=Y(t,l._$AS(t,e.values),l,o)),e}class G{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:F).importNode(i,!0);J.currentNode=r;let s=J.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Q(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new st(s,this,t)),this.u.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(s=J.nextNode(),n++)}return r}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,o){var r;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}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=Y(this,t,e),D(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==K&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Z&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.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=X.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.p(i);else{const t=new G(r,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new X(t)),e}k(t){A(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 Q(this.O(j()),this.O(j()),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,i,o,r){this.type=1,this._$AH=Z,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=Z}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=Y(this,t,e,0),s=!D(t)||t!==this._$AH&&t!==K,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=Y(this,o[i+n],e,n),a===K&&(a=this._$AH[n]),s||(s=!D(a)||a!==this._$AH[n]),a===Z?t=Z:t!==Z&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}const it=C?C.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Z?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class rt extends tt{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=Y(this,t,e,0))&&void 0!==i?i:Z)===K)return;const o=this._$AH,r=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==Z&&(o===Z||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 st{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){Y(this,t)}}const nt=E.litHtmlPolyfillSupport;null==nt||nt(X,Q),(null!==(N=E.litHtmlVersions)&&void 0!==N?N:E.litHtmlVersions=[]).push("2.4.0");
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
var
|
|
66
|
+
var at,lt;class pt extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=s._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=n=new Q(e.insertBefore(j(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return K}}pt.finalized=!0,pt._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:pt});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:pt}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class ct{static create(t,e,i){let o=t=>d(null!=t?t:i),r=u`var(${d(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>u`var(${d(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=u`var(${d(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>u`var(${d(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):d(null!=e?e:t.defaultValue),o=u`var(${d(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>u`var(${d(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function ft(t,e){return d(`${t.name}: ${e}`)}const dt={colorPrimary:ct.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ct.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ct.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ct.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ct.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ct.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ct.create("--ft-color-error","COLOR","#B00020"),colorOutline:ct.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ct.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ct.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ct.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ct.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ct.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ct.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ct.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ct.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ct.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ct.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ct.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ct.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ct.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ct.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ct.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ct.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ct.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ct.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ct.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ct.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ct.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ct.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ct.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ct.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ct.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ct.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ct.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ct.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ct.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ct.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ct.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ct.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ct.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ct.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ct.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ct.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ct.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ct.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ct.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ct.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ct.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ct.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ct.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ct.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ct.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ct.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ct.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ct.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ct.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ct.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ct.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ct.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ct.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ct.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
67
67
|
/**
|
|
68
68
|
* @license
|
|
69
69
|
* Copyright 2021 Google LLC
|
|
70
70
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
71
|
-
*/var
|
|
72
|
-
${t.map((t=>
|
|
71
|
+
*/var ut=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 xt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return x(r,this.constructor.elementStyles),r}}}(pt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),H`
|
|
72
|
+
${t.map((t=>H`
|
|
73
73
|
<style>${t}</style>
|
|
74
74
|
`))}
|
|
75
75
|
${this.getTemplate()}
|
|
76
|
-
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,r,s,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(n=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const h=[...p.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}contentAvailableCallback(t){}}
|
|
76
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,r,s,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(n=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const h=[...p.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}contentAvailableCallback(t){}}ut([o()],xt.prototype,"exportpartsPrefix",void 0),ut([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0);const yt=u`
|
|
77
77
|
.ft-no-text-select {
|
|
78
78
|
-webkit-touch-callout: none;
|
|
79
79
|
-webkit-user-select: none;
|
|
@@ -82,7 +82,7 @@ var rt,st;null==ot||ot(V,X),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
82
82
|
-ms-user-select: none;
|
|
83
83
|
user-select: none;
|
|
84
84
|
}
|
|
85
|
-
`;var
|
|
85
|
+
`;var gt,vt;u`
|
|
86
86
|
.ft-word-wrap {
|
|
87
87
|
white-space: normal;
|
|
88
88
|
word-wrap: break-word;
|
|
@@ -94,143 +94,143 @@ var rt,st;null==ot||ot(V,X),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
94
94
|
-webkit-hyphens: auto;
|
|
95
95
|
hyphens: auto
|
|
96
96
|
}
|
|
97
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
97
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(vt=null===(gt=window.safari)||void 0===gt?void 0:gt.pushNotification)||void 0===vt||vt.toString());
|
|
98
98
|
/**
|
|
99
99
|
* @license
|
|
100
100
|
* Copyright 2017 Google LLC
|
|
101
101
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
102
102
|
*/
|
|
103
|
-
const
|
|
103
|
+
const bt=1,mt=2,$t=t=>(...e)=>({_$litDirective$:t,values:e});class wt{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)}}
|
|
104
104
|
/**
|
|
105
105
|
* @license
|
|
106
106
|
* Copyright 2018 Google LLC
|
|
107
107
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
108
|
-
*/const
|
|
108
|
+
*/const Ot=$t(class extends wt{constructor(t){var e;if(super(t),t.type!==bt||"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 K}}),St=Symbol.for(""),kt=t=>{if((null==t?void 0:t.r)===St)return null==t?void 0:t._$litStatic$},Nt=t=>({_$litStatic$:t,r:St}),Et=new Map,Ct=(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=kt(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=Et.get(t))&&(n.raw=n,Et.set(t,e=n)),i=a}return t(e,...i)})(H);
|
|
109
109
|
/**
|
|
110
110
|
* @license
|
|
111
111
|
* Copyright 2020 Google LLC
|
|
112
112
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
113
|
-
*/var
|
|
113
|
+
*/var Rt;!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"}(Rt||(Rt={}));const zt=ct.extend("--ft-typography-font-family",dt.titleFont),Mt=ct.extend("--ft-typography-font-family",dt.contentFont),Ut={fontFamily:Mt,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ft=ct.extend("--ft-typography-title-font-family",zt),jt=ct.extend("--ft-typography-title-font-size",Ut.fontSize,"20px"),Dt=ct.extend("--ft-typography-title-font-weight",Ut.fontWeight,"normal"),At=ct.extend("--ft-typography-title-letter-spacing",Ut.letterSpacing,"0.15px"),Bt=ct.extend("--ft-typography-title-line-height",Ut.lineHeight,"1.2"),Lt=ct.extend("--ft-typography-title-text-transform",Ut.textTransform,"inherit"),_t=ct.extend("--ft-typography-title-dense-font-family",zt),Pt=ct.extend("--ft-typography-title-dense-font-size",Ut.fontSize,"14px"),Tt=ct.extend("--ft-typography-title-dense-font-weight",Ut.fontWeight,"normal"),Wt=ct.extend("--ft-typography-title-dense-letter-spacing",Ut.letterSpacing,"0.105px"),It=ct.extend("--ft-typography-title-dense-line-height",Ut.lineHeight,"1.7"),Ht=ct.extend("--ft-typography-title-dense-text-transform",Ut.textTransform,"inherit"),Kt=ct.extend("--ft-typography-subtitle1-font-family",Mt),Zt=ct.extend("--ft-typography-subtitle1-font-size",Ut.fontSize,"16px"),Vt=ct.extend("--ft-typography-subtitle1-font-weight",Ut.fontWeight,"600"),Jt=ct.extend("--ft-typography-subtitle1-letter-spacing",Ut.letterSpacing,"0.144px"),qt=ct.extend("--ft-typography-subtitle1-line-height",Ut.lineHeight,"1.5"),Xt=ct.extend("--ft-typography-subtitle1-text-transform",Ut.textTransform,"inherit"),Yt=ct.extend("--ft-typography-subtitle2-font-family",Mt),Gt=ct.extend("--ft-typography-subtitle2-font-size",Ut.fontSize,"14px"),Qt=ct.extend("--ft-typography-subtitle2-font-weight",Ut.fontWeight,"normal"),te=ct.extend("--ft-typography-subtitle2-letter-spacing",Ut.letterSpacing,"0.098px"),ee=ct.extend("--ft-typography-subtitle2-line-height",Ut.lineHeight,"1.7"),ie=ct.extend("--ft-typography-subtitle2-text-transform",Ut.textTransform,"inherit"),oe={fontFamily:ct.extend("--ft-typography-body1-font-family",Mt),fontSize:ct.extend("--ft-typography-body1-font-size",Ut.fontSize,"16px"),fontWeight:ct.extend("--ft-typography-body1-font-weight",Ut.fontWeight,"normal"),letterSpacing:ct.extend("--ft-typography-body1-letter-spacing",Ut.letterSpacing,"0.496px"),lineHeight:ct.extend("--ft-typography-body1-line-height",Ut.lineHeight,"1.5"),textTransform:ct.extend("--ft-typography-body1-text-transform",Ut.textTransform,"inherit")},re=ct.extend("--ft-typography-body2-font-family",Mt),se=ct.extend("--ft-typography-body2-font-size",Ut.fontSize,"14px"),ne=ct.extend("--ft-typography-body2-font-weight",Ut.fontWeight,"normal"),ae=ct.extend("--ft-typography-body2-letter-spacing",Ut.letterSpacing,"0.252px"),le=ct.extend("--ft-typography-body2-line-height",Ut.lineHeight,"1.4"),pe=ct.extend("--ft-typography-body2-text-transform",Ut.textTransform,"inherit"),he={fontFamily:ct.extend("--ft-typography-caption-font-family",Mt),fontSize:ct.extend("--ft-typography-caption-font-size",Ut.fontSize,"12px"),fontWeight:ct.extend("--ft-typography-caption-font-weight",Ut.fontWeight,"normal"),letterSpacing:ct.extend("--ft-typography-caption-letter-spacing",Ut.letterSpacing,"0.396px"),lineHeight:ct.extend("--ft-typography-caption-line-height",Ut.lineHeight,"1.33"),textTransform:ct.extend("--ft-typography-caption-text-transform",Ut.textTransform,"inherit")},ce=ct.extend("--ft-typography-breadcrumb-font-family",Mt),fe=ct.extend("--ft-typography-breadcrumb-font-size",Ut.fontSize,"10px"),de=ct.extend("--ft-typography-breadcrumb-font-weight",Ut.fontWeight,"normal"),ue=ct.extend("--ft-typography-breadcrumb-letter-spacing",Ut.letterSpacing,"0.33px"),xe=ct.extend("--ft-typography-breadcrumb-line-height",Ut.lineHeight,"1.6"),ye=ct.extend("--ft-typography-breadcrumb-text-transform",Ut.textTransform,"inherit"),ge=ct.extend("--ft-typography-overline-font-family",Mt),ve=ct.extend("--ft-typography-overline-font-size",Ut.fontSize,"10px"),be=ct.extend("--ft-typography-overline-font-weight",Ut.fontWeight,"normal"),me=ct.extend("--ft-typography-overline-letter-spacing",Ut.letterSpacing,"1.5px"),$e=ct.extend("--ft-typography-overline-line-height",Ut.lineHeight,"1.6"),we=ct.extend("--ft-typography-overline-text-transform",Ut.textTransform,"uppercase"),Oe=ct.extend("--ft-typography-button-font-family",Mt),Se=ct.extend("--ft-typography-button-font-size",Ut.fontSize,"14px"),ke=ct.extend("--ft-typography-button-font-weight",Ut.fontWeight,"600"),Ne=ct.extend("--ft-typography-button-letter-spacing",Ut.letterSpacing,"1.246px"),Ee=ct.extend("--ft-typography-button-line-height",Ut.lineHeight,"1.15"),Ce=ct.extend("--ft-typography-button-text-transform",Ut.textTransform,"uppercase"),Re=u`
|
|
114
114
|
.ft-typography--title {
|
|
115
|
-
font-family: ${
|
|
116
|
-
font-size: ${
|
|
117
|
-
font-weight: ${
|
|
118
|
-
letter-spacing: ${
|
|
119
|
-
line-height: ${
|
|
120
|
-
text-transform: ${
|
|
121
|
-
}
|
|
122
|
-
`,
|
|
115
|
+
font-family: ${Ft};
|
|
116
|
+
font-size: ${jt};
|
|
117
|
+
font-weight: ${Dt};
|
|
118
|
+
letter-spacing: ${At};
|
|
119
|
+
line-height: ${Bt};
|
|
120
|
+
text-transform: ${Lt};
|
|
121
|
+
}
|
|
122
|
+
`,ze=u`
|
|
123
123
|
.ft-typography--title-dense {
|
|
124
|
-
font-family: ${
|
|
125
|
-
font-size: ${
|
|
126
|
-
font-weight: ${
|
|
127
|
-
letter-spacing: ${
|
|
128
|
-
line-height: ${
|
|
129
|
-
text-transform: ${
|
|
130
|
-
}
|
|
131
|
-
`,
|
|
124
|
+
font-family: ${_t};
|
|
125
|
+
font-size: ${Pt};
|
|
126
|
+
font-weight: ${Tt};
|
|
127
|
+
letter-spacing: ${Wt};
|
|
128
|
+
line-height: ${It};
|
|
129
|
+
text-transform: ${Ht};
|
|
130
|
+
}
|
|
131
|
+
`,Me=u`
|
|
132
132
|
.ft-typography--subtitle1 {
|
|
133
|
-
font-family: ${
|
|
134
|
-
font-size: ${
|
|
135
|
-
font-weight: ${
|
|
136
|
-
letter-spacing: ${
|
|
137
|
-
line-height: ${
|
|
138
|
-
text-transform: ${
|
|
139
|
-
}
|
|
140
|
-
`,
|
|
133
|
+
font-family: ${Kt};
|
|
134
|
+
font-size: ${Zt};
|
|
135
|
+
font-weight: ${Vt};
|
|
136
|
+
letter-spacing: ${Jt};
|
|
137
|
+
line-height: ${qt};
|
|
138
|
+
text-transform: ${Xt};
|
|
139
|
+
}
|
|
140
|
+
`,Ue=u`
|
|
141
141
|
.ft-typography--subtitle2 {
|
|
142
|
-
font-family: ${
|
|
143
|
-
font-size: ${
|
|
144
|
-
font-weight: ${
|
|
145
|
-
letter-spacing: ${
|
|
146
|
-
line-height: ${
|
|
147
|
-
text-transform: ${
|
|
142
|
+
font-family: ${Yt};
|
|
143
|
+
font-size: ${Gt};
|
|
144
|
+
font-weight: ${Qt};
|
|
145
|
+
letter-spacing: ${te};
|
|
146
|
+
line-height: ${ee};
|
|
147
|
+
text-transform: ${ie};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
`,
|
|
150
|
+
`,Fe=u`
|
|
151
151
|
.ft-typography--body1 {
|
|
152
|
-
font-family: ${
|
|
153
|
-
font-size: ${
|
|
154
|
-
font-weight: ${
|
|
155
|
-
letter-spacing: ${
|
|
156
|
-
line-height: ${
|
|
157
|
-
text-transform: ${
|
|
158
|
-
}
|
|
159
|
-
`,
|
|
152
|
+
font-family: ${oe.fontFamily};
|
|
153
|
+
font-size: ${oe.fontSize};
|
|
154
|
+
font-weight: ${oe.fontWeight};
|
|
155
|
+
letter-spacing: ${oe.letterSpacing};
|
|
156
|
+
line-height: ${oe.lineHeight};
|
|
157
|
+
text-transform: ${oe.textTransform};
|
|
158
|
+
}
|
|
159
|
+
`,je=u`
|
|
160
160
|
.ft-typography--body2 {
|
|
161
|
-
font-family: ${
|
|
162
|
-
font-size: ${
|
|
163
|
-
font-weight: ${
|
|
164
|
-
letter-spacing: ${
|
|
165
|
-
line-height: ${
|
|
166
|
-
text-transform: ${
|
|
167
|
-
}
|
|
168
|
-
`,
|
|
161
|
+
font-family: ${re};
|
|
162
|
+
font-size: ${se};
|
|
163
|
+
font-weight: ${ne};
|
|
164
|
+
letter-spacing: ${ae};
|
|
165
|
+
line-height: ${le};
|
|
166
|
+
text-transform: ${pe};
|
|
167
|
+
}
|
|
168
|
+
`,De=u`
|
|
169
169
|
.ft-typography--caption {
|
|
170
|
-
font-family: ${
|
|
171
|
-
font-size: ${
|
|
172
|
-
font-weight: ${
|
|
173
|
-
letter-spacing: ${
|
|
174
|
-
line-height: ${
|
|
175
|
-
text-transform: ${
|
|
176
|
-
}
|
|
177
|
-
`,
|
|
170
|
+
font-family: ${he.fontFamily};
|
|
171
|
+
font-size: ${he.fontSize};
|
|
172
|
+
font-weight: ${he.fontWeight};
|
|
173
|
+
letter-spacing: ${he.letterSpacing};
|
|
174
|
+
line-height: ${he.lineHeight};
|
|
175
|
+
text-transform: ${he.textTransform};
|
|
176
|
+
}
|
|
177
|
+
`,Ae=u`
|
|
178
178
|
.ft-typography--breadcrumb {
|
|
179
|
-
font-family: ${
|
|
180
|
-
font-size: ${
|
|
181
|
-
font-weight: ${
|
|
182
|
-
letter-spacing: ${
|
|
183
|
-
line-height: ${
|
|
184
|
-
text-transform: ${
|
|
185
|
-
}
|
|
186
|
-
`,
|
|
179
|
+
font-family: ${ce};
|
|
180
|
+
font-size: ${fe};
|
|
181
|
+
font-weight: ${de};
|
|
182
|
+
letter-spacing: ${ue};
|
|
183
|
+
line-height: ${xe};
|
|
184
|
+
text-transform: ${ye};
|
|
185
|
+
}
|
|
186
|
+
`,Be=u`
|
|
187
187
|
.ft-typography--overline {
|
|
188
|
-
font-family: ${
|
|
189
|
-
font-size: ${
|
|
190
|
-
font-weight: ${
|
|
191
|
-
letter-spacing: ${
|
|
192
|
-
line-height: ${
|
|
193
|
-
text-transform: ${
|
|
194
|
-
}
|
|
195
|
-
`,
|
|
188
|
+
font-family: ${ge};
|
|
189
|
+
font-size: ${ve};
|
|
190
|
+
font-weight: ${be};
|
|
191
|
+
letter-spacing: ${me};
|
|
192
|
+
line-height: ${$e};
|
|
193
|
+
text-transform: ${we};
|
|
194
|
+
}
|
|
195
|
+
`,Le=u`
|
|
196
196
|
.ft-typography--button {
|
|
197
|
-
font-family: ${
|
|
198
|
-
font-size: ${
|
|
199
|
-
font-weight: ${
|
|
200
|
-
letter-spacing: ${
|
|
201
|
-
line-height: ${
|
|
202
|
-
text-transform: ${
|
|
203
|
-
}
|
|
204
|
-
`,
|
|
197
|
+
font-family: ${Oe};
|
|
198
|
+
font-size: ${Se};
|
|
199
|
+
font-weight: ${ke};
|
|
200
|
+
letter-spacing: ${Ne};
|
|
201
|
+
line-height: ${Ee};
|
|
202
|
+
text-transform: ${Ce};
|
|
203
|
+
}
|
|
204
|
+
`,_e=u`
|
|
205
205
|
.ft-typography {
|
|
206
206
|
vertical-align: inherit;
|
|
207
207
|
}
|
|
208
|
-
`;var
|
|
209
|
-
<${
|
|
208
|
+
`;var Pe=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 Te extends xt{constructor(){super(...arguments),this.variant=Rt.body1}render(){return this.element?Ct`
|
|
209
|
+
<${Nt(this.element)}
|
|
210
210
|
class="ft-typography ft-typography--${this.variant}">
|
|
211
211
|
<slot></slot>
|
|
212
|
-
</${
|
|
213
|
-
`:
|
|
212
|
+
</${Nt(this.element)}>
|
|
213
|
+
`:Ct`
|
|
214
214
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
215
|
-
`}}
|
|
215
|
+
`}}Te.styles=[Re,ze,Me,Ue,Fe,je,De,Ae,Be,Le,_e],Pe([o()],Te.prototype,"element",void 0),Pe([o()],Te.prototype,"variant",void 0),a("ft-typography")(Te);
|
|
216
216
|
/**
|
|
217
217
|
* @license
|
|
218
218
|
* Copyright 2017 Google LLC
|
|
219
219
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
220
220
|
*/
|
|
221
|
-
class
|
|
221
|
+
class We extends wt{constructor(t){if(super(t),this.it=Z,t.type!==mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||null==t)return this._t=void 0,this.it=t;if(t===K)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:[]}}}We.directiveName="unsafeHTML",We.resultType=1;const Ie=$t(We);var He,Ke;!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=""}(He||(He={})),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=""}(Ke||(Ke={})),new Map([...["abw"].map((t=>[t,Ke.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,Ke.AUDIO])),...["avi"].map((t=>[t,Ke.AVI])),...["chm","xhs"].map((t=>[t,Ke.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,Ke.CODE])),...["csv"].map((t=>[t,Ke.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ke.DITA])),...["epub"].map((t=>[t,Ke.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ke.EXCEL])),...["flac"].map((t=>[t,Ke.FLAC])),...["gif"].map((t=>[t,Ke.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ke.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ke.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,Ke.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ke.JPEG])),...["json"].map((t=>[t,Ke.JSON])),...["m4a","m4p"].map((t=>[t,Ke.M4A])),...["mov","qt"].map((t=>[t,Ke.MOV])),...["mp3"].map((t=>[t,Ke.MP3])),...["mp4","m4v"].map((t=>[t,Ke.MP4])),...["ogg","oga"].map((t=>[t,Ke.OGG])),...["pdf","ps"].map((t=>[t,Ke.PDF])),...["png"].map((t=>[t,Ke.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ke.POWERPOINT])),...["rar"].map((t=>[t,Ke.RAR])),...["stp"].map((t=>[t,Ke.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ke.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,Ke.VIDEO])),...["wav"].map((t=>[t,Ke.WAV])),...["wma"].map((t=>[t,Ke.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ke.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ke.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ke.YAML])),...["zip"].map((t=>[t,Ke.ZIP]))]);const Ze=ct.create("--ft-icon-font-size","SIZE","24px"),Ve=ct.extend("--ft-icon-fluid-topics-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Je=ct.extend("--ft-icon-file-format-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-mime")),qe=ct.extend("--ft-icon-material-font-family",ct.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Xe=ct.create("--ft-icon-vertical-align","UNKNOWN","unset"),Ye=u`
|
|
222
222
|
:host {
|
|
223
223
|
display: inline-block;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
:host, i.ft-icon {
|
|
227
|
-
width: ${
|
|
228
|
-
height: ${
|
|
227
|
+
width: ${Ze};
|
|
228
|
+
height: ${Ze};
|
|
229
229
|
text-align: center;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
i.ft-icon {
|
|
233
|
-
font-size: ${
|
|
233
|
+
font-size: ${Ze};
|
|
234
234
|
line-height: 1;
|
|
235
235
|
font-weight: normal;
|
|
236
236
|
text-transform: none;
|
|
@@ -241,26 +241,26 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
241
241
|
text-rendering: auto;
|
|
242
242
|
-webkit-font-smoothing: antialiased;
|
|
243
243
|
-moz-osx-font-smoothing: grayscale;
|
|
244
|
-
vertical-align: ${
|
|
244
|
+
vertical-align: ${Xe};
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
.ft-icon--fluid-topics {
|
|
248
|
-
font-family: ${
|
|
248
|
+
font-family: ${Ve}, ft-icons, fticons, sans-serif;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
.ft-icon--file-format {
|
|
252
|
-
font-family: ${
|
|
252
|
+
font-family: ${Je}, ft-mime, sans-serif;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
.ft-icon--material {
|
|
256
|
-
font-family: ${
|
|
256
|
+
font-family: ${qe}, "Material Icons", sans-serif;
|
|
257
257
|
}
|
|
258
|
-
`;var
|
|
258
|
+
`;var Ge;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ge||(Ge={}));var Qe=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 ti extends xt{constructor(){super(...arguments),this.variant=Ge.fluid_topics,this.resolvedIcon=Z}render(){const t="material"!==this.variant||this.value;return H`
|
|
259
259
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
260
|
-
${
|
|
260
|
+
${Ie(this.resolvedIcon)}
|
|
261
261
|
<slot ?hidden=${t}></slot>
|
|
262
262
|
</i>
|
|
263
|
-
`}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
|
|
263
|
+
`}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 Ge.file_format:this.resolvedIcon=null!==(t=Ke[i.toUpperCase()])&&void 0!==t?t:i;break;case Ge.fluid_topics:this.resolvedIcon=null!==(e=He[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Z}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}ti.elementDefinitions={},ti.styles=Ye,Qe([o()],ti.prototype,"variant",void 0),Qe([o()],ti.prototype,"value",void 0),Qe([r()],ti.prototype,"resolvedIcon",void 0),Qe([s("slot")],ti.prototype,"slottedContent",void 0),a("ft-icon")(ti);const ei=ct.external(dt.colorOutline,"Design system"),ii=ct.external(dt.colorOnSurfaceMedium,"Design system"),oi=u`
|
|
264
264
|
:host {
|
|
265
265
|
display: block;
|
|
266
266
|
}
|
|
@@ -271,17 +271,17 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
271
271
|
|
|
272
272
|
ft-icon {
|
|
273
273
|
transform: rotate(-45deg);
|
|
274
|
-
color: ${
|
|
274
|
+
color: ${ei};
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
.ft-resizer--dragging ft-icon,
|
|
278
278
|
.ft-resizer:hover ft-icon {
|
|
279
|
-
color: ${
|
|
279
|
+
color: ${ii};
|
|
280
280
|
}
|
|
281
|
-
`;var
|
|
281
|
+
`;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};class si extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class ni extends xt{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 H`
|
|
282
282
|
<style>
|
|
283
283
|
.ft-resizer {
|
|
284
|
-
cursor: ${
|
|
284
|
+
cursor: ${d(this.cursor)}
|
|
285
285
|
}
|
|
286
286
|
</style>
|
|
287
287
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
@@ -289,25 +289,25 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
289
289
|
@touchstart=${this.initDragFromTouch}>
|
|
290
290
|
<ft-icon variant="material">${this.icon}</ft-icon>
|
|
291
291
|
</div>
|
|
292
|
-
`}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
|
|
292
|
+
`}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 si(i,o))}}ni.elementDefinitions={"ft-icon":ti},ni.styles=[yt,oi],ri([o({type:Number})],ni.prototype,"initialWidth",void 0),ri([o({type:Number})],ni.prototype,"initialHeight",void 0),ri([o()],ni.prototype,"icon",void 0),ri([o()],ni.prototype,"cursor",void 0),ri([r()],ni.prototype,"dragging",void 0),a("ft-resizer")(ni);const ai={fontSize:ct.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ct.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ct.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ct.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ct.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ct.extend("--ft-input-label-border-color",dt.colorOutline),textColor:ct.extend("--ft-input-label-text-color",dt.colorOnSurfaceMedium),disabledTextColor:ct.extend("--ft-input-label-disabled-text-color",dt.colorOnSurfaceDisabled),colorSurface:ct.external(dt.colorSurface,"Design system"),borderRadiusS:ct.external(dt.borderRadiusS,"Design system"),colorError:ct.external(dt.colorError,"Design system")},li=u`
|
|
293
293
|
.ft-input-label {
|
|
294
294
|
position: absolute;
|
|
295
295
|
inset: 0;
|
|
296
296
|
display: flex;
|
|
297
|
-
background-color: ${
|
|
298
|
-
border-radius: ${
|
|
297
|
+
background-color: ${ai.colorSurface};
|
|
298
|
+
border-radius: ${ai.borderRadiusS} ${ai.borderRadiusS} 0 0;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
.ft-input-label--outlined {
|
|
302
|
-
border-radius: ${
|
|
302
|
+
border-radius: ${ai.borderRadiusS};
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
.ft-input-label {
|
|
306
|
-
border-color: ${
|
|
306
|
+
border-color: ${ai.borderColor};
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
.ft-input-label.ft-input-label--in-error {
|
|
310
|
-
border-color: ${
|
|
310
|
+
border-color: ${ai.colorError}
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
.ft-input-label:before,
|
|
@@ -320,7 +320,7 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
.ft-input-label:before {
|
|
323
|
-
width: ${
|
|
323
|
+
width: ${ai.horizontalSpacing};
|
|
324
324
|
flex-shrink: 0;
|
|
325
325
|
}
|
|
326
326
|
|
|
@@ -336,18 +336,18 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
336
336
|
border-bottom-width: 1px;
|
|
337
337
|
border-bottom-style: solid;
|
|
338
338
|
border-color: inherit;
|
|
339
|
-
color: ${
|
|
339
|
+
color: ${ai.textColor};
|
|
340
340
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
341
|
-
${
|
|
342
|
-
${
|
|
341
|
+
${ft(he.fontSize,ai.fontSize)};
|
|
342
|
+
${ft(he.lineHeight,ai.fontSize)};
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
.ft-input-label--in-error .ft-input-label--text {
|
|
346
|
-
color: ${
|
|
346
|
+
color: ${ai.colorError}
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
.ft-input-label--disabled .ft-input-label--text {
|
|
350
|
-
color: ${
|
|
350
|
+
color: ${ai.disabledTextColor};
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
.ft-input-label--hidden-text {
|
|
@@ -362,17 +362,17 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
362
362
|
overflow: hidden;
|
|
363
363
|
white-space: nowrap;
|
|
364
364
|
text-overflow: ellipsis;
|
|
365
|
-
padding: ${
|
|
366
|
-
margin: calc(${
|
|
365
|
+
padding: ${ai.verticalSpacing} 4px;
|
|
366
|
+
margin: calc(${ai.verticalSpacing} * -1) 0;
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
.ft-input-label--raised .ft-input-label--text {
|
|
370
|
-
${
|
|
371
|
-
${
|
|
370
|
+
${ft(he.fontSize,ai.raisedFontSize)};
|
|
371
|
+
${ft(he.lineHeight,ai.raisedFontSize)};
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
375
|
-
top: ${
|
|
375
|
+
top: ${ai.verticalSpacing};
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -385,36 +385,36 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
385
385
|
.ft-input-label--outlined:before {
|
|
386
386
|
border-left-width: 1px;
|
|
387
387
|
border-left-style: solid;
|
|
388
|
-
border-radius: ${
|
|
388
|
+
border-radius: ${ai.borderRadiusS} 0 0 ${ai.borderRadiusS};
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
.ft-input-label--outlined:after {
|
|
392
392
|
border-right-width: 1px;
|
|
393
393
|
border-right-style: solid;
|
|
394
|
-
border-radius: 0 ${
|
|
394
|
+
border-radius: 0 ${ai.borderRadiusS} ${ai.borderRadiusS} 0;
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
398
398
|
padding: 2px 4px;
|
|
399
|
-
z-index: ${
|
|
400
|
-
background-color: ${
|
|
401
|
-
border-radius: ${
|
|
399
|
+
z-index: ${ai.raisedZIndex};
|
|
400
|
+
background-color: ${ai.colorSurface};
|
|
401
|
+
border-radius: ${ai.borderRadiusS};
|
|
402
402
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
406
406
|
border-top: none;
|
|
407
407
|
}
|
|
408
|
-
`;var
|
|
409
|
-
<div class="${
|
|
410
|
-
${this.text?
|
|
408
|
+
`;var pi=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 hi extends xt{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 H`
|
|
409
|
+
<div class="${Ot(t)}">
|
|
410
|
+
${this.text?H`
|
|
411
411
|
<div class="ft-input-label--text ft-typography--caption">
|
|
412
412
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
413
413
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
414
414
|
</div>
|
|
415
415
|
`:null}
|
|
416
416
|
</div>
|
|
417
|
-
`}}
|
|
417
|
+
`}}hi.elementDefinitions={},hi.styles=[De,li],pi([o({type:String})],hi.prototype,"text",void 0),pi([o({type:Boolean})],hi.prototype,"raised",void 0),pi([o({type:Boolean})],hi.prototype,"outlined",void 0),pi([o({type:Boolean})],hi.prototype,"disabled",void 0),pi([o({type:Boolean})],hi.prototype,"error",void 0),a("ft-input-label")(hi);const ci=ct.extend("--ft-ripple-color",dt.colorContent),fi={color:ci,backgroundColor:ct.extend("--ft-ripple-background-color",ci),opacityContentOnSurfacePressed:ct.external(dt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ct.external(dt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ct.external(dt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ct.external(dt.opacityContentOnSurfaceSelected,"Design system")},di=ct.extend("--ft-ripple-color",dt.colorPrimary),ui=di,xi=ct.extend("--ft-ripple-background-color",di),yi=ct.extend("--ft-ripple-color",dt.colorSecondary),gi=yi,vi=ct.extend("--ft-ripple-background-color",yi),bi=u`
|
|
418
418
|
:host {
|
|
419
419
|
display: contents;
|
|
420
420
|
}
|
|
@@ -436,27 +436,27 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
.ft-ripple .ft-ripple--background {
|
|
439
|
-
background-color: ${
|
|
439
|
+
background-color: ${fi.backgroundColor};
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
.ft-ripple .ft-ripple--effect {
|
|
443
|
-
background-color: ${
|
|
443
|
+
background-color: ${fi.color};
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
447
|
-
background-color: ${
|
|
447
|
+
background-color: ${vi};
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
451
|
-
background-color: ${
|
|
451
|
+
background-color: ${gi};
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
455
|
-
background-color: ${
|
|
455
|
+
background-color: ${xi};
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
459
|
-
background-color: ${
|
|
459
|
+
background-color: ${ui};
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
.ft-ripple .ft-ripple--background {
|
|
@@ -488,22 +488,22 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
491
|
-
opacity: ${
|
|
491
|
+
opacity: ${fi.opacityContentOnSurfaceHover};
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
495
|
-
opacity: ${
|
|
495
|
+
opacity: ${fi.opacityContentOnSurfaceSelected};
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
499
|
-
opacity: ${
|
|
499
|
+
opacity: ${fi.opacityContentOnSurfaceFocused};
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
503
|
-
opacity: ${
|
|
503
|
+
opacity: ${fi.opacityContentOnSurfacePressed};
|
|
504
504
|
transform: translate(-50%, -50%) scale(1);
|
|
505
505
|
}
|
|
506
|
-
`;var
|
|
506
|
+
`;var mi=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 $i extends xt{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 H`
|
|
507
507
|
<style>
|
|
508
508
|
.ft-ripple .ft-ripple--effect,
|
|
509
509
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -516,11 +516,11 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
516
516
|
top: ${this.originY}px;
|
|
517
517
|
}
|
|
518
518
|
</style>
|
|
519
|
-
<div class="${
|
|
519
|
+
<div class="${Ot(t)}">
|
|
520
520
|
<div class="ft-ripple--background"></div>
|
|
521
521
|
<div class="ft-ripple--effect"></div>
|
|
522
522
|
</div>
|
|
523
|
-
`}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()}}
|
|
523
|
+
`}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()}}$i.elementDefinitions={},$i.styles=bi,mi([o({type:Boolean})],$i.prototype,"primary",void 0),mi([o({type:Boolean})],$i.prototype,"secondary",void 0),mi([o({type:Boolean})],$i.prototype,"unbounded",void 0),mi([o({type:Boolean})],$i.prototype,"activated",void 0),mi([o({type:Boolean})],$i.prototype,"selected",void 0),mi([o({type:Boolean})],$i.prototype,"disabled",void 0),mi([r()],$i.prototype,"hovered",void 0),mi([r()],$i.prototype,"focused",void 0),mi([r()],$i.prototype,"pressed",void 0),mi([r()],$i.prototype,"rippling",void 0),mi([r()],$i.prototype,"rippleSize",void 0),mi([r()],$i.prototype,"originX",void 0),mi([r()],$i.prototype,"originY",void 0),mi([s(".ft-ripple")],$i.prototype,"ripple",void 0),mi([s(".ft-ripple--effect")],$i.prototype,"rippleEffect",void 0),a("ft-ripple")($i);const wi={fontSize:ct.create("--ft-text-area-font-size","SIZE","14px"),labelSize:ct.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:ct.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:ct.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:ct.extend("--ft-text-area-helper-color",dt.colorOnSurfaceMedium),colorPrimary:ct.external(dt.colorPrimary,"Design system"),colorOnSurface:ct.external(dt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ct.external(dt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ct.external(dt.borderRadiusS,"Design system"),colorError:ct.external(dt.colorError,"Design system")},Oi=u`
|
|
524
524
|
*:focus {
|
|
525
525
|
outline: none;
|
|
526
526
|
}
|
|
@@ -532,10 +532,10 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
ft-input-label {
|
|
535
|
-
${
|
|
536
|
-
${
|
|
537
|
-
${
|
|
538
|
-
${
|
|
535
|
+
${ft(ai.fontSize,wi.fontSize)};
|
|
536
|
+
${ft(ai.raisedFontSize,wi.labelSize)};
|
|
537
|
+
${ft(ai.verticalSpacing,wi.verticalSpacing)};
|
|
538
|
+
${ft(ai.horizontalSpacing,u`calc(${wi.horizontalSpacing} - 4px)`)};
|
|
539
539
|
}
|
|
540
540
|
|
|
541
541
|
.ft-text-area--main-panel {
|
|
@@ -553,8 +553,8 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
553
553
|
}
|
|
554
554
|
|
|
555
555
|
.ft-text-area--input-panel ft-ripple {
|
|
556
|
-
${
|
|
557
|
-
${
|
|
556
|
+
${ft(fi.opacityContentOnSurfaceHover,"0.08")};
|
|
557
|
+
${ft(fi.opacityContentOnSurfacePressed,"0.04")};
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
.ft-text-area--input {
|
|
@@ -566,12 +566,12 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
566
566
|
align-self: stretch;
|
|
567
567
|
resize: none;
|
|
568
568
|
|
|
569
|
-
${
|
|
570
|
-
${
|
|
571
|
-
color: ${
|
|
569
|
+
${ft(oe.fontSize,wi.fontSize)};
|
|
570
|
+
${ft(oe.lineHeight,wi.fontSize)};
|
|
571
|
+
color: ${wi.colorOnSurface};
|
|
572
572
|
|
|
573
|
-
padding: 0 ${
|
|
574
|
-
margin: calc(${
|
|
573
|
+
padding: 0 ${wi.horizontalSpacing};
|
|
574
|
+
margin: calc(${wi.verticalSpacing} + ${wi.labelSize} / 2) 0 ${wi.verticalSpacing} 0;
|
|
575
575
|
|
|
576
576
|
border: none;
|
|
577
577
|
background: none;
|
|
@@ -580,7 +580,7 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
.ft-text-area--disabled .ft-text-area--input {
|
|
583
|
-
color: ${
|
|
583
|
+
color: ${wi.colorOnSurfaceDisabled};
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -588,32 +588,32 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
588
588
|
}
|
|
589
589
|
|
|
590
590
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
591
|
-
${
|
|
592
|
-
${
|
|
591
|
+
${ft(ai.borderColor,wi.colorPrimary)};
|
|
592
|
+
${ft(ai.textColor,wi.colorPrimary)};
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
596
|
-
border-radius: ${
|
|
596
|
+
border-radius: ${wi.borderRadiusS} ${wi.borderRadiusS} 0 0;
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
600
600
|
align-self: stretch;
|
|
601
|
-
margin-bottom: ${
|
|
602
|
-
margin-top: calc(${
|
|
601
|
+
margin-bottom: ${wi.verticalSpacing};
|
|
602
|
+
margin-top: calc(${wi.labelSize} + 2 * ${wi.verticalSpacing});
|
|
603
603
|
}
|
|
604
604
|
|
|
605
605
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
606
|
-
border-radius: ${
|
|
606
|
+
border-radius: ${wi.borderRadiusS};
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
.ft-text-area--helper-text {
|
|
610
|
-
padding: 0 12px 0 ${
|
|
611
|
-
color: ${
|
|
610
|
+
padding: 0 12px 0 ${wi.horizontalSpacing};
|
|
611
|
+
color: ${wi.helperColor};
|
|
612
612
|
}
|
|
613
613
|
|
|
614
614
|
.ft-text-area--in-error .ft-text-area--input,
|
|
615
615
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
616
|
-
color: ${
|
|
616
|
+
color: ${wi.colorError};
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
ft-resizer {
|
|
@@ -621,13 +621,13 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
621
621
|
right: 0;
|
|
622
622
|
bottom: 0;
|
|
623
623
|
}
|
|
624
|
-
`;var
|
|
624
|
+
`;var Si=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 ki extends xt{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 H`
|
|
625
625
|
<style>
|
|
626
626
|
.ft-text-area--main-panel {
|
|
627
|
-
height: calc(4 * ${
|
|
627
|
+
height: calc(4 * ${wi.verticalSpacing} + ${wi.labelSize} + ${wi.fontSize} + ${this.height}px);
|
|
628
628
|
}
|
|
629
629
|
</style>
|
|
630
|
-
<div class="${
|
|
630
|
+
<div class="${Ot(t)}">
|
|
631
631
|
<div class="ft-text-area--main-panel">
|
|
632
632
|
<ft-input-label text="${this.label}"
|
|
633
633
|
?disabled=${this.disabled}
|
|
@@ -637,7 +637,7 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
637
637
|
></ft-input-label>
|
|
638
638
|
<div class="ft-text-area--input-panel"
|
|
639
639
|
aria-label="${this.label}">
|
|
640
|
-
${this.outlined?null:
|
|
640
|
+
${this.outlined?null:H`
|
|
641
641
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
642
642
|
`}
|
|
643
643
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -654,9 +654,9 @@ class Te extends vt{constructor(t){if(super(t),this.it=I,t.type!==gt)throw Error
|
|
|
654
654
|
initialHeight="${this.height}"
|
|
655
655
|
cursor="ns-resize"></ft-resizer>
|
|
656
656
|
</div>
|
|
657
|
-
${this.helper?
|
|
657
|
+
${this.helper?H`
|
|
658
658
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
659
659
|
${this.helper}
|
|
660
660
|
</ft-typography>`:void 0}
|
|
661
661
|
</div>
|
|
662
|
-
`}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)}}
|
|
662
|
+
`}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)}}ki.elementDefinitions={"ft-input-label":hi,"ft-resizer":ni,"ft-ripple":$i,"ft-typography":Te},ki.styles=[Fe,Oi],Si([o({type:String})],ki.prototype,"label",void 0),Si([o({reflect:!0})],ki.prototype,"value",void 0),Si([o({type:String})],ki.prototype,"helper",void 0),Si([o({type:Boolean})],ki.prototype,"outlined",void 0),Si([o({type:Boolean})],ki.prototype,"disabled",void 0),Si([o({type:Boolean})],ki.prototype,"error",void 0),Si([o({type:Number,reflect:!0})],ki.prototype,"height",void 0),Si([s("textarea")],ki.prototype,"textarea",void 0),Si([r()],ki.prototype,"focused",void 0),a("ft-text-area")(ki),t.FtTextArea=ki,t.FtTextAreaCssVariables=wi,t.styles=Oi,Object.defineProperty(t,"i",{value:!0})}({});
|