@fluid-topics/ft-input-label 1.1.7 → 1.1.8
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 +94 -94
- package/package.json +4 -4
|
@@ -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(
|
|
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(Po){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)}}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -34,7 +34,7 @@ const x={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:O},w=(t=x,o,
|
|
|
34
34
|
* Copyright 2017 Google LLC
|
|
35
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
36
|
*/
|
|
37
|
-
const E=globalThis,U=E.trustedTypes,I=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,W="$lit$",L=`lit$${(Math.random()+"").slice(9)}$`,$="?"+L,k=`<${$}>`,K=document,Z=()=>K.createComment(""),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,A="[ \t\n\f\r]",
|
|
37
|
+
const E=globalThis,U=E.trustedTypes,I=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,W="$lit$",L=`lit$${(Math.random()+"").slice(9)}$`,$="?"+L,k=`<${$}>`,K=document,Z=()=>K.createComment(""),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,A="[ \t\n\f\r]",M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,B=/>/g,P=RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),H=/'/g,_=/"/g,T=/^(?:script|style|textarea|title)$/i,G=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Y=new WeakMap,J=K.createTreeWalker(K,129);function V(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==I?I.createHTML(o):o}let q=class t{constructor({strings:o,_$litType$:e},r){let i;this.parts=[];let a=0,n=0;const s=o.length-1,l=this.parts,[c,p]=((t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=M;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,p=0;for(;p<e.length&&(n.lastIndex=p,l=n.exec(e),null!==l);)p=n.lastIndex,n===M?"!--"===l[1]?n=D:void 0!==l[1]?n=B:void 0!==l[2]?(T.test(l[2])&&(i=RegExp("</"+l[2],"g")),n=P):void 0!==l[3]&&(n=P):n===P?">"===l[0]?(n=i??M,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?P:'"'===l[3]?_:H):n===_||n===H?n=P:n===D||n===B?n=M:(n=P,i=void 0);const f=n===P&&t[o+1].startsWith("/>")?" ":"";a+=n===M?e+k:c>=0?(r.push(s),e.slice(0,c)+W+e.slice(c)+L+f):e+L+(-2===c?o:f)}return[V(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),r]})(o,e);if(this.el=t.createElement(c,r),J.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=J.nextNode())&&l.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(W)){const o=p[n++],e=i.getAttribute(t).split(L),r=/([.?@])?(.*)/.exec(o);l.push({type:1,index:a,name:r[2],strings:e,ctor:"."===r[1]?ot:"?"===r[1]?et:"@"===r[1]?rt:tt}),i.removeAttribute(t)}else t.startsWith(L)&&(l.push({type:6,index:a}),i.removeAttribute(t));if(T.test(i.tagName)){const t=i.textContent.split(L),o=t.length-1;if(o>0){i.textContent=U?U.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],Z()),J.nextNode(),l.push({type:2,index:++a});i.append(t[o],Z())}}}else if(8===i.nodeType)if(i.data===$)l.push({type:2,index:a});else{let t=-1;for(;-1!==(t=i.data.indexOf(L,t+1));)l.push({type:7,index:a}),t+=L.length-1}a++}}static createElement(t,o){const e=K.createElement("template");return e.innerHTML=t,e}};function X(t,o,e=t,r){if(o===G)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const a=z(o)?void 0:o._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=X(t,i._$AS(t,o.values),i,r)),o}let Q=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=X(this,t,o),z(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==G&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>F(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==j&&z(this._$AH)?this._$AA.nextSibling.data=t:this.$(K.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=q.createElement(V(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??K).importNode(o,!0);J.currentNode=r;let i=J.nextNode(),a=0,n=0,s=e[0];for(;void 0!==s;){if(a===s.index){let o;2===s.type?o=new Q(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new it(i,this,t)),this._$AV.push(o),s=e[++n]}a!==s?.index&&(i=J.nextNode(),a++)}return J.currentNode=K,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=Y.get(t.strings);return void 0===o&&Y.set(t.strings,o=new q(t)),o}T(o){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const a of o)i===e.length?e.push(r=new t(this.k(Z()),this.k(Z()),this,this.options)):r=e[i],r._$AI(a),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=j}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=X(this,t,o,0),a=!z(t)||t!==this._$AH&&t!==G,a&&(this._$AH=t);else{const r=t;let n,s;for(t=i[0],n=0;n<i.length-1;n++)s=X(this,r[e+n],o,n),s===G&&(s=this._$AH[n]),a||=!z(s)||s!==this._$AH[n],s===j?t=j:t!==j&&(t+=(s??"")+i[n+1]),this._$AH[n]=s}a&&!r&&this.O(t)}O(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends tt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===j?void 0:t}},et=class extends tt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==j)}},rt=class extends tt{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=X(this,t,o,0)??j)===G)return;const e=this._$AH,r=t===j&&e!==j||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==j&&(e===j||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}};const at=E.litHtmlPolyfillSupport;at?.(q,Q),(E.litHtmlVersions??=[]).push("3.1.0");
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2019 Google LLC
|
|
@@ -51,7 +51,7 @@ const nt=globalThis,st=nt.ShadowRoot&&(void 0===nt.ShadyCSS||nt.ShadyCSS.nativeS
|
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*/
|
|
54
|
-
const It=globalThis,Wt=It.trustedTypes,Lt=Wt?Wt.createPolicy("lit-html",{createHTML:t=>t}):void 0,$t="$lit$",kt=`lit$${(Math.random()+"").slice(9)}$`,Kt="?"+kt,Zt=`<${Kt}>`,zt=document,Ft=()=>zt.createComment(""),At=t=>null===t||"object"!=typeof t&&"function"!=typeof t,
|
|
54
|
+
const It=globalThis,Wt=It.trustedTypes,Lt=Wt?Wt.createPolicy("lit-html",{createHTML:t=>t}):void 0,$t="$lit$",kt=`lit$${(Math.random()+"").slice(9)}$`,Kt="?"+kt,Zt=`<${Kt}>`,zt=document,Ft=()=>zt.createComment(""),At=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Mt=Array.isArray,Dt="[ \t\n\f\r]",Bt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pt=/-->/g,Ht=/>/g,_t=RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Tt=/'/g,Gt=/"/g,jt=/^(?:script|style|textarea|title)$/i,Yt=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),Jt=Symbol.for("lit-noChange"),Vt=Symbol.for("lit-nothing"),qt=new WeakMap,Xt=zt.createTreeWalker(zt,129);function Qt(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Lt?Lt.createHTML(o):o}const to=(t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=Bt;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,p=0;for(;p<e.length&&(n.lastIndex=p,l=n.exec(e),null!==l);)p=n.lastIndex,n===Bt?"!--"===l[1]?n=Pt:void 0!==l[1]?n=Ht:void 0!==l[2]?(jt.test(l[2])&&(i=RegExp("</"+l[2],"g")),n=_t):void 0!==l[3]&&(n=_t):n===_t?">"===l[0]?(n=i??Bt,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?_t:'"'===l[3]?Gt:Tt):n===Gt||n===Tt?n=_t:n===Pt||n===Ht?n=Bt:(n=_t,i=void 0);const f=n===_t&&t[o+1].startsWith("/>")?" ":"";a+=n===Bt?e+Zt:c>=0?(r.push(s),e.slice(0,c)+$t+e.slice(c)+kt+f):e+kt+(-2===c?o:f)}return[Qt(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),r]};class oo{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,a=0;const n=t.length-1,s=this.parts,[l,c]=to(t,o);if(this.el=oo.createElement(l,e),Xt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Xt.nextNode())&&s.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith($t)){const o=c[a++],e=r.getAttribute(t).split(kt),n=/([.?@])?(.*)/.exec(o);s.push({type:1,index:i,name:n[2],strings:e,ctor:"."===n[1]?ao:"?"===n[1]?no:"@"===n[1]?so:io}),r.removeAttribute(t)}else t.startsWith(kt)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(jt.test(r.tagName)){const t=r.textContent.split(kt),o=t.length-1;if(o>0){r.textContent=Wt?Wt.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],Ft()),Xt.nextNode(),s.push({type:2,index:++i});r.append(t[o],Ft())}}}else if(8===r.nodeType)if(r.data===Kt)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(kt,t+1));)s.push({type:7,index:i}),t+=kt.length-1}i++}}static createElement(t,o){const e=zt.createElement("template");return e.innerHTML=t,e}}function eo(t,o,e=t,r){if(o===Jt)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const a=At(o)?void 0:o._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=eo(t,i._$AS(t,o.values),i,r)),o}class ro{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=Vt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=eo(this,t,o),At(t)?t===Vt||null==t||""===t?(this._$AH!==Vt&&this._$AR(),this._$AH=Vt):t!==this._$AH&&t!==Jt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Mt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Vt&&At(this._$AH)?this._$AA.nextSibling.data=t:this.$(zt.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=oo.createElement(Qt(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??zt).importNode(o,!0);Xt.currentNode=r;let i=Xt.nextNode(),a=0,n=0,s=e[0];for(;void 0!==s;){if(a===s.index){let o;2===s.type?o=new ro(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new lo(i,this,t)),this._$AV.push(o),s=e[++n]}a!==s?.index&&(i=Xt.nextNode(),a++)}return Xt.currentNode=zt,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=qt.get(t.strings);return void 0===o&&qt.set(t.strings,o=new oo(t)),o}T(t){Mt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new ro(this.k(Ft()),this.k(Ft()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class io{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=Vt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Vt}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=eo(this,t,o,0),a=!At(t)||t!==this._$AH&&t!==Jt,a&&(this._$AH=t);else{const r=t;let n,s;for(t=i[0],n=0;n<i.length-1;n++)s=eo(this,r[e+n],o,n),s===Jt&&(s=this._$AH[n]),a||=!At(s)||s!==this._$AH[n],s===Vt?t=Vt:t!==Vt&&(t+=(s??"")+i[n+1]),this._$AH[n]=s}a&&!r&&this.O(t)}O(t){t===Vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ao extends io{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Vt?void 0:t}}class no extends io{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Vt)}}class so extends io{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=eo(this,t,o,0)??Vt)===Jt)return;const e=this._$AH,r=t===Vt&&e!==Vt||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==Vt&&(e===Vt||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class lo{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){eo(this,t)}}const co=It.litHtmlPolyfillSupport;co?.(oo,ro),(It.litHtmlVersions??=[]).push("3.1.0");
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
@@ -62,7 +62,7 @@ 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 v(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([C()],Uo.prototype,"exportpartsPrefix",void 0),Co([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({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([C()],Uo.prototype,"customStylesheet",void 0);const Io=yo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");var
|
|
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 v(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([C()],Uo.prototype,"exportpartsPrefix",void 0),Co([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({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([C()],Uo.prototype,"customStylesheet",void 0);const Io=yo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");function Wo(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Lo,$o,ko;ht`
|
|
66
66
|
.highlight-html-match {
|
|
67
67
|
background: ${Io};
|
|
68
68
|
}
|
|
@@ -98,107 +98,107 @@ class po extends Ut{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
98
98
|
display: inline-block;
|
|
99
99
|
width: 0;
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
`;const Ko=Symbol("internalReduxEventsUnsubscribers"),Zo=Symbol("internalStoresUnsubscribers"),zo=Symbol("internalStores");class Fo extends Uo{constructor(){super(...arguments),this[Lo]=new Map,this[$o]=new Map,this[ko]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((o=>t.has(o)))&&this.updateFromStores()}getUnnamedStore(){if(this[zo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[zo].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[zo].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Wo(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[zo].delete(o)}setupStore(t,o){this[zo].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[zo].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[Zo].has(t.store):this[Zo].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[Zo].set(t,o.subscribe((()=>this.updateFromStores()))),Wo(o)&&o.eventBus&&(null===(e=this.reduxConstructor.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Ko].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Zo].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Ko].forEach((t=>t())),this[Ko]=[]}unsubscribeFromStore(t){this[Zo].has(t)&&this[Zo].get(t)(),this[Zo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}var Ao,Mo;Lo=Zo,$o=zo,ko=Ko,Fo.reduxProperties=new Map,Fo.reduxReactiveProperties=new Set,Fo.reduxEventListeners=new Map,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Mo=null===(Ao=window.safari)||void 0===Ao?void 0:Ao.pushNotification)||void 0===Mo||Mo.toString());
|
|
102
102
|
/**
|
|
103
103
|
* @license
|
|
104
104
|
* Copyright 2017 Google LLC
|
|
105
105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
106
|
*/
|
|
107
|
-
const
|
|
107
|
+
const Do=1;class Bo{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)}}
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright 2018 Google LLC
|
|
111
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
|
-
*/const
|
|
112
|
+
*/const Po=(t=>(...o)=>({_$litDirective$:t,values:o}))(class extends Bo{constructor(t){if(super(t),t.type!==Do||"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 G}});const Ho=yo.extend("--ft-typography-font-family","",Oo.titleFont),_o=yo.extend("--ft-typography-font-family","",Oo.contentFont),To={fontFamily:_o,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")},Go=yo.extend("--ft-typography-title-font-family","",Ho),jo=yo.extend("--ft-typography-title-font-size","",To.fontSize,"20px"),Yo=yo.extend("--ft-typography-title-font-weight","",To.fontWeight,"normal"),Jo=yo.extend("--ft-typography-title-letter-spacing","",To.letterSpacing,"0.15px"),Vo=yo.extend("--ft-typography-title-line-height","",To.lineHeight,"1.2"),qo=yo.extend("--ft-typography-title-text-transform","",To.textTransform,"inherit"),Xo=yo.extend("--ft-typography-title-dense-font-family","",Ho),Qo=yo.extend("--ft-typography-title-dense-font-size","",To.fontSize,"14px"),te=yo.extend("--ft-typography-title-dense-font-weight","",To.fontWeight,"normal"),oe=yo.extend("--ft-typography-title-dense-letter-spacing","",To.letterSpacing,"0.105px"),ee=yo.extend("--ft-typography-title-dense-line-height","",To.lineHeight,"1.7"),re=yo.extend("--ft-typography-title-dense-text-transform","",To.textTransform,"inherit"),ie=yo.extend("--ft-typography-subtitle1-font-family","",_o),ae=yo.extend("--ft-typography-subtitle1-font-size","",To.fontSize,"16px"),ne=yo.extend("--ft-typography-subtitle1-font-weight","",To.fontWeight,"600"),se=yo.extend("--ft-typography-subtitle1-letter-spacing","",To.letterSpacing,"0.144px"),le=yo.extend("--ft-typography-subtitle1-line-height","",To.lineHeight,"1.5"),ce=yo.extend("--ft-typography-subtitle1-text-transform","",To.textTransform,"inherit"),pe=yo.extend("--ft-typography-subtitle2-font-family","",_o),fe=yo.extend("--ft-typography-subtitle2-font-size","",To.fontSize,"14px"),he=yo.extend("--ft-typography-subtitle2-font-weight","",To.fontWeight,"normal"),de=yo.extend("--ft-typography-subtitle2-letter-spacing","",To.letterSpacing,"0.098px"),ye=yo.extend("--ft-typography-subtitle2-line-height","",To.lineHeight,"1.7"),ge=yo.extend("--ft-typography-subtitle2-text-transform","",To.textTransform,"inherit"),ue=yo.extend("--ft-typography-body1-font-family","",_o),be=yo.extend("--ft-typography-body1-font-size","",To.fontSize,"16px"),me=yo.extend("--ft-typography-body1-font-weight","",To.fontWeight,"normal"),Oe=yo.extend("--ft-typography-body1-letter-spacing","",To.letterSpacing,"0.496px"),Ne=yo.extend("--ft-typography-body1-line-height","",To.lineHeight,"1.5"),Se=yo.extend("--ft-typography-body1-text-transform","",To.textTransform,"inherit"),xe=yo.extend("--ft-typography-body2-font-family","",_o),we=yo.extend("--ft-typography-body2-font-size","",To.fontSize,"14px"),Ce=yo.extend("--ft-typography-body2-font-weight","",To.fontWeight,"normal"),ve=yo.extend("--ft-typography-body2-letter-spacing","",To.letterSpacing,"0.252px"),Re=yo.extend("--ft-typography-body2-line-height","",To.lineHeight,"1.4"),Ee=yo.extend("--ft-typography-body2-text-transform","",To.textTransform,"inherit"),Ue={fontFamily:yo.extend("--ft-typography-caption-font-family","",_o),fontSize:yo.extend("--ft-typography-caption-font-size","",To.fontSize,"12px"),fontWeight:yo.extend("--ft-typography-caption-font-weight","",To.fontWeight,"normal"),letterSpacing:yo.extend("--ft-typography-caption-letter-spacing","",To.letterSpacing,"0.396px"),lineHeight:yo.extend("--ft-typography-caption-line-height","",To.lineHeight,"1.33"),textTransform:yo.extend("--ft-typography-caption-text-transform","",To.textTransform,"inherit")},Ie=yo.extend("--ft-typography-breadcrumb-font-family","",_o),We=yo.extend("--ft-typography-breadcrumb-font-size","",To.fontSize,"10px"),Le=yo.extend("--ft-typography-breadcrumb-font-weight","",To.fontWeight,"normal"),$e=yo.extend("--ft-typography-breadcrumb-letter-spacing","",To.letterSpacing,"0.33px"),ke=yo.extend("--ft-typography-breadcrumb-line-height","",To.lineHeight,"1.6"),Ke=yo.extend("--ft-typography-breadcrumb-text-transform","",To.textTransform,"inherit"),Ze=yo.extend("--ft-typography-overline-font-family","",_o),ze=yo.extend("--ft-typography-overline-font-size","",To.fontSize,"10px"),Fe=yo.extend("--ft-typography-overline-font-weight","",To.fontWeight,"normal"),Ae=yo.extend("--ft-typography-overline-letter-spacing","",To.letterSpacing,"1.5px"),Me=yo.extend("--ft-typography-overline-line-height","",To.lineHeight,"1.6"),De=yo.extend("--ft-typography-overline-text-transform","",To.textTransform,"uppercase"),Be=yo.extend("--ft-typography-button-font-family","",_o),Pe=yo.extend("--ft-typography-button-font-size","",To.fontSize,"14px"),He=yo.extend("--ft-typography-button-font-weight","",To.fontWeight,"600"),_e=yo.extend("--ft-typography-button-letter-spacing","",To.letterSpacing,"1.246px"),Te=yo.extend("--ft-typography-button-line-height","",To.lineHeight,"1.15"),Ge=yo.extend("--ft-typography-button-text-transform","",To.textTransform,"uppercase");ht`
|
|
113
113
|
.ft-typography--title {
|
|
114
|
-
font-family: ${
|
|
115
|
-
font-size: ${
|
|
116
|
-
font-weight: ${
|
|
117
|
-
letter-spacing: ${
|
|
118
|
-
line-height: ${
|
|
119
|
-
text-transform: ${
|
|
114
|
+
font-family: ${Go};
|
|
115
|
+
font-size: ${jo};
|
|
116
|
+
font-weight: ${Yo};
|
|
117
|
+
letter-spacing: ${Jo};
|
|
118
|
+
line-height: ${Vo};
|
|
119
|
+
text-transform: ${qo};
|
|
120
120
|
}
|
|
121
121
|
`,ht`
|
|
122
122
|
.ft-typography--title-dense {
|
|
123
|
-
font-family: ${
|
|
124
|
-
font-size: ${
|
|
125
|
-
font-weight: ${
|
|
126
|
-
letter-spacing: ${
|
|
127
|
-
line-height: ${
|
|
128
|
-
text-transform: ${
|
|
123
|
+
font-family: ${Xo};
|
|
124
|
+
font-size: ${Qo};
|
|
125
|
+
font-weight: ${te};
|
|
126
|
+
letter-spacing: ${oe};
|
|
127
|
+
line-height: ${ee};
|
|
128
|
+
text-transform: ${re};
|
|
129
129
|
}
|
|
130
130
|
`,ht`
|
|
131
131
|
.ft-typography--subtitle1 {
|
|
132
|
-
font-family: ${
|
|
133
|
-
font-size: ${
|
|
134
|
-
font-weight: ${
|
|
135
|
-
letter-spacing: ${
|
|
136
|
-
line-height: ${
|
|
137
|
-
text-transform: ${
|
|
132
|
+
font-family: ${ie};
|
|
133
|
+
font-size: ${ae};
|
|
134
|
+
font-weight: ${ne};
|
|
135
|
+
letter-spacing: ${se};
|
|
136
|
+
line-height: ${le};
|
|
137
|
+
text-transform: ${ce};
|
|
138
138
|
}
|
|
139
139
|
`,ht`
|
|
140
140
|
.ft-typography--subtitle2 {
|
|
141
|
-
font-family: ${
|
|
142
|
-
font-size: ${
|
|
143
|
-
font-weight: ${
|
|
144
|
-
letter-spacing: ${
|
|
145
|
-
line-height: ${
|
|
146
|
-
text-transform: ${
|
|
141
|
+
font-family: ${pe};
|
|
142
|
+
font-size: ${fe};
|
|
143
|
+
font-weight: ${he};
|
|
144
|
+
letter-spacing: ${de};
|
|
145
|
+
line-height: ${ye};
|
|
146
|
+
text-transform: ${ge};
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
`,ht`
|
|
150
150
|
.ft-typography--body1 {
|
|
151
|
-
font-family: ${
|
|
152
|
-
font-size: ${
|
|
153
|
-
font-weight: ${
|
|
154
|
-
letter-spacing: ${
|
|
155
|
-
line-height: ${
|
|
156
|
-
text-transform: ${
|
|
151
|
+
font-family: ${ue};
|
|
152
|
+
font-size: ${be};
|
|
153
|
+
font-weight: ${me};
|
|
154
|
+
letter-spacing: ${Oe};
|
|
155
|
+
line-height: ${Ne};
|
|
156
|
+
text-transform: ${Se};
|
|
157
157
|
}
|
|
158
158
|
`,ht`
|
|
159
159
|
.ft-typography--body2 {
|
|
160
|
-
font-family: ${
|
|
161
|
-
font-size: ${
|
|
162
|
-
font-weight: ${
|
|
163
|
-
letter-spacing: ${
|
|
164
|
-
line-height: ${
|
|
165
|
-
text-transform: ${
|
|
160
|
+
font-family: ${xe};
|
|
161
|
+
font-size: ${we};
|
|
162
|
+
font-weight: ${Ce};
|
|
163
|
+
letter-spacing: ${ve};
|
|
164
|
+
line-height: ${Re};
|
|
165
|
+
text-transform: ${Ee};
|
|
166
166
|
}
|
|
167
|
-
`;const
|
|
167
|
+
`;const je=ht`
|
|
168
168
|
.ft-typography--caption {
|
|
169
|
-
font-family: ${
|
|
170
|
-
font-size: ${
|
|
171
|
-
font-weight: ${
|
|
172
|
-
letter-spacing: ${
|
|
173
|
-
line-height: ${
|
|
174
|
-
text-transform: ${
|
|
169
|
+
font-family: ${Ue.fontFamily};
|
|
170
|
+
font-size: ${Ue.fontSize};
|
|
171
|
+
font-weight: ${Ue.fontWeight};
|
|
172
|
+
letter-spacing: ${Ue.letterSpacing};
|
|
173
|
+
line-height: ${Ue.lineHeight};
|
|
174
|
+
text-transform: ${Ue.textTransform};
|
|
175
175
|
}
|
|
176
176
|
`;ht`
|
|
177
177
|
.ft-typography--breadcrumb {
|
|
178
|
-
font-family: ${
|
|
179
|
-
font-size: ${
|
|
180
|
-
font-weight: ${
|
|
181
|
-
letter-spacing: ${
|
|
182
|
-
line-height: ${
|
|
183
|
-
text-transform: ${
|
|
178
|
+
font-family: ${Ie};
|
|
179
|
+
font-size: ${We};
|
|
180
|
+
font-weight: ${Le};
|
|
181
|
+
letter-spacing: ${$e};
|
|
182
|
+
line-height: ${ke};
|
|
183
|
+
text-transform: ${Ke};
|
|
184
184
|
}
|
|
185
185
|
`,ht`
|
|
186
186
|
.ft-typography--overline {
|
|
187
|
-
font-family: ${
|
|
188
|
-
font-size: ${
|
|
189
|
-
font-weight: ${
|
|
190
|
-
letter-spacing: ${
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
187
|
+
font-family: ${Ze};
|
|
188
|
+
font-size: ${ze};
|
|
189
|
+
font-weight: ${Fe};
|
|
190
|
+
letter-spacing: ${Ae};
|
|
191
|
+
line-height: ${Me};
|
|
192
|
+
text-transform: ${De};
|
|
193
193
|
}
|
|
194
194
|
`,ht`
|
|
195
195
|
.ft-typography--button {
|
|
196
|
-
font-family: ${
|
|
197
|
-
font-size: ${
|
|
198
|
-
font-weight: ${
|
|
199
|
-
letter-spacing: ${
|
|
200
|
-
line-height: ${
|
|
201
|
-
text-transform: ${
|
|
196
|
+
font-family: ${Be};
|
|
197
|
+
font-size: ${Pe};
|
|
198
|
+
font-weight: ${He};
|
|
199
|
+
letter-spacing: ${_e};
|
|
200
|
+
line-height: ${Te};
|
|
201
|
+
text-transform: ${Ge};
|
|
202
202
|
}
|
|
203
203
|
`,ht`
|
|
204
204
|
.ft-typography {
|
|
@@ -213,25 +213,25 @@ const $o=1;class ko{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
|
|
|
213
213
|
line-height: ${o.lineHeight};
|
|
214
214
|
text-transform: ${o.textCase};
|
|
215
215
|
}
|
|
216
|
-
`}(t)));const
|
|
216
|
+
`}(t)));const Ye={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")},Je=ht`
|
|
217
217
|
.ft-input-label {
|
|
218
218
|
position: absolute;
|
|
219
219
|
inset: 0;
|
|
220
220
|
display: flex;
|
|
221
|
-
background-color: ${
|
|
222
|
-
border-radius: ${
|
|
221
|
+
background-color: ${Ye.colorSurface};
|
|
222
|
+
border-radius: ${Ye.borderRadiusS} ${Ye.borderRadiusS} 0 0;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
.ft-input-label--outlined {
|
|
226
|
-
border-radius: ${
|
|
226
|
+
border-radius: ${Ye.borderRadiusS};
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.ft-input-label {
|
|
230
|
-
border-color: ${
|
|
230
|
+
border-color: ${Ye.borderColor};
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.ft-input-label.ft-input-label--in-error {
|
|
234
|
-
border-color: ${
|
|
234
|
+
border-color: ${Ye.colorError}
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
.ft-input-label:before,
|
|
@@ -244,7 +244,7 @@ const $o=1;class ko{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
.ft-input-label:before {
|
|
247
|
-
width: calc(${
|
|
247
|
+
width: calc(${Ye.horizontalSpacing} - 4px);
|
|
248
248
|
flex-shrink: 0;
|
|
249
249
|
}
|
|
250
250
|
|
|
@@ -260,20 +260,20 @@ const $o=1;class ko{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
|
|
|
260
260
|
border-bottom-width: 1px;
|
|
261
261
|
border-bottom-style: solid;
|
|
262
262
|
border-color: inherit;
|
|
263
|
-
color: ${
|
|
263
|
+
color: ${Ye.textColor};
|
|
264
264
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
265
|
-
max-width: calc(${
|
|
265
|
+
max-width: calc(${Ye.labelMaxWidth} - 2 * (${Ye.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
266
266
|
text-overflow: ellipsis;
|
|
267
|
-
${go(
|
|
268
|
-
${go(
|
|
267
|
+
${go(Ue.fontSize,Ye.fontSize)};
|
|
268
|
+
${go(Ue.lineHeight,Ye.fontSize)};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.ft-input-label--in-error .ft-input-label--text {
|
|
272
|
-
color: ${
|
|
272
|
+
color: ${Ye.colorError}
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
.ft-input-label--disabled .ft-input-label--text {
|
|
276
|
-
color: ${
|
|
276
|
+
color: ${Ye.disabledTextColor};
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
.ft-input-label--hidden-text {
|
|
@@ -290,19 +290,19 @@ const $o=1;class ko{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
|
|
|
290
290
|
overflow: hidden;
|
|
291
291
|
white-space: nowrap;
|
|
292
292
|
text-overflow: ellipsis;
|
|
293
|
-
padding: ${
|
|
294
|
-
margin: calc(${
|
|
293
|
+
padding: ${Ye.verticalSpacing} 4px;
|
|
294
|
+
margin: calc(${Ye.verticalSpacing} * -1) 0;
|
|
295
295
|
max-width: 100%;
|
|
296
296
|
box-sizing: border-box;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
.ft-input-label--raised .ft-input-label--text {
|
|
300
|
-
${go(
|
|
301
|
-
${go(
|
|
300
|
+
${go(Ue.fontSize,Ye.raisedFontSize)};
|
|
301
|
+
${go(Ue.lineHeight,Ye.raisedFontSize)};
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
305
|
-
top: ${
|
|
305
|
+
top: ${Ye.verticalSpacing};
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -315,28 +315,28 @@ const $o=1;class ko{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
|
|
|
315
315
|
.ft-input-label--outlined:before {
|
|
316
316
|
border-left-width: 1px;
|
|
317
317
|
border-left-style: solid;
|
|
318
|
-
border-radius: ${
|
|
318
|
+
border-radius: ${Ye.borderRadiusS} 0 0 ${Ye.borderRadiusS};
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
.ft-input-label--outlined:after {
|
|
322
322
|
border-right-width: 1px;
|
|
323
323
|
border-right-style: solid;
|
|
324
|
-
border-radius: 0 ${
|
|
324
|
+
border-radius: 0 ${Ye.borderRadiusS} ${Ye.borderRadiusS} 0;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
328
328
|
padding: 2px 4px;
|
|
329
|
-
z-index: ${
|
|
330
|
-
background-color: ${
|
|
331
|
-
border-radius: ${
|
|
329
|
+
z-index: ${Ye.raisedZIndex};
|
|
330
|
+
background-color: ${Ye.colorSurface};
|
|
331
|
+
border-radius: ${Ye.borderRadiusS};
|
|
332
332
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
336
336
|
border-top: none;
|
|
337
337
|
}
|
|
338
|
-
`;var
|
|
339
|
-
<div class="${
|
|
338
|
+
`;var Ve,qe=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 Xe 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="${Po(t)}">
|
|
340
340
|
${this.text?Yt`
|
|
341
341
|
<div class="ft-input-label--text ft-typography--caption">
|
|
342
342
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -344,4 +344,4 @@ const $o=1;class ko{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e)
|
|
|
344
344
|
</div>
|
|
345
345
|
`:null}
|
|
346
346
|
</div>
|
|
347
|
-
`}}
|
|
347
|
+
`}}Xe.elementDefinitions={},Xe.styles=[je,Je],qe([C({type:String})],Xe.prototype,"text",void 0),qe([C({type:Boolean})],Xe.prototype,"raised",void 0),qe([C({type:Boolean})],Xe.prototype,"outlined",void 0),qe([C({type:Boolean})],Xe.prototype,"disabled",void 0),qe([C({type:Boolean})],Xe.prototype,"error",void 0),(Ve="ft-input-label",t=>{window.customElements.get(Ve)||window.customElements.define(Ve,t)})(Xe),t.FtInputLabel=Xe,t.FtInputLabelCssVariables=Ye,t.styles=Je}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-input-label",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
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.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-typography": "1.1.8",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.1.8",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "95fb2d06899d700513970ac830958922b98539df"
|
|
27
27
|
}
|