@fluid-topics/ft-text-field 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.
|
@@ -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,n=new WeakMap,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);f(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let h=i.call(o,t);h||(h=c(t),e.call(o,t,h)),this===window.customElements&&(r.set(n,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 y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.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),n.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=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.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,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.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,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.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),n.set(t,e),a=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.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!==n.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"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),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 r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,i,o)=>{try{e.bind(window.customElements)(t,i,o)}catch(e){console.warn(t,i,o,e)}}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -35,34 +35,34 @@ 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 o(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,
|
|
38
|
+
function o(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n: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 n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,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 n;null===(n=window.HTMLSlotElement)||void 0===n||n.prototype.assignedElements;const
|
|
43
|
+
*/var n;null===(n=window.HTMLSlotElement)||void 0===n||n.prototype.assignedElements;const s=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
|
+
*/,r=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),a=new Map;class p{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=a.get(this.cssText);return r&&void 0===t&&(a.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const h=t=>new p("string"==typeof t?t:t+"",l),c=(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 p(i,l)},f=(t,e)=>{r?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)}))},d=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return h(e)})(t):t
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/;var u;const y=window.trustedTypes,g=y?y.emptyScript:"",b=window.reactiveElementPolyfillSupport,v={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}},x=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:x};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=m){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 n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}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=m){var o,n;const
|
|
53
|
+
*/;var u;const y=window.trustedTypes,g=y?y.emptyScript:"",b=window.reactiveElementPolyfillSupport,v={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}},x=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:x};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=m){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 n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}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=m){var o,n;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:v.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Ei=null}}_$AK(t,e){var i,o,n;const s=this.constructor,r=s._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=s.getPropertyOptions(r),l=t.converter,a=null!==(n=null!==(o=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==n?n:v.fromAttribute;this._$Ei=r,this[r]=a(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||x)(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){}}
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var w;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==b||b({ReactiveElement:$}),(null!==(u=globalThis.reactiveElementVersions)&&void 0!==u?u:globalThis.reactiveElementVersions=[]).push("1.2.2");const S=globalThis.trustedTypes,O=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,E="?"+C,N=`<${E}>`,R=document,k=(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,z=/-->/g,A=/>/g,B=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,L=/'/g,D=/"/g,T=/^(?:script|style|textarea|title)$/i,P=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),I=new WeakMap,W=R.createTreeWalker(R,129,null,!1),H=(t,e)=>{const i=t.length-1,o=[];let n,
|
|
59
|
+
var w;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==b||b({ReactiveElement:$}),(null!==(u=globalThis.reactiveElementVersions)&&void 0!==u?u:globalThis.reactiveElementVersions=[]).push("1.2.2");const S=globalThis.trustedTypes,O=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,E="?"+C,N=`<${E}>`,R=document,k=(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,z=/-->/g,A=/>/g,B=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,L=/'/g,D=/"/g,T=/^(?:script|style|textarea|title)$/i,P=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),I=new WeakMap,W=R.createTreeWalker(R,129,null,!1),H=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=F;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,h=0;for(;h<i.length&&(r.lastIndex=h,a=r.exec(i),null!==a);)h=r.lastIndex,r===F?"!--"===a[1]?r=z:void 0!==a[1]?r=A:void 0!==a[2]?(T.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=B):void 0!==a[3]&&(r=B):r===B?">"===a[0]?(r=null!=n?n:F,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?B:'"'===a[3]?D:L):r===D||r===L?r=B:r===z||r===A?r=F:(r=B,n=void 0);const c=r===B&&t[e+1].startsWith("/>")?" ":"";s+=r===F?i+N:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+C+c):i+C+(-2===p?(o.push(void 0),e):c)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==O?O.createHTML(l):l,o]};class K{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=H(t,e);if(this.el=K.createElement(a,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())&&l.length<r;){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);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?q:"?"===e[1]?G:"@"===e[1]?Q:J})}else l.push({type:6,index:n})}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],k()),W.nextNode(),l.push({type:2,index:++n});o.append(t[e],k())}}}else if(8===o.nodeType)if(o.data===E)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(C,t+1));)l.push({type:7,index:n}),t+=C.length-1}n++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function Z(t,e,i=t,o){var n,s,r,l;if(e===_)return e;let a=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const p=M(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=Z(t,a._$AS(t,e.values),a,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,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);W.currentNode=n;let s=W.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new X(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new tt(s,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=W.nextNode(),r++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class X{constructor(t,e,i,o){var n;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}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),M(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return U(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!==j&&M(this._$AH)?this._$AA.nextSibling.data=t:this.S(R.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="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)===n)this._$AH.m(i);else{const t=new V(n,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){U(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new X(this.M(k()),this.M(k()),this,this.options)):i=e[o],i._$AI(n),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 J{constructor(t,e,i,o,n){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=j}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=Z(this,t,e,0),s=!M(t)||t!==this._$AH&&t!==_,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=Z(this,o[i+r],e,r),l===_&&(l=this._$AH[r]),s||(s=!M(l)||l!==this._$AH[r]),l===j?t=j:t!==j&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.k(t)}k(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends J{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===j?void 0:t}}const Y=S?S.emptyScript:"";class G extends J{constructor(){super(...arguments),this.type=4}k(t){t&&t!==j?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}class Q extends J{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Z(this,t,e,0))&&void 0!==i?i:j)===_)return;const o=this._$AH,n=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==j&&(o===j||n);n&&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 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;
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var it,ot;null==et||et(K,X),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w:globalThis.litHtmlVersions=[]).push("2.1.3");class nt 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,n;const
|
|
65
|
+
var it,ot;null==et||et(K,X),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w:globalThis.litHtmlVersions=[]).push("2.1.3");class nt 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,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new X(e.insertBefore(k(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(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 _}}nt.finalized=!0,nt._$litElement$=!0,null===(it=globalThis.litElementHydrateSupport)||void 0===it||it.call(globalThis,{LitElement:nt});const st=globalThis.litElementPolyfillSupport;null==st||st({LitElement:nt}),(null!==(ot=globalThis.litElementVersions)&&void 0!==ot?ot:globalThis.litElementVersions=[]).push("3.1.2");class rt{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=n,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 rt(t,e,void 0,i)}static extend(t,e,i){return new rt(t,e.category,e,i)}static external(t,e){return new rt(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 lt(t,e){return h(`${t.name}: ${e}`)}const at={colorPrimary:rt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:rt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:rt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:rt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:rt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:rt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:rt.create("--ft-color-error","COLOR","#B00020"),colorOutline:rt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:rt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:rt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:rt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:rt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:rt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:rt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:rt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:rt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:rt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:rt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:rt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:rt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:rt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:rt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:rt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:rt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:rt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:rt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:rt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:rt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:rt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:rt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:rt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:rt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:rt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:rt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:rt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:rt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:rt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:rt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:rt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:rt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:rt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:rt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:rt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:rt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:rt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:rt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:rt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:rt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:rt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:rt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:rt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
@@ -93,12 +93,12 @@ const ft=1;
|
|
|
93
93
|
* Copyright 2018 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
95
|
*/
|
|
96
|
-
const dt=(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!==ft||"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 n=t.element.classList;this.st.forEach((t=>{t in e||(n.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?(n.add(t),this.st.add(t)):(n.remove(t),this.st.delete(t)))}return _}}),ut=t=>({_$litStatic$:t}),yt=new Map,gt=(t=>(e,...i)=>{var o;const n=i.length;let r
|
|
96
|
+
const dt=(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!==ft||"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 n=t.element.classList;this.st.forEach((t=>{t in e||(n.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?(n.add(t),this.st.add(t)):(n.remove(t),this.st.delete(t)))}return _}}),ut=t=>({_$litStatic$:t}),yt=new Map,gt=(t=>(e,...i)=>{var o;const n=i.length;let s,r;const l=[],a=[];let p,h=0,c=!1;for(;h<n;){for(p=e[h];h<n&&void 0!==(r=i[h],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)p+=s+e[++h],c=!0;a.push(r),l.push(p),h++}if(h===n&&l.push(e[n]),c){const t=l.join("$$lit$$");void 0===(e=yt.get(t))&&(l.raw=l,yt.set(t,e=l)),i=a}return t(e,...i)})(P);
|
|
97
97
|
/**
|
|
98
98
|
* @license
|
|
99
99
|
* Copyright 2020 Google LLC
|
|
100
100
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
|
-
*/var bt,vt=function(t,e,i,o){for(var n,
|
|
101
|
+
*/var bt,vt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!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"}(bt||(bt={}));const xt=rt.extend("--ft-typography-font-family",at.titleFont),mt=rt.extend("--ft-typography-font-family",at.contentFont),$t={fontFamily:mt,fontSize:rt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:rt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:rt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:rt.create("--ft-typography-line-height","SIZE","24px"),textTransform:rt.create("--ft-typography-text-transform","UNKNOWN","inherit")},wt=rt.extend("--ft-typography-title-font-family",xt),St=rt.extend("--ft-typography-title-font-size",$t.fontSize,"20px"),Ot=rt.extend("--ft-typography-title-font-weight",$t.fontWeight,"normal"),Ct=rt.extend("--ft-typography-title-letter-spacing",$t.letterSpacing,"0.15px"),Et=rt.extend("--ft-typography-title-line-height",$t.lineHeight,"24px"),Nt=rt.extend("--ft-typography-title-text-transform",$t.textTransform,"inherit"),Rt=rt.extend("--ft-typography-title-dense-font-family",xt),kt=rt.extend("--ft-typography-title-dense-font-size",$t.fontSize,"14px"),Mt=rt.extend("--ft-typography-title-dense-font-weight",$t.fontWeight,"normal"),Ut=rt.extend("--ft-typography-title-dense-letter-spacing",$t.letterSpacing,"0.105px"),Ft=rt.extend("--ft-typography-title-dense-line-height",$t.lineHeight,"24px"),zt=rt.extend("--ft-typography-title-dense-text-transform",$t.textTransform,"inherit"),At=rt.extend("--ft-typography-subtitle1-font-family",mt),Bt=rt.extend("--ft-typography-subtitle1-font-size",$t.fontSize,"16px"),Lt=rt.extend("--ft-typography-subtitle1-font-weight",$t.fontWeight,"600"),Dt=rt.extend("--ft-typography-subtitle1-letter-spacing",$t.letterSpacing,"0.144px"),Tt=rt.extend("--ft-typography-subtitle1-line-height",$t.lineHeight,"24px"),Pt=rt.extend("--ft-typography-subtitle1-text-transform",$t.textTransform,"inherit"),_t=rt.extend("--ft-typography-subtitle2-font-family",mt),jt=rt.extend("--ft-typography-subtitle2-font-size",$t.fontSize,"14px"),It=rt.extend("--ft-typography-subtitle2-font-weight",$t.fontWeight,"normal"),Wt=rt.extend("--ft-typography-subtitle2-letter-spacing",$t.letterSpacing,"0.098px"),Ht=rt.extend("--ft-typography-subtitle2-line-height",$t.lineHeight,"24px"),Kt=rt.extend("--ft-typography-subtitle2-text-transform",$t.textTransform,"inherit"),Zt={fontFamily:rt.extend("--ft-typography-body1-font-family",mt),fontSize:rt.extend("--ft-typography-body1-font-size",$t.fontSize,"16px"),fontWeight:rt.extend("--ft-typography-body1-font-weight",$t.fontWeight,"normal"),letterSpacing:rt.extend("--ft-typography-body1-letter-spacing",$t.letterSpacing,"0.496px"),lineHeight:rt.extend("--ft-typography-body1-line-height",$t.lineHeight,"24px"),textTransform:rt.extend("--ft-typography-body1-text-transform",$t.textTransform,"inherit")},Vt=rt.extend("--ft-typography-body2-font-family",mt),Xt=rt.extend("--ft-typography-body2-font-size",$t.fontSize,"14px"),Jt=rt.extend("--ft-typography-body2-font-weight",$t.fontWeight,"normal"),qt=rt.extend("--ft-typography-body2-letter-spacing",$t.letterSpacing,"0.252px"),Yt=rt.extend("--ft-typography-body2-line-height",$t.lineHeight,"20px"),Gt=rt.extend("--ft-typography-body2-text-transform",$t.textTransform,"inherit"),Qt={fontFamily:rt.extend("--ft-typography-caption-font-family",mt),fontSize:rt.extend("--ft-typography-caption-font-size",$t.fontSize,"12px"),fontWeight:rt.extend("--ft-typography-caption-font-weight",$t.fontWeight,"normal"),letterSpacing:rt.extend("--ft-typography-caption-letter-spacing",$t.letterSpacing,"0.396px"),lineHeight:rt.extend("--ft-typography-caption-line-height",$t.lineHeight,"16px"),textTransform:rt.extend("--ft-typography-caption-text-transform",$t.textTransform,"inherit")},te=rt.extend("--ft-typography-breadcrumb-font-family",mt),ee=rt.extend("--ft-typography-breadcrumb-font-size",$t.fontSize,"10px"),ie=rt.extend("--ft-typography-breadcrumb-font-weight",$t.fontWeight,"normal"),oe=rt.extend("--ft-typography-breadcrumb-letter-spacing",$t.letterSpacing,"0.33px"),ne=rt.extend("--ft-typography-breadcrumb-line-height",$t.lineHeight,"16px"),se=rt.extend("--ft-typography-breadcrumb-text-transform",$t.textTransform,"inherit"),re=rt.extend("--ft-typography-overline-font-family",mt),le=rt.extend("--ft-typography-overline-font-size",$t.fontSize,"10px"),ae=rt.extend("--ft-typography-overline-font-weight",$t.fontWeight,"normal"),pe=rt.extend("--ft-typography-overline-letter-spacing",$t.letterSpacing,"1.5px"),he=rt.extend("--ft-typography-overline-line-height",$t.lineHeight,"16px"),ce=rt.extend("--ft-typography-overline-text-transform",$t.textTransform,"uppercase"),fe=rt.extend("--ft-typography-button-font-family",mt),de=rt.extend("--ft-typography-button-font-size",$t.fontSize,"14px"),ue=rt.extend("--ft-typography-button-font-weight",$t.fontWeight,"600"),ye=rt.extend("--ft-typography-button-letter-spacing",$t.letterSpacing,"1.246px"),ge=rt.extend("--ft-typography-button-line-height",$t.lineHeight,"16px"),be=rt.extend("--ft-typography-button-text-transform",$t.textTransform,"uppercase"),ve=c`
|
|
102
102
|
.ft-typography--title {
|
|
103
103
|
font-family: ${wt};
|
|
104
104
|
font-size: ${St};
|
|
@@ -169,11 +169,11 @@ const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
169
169
|
font-weight: ${ie};
|
|
170
170
|
letter-spacing: ${oe};
|
|
171
171
|
line-height: ${ne};
|
|
172
|
-
text-transform: ${
|
|
172
|
+
text-transform: ${se};
|
|
173
173
|
}
|
|
174
174
|
`,Ee=c`
|
|
175
175
|
.ft-typography--overline {
|
|
176
|
-
font-family: ${
|
|
176
|
+
font-family: ${re};
|
|
177
177
|
font-size: ${le};
|
|
178
178
|
font-weight: ${ae};
|
|
179
179
|
letter-spacing: ${pe};
|
|
@@ -200,7 +200,7 @@ const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
200
200
|
.ft-typography {
|
|
201
201
|
vertical-align: inherit;
|
|
202
202
|
}
|
|
203
|
-
`],vt([e()],Re.prototype,"element",void 0),vt([e()],Re.prototype,"variant",void 0),
|
|
203
|
+
`],vt([e()],Re.prototype,"element",void 0),vt([e()],Re.prototype,"variant",void 0),s("ft-typography")(Re);var ke=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Me={fontSize:rt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:rt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:rt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:rt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:rt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:rt.extend("--ft-input-label-border-color",at.colorOutline),textColor:rt.extend("--ft-input-label-text-color",at.colorOnSurfaceMedium),disabledTextColor:rt.extend("--ft-input-label-disabled-text-color",at.colorOnSurfaceDisabled),colorSurface:rt.external(at.colorSurface,"Design system"),borderRadiusS:rt.external(at.borderRadiusS,"Design system")};class Ue 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 P`
|
|
204
204
|
<div class="${dt(t)}">
|
|
205
205
|
${this.text?P`
|
|
206
206
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -312,7 +312,7 @@ const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
312
312
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
313
313
|
border-top: none;
|
|
314
314
|
}
|
|
315
|
-
`],ke([e({type:String})],Ue.prototype,"text",void 0),ke([e({type:Boolean})],Ue.prototype,"raised",void 0),ke([e({type:Boolean})],Ue.prototype,"outlined",void 0),ke([e({type:Boolean})],Ue.prototype,"disabled",void 0),
|
|
315
|
+
`],ke([e({type:String})],Ue.prototype,"text",void 0),ke([e({type:Boolean})],Ue.prototype,"raised",void 0),ke([e({type:Boolean})],Ue.prototype,"outlined",void 0),ke([e({type:Boolean})],Ue.prototype,"disabled",void 0),s("ft-input-label")(Ue);var Fe=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const ze={color:rt.extend("--ft-ripple-color",at.colorContent),primaryColor:rt.extend("--ft-ripple-primary-color",rt.extend("--ft-ripple-color",at.colorPrimary)),secondaryColor:rt.extend("--ft-ripple-secondary-color",rt.extend("--ft-ripple-color",at.colorSecondary)),opacityContentOnSurfacePressed:rt.external(at.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:rt.external(at.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:rt.external(at.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:rt.external(at.opacityContentOnSurfaceSelected,"Design system")};class Ae 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:n}=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!=n?n-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`
|
|
316
316
|
<style>
|
|
317
317
|
.ft-ripple .ft-ripple--effect,
|
|
318
318
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -329,7 +329,7 @@ const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
329
329
|
<div class="ft-ripple--background"></div>
|
|
330
330
|
<div class="ft-ripple--effect"></div>
|
|
331
331
|
</div>
|
|
332
|
-
`}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"),n=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",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",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",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}Ae.elementDefinitions={},Ae.styles=c`
|
|
332
|
+
`}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"),n=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",n),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",n),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,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}Ae.elementDefinitions={},Ae.styles=c`
|
|
333
333
|
:host {
|
|
334
334
|
display: contents;
|
|
335
335
|
}
|
|
@@ -404,7 +404,7 @@ const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
404
404
|
opacity: ${ze.opacityContentOnSurfacePressed};
|
|
405
405
|
transform: translate(-50%, -50%) scale(1);
|
|
406
406
|
}
|
|
407
|
-
`,Fe([e({type:Boolean})],Ae.prototype,"primary",void 0),Fe([e({type:Boolean})],Ae.prototype,"secondary",void 0),Fe([e({type:Boolean})],Ae.prototype,"unbounded",void 0),Fe([e({type:Boolean})],Ae.prototype,"activated",void 0),Fe([e({type:Boolean})],Ae.prototype,"selected",void 0),Fe([e({type:Boolean})],Ae.prototype,"disabled",void 0),Fe([i()],Ae.prototype,"hovered",void 0),Fe([i()],Ae.prototype,"focused",void 0),Fe([i()],Ae.prototype,"pressed",void 0),Fe([i()],Ae.prototype,"rippling",void 0),Fe([i()],Ae.prototype,"rippleSize",void 0),Fe([i()],Ae.prototype,"originX",void 0),Fe([i()],Ae.prototype,"originY",void 0),Fe([o(".ft-ripple")],Ae.prototype,"ripple",void 0),Fe([o(".ft-ripple--effect")],Ae.prototype,"rippleEffect",void 0),
|
|
407
|
+
`,Fe([e({type:Boolean})],Ae.prototype,"primary",void 0),Fe([e({type:Boolean})],Ae.prototype,"secondary",void 0),Fe([e({type:Boolean})],Ae.prototype,"unbounded",void 0),Fe([e({type:Boolean})],Ae.prototype,"activated",void 0),Fe([e({type:Boolean})],Ae.prototype,"selected",void 0),Fe([e({type:Boolean})],Ae.prototype,"disabled",void 0),Fe([i()],Ae.prototype,"hovered",void 0),Fe([i()],Ae.prototype,"focused",void 0),Fe([i()],Ae.prototype,"pressed",void 0),Fe([i()],Ae.prototype,"rippling",void 0),Fe([i()],Ae.prototype,"rippleSize",void 0),Fe([i()],Ae.prototype,"originX",void 0),Fe([i()],Ae.prototype,"originY",void 0),Fe([o(".ft-ripple")],Ae.prototype,"ripple",void 0),Fe([o(".ft-ripple--effect")],Ae.prototype,"rippleEffect",void 0),s("ft-ripple")(Ae);var Be=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Le={fontSize:rt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:rt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:rt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:rt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:rt.extend("--ft-text-field-helper-color",at.colorOnSurfaceMedium),colorPrimary:rt.external(at.colorPrimary,"Design system"),colorOnSurface:rt.external(at.colorOnSurface,"Design system"),colorOnSurfaceDisabled:rt.external(at.colorOnSurfaceDisabled,"Design system"),borderRadiusS:rt.external(at.borderRadiusS,"Design system")};class De extends pt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.dataList=[],this.focused=!1}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label};return P`
|
|
408
408
|
<div class="${dt(t)}">
|
|
409
409
|
<div class="ft-text-field--main-panel">
|
|
410
410
|
<ft-input-label text="${this.label}"
|
|
@@ -529,7 +529,7 @@ const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
529
529
|
padding: 0 12px 0 ${Le.horizontalSpacing};
|
|
530
530
|
color: ${Le.helperColor};
|
|
531
531
|
}
|
|
532
|
-
`],Be([e({type:String})],De.prototype,"label",void 0),Be([e({reflect:!0})],De.prototype,"value",void 0),Be([e({type:String})],De.prototype,"helper",void 0),Be([e({type:Boolean})],De.prototype,"outlined",void 0),Be([e({type:Boolean})],De.prototype,"disabled",void 0),Be([o(".ft-text-field--input")],De.prototype,"input",void 0),Be([e({attribute:!1})],De.prototype,"dataList",void 0),Be([i()],De.prototype,"focused",void 0),
|
|
532
|
+
`],Be([e({type:String})],De.prototype,"label",void 0),Be([e({reflect:!0})],De.prototype,"value",void 0),Be([e({type:String})],De.prototype,"helper",void 0),Be([e({type:Boolean})],De.prototype,"outlined",void 0),Be([e({type:Boolean})],De.prototype,"disabled",void 0),Be([o(".ft-text-field--input")],De.prototype,"input",void 0),Be([e({attribute:!1})],De.prototype,"dataList",void 0),Be([i()],De.prototype,"focused",void 0),s("ft-text-field")(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]),P`
|
|
533
533
|
${i.map((t=>P`
|
|
534
534
|
<style>${t}</style>
|
|
535
535
|
`))}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
!function(t,i,e,o,
|
|
1
|
+
!function(t,i,e,o,s){
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var
|
|
7
|
+
var l;const r=globalThis.trustedTypes,n=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,a="?"+p,f=`<${a}>`,h=document,d=(t="")=>h.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g=/-->/g,b=/>/g,v=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,x=/'/g,$=/"/g,m=/^(?:script|style|textarea|title)$/i,w=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),S=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),k=new WeakMap,E=h.createTreeWalker(h,129,null,!1),C=(t,i)=>{const e=t.length-1,o=[];let s,l=2===i?"<svg>":"",r=y;for(let i=0;i<e;i++){const e=t[i];let n,a,h=-1,d=0;for(;d<e.length&&(r.lastIndex=d,a=r.exec(e),null!==a);)d=r.lastIndex,r===y?"!--"===a[1]?r=g:void 0!==a[1]?r=b:void 0!==a[2]?(m.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=v):void 0!==a[3]&&(r=v):r===v?">"===a[0]?(r=null!=s?s:y,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,n=a[1],r=void 0===a[3]?v:'"'===a[3]?$:x):r===$||r===x?r=v:r===g||r===b?r=y:(r=v,s=void 0);const u=r===v&&t[i+1].startsWith("/>")?" ":"";l+=r===y?e+f:h>=0?(o.push(n),e.slice(0,h)+"$lit$"+e.slice(h)+p+u):e+p+(-2===h?(o.push(void 0),i):u)}const a=l+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==n?n.createHTML(a):a,o]};class I{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,l=0;const n=t.length-1,f=this.parts,[h,u]=C(t,i);if(this.el=I.createElement(h,e),E.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=E.nextNode())&&f.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(p)){const e=u[l++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(p),i=/([.?@])?(.*)/.exec(e);f.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?B:"?"===i[1]?T:"@"===i[1]?D:Z})}else f.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(m.test(o.tagName)){const t=o.textContent.split(p),i=t.length-1;if(i>0){o.textContent=r?r.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],d()),E.nextNode(),f.push({type:2,index:++s});o.append(t[i],d())}}}else if(8===o.nodeType)if(o.data===a)f.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(p,t+1));)f.push({type:7,index:s}),t+=p.length-1}s++}}static createElement(t,i){const e=h.createElement("template");return e.innerHTML=t,e}}function A(t,i,e=t,o){var s,l,r,n;if(i===S)return i;let p=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const a=u(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(l=null==p?void 0:p._$AO)||void 0===l||l.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(r=(n=e)._$Cl)&&void 0!==r?r:n._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=A(t,p._$AS(t,i.values),p,o)),i}class O{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:h).importNode(e,!0);E.currentNode=s;let l=E.nextNode(),r=0,n=0,p=o[0];for(;void 0!==p;){if(r===p.index){let i;2===p.type?i=new _(l,l.nextSibling,this,t):1===p.type?i=new p.ctor(l,p.name,p.strings,this,t):6===p.type&&(i=new j(l,this,t)),this.v.push(i),p=o[++n]}r!==(null==p?void 0:p.index)&&(l=E.nextNode(),r++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class _{constructor(t,i,e,o){var s;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=A(this,t,i),u(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==S&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return c(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&u(this._$AH)?this._$AA.nextSibling.data=t:this.S(h.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=I.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new O(s,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=k.get(t.strings);return void 0===i&&k.set(t.strings,i=new I(t)),i}A(t){c(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new _(this.M(d()),this.M(d()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Z{constructor(t,i,e,o,s){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let l=!1;if(void 0===s)t=A(this,t,i,0),l=!u(t)||t!==this._$AH&&t!==S,l&&(this._$AH=t);else{const o=t;let r,n;for(t=s[0],r=0;r<s.length-1;r++)n=A(this,o[e+r],i,r),n===S&&(n=this._$AH[r]),l||(l=!u(n)||n!==this._$AH[r]),n===z?t=z:t!==z&&(t+=(null!=n?n:"")+s[r+1]),this._$AH[r]=n}l&&!o&&this.k(t)}k(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class B extends Z{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===z?void 0:t}}const N=r?r.emptyScript:"";class T extends Z{constructor(){super(...arguments),this.type=4}k(t){t&&t!==z?this.element.setAttribute(this.name,N):this.element.removeAttribute(this.name)}}class D extends Z{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=A(this,t,i,0))&&void 0!==e?e:z)===S)return;const o=this._$AH,s=t===z&&o!==z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,l=t!==z&&(o===z||s);s&&this.element.removeEventListener(this.name,this,o),l&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class j{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){A(this,t)}}const F=window.litHtmlPolyfillSupport;null==F||F(I,_),(null!==(l=globalThis.litHtmlVersions)&&void 0!==l?l:globalThis.litHtmlVersions=[]).push("2.1.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const M=t=>({_$litStatic$:t}),R=new Map,U=(t=>(i,...e)=>{var o;const
|
|
13
|
+
const M=t=>({_$litStatic$:t}),R=new Map,U=(t=>(i,...e)=>{var o;const s=e.length;let l,r;const n=[],p=[];let a,f=0,h=!1;for(;f<s;){for(a=i[f];f<s&&void 0!==(r=e[f],l=null===(o=r)||void 0===o?void 0:o._$litStatic$);)a+=l+i[++f],h=!0;p.push(r),n.push(a),f++}if(f===s&&n.push(i[s]),h){const t=n.join("$$lit$$");void 0===(i=R.get(t))&&(n.raw=n,R.set(t,i=n)),e=p}return t(i,...e)})(w);var W,H=function(t,i,e,o){for(var s,l=arguments.length,r=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,n=t.length-1;n>=0;n--)(s=t[n])&&(r=(l<3?s(r):l>3?s(i,e,r):s(i,e))||r);return l>3&&r&&Object.defineProperty(i,e,r),r};!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"}(W||(W={}));const G=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),K=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),L={fontFamily:K,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},P=i.FtCssVariable.extend("--ft-typography-title-font-family",G),V=i.FtCssVariable.extend("--ft-typography-title-font-size",L.fontSize,"20px"),X=i.FtCssVariable.extend("--ft-typography-title-font-weight",L.fontWeight,"normal"),Y=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",L.letterSpacing,"0.15px"),q=i.FtCssVariable.extend("--ft-typography-title-line-height",L.lineHeight,"24px"),J=i.FtCssVariable.extend("--ft-typography-title-text-transform",L.textTransform,"inherit"),Q=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",G),tt=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",L.fontSize,"14px"),it=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",L.fontWeight,"normal"),et=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",L.letterSpacing,"0.105px"),ot=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",L.lineHeight,"24px"),st=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",L.textTransform,"inherit"),lt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",K),rt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",L.fontSize,"16px"),nt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",L.fontWeight,"600"),pt=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",L.letterSpacing,"0.144px"),at=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",L.lineHeight,"24px"),ft=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",L.textTransform,"inherit"),ht=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",K),dt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",L.fontSize,"14px"),ut=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",L.fontWeight,"normal"),ct=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",L.letterSpacing,"0.098px"),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",L.lineHeight,"24px"),gt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",L.textTransform,"inherit"),bt={fontFamily:i.FtCssVariable.extend("--ft-typography-body1-font-family",K),fontSize:i.FtCssVariable.extend("--ft-typography-body1-font-size",L.fontSize,"16px"),fontWeight:i.FtCssVariable.extend("--ft-typography-body1-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",L.letterSpacing,"0.496px"),lineHeight:i.FtCssVariable.extend("--ft-typography-body1-line-height",L.lineHeight,"24px"),textTransform:i.FtCssVariable.extend("--ft-typography-body1-text-transform",L.textTransform,"inherit")},vt=i.FtCssVariable.extend("--ft-typography-body2-font-family",K),xt=i.FtCssVariable.extend("--ft-typography-body2-font-size",L.fontSize,"14px"),$t=i.FtCssVariable.extend("--ft-typography-body2-font-weight",L.fontWeight,"normal"),mt=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",L.letterSpacing,"0.252px"),wt=i.FtCssVariable.extend("--ft-typography-body2-line-height",L.lineHeight,"20px"),St=i.FtCssVariable.extend("--ft-typography-body2-text-transform",L.textTransform,"inherit"),zt={fontFamily:i.FtCssVariable.extend("--ft-typography-caption-font-family",K),fontSize:i.FtCssVariable.extend("--ft-typography-caption-font-size",L.fontSize,"12px"),fontWeight:i.FtCssVariable.extend("--ft-typography-caption-font-weight",L.fontWeight,"normal"),letterSpacing:i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",L.letterSpacing,"0.396px"),lineHeight:i.FtCssVariable.extend("--ft-typography-caption-line-height",L.lineHeight,"16px"),textTransform:i.FtCssVariable.extend("--ft-typography-caption-text-transform",L.textTransform,"inherit")},kt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",K),Et=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",L.fontSize,"10px"),Ct=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",L.fontWeight,"normal"),It=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",L.letterSpacing,"0.33px"),At=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",L.lineHeight,"16px"),Ot=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",L.textTransform,"inherit"),_t=i.FtCssVariable.extend("--ft-typography-overline-font-family",K),Zt=i.FtCssVariable.extend("--ft-typography-overline-font-size",L.fontSize,"10px"),Bt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",L.fontWeight,"normal"),Nt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",L.letterSpacing,"1.5px"),Tt=i.FtCssVariable.extend("--ft-typography-overline-line-height",L.lineHeight,"16px"),Dt=i.FtCssVariable.extend("--ft-typography-overline-text-transform",L.textTransform,"uppercase"),jt=i.FtCssVariable.extend("--ft-typography-button-font-family",K),Ft=i.FtCssVariable.extend("--ft-typography-button-font-size",L.fontSize,"14px"),Mt=i.FtCssVariable.extend("--ft-typography-button-font-weight",L.fontWeight,"600"),Rt=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",L.letterSpacing,"1.246px"),Ut=i.FtCssVariable.extend("--ft-typography-button-line-height",L.lineHeight,"16px"),Wt=i.FtCssVariable.extend("--ft-typography-button-text-transform",L.textTransform,"uppercase"),Ht=e.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${P};
|
|
16
16
|
font-size: ${V};
|
|
@@ -26,11 +26,11 @@ const M=t=>({_$litStatic$:t}),R=new Map,U=(t=>(i,...e)=>{var o;const l=e.length;
|
|
|
26
26
|
font-weight: ${it};
|
|
27
27
|
letter-spacing: ${et};
|
|
28
28
|
line-height: ${ot};
|
|
29
|
-
text-transform: ${
|
|
29
|
+
text-transform: ${st};
|
|
30
30
|
}
|
|
31
31
|
`,Kt=e.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
|
-
font-family: ${
|
|
33
|
+
font-family: ${lt};
|
|
34
34
|
font-size: ${rt};
|
|
35
35
|
font-weight: ${nt};
|
|
36
36
|
letter-spacing: ${pt};
|
|
@@ -112,8 +112,8 @@ const M=t=>({_$litStatic$:t}),R=new Map,U=(t=>(i,...e)=>{var o;const l=e.length;
|
|
|
112
112
|
.ft-typography {
|
|
113
113
|
vertical-align: inherit;
|
|
114
114
|
}
|
|
115
|
-
`],H([o.property()],Qt.prototype,"element",void 0),H([o.property()],Qt.prototype,"variant",void 0),i.customElement("ft-typography")(Qt);var ti=function(t,i,e,o){for(var l
|
|
116
|
-
<div class="${
|
|
115
|
+
`],H([o.property()],Qt.prototype,"element",void 0),H([o.property()],Qt.prototype,"variant",void 0),i.customElement("ft-typography")(Qt);var ti=function(t,i,e,o){for(var s,l=arguments.length,r=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,n=t.length-1;n>=0;n--)(s=t[n])&&(r=(l<3?s(r):l>3?s(i,e,r):s(i,e))||r);return l>3&&r&&Object.defineProperty(i,e,r),r};const ii={fontSize:i.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:i.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:i.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:i.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:i.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:i.FtCssVariable.extend("--ft-input-label-border-color",i.designSystemVariables.colorOutline),textColor:i.FtCssVariable.extend("--ft-input-label-text-color",i.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:i.FtCssVariable.extend("--ft-input-label-disabled-text-color",i.designSystemVariables.colorOnSurfaceDisabled),colorSurface:i.FtCssVariable.external(i.designSystemVariables.colorSurface,"Design system"),borderRadiusS:i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system")};class ei extends i.FtLitElement{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 e.html`
|
|
116
|
+
<div class="${s.classMap(t)}">
|
|
117
117
|
${this.text?e.html`
|
|
118
118
|
<div class="ft-input-label--text ft-typography--caption">
|
|
119
119
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -224,7 +224,7 @@ const M=t=>({_$litStatic$:t}),R=new Map,U=(t=>(i,...e)=>{var o;const l=e.length;
|
|
|
224
224
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
225
225
|
border-top: none;
|
|
226
226
|
}
|
|
227
|
-
`],ti([o.property({type:String})],ei.prototype,"text",void 0),ti([o.property({type:Boolean})],ei.prototype,"raised",void 0),ti([o.property({type:Boolean})],ei.prototype,"outlined",void 0),ti([o.property({type:Boolean})],ei.prototype,"disabled",void 0),i.customElement("ft-input-label")(ei);var oi=function(t,i,e,o){for(var l
|
|
227
|
+
`],ti([o.property({type:String})],ei.prototype,"text",void 0),ti([o.property({type:Boolean})],ei.prototype,"raised",void 0),ti([o.property({type:Boolean})],ei.prototype,"outlined",void 0),ti([o.property({type:Boolean})],ei.prototype,"disabled",void 0),i.customElement("ft-input-label")(ei);var oi=function(t,i,e,o){for(var s,l=arguments.length,r=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,n=t.length-1;n>=0;n--)(s=t[n])&&(r=(l<3?s(r):l>3?s(i,e,r):s(i,e))||r);return l>3&&r&&Object.defineProperty(i,e,r),r};const si={color:i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),primaryColor:i.FtCssVariable.extend("--ft-ripple-primary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary)),secondaryColor:i.FtCssVariable.extend("--ft-ripple-secondary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")};class li extends i.FtLitElement{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 i,e;let{x:o,y:s}=this.getCoordinates(t),l=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-l.x:l.width/2),this.originY=Math.round(null!=s?s-l.y:l.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 e.html`
|
|
228
228
|
<style>
|
|
229
229
|
.ft-ripple .ft-ripple--effect,
|
|
230
230
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -237,11 +237,11 @@ const M=t=>({_$litStatic$:t}),R=new Map,U=(t=>(i,...e)=>{var o;const l=e.length;
|
|
|
237
237
|
top: ${this.originY}px;
|
|
238
238
|
}
|
|
239
239
|
</style>
|
|
240
|
-
<div class="${
|
|
240
|
+
<div class="${s.classMap(t)}">
|
|
241
241
|
<div class="ft-ripple--background"></div>
|
|
242
242
|
<div class="ft-ripple--effect"></div>
|
|
243
243
|
</div>
|
|
244
|
-
`}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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),
|
|
244
|
+
`}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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),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",e),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 i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}li.elementDefinitions={},li.styles=e.css`
|
|
245
245
|
:host {
|
|
246
246
|
display: contents;
|
|
247
247
|
}
|
|
@@ -260,17 +260,17 @@ const M=t=>({_$litStatic$:t}),R=new Map,U=(t=>(i,...e)=>{var o;const l=e.length;
|
|
|
260
260
|
.ft-ripple .ft-ripple--effect {
|
|
261
261
|
position: absolute;
|
|
262
262
|
opacity: 0;
|
|
263
|
-
background-color: ${
|
|
263
|
+
background-color: ${si.color};
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background,
|
|
267
267
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
268
|
-
background-color: ${
|
|
268
|
+
background-color: ${si.secondaryColor};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
272
272
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
273
|
-
background-color: ${
|
|
273
|
+
background-color: ${si.primaryColor};
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
.ft-ripple .ft-ripple--background {
|
|
@@ -301,23 +301,23 @@ const M=t=>({_$litStatic$:t}),R=new Map,U=(t=>(i,...e)=>{var o;const l=e.length;
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
304
|
-
opacity: ${
|
|
304
|
+
opacity: ${si.opacityContentOnSurfaceHover};
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
308
|
-
opacity: ${
|
|
308
|
+
opacity: ${si.opacityContentOnSurfaceSelected};
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
312
|
-
opacity: ${
|
|
312
|
+
opacity: ${si.opacityContentOnSurfaceFocused};
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
316
|
-
opacity: ${
|
|
316
|
+
opacity: ${si.opacityContentOnSurfacePressed};
|
|
317
317
|
transform: translate(-50%, -50%) scale(1);
|
|
318
318
|
}
|
|
319
|
-
`,oi([o.property({type:Boolean})],
|
|
320
|
-
<div class="${
|
|
319
|
+
`,oi([o.property({type:Boolean})],li.prototype,"primary",void 0),oi([o.property({type:Boolean})],li.prototype,"secondary",void 0),oi([o.property({type:Boolean})],li.prototype,"unbounded",void 0),oi([o.property({type:Boolean})],li.prototype,"activated",void 0),oi([o.property({type:Boolean})],li.prototype,"selected",void 0),oi([o.property({type:Boolean})],li.prototype,"disabled",void 0),oi([o.state()],li.prototype,"hovered",void 0),oi([o.state()],li.prototype,"focused",void 0),oi([o.state()],li.prototype,"pressed",void 0),oi([o.state()],li.prototype,"rippling",void 0),oi([o.state()],li.prototype,"rippleSize",void 0),oi([o.state()],li.prototype,"originX",void 0),oi([o.state()],li.prototype,"originY",void 0),oi([o.query(".ft-ripple")],li.prototype,"ripple",void 0),oi([o.query(".ft-ripple--effect")],li.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(li);var ri=function(t,i,e,o){for(var s,l=arguments.length,r=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,n=t.length-1;n>=0;n--)(s=t[n])&&(r=(l<3?s(r):l>3?s(i,e,r):s(i,e))||r);return l>3&&r&&Object.defineProperty(i,e,r),r};const ni={fontSize:i.FtCssVariable.create("--ft-text-field-font-size","SIZE","14px"),labelSize:i.FtCssVariable.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:i.FtCssVariable.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:i.FtCssVariable.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:i.FtCssVariable.extend("--ft-text-field-helper-color",i.designSystemVariables.colorOnSurfaceMedium),colorPrimary:i.FtCssVariable.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:i.FtCssVariable.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system")};class pi extends i.FtLitElement{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.dataList=[],this.focused=!1}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label};return e.html`
|
|
320
|
+
<div class="${s.classMap(t)}">
|
|
321
321
|
<div class="ft-text-field--main-panel">
|
|
322
322
|
<ft-input-label text="${this.label}"
|
|
323
323
|
?disabled=${this.disabled}
|
|
@@ -351,7 +351,7 @@ const M=t=>({_$litStatic$:t}),R=new Map,U=(t=>(i,...e)=>{var o;const l=e.length;
|
|
|
351
351
|
<ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
|
|
352
352
|
</ft-typography>`:void 0}
|
|
353
353
|
</div>
|
|
354
|
-
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}pi.elementDefinitions={"ft-input-label":ei,"ft-ripple":
|
|
354
|
+
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}pi.elementDefinitions={"ft-input-label":ei,"ft-ripple":li,"ft-typography":Qt},pi.styles=[Pt,e.css`
|
|
355
355
|
*:focus {
|
|
356
356
|
outline: none;
|
|
357
357
|
}
|
|
@@ -385,8 +385,8 @@ const M=t=>({_$litStatic$:t}),R=new Map,U=(t=>(i,...e)=>{var o;const l=e.length;
|
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
.ft-text-field--input-panel ft-ripple {
|
|
388
|
-
${i.setVariable(
|
|
389
|
-
${i.setVariable(
|
|
388
|
+
${i.setVariable(si.opacityContentOnSurfaceHover,"0.08")};
|
|
389
|
+
${i.setVariable(si.opacityContentOnSurfacePressed,"0.04")};
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
.ft-text-field--input {
|
|
@@ -329,7 +329,7 @@ const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
329
329
|
<div class="ft-ripple--background"></div>
|
|
330
330
|
<div class="ft-ripple--effect"></div>
|
|
331
331
|
</div>
|
|
332
|
-
`}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"),n=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",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",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",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}Ae.elementDefinitions={},Ae.styles=f`
|
|
332
|
+
`}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"),n=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",n),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",n),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,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}Ae.elementDefinitions={},Ae.styles=f`
|
|
333
333
|
:host {
|
|
334
334
|
display: contents;
|
|
335
335
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-text-field",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A fluidtopics text field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-input-label": "^0.
|
|
23
|
-
"@fluid-topics/ft-ripple": "^0.
|
|
24
|
-
"@fluid-topics/ft-typography": "^0.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "^0.
|
|
22
|
+
"@fluid-topics/ft-input-label": "^0.2.0",
|
|
23
|
+
"@fluid-topics/ft-ripple": "^0.2.0",
|
|
24
|
+
"@fluid-topics/ft-typography": "^0.2.0",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "^0.2.0",
|
|
26
26
|
"lit": "2.1.3"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "7464f2fbd7cc8b96e0974d0b2412ed4262e18b86"
|
|
29
29
|
}
|