@fluid-topics/ft-input-label 0.3.19 → 0.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-input-label.min.js +115 -116
- package/package.json +4 -4
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const h={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(r,h);let p=i.call(o,t);p||(p=c(t),e.call(o,t,p)),this===window.customElements&&(s.set(r,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!h(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=p(i)||window.customElements,r=o._getDefinition(e);return r?u(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){r.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(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.info(t,i,o,e)}}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -30,34 +30,34 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
30
30
|
* Copyright 2019 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
32
|
*/
|
|
33
|
-
const n=
|
|
33
|
+
const r=window,n=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),a=new WeakMap;class l{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&a.set(e,t))}return t}toString(){return this.cssText}}const h=t=>new l("string"==typeof t?t:t+"",void 0,s),p=(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 l(i,t,s)},c=(t,e)=>{n?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=r.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},f=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return h(e)})(t):t
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/;var
|
|
38
|
+
*/;var d;const u=window,y=u.trustedTypes,b=y?y.emptyScript:"",g=u.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?b: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 w extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=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 r=this[t];this[e]=o,this.requestUpdate(t,r,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._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(f(t))}else void 0!==t&&e.push(f(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return c(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=m){var o;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:v).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:v;this._$El=r,this[r]=n.fromAttribute(e,t.type),this._$El=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._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2017 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
44
|
+
var $;w.finalized=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:w}),(null!==(d=u.reactiveElementVersions)&&void 0!==d?d:u.reactiveElementVersions=[]).push("1.4.1");const O=window,S=O.trustedTypes,N=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,R="?"+E,C=`<${R}>`,M=document,U=(t="")=>M.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,L=/>/g,B=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),P=/'/g,j=/"/g,_=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),H=new WeakMap,I=M.createTreeWalker(M,129,null,!1),K=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",s=z;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,p=0;for(;p<i.length&&(s.lastIndex=p,l=s.exec(i),null!==l);)p=s.lastIndex,s===z?"!--"===l[1]?s=A:void 0!==l[1]?s=L:void 0!==l[2]?(_.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=B):void 0!==l[3]&&(s=B):s===B?">"===l[0]?(s=null!=r?r:z,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?B:'"'===l[3]?j:P):s===j||s===P?s=B:s===A||s===L?s=z:(s=B,r=void 0);const c=s===B&&t[e+1].startsWith("/>")?" ":"";n+=s===z?i+C:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+E+c):i+E+(-2===h?(o.push(void 0),e):c)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(a):a,o]};class Z{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,h]=K(t,e);if(this.el=Z.createElement(l,i),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=I.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?Y:"@"===e[1]?tt:q})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(E),e=t.length-1;if(e>0){o.textContent=S?S.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),I.nextNode(),a.push({type:2,index:++r});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===R)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)a.push({type:7,index:r}),t+=E.length-1}r++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function V(t,e,i=t,o){var r,n,s,a;if(e===D)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const h=k(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=V(t,l._$AS(t,e.values),l,o)),e}class J{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);I.currentNode=r;let n=I.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new X(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new et(n,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(n=I.nextNode(),s++)}return r}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class X{constructor(t,e,i,o){var r;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=V(this,t,e),k(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==D&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>F(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==W&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.p(i);else{const t=new J(r,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new Z(t)),e}k(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new X(this.O(U()),this.O(U()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class q{constructor(t,e,i,o,r){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=V(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==D,n&&(this._$AH=t);else{const o=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=V(this,o[i+s],e,s),a===D&&(a=this._$AH[s]),n||(n=!k(a)||a!==this._$AH[s]),a===W?t=W:t!==W&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!o&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}const Q=S?S.emptyScript:"";class Y extends q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==W?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class tt extends q{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=V(this,t,e,0))&&void 0!==i?i:W)===D)return;const o=this._$AH,r=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==W&&(o===W||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}const it=O.litHtmlPolyfillSupport;null==it||it(Z,X),(null!==($=O.litHtmlVersions)&&void 0!==$?$:O.litHtmlVersions=[]).push("2.4.0");
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/
|
|
50
|
-
var
|
|
50
|
+
var ot,rt;class nt extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=n._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;n._$litPart$=s=new X(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return D}}nt.finalized=!0,nt._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:nt});const st=globalThis.litElementPolyfillSupport;null==st||st({LitElement:nt}),(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.2.2");class at{static create(t,e,i){let o=t=>h(null!=t?t:i),r=p`var(${h(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>p`var(${h(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=p`var(${h(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>p`var(${h(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):h(null!=e?e:t.defaultValue),o=p`var(${h(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>p`var(${h(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function lt(t,e){return h(`${t.name}: ${e}`)}const ht={colorPrimary:at.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:at.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:at.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:at.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:at.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:at.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:at.create("--ft-color-error","COLOR","#B00020"),colorOutline:at.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:at.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:at.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:at.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:at.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:at.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:at.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:at.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:at.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:at.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:at.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:at.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:at.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:at.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:at.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:at.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:at.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:at.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:at.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:at.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:at.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:at.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:at.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:at.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:at.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:at.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:at.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:at.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:at.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:at.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:at.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:at.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:at.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:at.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:at.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:at.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:at.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:at.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:at.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:at.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:at.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:at.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:at.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:at.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:at.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:at.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:at.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:at.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:at.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:at.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:at.create("--ft-border-radius-XL","SIZE","16px"),titleFont:at.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:at.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:at.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:at.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2021 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
-
*/var
|
|
55
|
+
*/var pt,ct,ft=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class dt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return c(r,this.constructor.elementStyles),r}}}(nt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),T`
|
|
56
56
|
${t.map((t=>T`
|
|
57
57
|
<style>${t}</style>
|
|
58
58
|
`))}
|
|
59
59
|
${this.getTemplate()}
|
|
60
|
-
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,n,
|
|
60
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,r,n,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const p=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}contentAvailableCallback(t){}}ft([i()],dt.prototype,"exportpartsPrefix",void 0),ft([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return i({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],dt.prototype,"exportpartsPrefixes",void 0),p`
|
|
61
61
|
.ft-no-text-select {
|
|
62
62
|
-webkit-touch-callout: none;
|
|
63
63
|
-webkit-user-select: none;
|
|
@@ -66,7 +66,7 @@ var tt,et;null==Y||Y(H,Z),(null!==(m=globalThis.litHtmlVersions)&&void 0!==m?m:g
|
|
|
66
66
|
-ms-user-select: none;
|
|
67
67
|
user-select: none;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,p`
|
|
70
70
|
.ft-word-wrap {
|
|
71
71
|
white-space: normal;
|
|
72
72
|
word-wrap: break-word;
|
|
@@ -78,132 +78,131 @@ var tt,et;null==Y||Y(H,Z),(null!==(m=globalThis.litHtmlVersions)&&void 0!==m?m:g
|
|
|
78
78
|
-webkit-hyphens: auto;
|
|
79
79
|
hyphens: auto
|
|
80
80
|
}
|
|
81
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
81
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ct=null===(pt=window.safari)||void 0===pt?void 0:pt.pushNotification)||void 0===ct||ct.toString());
|
|
82
82
|
/**
|
|
83
83
|
* @license
|
|
84
84
|
* Copyright 2017 Google LLC
|
|
85
85
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
86
86
|
*/
|
|
87
|
-
const
|
|
87
|
+
const ut=1;class yt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
88
88
|
/**
|
|
89
89
|
* @license
|
|
90
90
|
* Copyright 2018 Google LLC
|
|
91
91
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
92
|
-
*/
|
|
93
|
-
const ft=(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!==ct||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return B}}),dt=nt.extend("--ft-typography-font-family",st.titleFont),ut=nt.extend("--ft-typography-font-family",st.contentFont),yt={fontFamily:ut,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:nt.create("--ft-typography-text-transform","UNKNOWN","inherit")},bt=nt.extend("--ft-typography-title-font-family",dt),gt=nt.extend("--ft-typography-title-font-size",yt.fontSize,"20px"),vt=nt.extend("--ft-typography-title-font-weight",yt.fontWeight,"normal"),xt=nt.extend("--ft-typography-title-letter-spacing",yt.letterSpacing,"0.15px"),mt=nt.extend("--ft-typography-title-line-height",yt.lineHeight,"1.2"),wt=nt.extend("--ft-typography-title-text-transform",yt.textTransform,"inherit"),$t=nt.extend("--ft-typography-title-dense-font-family",dt),Ot=nt.extend("--ft-typography-title-dense-font-size",yt.fontSize,"14px"),St=nt.extend("--ft-typography-title-dense-font-weight",yt.fontWeight,"normal"),Nt=nt.extend("--ft-typography-title-dense-letter-spacing",yt.letterSpacing,"0.105px"),Et=nt.extend("--ft-typography-title-dense-line-height",yt.lineHeight,"1.7"),Rt=nt.extend("--ft-typography-title-dense-text-transform",yt.textTransform,"inherit"),Ct=nt.extend("--ft-typography-subtitle1-font-family",ut),Mt=nt.extend("--ft-typography-subtitle1-font-size",yt.fontSize,"16px"),Ut=nt.extend("--ft-typography-subtitle1-font-weight",yt.fontWeight,"600"),kt=nt.extend("--ft-typography-subtitle1-letter-spacing",yt.letterSpacing,"0.144px"),Ft=nt.extend("--ft-typography-subtitle1-line-height",yt.lineHeight,"1.5"),zt=nt.extend("--ft-typography-subtitle1-text-transform",yt.textTransform,"inherit"),At=nt.extend("--ft-typography-subtitle2-font-family",ut),Lt=nt.extend("--ft-typography-subtitle2-font-size",yt.fontSize,"14px"),Pt=nt.extend("--ft-typography-subtitle2-font-weight",yt.fontWeight,"normal"),Tt=nt.extend("--ft-typography-subtitle2-letter-spacing",yt.letterSpacing,"0.098px"),Bt=nt.extend("--ft-typography-subtitle2-line-height",yt.lineHeight,"1.7"),_t=nt.extend("--ft-typography-subtitle2-text-transform",yt.textTransform,"inherit"),jt=nt.extend("--ft-typography-body1-font-family",ut),Dt=nt.extend("--ft-typography-body1-font-size",yt.fontSize,"16px"),Wt=nt.extend("--ft-typography-body1-font-weight",yt.fontWeight,"normal"),Ht=nt.extend("--ft-typography-body1-letter-spacing",yt.letterSpacing,"0.496px"),It=nt.extend("--ft-typography-body1-line-height",yt.lineHeight,"1.5"),Kt=nt.extend("--ft-typography-body1-text-transform",yt.textTransform,"inherit"),Zt=nt.extend("--ft-typography-body2-font-family",ut),Vt=nt.extend("--ft-typography-body2-font-size",yt.fontSize,"14px"),Jt=nt.extend("--ft-typography-body2-font-weight",yt.fontWeight,"normal"),Xt=nt.extend("--ft-typography-body2-letter-spacing",yt.letterSpacing,"0.252px"),qt=nt.extend("--ft-typography-body2-line-height",yt.lineHeight,"1.4"),Gt=nt.extend("--ft-typography-body2-text-transform",yt.textTransform,"inherit"),Qt={fontFamily:nt.extend("--ft-typography-caption-font-family",ut),fontSize:nt.extend("--ft-typography-caption-font-size",yt.fontSize,"12px"),fontWeight:nt.extend("--ft-typography-caption-font-weight",yt.fontWeight,"normal"),letterSpacing:nt.extend("--ft-typography-caption-letter-spacing",yt.letterSpacing,"0.396px"),lineHeight:nt.extend("--ft-typography-caption-line-height",yt.lineHeight,"1.33"),textTransform:nt.extend("--ft-typography-caption-text-transform",yt.textTransform,"inherit")},Yt=nt.extend("--ft-typography-breadcrumb-font-family",ut),te=nt.extend("--ft-typography-breadcrumb-font-size",yt.fontSize,"10px"),ee=nt.extend("--ft-typography-breadcrumb-font-weight",yt.fontWeight,"normal"),ie=nt.extend("--ft-typography-breadcrumb-letter-spacing",yt.letterSpacing,"0.33px"),oe=nt.extend("--ft-typography-breadcrumb-line-height",yt.lineHeight,"1.6"),ne=nt.extend("--ft-typography-breadcrumb-text-transform",yt.textTransform,"inherit"),re=nt.extend("--ft-typography-overline-font-family",ut),se=nt.extend("--ft-typography-overline-font-size",yt.fontSize,"10px"),ae=nt.extend("--ft-typography-overline-font-weight",yt.fontWeight,"normal"),le=nt.extend("--ft-typography-overline-letter-spacing",yt.letterSpacing,"1.5px"),he=nt.extend("--ft-typography-overline-line-height",yt.lineHeight,"1.6"),pe=nt.extend("--ft-typography-overline-text-transform",yt.textTransform,"uppercase"),ce=nt.extend("--ft-typography-button-font-family",ut),fe=nt.extend("--ft-typography-button-font-size",yt.fontSize,"14px"),de=nt.extend("--ft-typography-button-font-weight",yt.fontWeight,"600"),ue=nt.extend("--ft-typography-button-letter-spacing",yt.letterSpacing,"1.246px"),ye=nt.extend("--ft-typography-button-line-height",yt.lineHeight,"1.15"),be=nt.extend("--ft-typography-button-text-transform",yt.textTransform,"uppercase");h`
|
|
92
|
+
*/const bt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends yt{constructor(t){var e;if(super(t),t.type!==ut||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const r=t.element.classList;this.nt.forEach((t=>{t in e||(r.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return D}}),gt=at.extend("--ft-typography-font-family",ht.titleFont),vt=at.extend("--ft-typography-font-family",ht.contentFont),xt={fontFamily:vt,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:at.create("--ft-typography-text-transform","UNKNOWN","inherit")},mt=at.extend("--ft-typography-title-font-family",gt),wt=at.extend("--ft-typography-title-font-size",xt.fontSize,"20px"),$t=at.extend("--ft-typography-title-font-weight",xt.fontWeight,"normal"),Ot=at.extend("--ft-typography-title-letter-spacing",xt.letterSpacing,"0.15px"),St=at.extend("--ft-typography-title-line-height",xt.lineHeight,"1.2"),Nt=at.extend("--ft-typography-title-text-transform",xt.textTransform,"inherit"),Et=at.extend("--ft-typography-title-dense-font-family",gt),Rt=at.extend("--ft-typography-title-dense-font-size",xt.fontSize,"14px"),Ct=at.extend("--ft-typography-title-dense-font-weight",xt.fontWeight,"normal"),Mt=at.extend("--ft-typography-title-dense-letter-spacing",xt.letterSpacing,"0.105px"),Ut=at.extend("--ft-typography-title-dense-line-height",xt.lineHeight,"1.7"),kt=at.extend("--ft-typography-title-dense-text-transform",xt.textTransform,"inherit"),Ft=at.extend("--ft-typography-subtitle1-font-family",vt),zt=at.extend("--ft-typography-subtitle1-font-size",xt.fontSize,"16px"),At=at.extend("--ft-typography-subtitle1-font-weight",xt.fontWeight,"600"),Lt=at.extend("--ft-typography-subtitle1-letter-spacing",xt.letterSpacing,"0.144px"),Bt=at.extend("--ft-typography-subtitle1-line-height",xt.lineHeight,"1.5"),Pt=at.extend("--ft-typography-subtitle1-text-transform",xt.textTransform,"inherit"),jt=at.extend("--ft-typography-subtitle2-font-family",vt),_t=at.extend("--ft-typography-subtitle2-font-size",xt.fontSize,"14px"),Tt=at.extend("--ft-typography-subtitle2-font-weight",xt.fontWeight,"normal"),Dt=at.extend("--ft-typography-subtitle2-letter-spacing",xt.letterSpacing,"0.098px"),Wt=at.extend("--ft-typography-subtitle2-line-height",xt.lineHeight,"1.7"),Ht=at.extend("--ft-typography-subtitle2-text-transform",xt.textTransform,"inherit"),It=at.extend("--ft-typography-body1-font-family",vt),Kt=at.extend("--ft-typography-body1-font-size",xt.fontSize,"16px"),Zt=at.extend("--ft-typography-body1-font-weight",xt.fontWeight,"normal"),Vt=at.extend("--ft-typography-body1-letter-spacing",xt.letterSpacing,"0.496px"),Jt=at.extend("--ft-typography-body1-line-height",xt.lineHeight,"1.5"),Xt=at.extend("--ft-typography-body1-text-transform",xt.textTransform,"inherit"),qt=at.extend("--ft-typography-body2-font-family",vt),Gt=at.extend("--ft-typography-body2-font-size",xt.fontSize,"14px"),Qt=at.extend("--ft-typography-body2-font-weight",xt.fontWeight,"normal"),Yt=at.extend("--ft-typography-body2-letter-spacing",xt.letterSpacing,"0.252px"),te=at.extend("--ft-typography-body2-line-height",xt.lineHeight,"1.4"),ee=at.extend("--ft-typography-body2-text-transform",xt.textTransform,"inherit"),ie={fontFamily:at.extend("--ft-typography-caption-font-family",vt),fontSize:at.extend("--ft-typography-caption-font-size",xt.fontSize,"12px"),fontWeight:at.extend("--ft-typography-caption-font-weight",xt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-caption-letter-spacing",xt.letterSpacing,"0.396px"),lineHeight:at.extend("--ft-typography-caption-line-height",xt.lineHeight,"1.33"),textTransform:at.extend("--ft-typography-caption-text-transform",xt.textTransform,"inherit")},oe=at.extend("--ft-typography-breadcrumb-font-family",vt),re=at.extend("--ft-typography-breadcrumb-font-size",xt.fontSize,"10px"),ne=at.extend("--ft-typography-breadcrumb-font-weight",xt.fontWeight,"normal"),se=at.extend("--ft-typography-breadcrumb-letter-spacing",xt.letterSpacing,"0.33px"),ae=at.extend("--ft-typography-breadcrumb-line-height",xt.lineHeight,"1.6"),le=at.extend("--ft-typography-breadcrumb-text-transform",xt.textTransform,"inherit"),he=at.extend("--ft-typography-overline-font-family",vt),pe=at.extend("--ft-typography-overline-font-size",xt.fontSize,"10px"),ce=at.extend("--ft-typography-overline-font-weight",xt.fontWeight,"normal"),fe=at.extend("--ft-typography-overline-letter-spacing",xt.letterSpacing,"1.5px"),de=at.extend("--ft-typography-overline-line-height",xt.lineHeight,"1.6"),ue=at.extend("--ft-typography-overline-text-transform",xt.textTransform,"uppercase"),ye=at.extend("--ft-typography-button-font-family",vt),be=at.extend("--ft-typography-button-font-size",xt.fontSize,"14px"),ge=at.extend("--ft-typography-button-font-weight",xt.fontWeight,"600"),ve=at.extend("--ft-typography-button-letter-spacing",xt.letterSpacing,"1.246px"),xe=at.extend("--ft-typography-button-line-height",xt.lineHeight,"1.15"),me=at.extend("--ft-typography-button-text-transform",xt.textTransform,"uppercase");p`
|
|
94
93
|
.ft-typography--title {
|
|
95
|
-
font-family: ${
|
|
96
|
-
font-size: ${
|
|
97
|
-
font-weight: ${
|
|
98
|
-
letter-spacing: ${
|
|
99
|
-
line-height: ${
|
|
100
|
-
text-transform: ${
|
|
101
|
-
}
|
|
102
|
-
`,
|
|
94
|
+
font-family: ${mt};
|
|
95
|
+
font-size: ${wt};
|
|
96
|
+
font-weight: ${$t};
|
|
97
|
+
letter-spacing: ${Ot};
|
|
98
|
+
line-height: ${St};
|
|
99
|
+
text-transform: ${Nt};
|
|
100
|
+
}
|
|
101
|
+
`,p`
|
|
103
102
|
.ft-typography--title-dense {
|
|
104
|
-
font-family: ${
|
|
105
|
-
font-size: ${
|
|
106
|
-
font-weight: ${
|
|
107
|
-
letter-spacing: ${
|
|
108
|
-
line-height: ${
|
|
109
|
-
text-transform: ${
|
|
110
|
-
}
|
|
111
|
-
`,
|
|
103
|
+
font-family: ${Et};
|
|
104
|
+
font-size: ${Rt};
|
|
105
|
+
font-weight: ${Ct};
|
|
106
|
+
letter-spacing: ${Mt};
|
|
107
|
+
line-height: ${Ut};
|
|
108
|
+
text-transform: ${kt};
|
|
109
|
+
}
|
|
110
|
+
`,p`
|
|
112
111
|
.ft-typography--subtitle1 {
|
|
113
|
-
font-family: ${
|
|
114
|
-
font-size: ${
|
|
115
|
-
font-weight: ${
|
|
116
|
-
letter-spacing: ${
|
|
117
|
-
line-height: ${Ft};
|
|
118
|
-
text-transform: ${zt};
|
|
119
|
-
}
|
|
120
|
-
`,h`
|
|
121
|
-
.ft-typography--subtitle2 {
|
|
122
|
-
font-family: ${At};
|
|
123
|
-
font-size: ${Lt};
|
|
124
|
-
font-weight: ${Pt};
|
|
125
|
-
letter-spacing: ${Tt};
|
|
112
|
+
font-family: ${Ft};
|
|
113
|
+
font-size: ${zt};
|
|
114
|
+
font-weight: ${At};
|
|
115
|
+
letter-spacing: ${Lt};
|
|
126
116
|
line-height: ${Bt};
|
|
127
|
-
text-transform: ${
|
|
117
|
+
text-transform: ${Pt};
|
|
128
118
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
.ft-typography--body1 {
|
|
119
|
+
`,p`
|
|
120
|
+
.ft-typography--subtitle2 {
|
|
132
121
|
font-family: ${jt};
|
|
133
|
-
font-size: ${
|
|
134
|
-
font-weight: ${
|
|
135
|
-
letter-spacing: ${
|
|
136
|
-
line-height: ${
|
|
137
|
-
text-transform: ${
|
|
122
|
+
font-size: ${_t};
|
|
123
|
+
font-weight: ${Tt};
|
|
124
|
+
letter-spacing: ${Dt};
|
|
125
|
+
line-height: ${Wt};
|
|
126
|
+
text-transform: ${Ht};
|
|
138
127
|
}
|
|
139
|
-
|
|
128
|
+
|
|
129
|
+
`,p`
|
|
130
|
+
.ft-typography--body1 {
|
|
131
|
+
font-family: ${It};
|
|
132
|
+
font-size: ${Kt};
|
|
133
|
+
font-weight: ${Zt};
|
|
134
|
+
letter-spacing: ${Vt};
|
|
135
|
+
line-height: ${Jt};
|
|
136
|
+
text-transform: ${Xt};
|
|
137
|
+
}
|
|
138
|
+
`,p`
|
|
140
139
|
.ft-typography--body2 {
|
|
141
|
-
font-family: ${
|
|
142
|
-
font-size: ${
|
|
143
|
-
font-weight: ${
|
|
144
|
-
letter-spacing: ${
|
|
145
|
-
line-height: ${
|
|
146
|
-
text-transform: ${
|
|
147
|
-
}
|
|
148
|
-
`;const
|
|
140
|
+
font-family: ${qt};
|
|
141
|
+
font-size: ${Gt};
|
|
142
|
+
font-weight: ${Qt};
|
|
143
|
+
letter-spacing: ${Yt};
|
|
144
|
+
line-height: ${te};
|
|
145
|
+
text-transform: ${ee};
|
|
146
|
+
}
|
|
147
|
+
`;const we=p`
|
|
149
148
|
.ft-typography--caption {
|
|
150
|
-
font-family: ${
|
|
151
|
-
font-size: ${
|
|
152
|
-
font-weight: ${
|
|
153
|
-
letter-spacing: ${
|
|
154
|
-
line-height: ${
|
|
155
|
-
text-transform: ${
|
|
156
|
-
}
|
|
157
|
-
`;
|
|
149
|
+
font-family: ${ie.fontFamily};
|
|
150
|
+
font-size: ${ie.fontSize};
|
|
151
|
+
font-weight: ${ie.fontWeight};
|
|
152
|
+
letter-spacing: ${ie.letterSpacing};
|
|
153
|
+
line-height: ${ie.lineHeight};
|
|
154
|
+
text-transform: ${ie.textTransform};
|
|
155
|
+
}
|
|
156
|
+
`;p`
|
|
158
157
|
.ft-typography--breadcrumb {
|
|
159
|
-
font-family: ${
|
|
160
|
-
font-size: ${
|
|
161
|
-
font-weight: ${
|
|
162
|
-
letter-spacing: ${
|
|
163
|
-
line-height: ${
|
|
164
|
-
text-transform: ${
|
|
165
|
-
}
|
|
166
|
-
`,
|
|
158
|
+
font-family: ${oe};
|
|
159
|
+
font-size: ${re};
|
|
160
|
+
font-weight: ${ne};
|
|
161
|
+
letter-spacing: ${se};
|
|
162
|
+
line-height: ${ae};
|
|
163
|
+
text-transform: ${le};
|
|
164
|
+
}
|
|
165
|
+
`,p`
|
|
167
166
|
.ft-typography--overline {
|
|
168
|
-
font-family: ${
|
|
169
|
-
font-size: ${
|
|
170
|
-
font-weight: ${
|
|
171
|
-
letter-spacing: ${
|
|
172
|
-
line-height: ${
|
|
173
|
-
text-transform: ${
|
|
174
|
-
}
|
|
175
|
-
`,
|
|
167
|
+
font-family: ${he};
|
|
168
|
+
font-size: ${pe};
|
|
169
|
+
font-weight: ${ce};
|
|
170
|
+
letter-spacing: ${fe};
|
|
171
|
+
line-height: ${de};
|
|
172
|
+
text-transform: ${ue};
|
|
173
|
+
}
|
|
174
|
+
`,p`
|
|
176
175
|
.ft-typography--button {
|
|
177
|
-
font-family: ${
|
|
178
|
-
font-size: ${
|
|
179
|
-
font-weight: ${
|
|
180
|
-
letter-spacing: ${
|
|
181
|
-
line-height: ${
|
|
182
|
-
text-transform: ${
|
|
183
|
-
}
|
|
184
|
-
`,
|
|
176
|
+
font-family: ${ye};
|
|
177
|
+
font-size: ${be};
|
|
178
|
+
font-weight: ${ge};
|
|
179
|
+
letter-spacing: ${ve};
|
|
180
|
+
line-height: ${xe};
|
|
181
|
+
text-transform: ${me};
|
|
182
|
+
}
|
|
183
|
+
`,p`
|
|
185
184
|
.ft-typography {
|
|
186
185
|
vertical-align: inherit;
|
|
187
186
|
}
|
|
188
|
-
`;const
|
|
187
|
+
`;const $e={fontSize:at.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:at.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:at.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:at.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:at.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:at.extend("--ft-input-label-border-color",ht.colorOutline),textColor:at.extend("--ft-input-label-text-color",ht.colorOnSurfaceMedium),disabledTextColor:at.extend("--ft-input-label-disabled-text-color",ht.colorOnSurfaceDisabled),colorSurface:at.external(ht.colorSurface,"Design system"),borderRadiusS:at.external(ht.borderRadiusS,"Design system"),colorError:at.external(ht.colorError,"Design system")},Oe=p`
|
|
189
188
|
.ft-input-label {
|
|
190
189
|
position: absolute;
|
|
191
190
|
inset: 0;
|
|
192
191
|
display: flex;
|
|
193
|
-
background-color: ${
|
|
194
|
-
border-radius: ${
|
|
192
|
+
background-color: ${$e.colorSurface};
|
|
193
|
+
border-radius: ${$e.borderRadiusS} ${$e.borderRadiusS} 0 0;
|
|
195
194
|
}
|
|
196
195
|
|
|
197
196
|
.ft-input-label--outlined {
|
|
198
|
-
border-radius: ${
|
|
197
|
+
border-radius: ${$e.borderRadiusS};
|
|
199
198
|
}
|
|
200
199
|
|
|
201
200
|
.ft-input-label {
|
|
202
|
-
border-color: ${
|
|
201
|
+
border-color: ${$e.borderColor};
|
|
203
202
|
}
|
|
204
203
|
|
|
205
204
|
.ft-input-label.ft-input-label--in-error {
|
|
206
|
-
border-color: ${
|
|
205
|
+
border-color: ${$e.colorError}
|
|
207
206
|
}
|
|
208
207
|
|
|
209
208
|
.ft-input-label:before,
|
|
@@ -216,7 +215,7 @@ const ft=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
216
215
|
}
|
|
217
216
|
|
|
218
217
|
.ft-input-label:before {
|
|
219
|
-
width: ${
|
|
218
|
+
width: ${$e.horizontalSpacing};
|
|
220
219
|
flex-shrink: 0;
|
|
221
220
|
}
|
|
222
221
|
|
|
@@ -232,18 +231,18 @@ const ft=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
232
231
|
border-bottom-width: 1px;
|
|
233
232
|
border-bottom-style: solid;
|
|
234
233
|
border-color: inherit;
|
|
235
|
-
color: ${
|
|
234
|
+
color: ${$e.textColor};
|
|
236
235
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
237
|
-
${
|
|
238
|
-
${
|
|
236
|
+
${lt(ie.fontSize,$e.fontSize)};
|
|
237
|
+
${lt(ie.lineHeight,$e.fontSize)};
|
|
239
238
|
}
|
|
240
239
|
|
|
241
240
|
.ft-input-label--in-error .ft-input-label--text {
|
|
242
|
-
color: ${
|
|
241
|
+
color: ${$e.colorError}
|
|
243
242
|
}
|
|
244
243
|
|
|
245
244
|
.ft-input-label--disabled .ft-input-label--text {
|
|
246
|
-
color: ${
|
|
245
|
+
color: ${$e.disabledTextColor};
|
|
247
246
|
}
|
|
248
247
|
|
|
249
248
|
.ft-input-label--hidden-text {
|
|
@@ -258,17 +257,17 @@ const ft=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
258
257
|
overflow: hidden;
|
|
259
258
|
white-space: nowrap;
|
|
260
259
|
text-overflow: ellipsis;
|
|
261
|
-
padding: ${
|
|
262
|
-
margin: calc(${
|
|
260
|
+
padding: ${$e.verticalSpacing} 4px;
|
|
261
|
+
margin: calc(${$e.verticalSpacing} * -1) 0;
|
|
263
262
|
}
|
|
264
263
|
|
|
265
264
|
.ft-input-label--raised .ft-input-label--text {
|
|
266
|
-
${
|
|
267
|
-
${
|
|
265
|
+
${lt(ie.fontSize,$e.raisedFontSize)};
|
|
266
|
+
${lt(ie.lineHeight,$e.raisedFontSize)};
|
|
268
267
|
}
|
|
269
268
|
|
|
270
269
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
271
|
-
top: ${
|
|
270
|
+
top: ${$e.verticalSpacing};
|
|
272
271
|
}
|
|
273
272
|
|
|
274
273
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -281,28 +280,28 @@ const ft=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
281
280
|
.ft-input-label--outlined:before {
|
|
282
281
|
border-left-width: 1px;
|
|
283
282
|
border-left-style: solid;
|
|
284
|
-
border-radius: ${
|
|
283
|
+
border-radius: ${$e.borderRadiusS} 0 0 ${$e.borderRadiusS};
|
|
285
284
|
}
|
|
286
285
|
|
|
287
286
|
.ft-input-label--outlined:after {
|
|
288
287
|
border-right-width: 1px;
|
|
289
288
|
border-right-style: solid;
|
|
290
|
-
border-radius: 0 ${
|
|
289
|
+
border-radius: 0 ${$e.borderRadiusS} ${$e.borderRadiusS} 0;
|
|
291
290
|
}
|
|
292
291
|
|
|
293
292
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
294
293
|
padding: 2px 4px;
|
|
295
|
-
z-index: ${
|
|
296
|
-
background-color: ${
|
|
297
|
-
border-radius: ${
|
|
294
|
+
z-index: ${$e.raisedZIndex};
|
|
295
|
+
background-color: ${$e.colorSurface};
|
|
296
|
+
border-radius: ${$e.borderRadiusS};
|
|
298
297
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
299
298
|
}
|
|
300
299
|
|
|
301
300
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
302
301
|
border-top: none;
|
|
303
302
|
}
|
|
304
|
-
`;var
|
|
305
|
-
<div class="${
|
|
303
|
+
`;var Se,Ne=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Ee extends dt{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 T`
|
|
304
|
+
<div class="${bt(t)}">
|
|
306
305
|
${this.text?T`
|
|
307
306
|
<div class="ft-input-label--text ft-typography--caption">
|
|
308
307
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -310,4 +309,4 @@ const ft=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
310
309
|
</div>
|
|
311
310
|
`:null}
|
|
312
311
|
</div>
|
|
313
|
-
`}}
|
|
312
|
+
`}}Ee.elementDefinitions={},Ee.styles=[we,Oe],Ne([i({type:String})],Ee.prototype,"text",void 0),Ne([i({type:Boolean})],Ee.prototype,"raised",void 0),Ne([i({type:Boolean})],Ee.prototype,"outlined",void 0),Ne([i({type:Boolean})],Ee.prototype,"disabled",void 0),Ne([i({type:Boolean})],Ee.prototype,"error",void 0),(Se="ft-input-label",t=>{window.customElements.get(Se)||window.customElements.define(Se,t)})(Ee),t.FtInputLabel=Ee,t.FtInputLabelCssVariables=$e,t.styles=Oe,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-input-label",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
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": "0.3.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-typography": "0.3.21",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "0.3.21",
|
|
24
24
|
"lit": "2.2.8"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "44d378afb4633e1b5a2be18fb6051968816e577a"
|
|
27
27
|
}
|