@fluid-topics/ft-input-label 1.1.1 → 1.1.2

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.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);h(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(ko){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);h(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(Ko){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -62,7 +62,11 @@ class po extends Ut{constructor(){super(...arguments),this.renderOptions={host:t
62
62
  * @license
63
63
  * Copyright 2019 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */class xo extends po{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{So?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=No.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var wo,Co=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const vo=Symbol("constructorPrototype"),Ro=Symbol("constructorName"),Eo=Symbol("exportpartsDebouncer");class Uo extends xo{constructor(){super(),this[wo]=new o(5),this[Ro]=this.constructor.name,this[vo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ro]&&Object.setPrototypeOf(this,this[vo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Eo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}var Io,Wo;wo=Eo,Co([v()],Uo.prototype,"exportpartsPrefix",void 0),Co([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return v({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!R(t,o),...null!=o?o:{}})}([])],Uo.prototype,"exportpartsPrefixes",void 0),Co([v()],Uo.prototype,"customStylesheet",void 0),ht`
65
+ */class xo extends po{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{So?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=No.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var wo,Co=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const vo=Symbol("constructorPrototype"),Ro=Symbol("constructorName"),Eo=Symbol("exportpartsDebouncer");class Uo extends xo{constructor(){super(),this[wo]=new o(5),this[Ro]=this.constructor.name,this[vo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ro]&&Object.setPrototypeOf(this,this[vo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Eo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}wo=Eo,Co([v()],Uo.prototype,"exportpartsPrefix",void 0),Co([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return v({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!R(t,o),...null!=o?o:{}})}([])],Uo.prototype,"exportpartsPrefixes",void 0),Co([v()],Uo.prototype,"customStylesheet",void 0);const Io=yo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");var Wo,Lo;ht`
66
+ .highlight-html-match {
67
+ background: ${Io};
68
+ }
69
+ `,ht`
66
70
  .ft-no-text-select {
67
71
  -webkit-touch-callout: none;
68
72
  -webkit-user-select: none;
@@ -94,107 +98,107 @@ class po extends Ut{constructor(){super(...arguments),this.renderOptions={host:t
94
98
  display: inline-block;
95
99
  width: 0;
96
100
  }
97
- `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Wo=null===(Io=window.safari)||void 0===Io?void 0:Io.pushNotification)||void 0===Wo||Wo.toString());
101
+ `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Lo=null===(Wo=window.safari)||void 0===Wo?void 0:Wo.pushNotification)||void 0===Lo||Lo.toString());
98
102
  /**
99
103
  * @license
100
104
  * Copyright 2017 Google LLC
101
105
  * SPDX-License-Identifier: BSD-3-Clause
102
106
  */
103
- const Lo=1;class $o{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
107
+ const $o=1;class ko{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
104
108
  /**
105
109
  * @license
106
110
  * Copyright 2018 Google LLC
107
111
  * SPDX-License-Identifier: BSD-3-Clause
108
- */const ko=(t=>(...o)=>({_$litDirective$:t,values:o}))(class extends $o{constructor(t){if(super(t),t.type!==Lo||"class"!==t.name||t.strings?.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((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const r=!!o[t];r===this.it.has(t)||this.st?.has(t)||(r?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return T}});const Ko=yo.extend("--ft-typography-font-family","",Oo.titleFont),Zo=yo.extend("--ft-typography-font-family","",Oo.contentFont),zo={fontFamily:Zo,fontSize:yo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:yo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:yo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:yo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:yo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Fo=yo.extend("--ft-typography-title-font-family","",Ko),Ao=yo.extend("--ft-typography-title-font-size","",zo.fontSize,"20px"),Do=yo.extend("--ft-typography-title-font-weight","",zo.fontWeight,"normal"),Mo=yo.extend("--ft-typography-title-letter-spacing","",zo.letterSpacing,"0.15px"),Bo=yo.extend("--ft-typography-title-line-height","",zo.lineHeight,"1.2"),Po=yo.extend("--ft-typography-title-text-transform","",zo.textTransform,"inherit"),Ho=yo.extend("--ft-typography-title-dense-font-family","",Ko),_o=yo.extend("--ft-typography-title-dense-font-size","",zo.fontSize,"14px"),Go=yo.extend("--ft-typography-title-dense-font-weight","",zo.fontWeight,"normal"),To=yo.extend("--ft-typography-title-dense-letter-spacing","",zo.letterSpacing,"0.105px"),jo=yo.extend("--ft-typography-title-dense-line-height","",zo.lineHeight,"1.7"),Yo=yo.extend("--ft-typography-title-dense-text-transform","",zo.textTransform,"inherit"),Jo=yo.extend("--ft-typography-subtitle1-font-family","",Zo),Vo=yo.extend("--ft-typography-subtitle1-font-size","",zo.fontSize,"16px"),qo=yo.extend("--ft-typography-subtitle1-font-weight","",zo.fontWeight,"600"),Xo=yo.extend("--ft-typography-subtitle1-letter-spacing","",zo.letterSpacing,"0.144px"),Qo=yo.extend("--ft-typography-subtitle1-line-height","",zo.lineHeight,"1.5"),te=yo.extend("--ft-typography-subtitle1-text-transform","",zo.textTransform,"inherit"),oe=yo.extend("--ft-typography-subtitle2-font-family","",Zo),ee=yo.extend("--ft-typography-subtitle2-font-size","",zo.fontSize,"14px"),re=yo.extend("--ft-typography-subtitle2-font-weight","",zo.fontWeight,"normal"),ie=yo.extend("--ft-typography-subtitle2-letter-spacing","",zo.letterSpacing,"0.098px"),ae=yo.extend("--ft-typography-subtitle2-line-height","",zo.lineHeight,"1.7"),ne=yo.extend("--ft-typography-subtitle2-text-transform","",zo.textTransform,"inherit"),se=yo.extend("--ft-typography-body1-font-family","",Zo),le=yo.extend("--ft-typography-body1-font-size","",zo.fontSize,"16px"),ce=yo.extend("--ft-typography-body1-font-weight","",zo.fontWeight,"normal"),pe=yo.extend("--ft-typography-body1-letter-spacing","",zo.letterSpacing,"0.496px"),fe=yo.extend("--ft-typography-body1-line-height","",zo.lineHeight,"1.5"),he=yo.extend("--ft-typography-body1-text-transform","",zo.textTransform,"inherit"),de=yo.extend("--ft-typography-body2-font-family","",Zo),ye=yo.extend("--ft-typography-body2-font-size","",zo.fontSize,"14px"),ge=yo.extend("--ft-typography-body2-font-weight","",zo.fontWeight,"normal"),ue=yo.extend("--ft-typography-body2-letter-spacing","",zo.letterSpacing,"0.252px"),be=yo.extend("--ft-typography-body2-line-height","",zo.lineHeight,"1.4"),me=yo.extend("--ft-typography-body2-text-transform","",zo.textTransform,"inherit"),Oe={fontFamily:yo.extend("--ft-typography-caption-font-family","",Zo),fontSize:yo.extend("--ft-typography-caption-font-size","",zo.fontSize,"12px"),fontWeight:yo.extend("--ft-typography-caption-font-weight","",zo.fontWeight,"normal"),letterSpacing:yo.extend("--ft-typography-caption-letter-spacing","",zo.letterSpacing,"0.396px"),lineHeight:yo.extend("--ft-typography-caption-line-height","",zo.lineHeight,"1.33"),textTransform:yo.extend("--ft-typography-caption-text-transform","",zo.textTransform,"inherit")},Ne=yo.extend("--ft-typography-breadcrumb-font-family","",Zo),Se=yo.extend("--ft-typography-breadcrumb-font-size","",zo.fontSize,"10px"),xe=yo.extend("--ft-typography-breadcrumb-font-weight","",zo.fontWeight,"normal"),we=yo.extend("--ft-typography-breadcrumb-letter-spacing","",zo.letterSpacing,"0.33px"),Ce=yo.extend("--ft-typography-breadcrumb-line-height","",zo.lineHeight,"1.6"),ve=yo.extend("--ft-typography-breadcrumb-text-transform","",zo.textTransform,"inherit"),Re=yo.extend("--ft-typography-overline-font-family","",Zo),Ee=yo.extend("--ft-typography-overline-font-size","",zo.fontSize,"10px"),Ue=yo.extend("--ft-typography-overline-font-weight","",zo.fontWeight,"normal"),Ie=yo.extend("--ft-typography-overline-letter-spacing","",zo.letterSpacing,"1.5px"),We=yo.extend("--ft-typography-overline-line-height","",zo.lineHeight,"1.6"),Le=yo.extend("--ft-typography-overline-text-transform","",zo.textTransform,"uppercase"),$e=yo.extend("--ft-typography-button-font-family","",Zo),ke=yo.extend("--ft-typography-button-font-size","",zo.fontSize,"14px"),Ke=yo.extend("--ft-typography-button-font-weight","",zo.fontWeight,"600"),Ze=yo.extend("--ft-typography-button-letter-spacing","",zo.letterSpacing,"1.246px"),ze=yo.extend("--ft-typography-button-line-height","",zo.lineHeight,"1.15"),Fe=yo.extend("--ft-typography-button-text-transform","",zo.textTransform,"uppercase");ht`
112
+ */const Ko=(t=>(...o)=>({_$litDirective$:t,values:o}))(class extends ko{constructor(t){if(super(t),t.type!==$o||"class"!==t.name||t.strings?.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((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const r=!!o[t];r===this.it.has(t)||this.st?.has(t)||(r?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return T}});const Zo=yo.extend("--ft-typography-font-family","",Oo.titleFont),zo=yo.extend("--ft-typography-font-family","",Oo.contentFont),Fo={fontFamily:zo,fontSize:yo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:yo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:yo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:yo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:yo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ao=yo.extend("--ft-typography-title-font-family","",Zo),Do=yo.extend("--ft-typography-title-font-size","",Fo.fontSize,"20px"),Mo=yo.extend("--ft-typography-title-font-weight","",Fo.fontWeight,"normal"),Bo=yo.extend("--ft-typography-title-letter-spacing","",Fo.letterSpacing,"0.15px"),Po=yo.extend("--ft-typography-title-line-height","",Fo.lineHeight,"1.2"),Ho=yo.extend("--ft-typography-title-text-transform","",Fo.textTransform,"inherit"),_o=yo.extend("--ft-typography-title-dense-font-family","",Zo),Go=yo.extend("--ft-typography-title-dense-font-size","",Fo.fontSize,"14px"),To=yo.extend("--ft-typography-title-dense-font-weight","",Fo.fontWeight,"normal"),jo=yo.extend("--ft-typography-title-dense-letter-spacing","",Fo.letterSpacing,"0.105px"),Yo=yo.extend("--ft-typography-title-dense-line-height","",Fo.lineHeight,"1.7"),Jo=yo.extend("--ft-typography-title-dense-text-transform","",Fo.textTransform,"inherit"),Vo=yo.extend("--ft-typography-subtitle1-font-family","",zo),qo=yo.extend("--ft-typography-subtitle1-font-size","",Fo.fontSize,"16px"),Xo=yo.extend("--ft-typography-subtitle1-font-weight","",Fo.fontWeight,"600"),Qo=yo.extend("--ft-typography-subtitle1-letter-spacing","",Fo.letterSpacing,"0.144px"),te=yo.extend("--ft-typography-subtitle1-line-height","",Fo.lineHeight,"1.5"),oe=yo.extend("--ft-typography-subtitle1-text-transform","",Fo.textTransform,"inherit"),ee=yo.extend("--ft-typography-subtitle2-font-family","",zo),re=yo.extend("--ft-typography-subtitle2-font-size","",Fo.fontSize,"14px"),ie=yo.extend("--ft-typography-subtitle2-font-weight","",Fo.fontWeight,"normal"),ae=yo.extend("--ft-typography-subtitle2-letter-spacing","",Fo.letterSpacing,"0.098px"),ne=yo.extend("--ft-typography-subtitle2-line-height","",Fo.lineHeight,"1.7"),se=yo.extend("--ft-typography-subtitle2-text-transform","",Fo.textTransform,"inherit"),le=yo.extend("--ft-typography-body1-font-family","",zo),ce=yo.extend("--ft-typography-body1-font-size","",Fo.fontSize,"16px"),pe=yo.extend("--ft-typography-body1-font-weight","",Fo.fontWeight,"normal"),fe=yo.extend("--ft-typography-body1-letter-spacing","",Fo.letterSpacing,"0.496px"),he=yo.extend("--ft-typography-body1-line-height","",Fo.lineHeight,"1.5"),de=yo.extend("--ft-typography-body1-text-transform","",Fo.textTransform,"inherit"),ye=yo.extend("--ft-typography-body2-font-family","",zo),ge=yo.extend("--ft-typography-body2-font-size","",Fo.fontSize,"14px"),ue=yo.extend("--ft-typography-body2-font-weight","",Fo.fontWeight,"normal"),be=yo.extend("--ft-typography-body2-letter-spacing","",Fo.letterSpacing,"0.252px"),me=yo.extend("--ft-typography-body2-line-height","",Fo.lineHeight,"1.4"),Oe=yo.extend("--ft-typography-body2-text-transform","",Fo.textTransform,"inherit"),Ne={fontFamily:yo.extend("--ft-typography-caption-font-family","",zo),fontSize:yo.extend("--ft-typography-caption-font-size","",Fo.fontSize,"12px"),fontWeight:yo.extend("--ft-typography-caption-font-weight","",Fo.fontWeight,"normal"),letterSpacing:yo.extend("--ft-typography-caption-letter-spacing","",Fo.letterSpacing,"0.396px"),lineHeight:yo.extend("--ft-typography-caption-line-height","",Fo.lineHeight,"1.33"),textTransform:yo.extend("--ft-typography-caption-text-transform","",Fo.textTransform,"inherit")},Se=yo.extend("--ft-typography-breadcrumb-font-family","",zo),xe=yo.extend("--ft-typography-breadcrumb-font-size","",Fo.fontSize,"10px"),we=yo.extend("--ft-typography-breadcrumb-font-weight","",Fo.fontWeight,"normal"),Ce=yo.extend("--ft-typography-breadcrumb-letter-spacing","",Fo.letterSpacing,"0.33px"),ve=yo.extend("--ft-typography-breadcrumb-line-height","",Fo.lineHeight,"1.6"),Re=yo.extend("--ft-typography-breadcrumb-text-transform","",Fo.textTransform,"inherit"),Ee=yo.extend("--ft-typography-overline-font-family","",zo),Ue=yo.extend("--ft-typography-overline-font-size","",Fo.fontSize,"10px"),Ie=yo.extend("--ft-typography-overline-font-weight","",Fo.fontWeight,"normal"),We=yo.extend("--ft-typography-overline-letter-spacing","",Fo.letterSpacing,"1.5px"),Le=yo.extend("--ft-typography-overline-line-height","",Fo.lineHeight,"1.6"),$e=yo.extend("--ft-typography-overline-text-transform","",Fo.textTransform,"uppercase"),ke=yo.extend("--ft-typography-button-font-family","",zo),Ke=yo.extend("--ft-typography-button-font-size","",Fo.fontSize,"14px"),Ze=yo.extend("--ft-typography-button-font-weight","",Fo.fontWeight,"600"),ze=yo.extend("--ft-typography-button-letter-spacing","",Fo.letterSpacing,"1.246px"),Fe=yo.extend("--ft-typography-button-line-height","",Fo.lineHeight,"1.15"),Ae=yo.extend("--ft-typography-button-text-transform","",Fo.textTransform,"uppercase");ht`
109
113
  .ft-typography--title {
110
- font-family: ${Fo};
111
- font-size: ${Ao};
112
- font-weight: ${Do};
113
- letter-spacing: ${Mo};
114
- line-height: ${Bo};
115
- text-transform: ${Po};
114
+ font-family: ${Ao};
115
+ font-size: ${Do};
116
+ font-weight: ${Mo};
117
+ letter-spacing: ${Bo};
118
+ line-height: ${Po};
119
+ text-transform: ${Ho};
116
120
  }
117
121
  `,ht`
118
122
  .ft-typography--title-dense {
119
- font-family: ${Ho};
120
- font-size: ${_o};
121
- font-weight: ${Go};
122
- letter-spacing: ${To};
123
- line-height: ${jo};
124
- text-transform: ${Yo};
123
+ font-family: ${_o};
124
+ font-size: ${Go};
125
+ font-weight: ${To};
126
+ letter-spacing: ${jo};
127
+ line-height: ${Yo};
128
+ text-transform: ${Jo};
125
129
  }
126
130
  `,ht`
127
131
  .ft-typography--subtitle1 {
128
- font-family: ${Jo};
129
- font-size: ${Vo};
130
- font-weight: ${qo};
131
- letter-spacing: ${Xo};
132
- line-height: ${Qo};
133
- text-transform: ${te};
132
+ font-family: ${Vo};
133
+ font-size: ${qo};
134
+ font-weight: ${Xo};
135
+ letter-spacing: ${Qo};
136
+ line-height: ${te};
137
+ text-transform: ${oe};
134
138
  }
135
139
  `,ht`
136
140
  .ft-typography--subtitle2 {
137
- font-family: ${oe};
138
- font-size: ${ee};
139
- font-weight: ${re};
140
- letter-spacing: ${ie};
141
- line-height: ${ae};
142
- text-transform: ${ne};
141
+ font-family: ${ee};
142
+ font-size: ${re};
143
+ font-weight: ${ie};
144
+ letter-spacing: ${ae};
145
+ line-height: ${ne};
146
+ text-transform: ${se};
143
147
  }
144
148
 
145
149
  `,ht`
146
150
  .ft-typography--body1 {
147
- font-family: ${se};
148
- font-size: ${le};
149
- font-weight: ${ce};
150
- letter-spacing: ${pe};
151
- line-height: ${fe};
152
- text-transform: ${he};
151
+ font-family: ${le};
152
+ font-size: ${ce};
153
+ font-weight: ${pe};
154
+ letter-spacing: ${fe};
155
+ line-height: ${he};
156
+ text-transform: ${de};
153
157
  }
154
158
  `,ht`
155
159
  .ft-typography--body2 {
156
- font-family: ${de};
157
- font-size: ${ye};
158
- font-weight: ${ge};
159
- letter-spacing: ${ue};
160
- line-height: ${be};
161
- text-transform: ${me};
160
+ font-family: ${ye};
161
+ font-size: ${ge};
162
+ font-weight: ${ue};
163
+ letter-spacing: ${be};
164
+ line-height: ${me};
165
+ text-transform: ${Oe};
162
166
  }
163
- `;const Ae=ht`
167
+ `;const De=ht`
164
168
  .ft-typography--caption {
165
- font-family: ${Oe.fontFamily};
166
- font-size: ${Oe.fontSize};
167
- font-weight: ${Oe.fontWeight};
168
- letter-spacing: ${Oe.letterSpacing};
169
- line-height: ${Oe.lineHeight};
170
- text-transform: ${Oe.textTransform};
169
+ font-family: ${Ne.fontFamily};
170
+ font-size: ${Ne.fontSize};
171
+ font-weight: ${Ne.fontWeight};
172
+ letter-spacing: ${Ne.letterSpacing};
173
+ line-height: ${Ne.lineHeight};
174
+ text-transform: ${Ne.textTransform};
171
175
  }
172
176
  `;ht`
173
177
  .ft-typography--breadcrumb {
174
- font-family: ${Ne};
175
- font-size: ${Se};
176
- font-weight: ${xe};
177
- letter-spacing: ${we};
178
- line-height: ${Ce};
179
- text-transform: ${ve};
178
+ font-family: ${Se};
179
+ font-size: ${xe};
180
+ font-weight: ${we};
181
+ letter-spacing: ${Ce};
182
+ line-height: ${ve};
183
+ text-transform: ${Re};
180
184
  }
181
185
  `,ht`
182
186
  .ft-typography--overline {
183
- font-family: ${Re};
184
- font-size: ${Ee};
185
- font-weight: ${Ue};
186
- letter-spacing: ${Ie};
187
- line-height: ${We};
188
- text-transform: ${Le};
187
+ font-family: ${Ee};
188
+ font-size: ${Ue};
189
+ font-weight: ${Ie};
190
+ letter-spacing: ${We};
191
+ line-height: ${Le};
192
+ text-transform: ${$e};
189
193
  }
190
194
  `,ht`
191
195
  .ft-typography--button {
192
- font-family: ${$e};
193
- font-size: ${ke};
194
- font-weight: ${Ke};
195
- letter-spacing: ${Ze};
196
- line-height: ${ze};
197
- text-transform: ${Fe};
196
+ font-family: ${ke};
197
+ font-size: ${Ke};
198
+ font-weight: ${Ze};
199
+ letter-spacing: ${ze};
200
+ line-height: ${Fe};
201
+ text-transform: ${Ae};
198
202
  }
199
203
  `,ht`
200
204
  .ft-typography {
@@ -209,25 +213,25 @@ const Lo=1;class $o{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
209
213
  line-height: ${o.lineHeight};
210
214
  text-transform: ${o.textCase};
211
215
  }
212
- `}(t)));const De={fontSize:yo.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:yo.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:yo.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:yo.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:yo.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:yo.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:yo.extend("--ft-input-label-border-color","",Oo.colorOutline),textColor:yo.extend("--ft-input-label-text-color","",Oo.colorOnSurfaceMedium),disabledTextColor:yo.extend("--ft-input-label-disabled-text-color","",Oo.colorOnSurfaceDisabled),colorSurface:yo.external(Oo.colorSurface,"Design system"),borderRadiusS:yo.external(Oo.borderRadiusS,"Design system"),colorError:yo.external(Oo.colorError,"Design system")},Me=ht`
216
+ `}(t)));const Me={fontSize:yo.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:yo.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:yo.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:yo.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:yo.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:yo.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:yo.extend("--ft-input-label-border-color","",Oo.colorOutline),textColor:yo.extend("--ft-input-label-text-color","",Oo.colorOnSurfaceMedium),disabledTextColor:yo.extend("--ft-input-label-disabled-text-color","",Oo.colorOnSurfaceDisabled),colorSurface:yo.external(Oo.colorSurface,"Design system"),borderRadiusS:yo.external(Oo.borderRadiusS,"Design system"),colorError:yo.external(Oo.colorError,"Design system")},Be=ht`
213
217
  .ft-input-label {
214
218
  position: absolute;
215
219
  inset: 0;
216
220
  display: flex;
217
- background-color: ${De.colorSurface};
218
- border-radius: ${De.borderRadiusS} ${De.borderRadiusS} 0 0;
221
+ background-color: ${Me.colorSurface};
222
+ border-radius: ${Me.borderRadiusS} ${Me.borderRadiusS} 0 0;
219
223
  }
220
224
 
221
225
  .ft-input-label--outlined {
222
- border-radius: ${De.borderRadiusS};
226
+ border-radius: ${Me.borderRadiusS};
223
227
  }
224
228
 
225
229
  .ft-input-label {
226
- border-color: ${De.borderColor};
230
+ border-color: ${Me.borderColor};
227
231
  }
228
232
 
229
233
  .ft-input-label.ft-input-label--in-error {
230
- border-color: ${De.colorError}
234
+ border-color: ${Me.colorError}
231
235
  }
232
236
 
233
237
  .ft-input-label:before,
@@ -240,7 +244,7 @@ const Lo=1;class $o{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
240
244
  }
241
245
 
242
246
  .ft-input-label:before {
243
- width: calc(${De.horizontalSpacing} - 4px);
247
+ width: calc(${Me.horizontalSpacing} - 4px);
244
248
  flex-shrink: 0;
245
249
  }
246
250
 
@@ -256,20 +260,20 @@ const Lo=1;class $o{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
256
260
  border-bottom-width: 1px;
257
261
  border-bottom-style: solid;
258
262
  border-color: inherit;
259
- color: ${De.textColor};
263
+ color: ${Me.textColor};
260
264
  transition: font-size 250ms, line-height 250ms, color 250ms;
261
- max-width: calc(${De.labelMaxWidth} - 2 * (${De.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
265
+ max-width: calc(${Me.labelMaxWidth} - 2 * (${Me.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
262
266
  text-overflow: ellipsis;
263
- ${go(Oe.fontSize,De.fontSize)};
264
- ${go(Oe.lineHeight,De.fontSize)};
267
+ ${go(Ne.fontSize,Me.fontSize)};
268
+ ${go(Ne.lineHeight,Me.fontSize)};
265
269
  }
266
270
 
267
271
  .ft-input-label--in-error .ft-input-label--text {
268
- color: ${De.colorError}
272
+ color: ${Me.colorError}
269
273
  }
270
274
 
271
275
  .ft-input-label--disabled .ft-input-label--text {
272
- color: ${De.disabledTextColor};
276
+ color: ${Me.disabledTextColor};
273
277
  }
274
278
 
275
279
  .ft-input-label--hidden-text {
@@ -286,19 +290,19 @@ const Lo=1;class $o{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
286
290
  overflow: hidden;
287
291
  white-space: nowrap;
288
292
  text-overflow: ellipsis;
289
- padding: ${De.verticalSpacing} 4px;
290
- margin: calc(${De.verticalSpacing} * -1) 0;
293
+ padding: ${Me.verticalSpacing} 4px;
294
+ margin: calc(${Me.verticalSpacing} * -1) 0;
291
295
  max-width: 100%;
292
296
  box-sizing: border-box;
293
297
  }
294
298
 
295
299
  .ft-input-label--raised .ft-input-label--text {
296
- ${go(Oe.fontSize,De.raisedFontSize)};
297
- ${go(Oe.lineHeight,De.raisedFontSize)};
300
+ ${go(Ne.fontSize,Me.raisedFontSize)};
301
+ ${go(Ne.lineHeight,Me.raisedFontSize)};
298
302
  }
299
303
 
300
304
  .ft-input-label--raised .ft-input-label--floating-text {
301
- top: ${De.verticalSpacing};
305
+ top: ${Me.verticalSpacing};
302
306
  }
303
307
 
304
308
  .ft-input-label--outlined .ft-input-label--text,
@@ -311,28 +315,28 @@ const Lo=1;class $o{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
311
315
  .ft-input-label--outlined:before {
312
316
  border-left-width: 1px;
313
317
  border-left-style: solid;
314
- border-radius: ${De.borderRadiusS} 0 0 ${De.borderRadiusS};
318
+ border-radius: ${Me.borderRadiusS} 0 0 ${Me.borderRadiusS};
315
319
  }
316
320
 
317
321
  .ft-input-label--outlined:after {
318
322
  border-right-width: 1px;
319
323
  border-right-style: solid;
320
- border-radius: 0 ${De.borderRadiusS} ${De.borderRadiusS} 0;
324
+ border-radius: 0 ${Me.borderRadiusS} ${Me.borderRadiusS} 0;
321
325
  }
322
326
 
323
327
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
324
328
  padding: 2px 4px;
325
- z-index: ${De.raisedZIndex};
326
- background-color: ${De.colorSurface};
327
- border-radius: ${De.borderRadiusS};
329
+ z-index: ${Me.raisedZIndex};
330
+ background-color: ${Me.colorSurface};
331
+ border-radius: ${Me.borderRadiusS};
328
332
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
329
333
  }
330
334
 
331
335
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
332
336
  border-top: none;
333
337
  }
334
- `;var Be,Pe=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class He extends Uo{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Yt`
335
- <div class="${ko(t)}">
338
+ `;var Pe,He=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class _e extends Uo{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Yt`
339
+ <div class="${Ko(t)}">
336
340
  ${this.text?Yt`
337
341
  <div class="ft-input-label--text ft-typography--caption">
338
342
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -340,4 +344,4 @@ const Lo=1;class $o{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
340
344
  </div>
341
345
  `:null}
342
346
  </div>
343
- `}}He.elementDefinitions={},He.styles=[Ae,Me],Pe([v({type:String})],He.prototype,"text",void 0),Pe([v({type:Boolean})],He.prototype,"raised",void 0),Pe([v({type:Boolean})],He.prototype,"outlined",void 0),Pe([v({type:Boolean})],He.prototype,"disabled",void 0),Pe([v({type:Boolean})],He.prototype,"error",void 0),(Be="ft-input-label",t=>{window.customElements.get(Be)||window.customElements.define(Be,t)})(He),t.FtInputLabel=He,t.FtInputLabelCssVariables=De,t.styles=Me}({});
347
+ `}}_e.elementDefinitions={},_e.styles=[De,Be],He([v({type:String})],_e.prototype,"text",void 0),He([v({type:Boolean})],_e.prototype,"raised",void 0),He([v({type:Boolean})],_e.prototype,"outlined",void 0),He([v({type:Boolean})],_e.prototype,"disabled",void 0),He([v({type:Boolean})],_e.prototype,"error",void 0),(Pe="ft-input-label",t=>{window.customElements.get(Pe)||window.customElements.define(Pe,t)})(_e),t.FtInputLabel=_e,t.FtInputLabelCssVariables=Me,t.styles=Be}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-input-label",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Dynamic label with outline",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-typography": "1.1.1",
23
- "@fluid-topics/ft-wc-utils": "1.1.1",
22
+ "@fluid-topics/ft-typography": "1.1.2",
23
+ "@fluid-topics/ft-wc-utils": "1.1.2",
24
24
  "lit": "3.1.0"
25
25
  },
26
- "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
26
+ "gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
27
27
  }