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