@fluid-topics/ft-text-area 0.1.18 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-text-area.inline-styles.js +194 -182
- package/build/ft-text-area.light.js +157 -145
- package/build/ft-text-area.min.js +188 -176
- package/package.json +5 -5
|
@@ -14,17 +14,12 @@
|
|
|
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,s=new WeakMap,r=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,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);f(s,l,a);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(n.set(s,p),p.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}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),s.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,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.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,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.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),s.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 m=(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(m(Element,"innerHTML"),m(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!==s.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 r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),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=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Fe){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)}}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const t=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};
|
|
23
|
-
/**
|
|
24
|
-
* @license
|
|
25
|
-
* Copyright 2017 Google LLC
|
|
26
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/function e(e){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(e,i,o):t(e,i)
|
|
22
|
+
*/const t=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function e(e){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(e,i,o):t(e,i)
|
|
28
23
|
/**
|
|
29
24
|
* @license
|
|
30
25
|
* Copyright 2017 Google LLC
|
|
@@ -40,12 +35,12 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
40
35
|
* Copyright 2017 Google LLC
|
|
41
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
37
|
*/
|
|
43
|
-
function o(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var
|
|
38
|
+
function o(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,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}})}
|
|
44
39
|
/**
|
|
45
40
|
* @license
|
|
46
41
|
* Copyright 2021 Google LLC
|
|
47
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
*/var
|
|
43
|
+
*/var s;null===(s=window.HTMLSlotElement)||void 0===s||s.prototype.assignedElements;const r=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
|
|
49
44
|
/**
|
|
50
45
|
* @license
|
|
51
46
|
* Copyright 2019 Google LLC
|
|
@@ -55,25 +50,25 @@ function o(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var r;if(void 0===o)
|
|
|
55
50
|
* @license
|
|
56
51
|
* Copyright 2017 Google LLC
|
|
57
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/;var u;const
|
|
53
|
+
*/;var u;const x=window.trustedTypes,y=x?x.emptyScript:"",g=window.reactiveElementPolyfillSupport,m={toAttribute(t,e){switch(e){case Boolean:t=t?y: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}},b=(t,e)=>e!==t&&(e==e||t==t),v={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:b};class $ 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=v){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 s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}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(d(t))}else void 0!==t&&e.push(d(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 f(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=v){var o,s;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const n=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:m.toAttribute)(e,i.type);this._$Ei=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Ei=null}}_$AK(t,e){var i,o,s;const r=this.constructor,n=r._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=r.getPropertyOptions(n),a=t.converter,l=null!==(s=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==s?s:m.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||b)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){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._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
59
54
|
/**
|
|
60
55
|
* @license
|
|
61
56
|
* Copyright 2017 Google LLC
|
|
62
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
58
|
*/
|
|
64
|
-
var
|
|
59
|
+
var w;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:$}),(null!==(u=globalThis.reactiveElementVersions)&&void 0!==u?u:globalThis.reactiveElementVersions=[]).push("1.2.2");const O=globalThis.trustedTypes,S=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,E="?"+C,N=`<${E}>`,k=document,R=(t="")=>k.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,D=/>/g,j=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,A=/'/g,B=/"/g,L=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),I=new WeakMap,W=k.createTreeWalker(k,129,null,!1),H=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=U;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===U?"!--"===l[1]?n=F:void 0!==l[1]?n=D:void 0!==l[2]?(L.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=j):void 0!==l[3]&&(n=j):n===j?">"===l[0]?(n=null!=s?s:U,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?j:'"'===l[3]?B:A):n===B||n===A?n=j:n===F||n===D?n=U:(n=j,s=void 0);const c=n===j&&t[e+1].startsWith("/>")?" ":"";r+=n===U?i+N: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=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(a):a,o]};class K{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,p]=H(t,e);if(this.el=K.createElement(l,i),W.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=W.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[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(C),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?G:"@"===e[1]?Q:X})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(L.test(o.tagName)){const t=o.textContent.split(C),e=t.length-1;if(e>0){o.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],R()),W.nextNode(),a.push({type:2,index:++s});o.append(t[e],R())}}}else if(8===o.nodeType)if(o.data===E)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(C,t+1));)a.push({type:7,index:s}),t+=C.length-1}s++}}static createElement(t,e){const i=k.createElement("template");return i.innerHTML=t,i}}function Z(t,e,i=t,o){var s,r,n,a;if(e===_)return e;let l=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=z(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.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=Z(t,l._$AS(t,e.values),l,o)),e}class V{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,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:k).importNode(i,!0);W.currentNode=s;let r=W.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new q(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new tt(r,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=W.nextNode(),n++)}return s}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 s;this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}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=Z(this,t,e),z(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return M(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==P&&z(this._$AH)?this._$AA.nextSibling.data=t:this.S(k.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new V(s,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new K(t)),e}A(t){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new q(this.M(R()),this.M(R()),this,this.options)):i=e[o],i._$AI(s),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,s){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=Z(this,t,e,0),r=!z(t)||t!==this._$AH&&t!==_,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=Z(this,o[i+n],e,n),a===_&&(a=this._$AH[n]),r||(r=!z(a)||a!==this._$AH[n]),a===P?t=P:t!==P&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.k(t)}k(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends X{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===P?void 0:t}}const Y=O?O.emptyScript:"";class G extends X{constructor(){super(...arguments),this.type=4}k(t){t&&t!==P?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}class Q extends X{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Z(this,t,e,0))&&void 0!==i?i:P)===_)return;const o=this._$AH,s=t===P&&o!==P||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==P&&(o===P||s);s&&this.element.removeEventListener(this.name,this,o),r&&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 tt{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){Z(this,t)}}const et=window.litHtmlPolyfillSupport;
|
|
65
60
|
/**
|
|
66
61
|
* @license
|
|
67
62
|
* Copyright 2017 Google LLC
|
|
68
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
64
|
*/
|
|
70
|
-
var it,ot;null==et||et(K,
|
|
65
|
+
var it,ot;null==et||et(K,q),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w:globalThis.litHtmlVersions=[]).push("2.1.3");class st extends ${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,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new q(e.insertBefore(R(),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===(it=globalThis.litElementHydrateSupport)||void 0===it||it.call(globalThis,{LitElement:st});const rt=globalThis.litElementPolyfillSupport;null==rt||rt({LitElement:st}),(null!==(ot=globalThis.litElementVersions)&&void 0!==ot?ot:globalThis.litElementVersions=[]).push("3.1.2");class nt{constructor(t,e,i,o,s){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=s,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 nt(t,e,void 0,i)}static extend(t,e,i){return new nt(t,e.category,e,i)}static external(t,e){return new nt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return c`var(${h(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):h(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 at(t,e){return h(`${t.name}: ${e}`)}const lt={colorPrimary:nt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:nt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:nt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:nt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:nt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:nt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:nt.create("--ft-color-error","COLOR","#B00020"),colorOutline:nt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:nt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:nt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:nt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:nt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:nt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:nt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:nt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:nt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:nt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:nt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:nt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:nt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:nt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:nt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:nt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:nt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:nt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:nt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:nt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:nt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:nt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:nt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:nt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:nt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:nt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:nt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:nt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:nt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:nt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:nt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:nt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:nt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:nt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:nt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:nt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:nt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:nt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:nt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:nt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:nt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:nt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:nt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:nt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
71
66
|
/**
|
|
72
67
|
* @license
|
|
73
68
|
* Copyright 2021 Google LLC
|
|
74
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
75
|
-
*/class pt 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
|
|
76
|
-
${t.map((t=>
|
|
70
|
+
*/class pt 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 s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return f(s,this.constructor.elementStyles),s}}}(st)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),T`
|
|
71
|
+
${t.map((t=>T`
|
|
77
72
|
<style>${t}</style>
|
|
78
73
|
`))}
|
|
79
74
|
${this.getTemplate()}
|
|
@@ -92,146 +87,163 @@ var it,ot;null==et||et(K,X),(null!==($=globalThis.litHtmlVersions)&&void 0!==$?$
|
|
|
92
87
|
* Copyright 2017 Google LLC
|
|
93
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
94
89
|
*/
|
|
95
|
-
const dt=1;
|
|
90
|
+
const dt=1,ut=2,xt=t=>(...e)=>({_$litDirective$:t,values:e});class yt{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)}}
|
|
96
91
|
/**
|
|
97
92
|
* @license
|
|
98
93
|
* Copyright 2018 Google LLC
|
|
99
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
100
|
-
*/
|
|
101
|
-
const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{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)}}{constructor(t){var e;if(super(t),t.type!==dt||"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.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const r=t.element.classList;this.st.forEach((t=>{t in e||(r.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return P}}),yt=t=>({_$litStatic$:t}),gt=new Map,bt=(t=>(e,...i)=>{var o;const r=i.length;let s,n;const a=[],l=[];let p,h=0,c=!1;for(;h<r;){for(p=e[h];h<r&&void 0!==(n=i[h],s=null===(o=n)||void 0===o?void 0:o._$litStatic$);)p+=s+e[++h],c=!0;l.push(n),a.push(p),h++}if(h===r&&a.push(e[r]),c){const t=a.join("$$lit$$");void 0===(e=gt.get(t))&&(a.raw=a,gt.set(t,e=a)),i=l}return t(e,...i)})(j);
|
|
95
|
+
*/const gt=xt(class extends yt{constructor(t){var e;if(super(t),t.type!==dt||"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.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const s=t.element.classList;this.st.forEach((t=>{t in e||(s.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return _}}),mt=t=>({_$litStatic$:t}),bt=new Map,vt=(t=>(e,...i)=>{var o;const s=i.length;let r,n;const a=[],l=[];let p,h=0,c=!1;for(;h<s;){for(p=e[h];h<s&&void 0!==(n=i[h],r=null===(o=n)||void 0===o?void 0:o._$litStatic$);)p+=r+e[++h],c=!0;l.push(n),a.push(p),h++}if(h===s&&a.push(e[s]),c){const t=a.join("$$lit$$");void 0===(e=bt.get(t))&&(a.raw=a,bt.set(t,e=a)),i=l}return t(e,...i)})(T);
|
|
102
96
|
/**
|
|
103
97
|
* @license
|
|
104
98
|
* Copyright 2020 Google LLC
|
|
105
99
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/var
|
|
100
|
+
*/var $t,wt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>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"}($t||($t={}));const Ot=nt.extend("--ft-typography-font-family",lt.titleFont),St=nt.extend("--ft-typography-font-family",lt.contentFont),Ct={fontFamily:St,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","SIZE","24px"),textTransform:nt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Et=nt.extend("--ft-typography-title-font-family",Ot),Nt=nt.extend("--ft-typography-title-font-size",Ct.fontSize,"20px"),kt=nt.extend("--ft-typography-title-font-weight",Ct.fontWeight,"normal"),Rt=nt.extend("--ft-typography-title-letter-spacing",Ct.letterSpacing,"0.15px"),zt=nt.extend("--ft-typography-title-line-height",Ct.lineHeight,"24px"),Mt=nt.extend("--ft-typography-title-text-transform",Ct.textTransform,"inherit"),Ut=nt.extend("--ft-typography-title-dense-font-family",Ot),Ft=nt.extend("--ft-typography-title-dense-font-size",Ct.fontSize,"14px"),Dt=nt.extend("--ft-typography-title-dense-font-weight",Ct.fontWeight,"normal"),jt=nt.extend("--ft-typography-title-dense-letter-spacing",Ct.letterSpacing,"0.105px"),At=nt.extend("--ft-typography-title-dense-line-height",Ct.lineHeight,"24px"),Bt=nt.extend("--ft-typography-title-dense-text-transform",Ct.textTransform,"inherit"),Lt=nt.extend("--ft-typography-subtitle1-font-family",St),Tt=nt.extend("--ft-typography-subtitle1-font-size",Ct.fontSize,"16px"),_t=nt.extend("--ft-typography-subtitle1-font-weight",Ct.fontWeight,"600"),Pt=nt.extend("--ft-typography-subtitle1-letter-spacing",Ct.letterSpacing,"0.144px"),It=nt.extend("--ft-typography-subtitle1-line-height",Ct.lineHeight,"24px"),Wt=nt.extend("--ft-typography-subtitle1-text-transform",Ct.textTransform,"inherit"),Ht=nt.extend("--ft-typography-subtitle2-font-family",St),Kt=nt.extend("--ft-typography-subtitle2-font-size",Ct.fontSize,"14px"),Zt=nt.extend("--ft-typography-subtitle2-font-weight",Ct.fontWeight,"normal"),Vt=nt.extend("--ft-typography-subtitle2-letter-spacing",Ct.letterSpacing,"0.098px"),qt=nt.extend("--ft-typography-subtitle2-line-height",Ct.lineHeight,"24px"),Xt=nt.extend("--ft-typography-subtitle2-text-transform",Ct.textTransform,"inherit"),Jt={fontFamily:nt.extend("--ft-typography-body1-font-family",St),fontSize:nt.extend("--ft-typography-body1-font-size",Ct.fontSize,"16px"),fontWeight:nt.extend("--ft-typography-body1-font-weight",Ct.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-body1-letter-spacing",Ct.letterSpacing,"0.496px"),lineHeight:nt.extend("--ft-typography-body1-line-height",Ct.lineHeight,"24px"),textTransform:nt.extend("--ft-typography-body1-text-transform",Ct.textTransform,"inherit")},Yt=nt.extend("--ft-typography-body2-font-family",St),Gt=nt.extend("--ft-typography-body2-font-size",Ct.fontSize,"14px"),Qt=nt.extend("--ft-typography-body2-font-weight",Ct.fontWeight,"normal"),te=nt.extend("--ft-typography-body2-letter-spacing",Ct.letterSpacing,"0.252px"),ee=nt.extend("--ft-typography-body2-line-height",Ct.lineHeight,"20px"),ie=nt.extend("--ft-typography-body2-text-transform",Ct.textTransform,"inherit"),oe={fontFamily:nt.extend("--ft-typography-caption-font-family",St),fontSize:nt.extend("--ft-typography-caption-font-size",Ct.fontSize,"12px"),fontWeight:nt.extend("--ft-typography-caption-font-weight",Ct.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-caption-letter-spacing",Ct.letterSpacing,"0.396px"),lineHeight:nt.extend("--ft-typography-caption-line-height",Ct.lineHeight,"16px"),textTransform:nt.extend("--ft-typography-caption-text-transform",Ct.textTransform,"inherit")},se=nt.extend("--ft-typography-breadcrumb-font-family",St),re=nt.extend("--ft-typography-breadcrumb-font-size",Ct.fontSize,"10px"),ne=nt.extend("--ft-typography-breadcrumb-font-weight",Ct.fontWeight,"normal"),ae=nt.extend("--ft-typography-breadcrumb-letter-spacing",Ct.letterSpacing,"0.33px"),le=nt.extend("--ft-typography-breadcrumb-line-height",Ct.lineHeight,"16px"),pe=nt.extend("--ft-typography-breadcrumb-text-transform",Ct.textTransform,"inherit"),he=nt.extend("--ft-typography-overline-font-family",St),ce=nt.extend("--ft-typography-overline-font-size",Ct.fontSize,"10px"),fe=nt.extend("--ft-typography-overline-font-weight",Ct.fontWeight,"normal"),de=nt.extend("--ft-typography-overline-letter-spacing",Ct.letterSpacing,"1.5px"),ue=nt.extend("--ft-typography-overline-line-height",Ct.lineHeight,"16px"),xe=nt.extend("--ft-typography-overline-text-transform",Ct.textTransform,"uppercase"),ye=nt.extend("--ft-typography-button-font-family",St),ge=nt.extend("--ft-typography-button-font-size",Ct.fontSize,"14px"),me=nt.extend("--ft-typography-button-font-weight",Ct.fontWeight,"600"),be=nt.extend("--ft-typography-button-letter-spacing",Ct.letterSpacing,"1.246px"),ve=nt.extend("--ft-typography-button-line-height",Ct.lineHeight,"16px"),$e=nt.extend("--ft-typography-button-text-transform",Ct.textTransform,"uppercase"),we=c`
|
|
107
101
|
.ft-typography--title {
|
|
108
|
-
font-family: ${
|
|
109
|
-
font-size: ${
|
|
110
|
-
font-weight: ${
|
|
111
|
-
letter-spacing: ${
|
|
112
|
-
line-height: ${
|
|
113
|
-
text-transform: ${
|
|
102
|
+
font-family: ${Et};
|
|
103
|
+
font-size: ${Nt};
|
|
104
|
+
font-weight: ${kt};
|
|
105
|
+
letter-spacing: ${Rt};
|
|
106
|
+
line-height: ${zt};
|
|
107
|
+
text-transform: ${Mt};
|
|
114
108
|
}
|
|
115
|
-
`,
|
|
109
|
+
`,Oe=c`
|
|
116
110
|
.ft-typography--title-dense {
|
|
117
|
-
font-family: ${
|
|
118
|
-
font-size: ${
|
|
119
|
-
font-weight: ${
|
|
120
|
-
letter-spacing: ${
|
|
121
|
-
line-height: ${
|
|
122
|
-
text-transform: ${
|
|
111
|
+
font-family: ${Ut};
|
|
112
|
+
font-size: ${Ft};
|
|
113
|
+
font-weight: ${Dt};
|
|
114
|
+
letter-spacing: ${jt};
|
|
115
|
+
line-height: ${At};
|
|
116
|
+
text-transform: ${Bt};
|
|
123
117
|
}
|
|
124
|
-
`,
|
|
118
|
+
`,Se=c`
|
|
125
119
|
.ft-typography--subtitle1 {
|
|
126
|
-
font-family: ${
|
|
127
|
-
font-size: ${
|
|
128
|
-
font-weight: ${
|
|
129
|
-
letter-spacing: ${
|
|
130
|
-
line-height: ${
|
|
131
|
-
text-transform: ${
|
|
120
|
+
font-family: ${Lt};
|
|
121
|
+
font-size: ${Tt};
|
|
122
|
+
font-weight: ${_t};
|
|
123
|
+
letter-spacing: ${Pt};
|
|
124
|
+
line-height: ${It};
|
|
125
|
+
text-transform: ${Wt};
|
|
132
126
|
}
|
|
133
|
-
|
|
127
|
+
`,Ce=c`
|
|
134
128
|
.ft-typography--subtitle2 {
|
|
135
|
-
font-family: ${
|
|
136
|
-
font-size: ${
|
|
137
|
-
font-weight: ${
|
|
138
|
-
letter-spacing: ${
|
|
139
|
-
line-height: ${
|
|
140
|
-
text-transform: ${
|
|
129
|
+
font-family: ${Ht};
|
|
130
|
+
font-size: ${Kt};
|
|
131
|
+
font-weight: ${Zt};
|
|
132
|
+
letter-spacing: ${Vt};
|
|
133
|
+
line-height: ${qt};
|
|
134
|
+
text-transform: ${Xt};
|
|
141
135
|
}
|
|
142
136
|
|
|
143
|
-
`,
|
|
137
|
+
`,Ee=c`
|
|
144
138
|
.ft-typography--body1 {
|
|
145
|
-
font-family: ${
|
|
146
|
-
font-size: ${
|
|
147
|
-
font-weight: ${
|
|
148
|
-
letter-spacing: ${
|
|
149
|
-
line-height: ${
|
|
150
|
-
text-transform: ${
|
|
139
|
+
font-family: ${Jt.fontFamily};
|
|
140
|
+
font-size: ${Jt.fontSize};
|
|
141
|
+
font-weight: ${Jt.fontWeight};
|
|
142
|
+
letter-spacing: ${Jt.letterSpacing};
|
|
143
|
+
line-height: ${Jt.lineHeight};
|
|
144
|
+
text-transform: ${Jt.textTransform};
|
|
151
145
|
}
|
|
152
|
-
`,
|
|
146
|
+
`,Ne=c`
|
|
153
147
|
.ft-typography--body2 {
|
|
154
|
-
font-family: ${
|
|
155
|
-
font-size: ${
|
|
156
|
-
font-weight: ${
|
|
157
|
-
letter-spacing: ${
|
|
158
|
-
line-height: ${
|
|
159
|
-
text-transform: ${
|
|
148
|
+
font-family: ${Yt};
|
|
149
|
+
font-size: ${Gt};
|
|
150
|
+
font-weight: ${Qt};
|
|
151
|
+
letter-spacing: ${te};
|
|
152
|
+
line-height: ${ee};
|
|
153
|
+
text-transform: ${ie};
|
|
160
154
|
}
|
|
161
|
-
`,
|
|
155
|
+
`,ke=c`
|
|
162
156
|
.ft-typography--caption {
|
|
163
|
-
font-family: ${
|
|
164
|
-
font-size: ${
|
|
165
|
-
font-weight: ${
|
|
166
|
-
letter-spacing: ${
|
|
167
|
-
line-height: ${
|
|
168
|
-
text-transform: ${
|
|
157
|
+
font-family: ${oe.fontFamily};
|
|
158
|
+
font-size: ${oe.fontSize};
|
|
159
|
+
font-weight: ${oe.fontWeight};
|
|
160
|
+
letter-spacing: ${oe.letterSpacing};
|
|
161
|
+
line-height: ${oe.lineHeight};
|
|
162
|
+
text-transform: ${oe.textTransform};
|
|
169
163
|
}
|
|
170
|
-
`,
|
|
164
|
+
`,Re=c`
|
|
171
165
|
.ft-typography--breadcrumb {
|
|
172
|
-
font-family: ${
|
|
173
|
-
font-size: ${
|
|
174
|
-
font-weight: ${
|
|
175
|
-
letter-spacing: ${
|
|
176
|
-
line-height: ${
|
|
177
|
-
text-transform: ${
|
|
166
|
+
font-family: ${se};
|
|
167
|
+
font-size: ${re};
|
|
168
|
+
font-weight: ${ne};
|
|
169
|
+
letter-spacing: ${ae};
|
|
170
|
+
line-height: ${le};
|
|
171
|
+
text-transform: ${pe};
|
|
178
172
|
}
|
|
179
|
-
`,
|
|
173
|
+
`,ze=c`
|
|
180
174
|
.ft-typography--overline {
|
|
181
|
-
font-family: ${
|
|
182
|
-
font-size: ${
|
|
183
|
-
font-weight: ${
|
|
184
|
-
letter-spacing: ${
|
|
185
|
-
line-height: ${
|
|
186
|
-
text-transform: ${
|
|
175
|
+
font-family: ${he};
|
|
176
|
+
font-size: ${ce};
|
|
177
|
+
font-weight: ${fe};
|
|
178
|
+
letter-spacing: ${de};
|
|
179
|
+
line-height: ${ue};
|
|
180
|
+
text-transform: ${xe};
|
|
187
181
|
}
|
|
188
|
-
`,
|
|
182
|
+
`,Me=c`
|
|
189
183
|
.ft-typography--button {
|
|
190
|
-
font-family: ${
|
|
191
|
-
font-size: ${
|
|
192
|
-
font-weight: ${
|
|
193
|
-
letter-spacing: ${
|
|
194
|
-
line-height: ${
|
|
195
|
-
text-transform: ${
|
|
184
|
+
font-family: ${ye};
|
|
185
|
+
font-size: ${ge};
|
|
186
|
+
font-weight: ${me};
|
|
187
|
+
letter-spacing: ${be};
|
|
188
|
+
line-height: ${ve};
|
|
189
|
+
text-transform: ${$e};
|
|
196
190
|
}
|
|
197
|
-
`;class
|
|
198
|
-
<${
|
|
191
|
+
`;class Ue extends pt{constructor(){super(...arguments),this.variant=$t.body1}render(){return this.element?vt`
|
|
192
|
+
<${mt(this.element)}
|
|
199
193
|
class="ft-typography ft-typography--${this.variant}">
|
|
200
194
|
<slot></slot>
|
|
201
|
-
</${
|
|
202
|
-
`:
|
|
195
|
+
</${mt(this.element)}>
|
|
196
|
+
`:vt`
|
|
203
197
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
204
|
-
`}}
|
|
198
|
+
`}}Ue.styles=[we,Oe,Se,Ce,Ee,Ne,ke,Re,ze,Me,c`
|
|
205
199
|
.ft-typography {
|
|
206
200
|
vertical-align: inherit;
|
|
207
201
|
}
|
|
208
|
-
`],
|
|
202
|
+
`],wt([e()],Ue.prototype,"element",void 0),wt([e()],Ue.prototype,"variant",void 0),r("ft-typography")(Ue);
|
|
209
203
|
/**
|
|
210
204
|
* @license
|
|
211
|
-
* Copyright
|
|
212
|
-
* SPDX-
|
|
205
|
+
* Copyright 2017 Google LLC
|
|
206
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
213
207
|
*/
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
208
|
+
class Fe extends yt{constructor(t){if(super(t),this.it=P,t.type!==ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===P||null==t)return this.vt=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.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Fe.directiveName="unsafeHTML",Fe.resultType=1;const De=xt(Fe);var je,Ae;!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=""}(je||(je={})),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=""}(Ae||(Ae={})),new Map([...["abw"].map((t=>[t,Ae.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,Ae.AUDIO])),...["avi"].map((t=>[t,Ae.AVI])),...["chm","xhs"].map((t=>[t,Ae.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,Ae.CODE])),...["csv"].map((t=>[t,Ae.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ae.DITA])),...["epub"].map((t=>[t,Ae.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ae.EXCEL])),...["flac"].map((t=>[t,Ae.FLAC])),...["gif"].map((t=>[t,Ae.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ae.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ae.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,Ae.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ae.JPEG])),...["json"].map((t=>[t,Ae.JSON])),...["m4a","m4p"].map((t=>[t,Ae.M4A])),...["mov","qt"].map((t=>[t,Ae.MOV])),...["mp3"].map((t=>[t,Ae.MP3])),...["mp4","m4v"].map((t=>[t,Ae.MP4])),...["ogg","oga"].map((t=>[t,Ae.OGG])),...["pdf","ps"].map((t=>[t,Ae.PDF])),...["png"].map((t=>[t,Ae.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ae.POWERPOINT])),...["rar"].map((t=>[t,Ae.RAR])),...["stp"].map((t=>[t,Ae.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ae.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,Ae.VIDEO])),...["wav"].map((t=>[t,Ae.WAV])),...["wma"].map((t=>[t,Ae.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ae.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ae.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ae.YAML])),...["zip"].map((t=>[t,Ae.ZIP]))]);var Be,Le=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Be||(Be={}));const Te=nt.create("--ft-icon-font-size","SIZE","24px"),_e=nt.extend("--ft-icon-fluid-topics-font-family",nt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Pe=nt.extend("--ft-icon-file-format-font-family",nt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ie=nt.extend("--ft-icon-material-font-family",nt.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class We extends pt{constructor(){super(...arguments),this.variant=Be.fluid_topics}render(){return T`
|
|
209
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
210
|
+
${De(this.getIcon())}
|
|
211
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
212
|
+
</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===Be.file_format?null!==(t=Ae[i.toUpperCase()])&&void 0!==t?t:i:this.variant===Be.fluid_topics?null!==(e=je[i.toUpperCase()])&&void 0!==e?e:i:P}}We.elementDefinitions={},We.styles=c`
|
|
214
|
+
:host, i.ft-icon {
|
|
215
|
+
display: inline-block;
|
|
216
|
+
width: ${Te};
|
|
217
|
+
height: ${Te};
|
|
218
|
+
text-align: center;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
i.ft-icon {
|
|
222
|
+
font-size: ${Te};
|
|
223
|
+
line-height: 1;
|
|
224
|
+
font-weight: normal;
|
|
225
|
+
text-transform: none;
|
|
226
|
+
font-style: normal;
|
|
227
|
+
font-variant: normal;
|
|
228
|
+
speak: none;
|
|
229
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
230
|
+
text-rendering: auto;
|
|
231
|
+
-webkit-font-smoothing: antialiased;
|
|
232
|
+
-moz-osx-font-smoothing: grayscale;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.ft-icon--fluid-topics {
|
|
236
|
+
font-family: ${_e}, ft-icons, fticons, sans-serif;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.ft-icon--file-format {
|
|
240
|
+
font-family: ${Pe}, ft-mime, sans-serif;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.ft-icon--material {
|
|
244
|
+
font-family: ${Ie}, "Material Icons", sans-serif;
|
|
245
|
+
}
|
|
246
|
+
`,Le([e()],We.prototype,"variant",void 0),Le([o("slot")],We.prototype,"slottedContent",void 0),r("ft-icon")(We);var He=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ke extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}const Ze=nt.external(lt.colorOutline,"Design system"),Ve=nt.external(lt.colorOnSurfaceMedium,"Design system");class qe extends pt{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 T`
|
|
235
247
|
<style>
|
|
236
248
|
.ft-resizer {
|
|
237
249
|
cursor: ${h(this.cursor)}
|
|
@@ -240,9 +252,9 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
240
252
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
241
253
|
@mousedown=${this.initDragFromMouse}
|
|
242
254
|
@touchstart=${this.initDragFromTouch}>
|
|
243
|
-
<
|
|
255
|
+
<ft-icon variant="material">${this.icon}</ft-icon>
|
|
244
256
|
</div>
|
|
245
|
-
`}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
|
|
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 Ke(i,o))}}qe.elementDefinitions={"ft-icon":We},qe.styles=[ht,c`
|
|
246
258
|
:host {
|
|
247
259
|
display: block;
|
|
248
260
|
}
|
|
@@ -251,25 +263,25 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
251
263
|
display: flex;
|
|
252
264
|
}
|
|
253
265
|
|
|
254
|
-
|
|
266
|
+
ft-icon {
|
|
255
267
|
transform: rotate(-45deg);
|
|
256
|
-
color: ${
|
|
268
|
+
color: ${Ze};
|
|
257
269
|
}
|
|
258
270
|
|
|
259
|
-
.ft-resizer--dragging
|
|
260
|
-
.ft-resizer:hover
|
|
261
|
-
color: ${
|
|
271
|
+
.ft-resizer--dragging ft-icon,
|
|
272
|
+
.ft-resizer:hover ft-icon {
|
|
273
|
+
color: ${Ve};
|
|
262
274
|
}
|
|
263
|
-
`],
|
|
264
|
-
<div class="${
|
|
265
|
-
${this.text?
|
|
275
|
+
`],He([e({type:Number})],qe.prototype,"initialWidth",void 0),He([e({type:Number})],qe.prototype,"initialHeight",void 0),He([e()],qe.prototype,"icon",void 0),He([e()],qe.prototype,"cursor",void 0),He([i()],qe.prototype,"dragging",void 0),r("ft-resizer")(qe);var Xe=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Je={fontSize:nt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:nt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:nt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:nt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:nt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:nt.extend("--ft-input-label-border-color",lt.colorOutline),textColor:nt.extend("--ft-input-label-text-color",lt.colorOnSurfaceMedium),disabledTextColor:nt.extend("--ft-input-label-disabled-text-color",lt.colorOnSurfaceDisabled),colorSurface:nt.external(lt.colorSurface,"Design system"),borderRadiusS:nt.external(lt.borderRadiusS,"Design system")};class Ye extends pt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!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};return T`
|
|
276
|
+
<div class="${gt(t)}">
|
|
277
|
+
${this.text?T`
|
|
266
278
|
<div class="ft-input-label--text ft-typography--caption">
|
|
267
279
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
268
280
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
269
281
|
</div>
|
|
270
282
|
`:null}
|
|
271
283
|
</div>
|
|
272
|
-
`}}
|
|
284
|
+
`}}Ye.elementDefinitions={},Ye.styles=[ke,c`
|
|
273
285
|
.ft-input-label {
|
|
274
286
|
position: absolute;
|
|
275
287
|
inset: 0;
|
|
@@ -277,7 +289,7 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
277
289
|
}
|
|
278
290
|
|
|
279
291
|
.ft-input-label {
|
|
280
|
-
border-color: ${
|
|
292
|
+
border-color: ${Je.borderColor};
|
|
281
293
|
}
|
|
282
294
|
|
|
283
295
|
.ft-input-label:before,
|
|
@@ -290,7 +302,7 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
290
302
|
}
|
|
291
303
|
|
|
292
304
|
.ft-input-label:before {
|
|
293
|
-
width: ${
|
|
305
|
+
width: ${Je.horizontalSpacing};
|
|
294
306
|
flex-shrink: 0;
|
|
295
307
|
}
|
|
296
308
|
|
|
@@ -306,14 +318,14 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
306
318
|
border-bottom-width: 1px;
|
|
307
319
|
border-bottom-style: solid;
|
|
308
320
|
border-color: inherit;
|
|
309
|
-
color: ${
|
|
321
|
+
color: ${Je.textColor};
|
|
310
322
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
311
|
-
${at(
|
|
312
|
-
${at(
|
|
323
|
+
${at(oe.fontSize,Je.fontSize)};
|
|
324
|
+
${at(oe.lineHeight,Je.fontSize)};
|
|
313
325
|
}
|
|
314
326
|
|
|
315
327
|
.ft-input-label--disabled .ft-input-label--text {
|
|
316
|
-
color: ${
|
|
328
|
+
color: ${Je.disabledTextColor};
|
|
317
329
|
}
|
|
318
330
|
|
|
319
331
|
.ft-input-label--hidden-text {
|
|
@@ -329,17 +341,17 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
329
341
|
overflow: hidden;
|
|
330
342
|
white-space: nowrap;
|
|
331
343
|
text-overflow: ellipsis;
|
|
332
|
-
padding: ${
|
|
333
|
-
margin: calc(${
|
|
344
|
+
padding: ${Je.verticalSpacing} 4px;
|
|
345
|
+
margin: calc(${Je.verticalSpacing} * -1) 0;
|
|
334
346
|
}
|
|
335
347
|
|
|
336
348
|
.ft-input-label--raised .ft-input-label--text {
|
|
337
|
-
${at(
|
|
338
|
-
${at(
|
|
349
|
+
${at(oe.fontSize,Je.raisedFontSize)};
|
|
350
|
+
${at(oe.lineHeight,Je.raisedFontSize)};
|
|
339
351
|
}
|
|
340
352
|
|
|
341
353
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
342
|
-
top: ${
|
|
354
|
+
top: ${Je.verticalSpacing};
|
|
343
355
|
}
|
|
344
356
|
|
|
345
357
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -352,27 +364,27 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
352
364
|
.ft-input-label--outlined:before {
|
|
353
365
|
border-left-width: 1px;
|
|
354
366
|
border-left-style: solid;
|
|
355
|
-
border-radius: ${
|
|
367
|
+
border-radius: ${Je.borderRadiusS} 0 0 ${Je.borderRadiusS};
|
|
356
368
|
}
|
|
357
369
|
|
|
358
370
|
.ft-input-label--outlined:after {
|
|
359
371
|
border-right-width: 1px;
|
|
360
372
|
border-right-style: solid;
|
|
361
|
-
border-radius: 0 ${
|
|
373
|
+
border-radius: 0 ${Je.borderRadiusS} ${Je.borderRadiusS} 0;
|
|
362
374
|
}
|
|
363
375
|
|
|
364
376
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
365
377
|
padding: 2px 4px;
|
|
366
|
-
z-index: ${
|
|
367
|
-
background-color: ${
|
|
368
|
-
border-radius: ${
|
|
378
|
+
z-index: ${Je.raisedZIndex};
|
|
379
|
+
background-color: ${Je.colorSurface};
|
|
380
|
+
border-radius: ${Je.borderRadiusS};
|
|
369
381
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
370
382
|
}
|
|
371
383
|
|
|
372
384
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
373
385
|
border-top: none;
|
|
374
386
|
}
|
|
375
|
-
`],
|
|
387
|
+
`],Xe([e({type:String})],Ye.prototype,"text",void 0),Xe([e({type:Boolean})],Ye.prototype,"raised",void 0),Xe([e({type:Boolean})],Ye.prototype,"outlined",void 0),Xe([e({type:Boolean})],Ye.prototype,"disabled",void 0),r("ft-input-label")(Ye);var Ge=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Qe={color:nt.extend("--ft-ripple-color",lt.colorContent),primaryColor:nt.extend("--ft-ripple-primary-color",nt.extend("--ft-ripple-color",lt.colorPrimary)),secondaryColor:nt.extend("--ft-ripple-secondary-color",nt.extend("--ft-ripple-color",lt.colorSecondary)),opacityContentOnSurfacePressed:nt.external(lt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:nt.external(lt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:nt.external(lt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:nt.external(lt.opacityContentOnSurfaceSelected,"Design system")};class ti extends pt{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.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=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-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.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 T`
|
|
376
388
|
<style>
|
|
377
389
|
.ft-ripple .ft-ripple--effect,
|
|
378
390
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -385,11 +397,11 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
385
397
|
top: ${this.originY}px;
|
|
386
398
|
}
|
|
387
399
|
</style>
|
|
388
|
-
<div class="${
|
|
400
|
+
<div class="${gt(t)}">
|
|
389
401
|
<div class="ft-ripple--background"></div>
|
|
390
402
|
<div class="ft-ripple--effect"></div>
|
|
391
403
|
</div>
|
|
392
|
-
`}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){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),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){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"),
|
|
404
|
+
`}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){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),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"),s=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",s),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",s),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,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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()}}ti.elementDefinitions={},ti.styles=c`
|
|
393
405
|
:host {
|
|
394
406
|
display: contents;
|
|
395
407
|
}
|
|
@@ -408,17 +420,17 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
408
420
|
.ft-ripple .ft-ripple--effect {
|
|
409
421
|
position: absolute;
|
|
410
422
|
opacity: 0;
|
|
411
|
-
background-color: ${
|
|
423
|
+
background-color: ${Qe.color};
|
|
412
424
|
}
|
|
413
425
|
|
|
414
426
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background,
|
|
415
427
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
416
|
-
background-color: ${
|
|
428
|
+
background-color: ${Qe.secondaryColor};
|
|
417
429
|
}
|
|
418
430
|
|
|
419
431
|
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
420
432
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
421
|
-
background-color: ${
|
|
433
|
+
background-color: ${Qe.primaryColor};
|
|
422
434
|
}
|
|
423
435
|
|
|
424
436
|
.ft-ripple .ft-ripple--background {
|
|
@@ -449,28 +461,28 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
449
461
|
}
|
|
450
462
|
|
|
451
463
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
452
|
-
opacity: ${
|
|
464
|
+
opacity: ${Qe.opacityContentOnSurfaceHover};
|
|
453
465
|
}
|
|
454
466
|
|
|
455
467
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
456
|
-
opacity: ${
|
|
468
|
+
opacity: ${Qe.opacityContentOnSurfaceSelected};
|
|
457
469
|
}
|
|
458
470
|
|
|
459
471
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
460
|
-
opacity: ${
|
|
472
|
+
opacity: ${Qe.opacityContentOnSurfaceFocused};
|
|
461
473
|
}
|
|
462
474
|
|
|
463
475
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
464
|
-
opacity: ${
|
|
476
|
+
opacity: ${Qe.opacityContentOnSurfacePressed};
|
|
465
477
|
transform: translate(-50%, -50%) scale(1);
|
|
466
478
|
}
|
|
467
|
-
`,
|
|
479
|
+
`,Ge([e({type:Boolean})],ti.prototype,"primary",void 0),Ge([e({type:Boolean})],ti.prototype,"secondary",void 0),Ge([e({type:Boolean})],ti.prototype,"unbounded",void 0),Ge([e({type:Boolean})],ti.prototype,"activated",void 0),Ge([e({type:Boolean})],ti.prototype,"selected",void 0),Ge([e({type:Boolean})],ti.prototype,"disabled",void 0),Ge([i()],ti.prototype,"hovered",void 0),Ge([i()],ti.prototype,"focused",void 0),Ge([i()],ti.prototype,"pressed",void 0),Ge([i()],ti.prototype,"rippling",void 0),Ge([i()],ti.prototype,"rippleSize",void 0),Ge([i()],ti.prototype,"originX",void 0),Ge([i()],ti.prototype,"originY",void 0),Ge([o(".ft-ripple")],ti.prototype,"ripple",void 0),Ge([o(".ft-ripple--effect")],ti.prototype,"rippleEffect",void 0),r("ft-ripple")(ti);var ei=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const ii={fontSize:nt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:nt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:nt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:nt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:nt.extend("--ft-text-area-helper-color",lt.colorOnSurfaceMedium),colorPrimary:nt.external(lt.colorPrimary,"Design system"),colorOnSurface:nt.external(lt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:nt.external(lt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:nt.external(lt.borderRadiusS,"Design system")};class oi extends pt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!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};return T`
|
|
468
480
|
<style>
|
|
469
481
|
.ft-text-area--main-panel {
|
|
470
|
-
height: calc(4 * ${
|
|
482
|
+
height: calc(4 * ${ii.verticalSpacing} + ${ii.labelSize} + ${ii.fontSize} + ${this.height}px);
|
|
471
483
|
}
|
|
472
484
|
</style>
|
|
473
|
-
<div class="${
|
|
485
|
+
<div class="${gt(t)}">
|
|
474
486
|
<div class="ft-text-area--main-panel">
|
|
475
487
|
<ft-input-label text="${this.label}"
|
|
476
488
|
?disabled=${this.disabled}
|
|
@@ -479,7 +491,7 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
479
491
|
></ft-input-label>
|
|
480
492
|
<div class="ft-text-area--input-panel"
|
|
481
493
|
aria-label="${this.label}">
|
|
482
|
-
${this.outlined?null:
|
|
494
|
+
${this.outlined?null:T`
|
|
483
495
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
484
496
|
`}
|
|
485
497
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -496,12 +508,12 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
496
508
|
initialHeight="${this.height}"
|
|
497
509
|
cursor="ns-resize"></ft-resizer>
|
|
498
510
|
</div>
|
|
499
|
-
${this.helper?
|
|
511
|
+
${this.helper?T`
|
|
500
512
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
501
513
|
${this.helper}
|
|
502
514
|
</ft-typography>`:void 0}
|
|
503
515
|
</div>
|
|
504
|
-
`}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)}}
|
|
516
|
+
`}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)}}oi.elementDefinitions={"ft-input-label":Ye,"ft-resizer":qe,"ft-ripple":ti,"ft-typography":Ue},oi.styles=[Ee,c`
|
|
505
517
|
*:focus {
|
|
506
518
|
outline: none;
|
|
507
519
|
}
|
|
@@ -513,10 +525,10 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
513
525
|
}
|
|
514
526
|
|
|
515
527
|
ft-input-label {
|
|
516
|
-
${at(
|
|
517
|
-
${at(
|
|
518
|
-
${at(
|
|
519
|
-
${at(
|
|
528
|
+
${at(Je.fontSize,ii.fontSize)};
|
|
529
|
+
${at(Je.raisedFontSize,ii.labelSize)};
|
|
530
|
+
${at(Je.verticalSpacing,ii.verticalSpacing)};
|
|
531
|
+
${at(Je.horizontalSpacing,c`calc(${ii.horizontalSpacing} - 4px)`)};
|
|
520
532
|
}
|
|
521
533
|
|
|
522
534
|
.ft-text-area--main-panel {
|
|
@@ -534,8 +546,8 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
534
546
|
}
|
|
535
547
|
|
|
536
548
|
.ft-text-area--input-panel ft-ripple {
|
|
537
|
-
${at(
|
|
538
|
-
${at(
|
|
549
|
+
${at(Qe.opacityContentOnSurfaceHover,"0.08")};
|
|
550
|
+
${at(Qe.opacityContentOnSurfacePressed,"0.04")};
|
|
539
551
|
}
|
|
540
552
|
|
|
541
553
|
.ft-text-area--input {
|
|
@@ -546,12 +558,12 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
546
558
|
align-self: stretch;
|
|
547
559
|
resize: none;
|
|
548
560
|
|
|
549
|
-
${at(
|
|
550
|
-
${at(
|
|
551
|
-
color: ${
|
|
561
|
+
${at(Jt.fontSize,ii.fontSize)};
|
|
562
|
+
${at(Jt.lineHeight,ii.fontSize)};
|
|
563
|
+
color: ${ii.colorOnSurface};
|
|
552
564
|
|
|
553
|
-
padding: 0 ${
|
|
554
|
-
margin: calc(${
|
|
565
|
+
padding: 0 ${ii.horizontalSpacing};
|
|
566
|
+
margin: calc(${ii.verticalSpacing} + ${ii.labelSize} / 2) 0 ${ii.verticalSpacing} 0;
|
|
555
567
|
|
|
556
568
|
border: none;
|
|
557
569
|
background: none;
|
|
@@ -560,7 +572,7 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
560
572
|
}
|
|
561
573
|
|
|
562
574
|
.ft-text-area--disabled .ft-text-area--input {
|
|
563
|
-
color: ${
|
|
575
|
+
color: ${ii.colorOnSurfaceDisabled};
|
|
564
576
|
}
|
|
565
577
|
|
|
566
578
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -568,27 +580,27 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
568
580
|
}
|
|
569
581
|
|
|
570
582
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
571
|
-
${at(
|
|
572
|
-
${at(
|
|
583
|
+
${at(Je.borderColor,ii.colorPrimary)};
|
|
584
|
+
${at(Je.textColor,ii.colorPrimary)};
|
|
573
585
|
}
|
|
574
586
|
|
|
575
587
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
576
|
-
border-radius: ${
|
|
588
|
+
border-radius: ${ii.borderRadiusS} ${ii.borderRadiusS} 0 0;
|
|
577
589
|
}
|
|
578
590
|
|
|
579
591
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
580
592
|
align-self: stretch;
|
|
581
|
-
margin-bottom: ${
|
|
582
|
-
margin-top: calc(${
|
|
593
|
+
margin-bottom: ${ii.verticalSpacing};
|
|
594
|
+
margin-top: calc(${ii.labelSize} + 2 * ${ii.verticalSpacing});
|
|
583
595
|
}
|
|
584
596
|
|
|
585
597
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
586
|
-
border-radius: ${
|
|
598
|
+
border-radius: ${ii.borderRadiusS};
|
|
587
599
|
}
|
|
588
600
|
|
|
589
601
|
.ft-text-area--helper-text {
|
|
590
|
-
padding: 0 12px 0 ${
|
|
591
|
-
color: ${
|
|
602
|
+
padding: 0 12px 0 ${ii.horizontalSpacing};
|
|
603
|
+
color: ${ii.helperColor};
|
|
592
604
|
}
|
|
593
605
|
|
|
594
606
|
ft-resizer {
|
|
@@ -596,9 +608,9 @@ function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnP
|
|
|
596
608
|
right: 0;
|
|
597
609
|
bottom: 0;
|
|
598
610
|
}
|
|
599
|
-
`],
|
|
600
|
-
${i.map((t=>
|
|
611
|
+
`],ei([e({type:String})],oi.prototype,"label",void 0),ei([e({reflect:!0})],oi.prototype,"value",void 0),ei([e({type:String})],oi.prototype,"helper",void 0),ei([e({type:Boolean})],oi.prototype,"outlined",void 0),ei([e({type:Boolean})],oi.prototype,"disabled",void 0),ei([e({type:Number,reflect:!0})],oi.prototype,"height",void 0),ei([o("textarea")],oi.prototype,"textarea",void 0),ei([i()],oi.prototype,"focused",void 0),r("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{constructor(...t){super(t),this._constructor=this.constructor}render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),T`
|
|
612
|
+
${i.map((t=>T`
|
|
601
613
|
<style>${t}</style>
|
|
602
614
|
`))}
|
|
603
615
|
${super.render()}
|
|
604
|
-
`}},i.styles=void 0,i.elementDefinitions=o,i}(
|
|
616
|
+
`}},i.styles=void 0,i.elementDefinitions=o,i}(oi))}();
|