@fluid-topics/ft-text-field 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-text-field.min.js +182 -182
- package/package.json +7 -7
|
@@ -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,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=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,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 s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,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,c),this._definitionsByClass.set(r,c);let p=o.call(i,t);p||(p=f(t),e.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),g(t,c,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),i.upgrade.apply(i,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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 o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=p(o)||window.customElements,r=i._getDefinition(e);return r?g(o,r):n.set(o,i),o}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(){const t=r.get(this);t?.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)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},g=(t,e,o=!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.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=u.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=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,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 s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,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,c),this._definitionsByClass.set(r,c);let p=o.call(i,t);p||(p=f(t),e.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),g(t,c,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),i.upgrade.apply(i,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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 o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=p(o)||window.customElements,r=i._getDefinition(e);return r?g(o,r):n.set(o,i),o}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(){const t=r.get(this);t?.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)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},g=(t,e,o=!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.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=u.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ki){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -54,7 +54,7 @@ const N={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},S=(t=N,e,
|
|
|
54
54
|
* Copyright 2017 Google LLC
|
|
55
55
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
56
|
*/
|
|
57
|
-
const k=globalThis,W=k.trustedTypes,L=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+z,F=`<${Z}>`,D=document,
|
|
57
|
+
const k=globalThis,W=k.trustedTypes,L=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+z,F=`<${Z}>`,D=document,M=()=>D.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,P="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,_=/>/g,T=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,V=/"/g,Y=/^(?:script|style|textarea|title)$/i,J=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),q=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Q=new WeakMap,tt=D.createTreeWalker(D,129);function et(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(e):e}let ot=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,p]=((t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=H;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,p=0;for(;p<o.length&&(a.lastIndex=p,l=a.exec(o),null!==l);)p=a.lastIndex,a===H?"!--"===l[1]?a=j:void 0!==l[1]?a=_:void 0!==l[2]?(Y.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=T):void 0!==l[3]&&(a=T):a===T?">"===l[0]?(a=r??H,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?T:'"'===l[3]?V:G):a===V||a===G?a=T:a===j||a===_?a=H:(a=T,r=void 0);const f=a===T&&t[e+1].startsWith("/>")?" ":"";n+=a===H?o+F:c>=0?(i.push(s),o.slice(0,c)+K+o.slice(c)+z+f):o+z+(-2===c?e:f)}return[et(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]})(e,o);if(this.el=t.createElement(c,i),tt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=tt.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(K)){const e=p[a++],o=r.getAttribute(t).split(z),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?at:"?"===i[1]?st:"@"===i[1]?lt:nt}),r.removeAttribute(t)}else t.startsWith(z)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(Y.test(r.tagName)){const t=r.textContent.split(z),e=t.length-1;if(e>0){r.textContent=W?W.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],M()),tt.nextNode(),l.push({type:2,index:++n});r.append(t[e],M())}}}else if(8===r.nodeType)if(r.data===Z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(z,t+1));)l.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,e){const o=D.createElement("template");return o.innerHTML=t,o}};function it(t,e,o=t,i){if(e===q)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=A(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=it(t,r._$AS(t,e.values),r,i)),e}let rt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}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=it(this,t,e),A(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>B(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!==X&&A(this._$AH)?this._$AA.nextSibling.data=t:this.$(D.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ot.createElement(et(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??D).importNode(e,!0);tt.currentNode=i;let r=tt.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new rt(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new ct(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=tt.nextNode(),n++)}return tt.currentNode=D,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new ot(t)),e}T(e){B(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(M()),this.k(M()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},nt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=X,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=X}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=it(this,t,e,0),n=!A(t)||t!==this._$AH&&t!==q,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=it(this,i[o+a],e,a),s===q&&(s=this._$AH[a]),n||=!A(s)||s!==this._$AH[a],s===X?t=X:t!==X&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},at=class extends nt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===X?void 0:t}},st=class extends nt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==X)}},lt=class extends nt{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=it(this,t,e,0)??X)===q)return;const o=this._$AH,i=t===X&&o!==X||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==X&&(o===X||i);i&&this.element.removeEventListener(this.name,this,o),r&&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)}},ct=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}};const pt=k.litHtmlPolyfillSupport;pt?.(ot,rt),(k.litHtmlVersions??=[]).push("3.1.0");
|
|
58
58
|
/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2019 Google LLC
|
|
@@ -71,7 +71,7 @@ const ft=globalThis,ht=ft.ShadowRoot&&(void 0===ft.ShadyCSS||ft.ShadyCSS.nativeS
|
|
|
71
71
|
* Copyright 2017 Google LLC
|
|
72
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
73
|
*/
|
|
74
|
-
const Kt=globalThis,zt=Kt.trustedTypes,Zt=zt?zt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ft="$lit$",Dt=`lit$${(Math.random()+"").slice(9)}$`,
|
|
74
|
+
const Kt=globalThis,zt=Kt.trustedTypes,Zt=zt?zt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ft="$lit$",Dt=`lit$${(Math.random()+"").slice(9)}$`,Mt="?"+Dt,At=`<${Mt}>`,Bt=document,Pt=()=>Bt.createComment(""),Ht=t=>null===t||"object"!=typeof t&&"function"!=typeof t,jt=Array.isArray,_t="[ \t\n\f\r]",Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gt=/-->/g,Vt=/>/g,Yt=RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Jt=/'/g,qt=/"/g,Xt=/^(?:script|style|textarea|title)$/i,Qt=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),te=Symbol.for("lit-noChange"),ee=Symbol.for("lit-nothing"),oe=new WeakMap,ie=Bt.createTreeWalker(Bt,129);function re(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Zt?Zt.createHTML(e):e}const ne=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=Tt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,p=0;for(;p<o.length&&(a.lastIndex=p,l=a.exec(o),null!==l);)p=a.lastIndex,a===Tt?"!--"===l[1]?a=Gt:void 0!==l[1]?a=Vt:void 0!==l[2]?(Xt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Yt):void 0!==l[3]&&(a=Yt):a===Yt?">"===l[0]?(a=r??Tt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Yt:'"'===l[3]?qt:Jt):a===qt||a===Jt?a=Yt:a===Gt||a===Vt?a=Tt:(a=Yt,r=void 0);const f=a===Yt&&t[e+1].startsWith("/>")?" ":"";n+=a===Tt?o+At:c>=0?(i.push(s),o.slice(0,c)+Ft+o.slice(c)+Dt+f):o+Dt+(-2===c?e:f)}return[re(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class ae{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=ne(t,e);if(this.el=ae.createElement(l,o),ie.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=ie.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Ft)){const e=c[n++],o=i.getAttribute(t).split(Dt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?pe:"?"===a[1]?fe:"@"===a[1]?he:ce}),i.removeAttribute(t)}else t.startsWith(Dt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(Xt.test(i.tagName)){const t=i.textContent.split(Dt),e=t.length-1;if(e>0){i.textContent=zt?zt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Pt()),ie.nextNode(),s.push({type:2,index:++r});i.append(t[e],Pt())}}}else if(8===i.nodeType)if(i.data===Mt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Dt,t+1));)s.push({type:7,index:r}),t+=Dt.length-1}r++}}static createElement(t,e){const o=Bt.createElement("template");return o.innerHTML=t,o}}function se(t,e,o=t,i){if(e===te)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Ht(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=se(t,r._$AS(t,e.values),r,i)),e}class le{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ee,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}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=se(this,t,e),Ht(t)?t===ee||null==t||""===t?(this._$AH!==ee&&this._$AR(),this._$AH=ee):t!==this._$AH&&t!==te&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>jt(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!==ee&&Ht(this._$AH)?this._$AA.nextSibling.data=t:this.$(Bt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ae.createElement(re(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??Bt).importNode(e,!0);ie.currentNode=i;let r=ie.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new le(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new de(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=ie.nextNode(),n++)}return ie.currentNode=Bt,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=oe.get(t.strings);return void 0===e&&oe.set(t.strings,e=new ae(t)),e}T(t){jt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new le(this.k(Pt()),this.k(Pt()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ce{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ee,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ee}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=se(this,t,e,0),n=!Ht(t)||t!==this._$AH&&t!==te,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=se(this,i[o+a],e,a),s===te&&(s=this._$AH[a]),n||=!Ht(s)||s!==this._$AH[a],s===ee?t=ee:t!==ee&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class pe extends ce{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ee?void 0:t}}class fe extends ce{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ee)}}class he extends ce{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=se(this,t,e,0)??ee)===te)return;const o=this._$AH,i=t===ee&&o!==ee||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ee&&(o===ee||i);i&&this.element.removeEventListener(this.name,this,o),r&&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 de{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){se(this,t)}}const ge=Kt.litHtmlPolyfillSupport;ge?.(ae,le),(Kt.litHtmlVersions??=[]).push("3.1.0");
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
77
77
|
* Copyright 2017 Google LLC
|
|
@@ -82,7 +82,7 @@ class ue extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
82
82
|
* @license
|
|
83
83
|
* Copyright 2019 Google LLC
|
|
84
84
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
85
|
-
*/class $e extends ue{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Ce?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=we.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ee,Re=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ue=Symbol("constructorPrototype"),Ie=Symbol("constructorName"),ke=Symbol("exportpartsDebouncer");class We extends $e{constructor(){super(),this[Ee]=new R(5),this[Ie]=this.constructor.name,this[Ue]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ie]&&Object.setPrototypeOf(this,this[Ue])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).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[ke].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 e,o,i,r,n,a;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!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).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((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Ee=ke,Re([w()],We.prototype,"exportpartsPrefix",void 0),Re([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return w({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!U(t,e),...null!=e?e:{}})}([])],We.prototype,"exportpartsPrefixes",void 0),Re([w()],We.prototype,"customStylesheet",void 0);const Le=me.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");bt`
|
|
85
|
+
*/class $e extends ue{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Ce?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=we.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ee,Re=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ue=Symbol("constructorPrototype"),Ie=Symbol("constructorName"),ke=Symbol("exportpartsDebouncer");class We extends $e{constructor(){super(),this[Ee]=new R(5),this[Ie]=this.constructor.name,this[Ue]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ie]&&Object.setPrototypeOf(this,this[Ue])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).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[ke].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 e,o,i,r,n,a;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!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).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((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Ee=ke,Re([w()],We.prototype,"exportpartsPrefix",void 0),Re([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return w({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!U(t,e),...null!=e?e:{}})}([])],We.prototype,"exportpartsPrefixes",void 0),Re([w()],We.prototype,"customStylesheet",void 0);const Le=me.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");function Ke(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var ze,Ze,Fe;bt`
|
|
86
86
|
.highlight-html-match {
|
|
87
87
|
background: ${Le};
|
|
88
88
|
}
|
|
@@ -118,118 +118,118 @@ class ue extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
118
118
|
display: inline-block;
|
|
119
119
|
width: 0;
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
`;const De=Symbol("internalReduxEventsUnsubscribers"),Me=Symbol("internalStoresUnsubscribers"),Ae=Symbol("internalStores");class Be extends We{constructor(){super(...arguments),this[ze]=new Map,this[Ze]=new Map,this[Fe]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[Ae].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ae].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ae].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ke(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ae].delete(e)}setupStore(t,e){this[Ae].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ae].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Me].has(t.store):this[Me].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Me].set(t,e.subscribe((()=>this.updateFromStores()))),Ke(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[De].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Me].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[De].forEach((t=>t())),this[De]=[]}unsubscribeFromStore(t){this[Me].has(t)&&this[Me].get(t)(),this[Me].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}ze=Me,Ze=Ae,Fe=De,Be.reduxProperties=new Map,Be.reduxReactiveProperties=new Set,Be.reduxEventListeners=new Map,window.ftReduxStores||(window.ftReduxStores={});const Pe=Symbol("elementInternals");var He,je;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(je=null===(He=window.safari)||void 0===He?void 0:He.pushNotification)||void 0===je||je.toString());
|
|
122
122
|
/**
|
|
123
123
|
* @license
|
|
124
124
|
* Copyright 2017 Google LLC
|
|
125
125
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
126
126
|
*/
|
|
127
|
-
const
|
|
127
|
+
const _e=1,Te=2,Ge=t=>(...e)=>({_$litDirective$:t,values:e});let Ve=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
128
128
|
/**
|
|
129
129
|
* @license
|
|
130
130
|
* Copyright 2018 Google LLC
|
|
131
131
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
132
|
-
*/const
|
|
132
|
+
*/const Ye=Ge(class extends Ve{constructor(t){if(super(t),t.type!==_e||"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((e=>t[e])).join(" ")+" "}update(t,[e]){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 e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return q}}),Je=Symbol.for(""),qe=t=>{if(t?.r===Je)return t?._$litStatic$},Xe=t=>({_$litStatic$:t,r:Je}),Qe=new Map,to=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=qe(n));)l+=r+e[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),p){const t=a.join("$$lit$$");void 0===(e=Qe.get(t))&&(a.raw=a,Qe.set(t,e=a)),o=s}return t(e,...o)})(J);
|
|
133
133
|
/**
|
|
134
134
|
* @license
|
|
135
135
|
* Copyright 2018 Google LLC
|
|
136
136
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
137
|
-
*/var
|
|
137
|
+
*/var eo;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(eo||(eo={}));const oo=me.extend("--ft-typography-font-family","",Se.titleFont),io=me.extend("--ft-typography-font-family","",Se.contentFont),ro={fontFamily:io,fontSize:me.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:me.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:me.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:me.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:me.create("--ft-typography-text-transform","","UNKNOWN","inherit")},no=me.extend("--ft-typography-title-font-family","",oo),ao=me.extend("--ft-typography-title-font-size","",ro.fontSize,"20px"),so=me.extend("--ft-typography-title-font-weight","",ro.fontWeight,"normal"),lo=me.extend("--ft-typography-title-letter-spacing","",ro.letterSpacing,"0.15px"),co=me.extend("--ft-typography-title-line-height","",ro.lineHeight,"1.2"),po=me.extend("--ft-typography-title-text-transform","",ro.textTransform,"inherit"),fo=me.extend("--ft-typography-title-dense-font-family","",oo),ho=me.extend("--ft-typography-title-dense-font-size","",ro.fontSize,"14px"),go=me.extend("--ft-typography-title-dense-font-weight","",ro.fontWeight,"normal"),uo=me.extend("--ft-typography-title-dense-letter-spacing","",ro.letterSpacing,"0.105px"),yo=me.extend("--ft-typography-title-dense-line-height","",ro.lineHeight,"1.7"),bo=me.extend("--ft-typography-title-dense-text-transform","",ro.textTransform,"inherit"),mo=me.extend("--ft-typography-subtitle1-font-family","",io),xo=me.extend("--ft-typography-subtitle1-font-size","",ro.fontSize,"16px"),Oo=me.extend("--ft-typography-subtitle1-font-weight","",ro.fontWeight,"600"),vo=me.extend("--ft-typography-subtitle1-letter-spacing","",ro.letterSpacing,"0.144px"),No=me.extend("--ft-typography-subtitle1-line-height","",ro.lineHeight,"1.5"),So=me.extend("--ft-typography-subtitle1-text-transform","",ro.textTransform,"inherit"),wo=me.extend("--ft-typography-subtitle2-font-family","",io),Co=me.extend("--ft-typography-subtitle2-font-size","",ro.fontSize,"14px"),$o=me.extend("--ft-typography-subtitle2-font-weight","",ro.fontWeight,"normal"),Eo=me.extend("--ft-typography-subtitle2-letter-spacing","",ro.letterSpacing,"0.098px"),Ro=me.extend("--ft-typography-subtitle2-line-height","",ro.lineHeight,"1.7"),Uo=me.extend("--ft-typography-subtitle2-text-transform","",ro.textTransform,"inherit"),Io={fontFamily:me.extend("--ft-typography-body1-font-family","",io),fontSize:me.extend("--ft-typography-body1-font-size","",ro.fontSize,"16px"),fontWeight:me.extend("--ft-typography-body1-font-weight","",ro.fontWeight,"normal"),letterSpacing:me.extend("--ft-typography-body1-letter-spacing","",ro.letterSpacing,"0.496px"),lineHeight:me.extend("--ft-typography-body1-line-height","",ro.lineHeight,"1.5"),textTransform:me.extend("--ft-typography-body1-text-transform","",ro.textTransform,"inherit")},ko=me.extend("--ft-typography-body2-font-family","",io),Wo=me.extend("--ft-typography-body2-font-size","",ro.fontSize,"14px"),Lo=me.extend("--ft-typography-body2-font-weight","",ro.fontWeight,"normal"),Ko=me.extend("--ft-typography-body2-letter-spacing","",ro.letterSpacing,"0.252px"),zo=me.extend("--ft-typography-body2-line-height","",ro.lineHeight,"1.4"),Zo=me.extend("--ft-typography-body2-text-transform","",ro.textTransform,"inherit"),Fo={fontFamily:me.extend("--ft-typography-caption-font-family","",io),fontSize:me.extend("--ft-typography-caption-font-size","",ro.fontSize,"12px"),fontWeight:me.extend("--ft-typography-caption-font-weight","",ro.fontWeight,"normal"),letterSpacing:me.extend("--ft-typography-caption-letter-spacing","",ro.letterSpacing,"0.396px"),lineHeight:me.extend("--ft-typography-caption-line-height","",ro.lineHeight,"1.33"),textTransform:me.extend("--ft-typography-caption-text-transform","",ro.textTransform,"inherit")},Do=me.extend("--ft-typography-breadcrumb-font-family","",io),Mo=me.extend("--ft-typography-breadcrumb-font-size","",ro.fontSize,"10px"),Ao=me.extend("--ft-typography-breadcrumb-font-weight","",ro.fontWeight,"normal"),Bo=me.extend("--ft-typography-breadcrumb-letter-spacing","",ro.letterSpacing,"0.33px"),Po=me.extend("--ft-typography-breadcrumb-line-height","",ro.lineHeight,"1.6"),Ho=me.extend("--ft-typography-breadcrumb-text-transform","",ro.textTransform,"inherit"),jo=me.extend("--ft-typography-overline-font-family","",io),_o=me.extend("--ft-typography-overline-font-size","",ro.fontSize,"10px"),To=me.extend("--ft-typography-overline-font-weight","",ro.fontWeight,"normal"),Go=me.extend("--ft-typography-overline-letter-spacing","",ro.letterSpacing,"1.5px"),Vo=me.extend("--ft-typography-overline-line-height","",ro.lineHeight,"1.6"),Yo=me.extend("--ft-typography-overline-text-transform","",ro.textTransform,"uppercase"),Jo=me.extend("--ft-typography-button-font-family","",io),qo=me.extend("--ft-typography-button-font-size","",ro.fontSize,"14px"),Xo=me.extend("--ft-typography-button-font-weight","",ro.fontWeight,"600"),Qo=me.extend("--ft-typography-button-letter-spacing","",ro.letterSpacing,"1.246px"),ti=me.extend("--ft-typography-button-line-height","",ro.lineHeight,"1.15"),ei=me.extend("--ft-typography-button-text-transform","",ro.textTransform,"uppercase"),oi=bt`
|
|
138
138
|
.ft-typography--title {
|
|
139
|
-
font-family: ${
|
|
140
|
-
font-size: ${
|
|
141
|
-
font-weight: ${
|
|
142
|
-
letter-spacing: ${
|
|
143
|
-
line-height: ${
|
|
144
|
-
text-transform: ${
|
|
145
|
-
}
|
|
146
|
-
`,
|
|
139
|
+
font-family: ${no};
|
|
140
|
+
font-size: ${ao};
|
|
141
|
+
font-weight: ${so};
|
|
142
|
+
letter-spacing: ${lo};
|
|
143
|
+
line-height: ${co};
|
|
144
|
+
text-transform: ${po};
|
|
145
|
+
}
|
|
146
|
+
`,ii=bt`
|
|
147
147
|
.ft-typography--title-dense {
|
|
148
|
-
font-family: ${
|
|
149
|
-
font-size: ${
|
|
150
|
-
font-weight: ${
|
|
151
|
-
letter-spacing: ${
|
|
152
|
-
line-height: ${
|
|
153
|
-
text-transform: ${
|
|
154
|
-
}
|
|
155
|
-
`,
|
|
148
|
+
font-family: ${fo};
|
|
149
|
+
font-size: ${ho};
|
|
150
|
+
font-weight: ${go};
|
|
151
|
+
letter-spacing: ${uo};
|
|
152
|
+
line-height: ${yo};
|
|
153
|
+
text-transform: ${bo};
|
|
154
|
+
}
|
|
155
|
+
`,ri=bt`
|
|
156
156
|
.ft-typography--subtitle1 {
|
|
157
|
-
font-family: ${
|
|
158
|
-
font-size: ${
|
|
159
|
-
font-weight: ${
|
|
160
|
-
letter-spacing: ${
|
|
161
|
-
line-height: ${
|
|
162
|
-
text-transform: ${
|
|
163
|
-
}
|
|
164
|
-
`,
|
|
157
|
+
font-family: ${mo};
|
|
158
|
+
font-size: ${xo};
|
|
159
|
+
font-weight: ${Oo};
|
|
160
|
+
letter-spacing: ${vo};
|
|
161
|
+
line-height: ${No};
|
|
162
|
+
text-transform: ${So};
|
|
163
|
+
}
|
|
164
|
+
`,ni=bt`
|
|
165
165
|
.ft-typography--subtitle2 {
|
|
166
|
-
font-family: ${
|
|
167
|
-
font-size: ${
|
|
168
|
-
font-weight: ${
|
|
169
|
-
letter-spacing: ${
|
|
170
|
-
line-height: ${
|
|
171
|
-
text-transform: ${
|
|
166
|
+
font-family: ${wo};
|
|
167
|
+
font-size: ${Co};
|
|
168
|
+
font-weight: ${$o};
|
|
169
|
+
letter-spacing: ${Eo};
|
|
170
|
+
line-height: ${Ro};
|
|
171
|
+
text-transform: ${Uo};
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
`,
|
|
174
|
+
`,ai=bt`
|
|
175
175
|
.ft-typography--body1 {
|
|
176
|
-
font-family: ${
|
|
177
|
-
font-size: ${
|
|
178
|
-
font-weight: ${
|
|
179
|
-
letter-spacing: ${
|
|
180
|
-
line-height: ${
|
|
181
|
-
text-transform: ${
|
|
182
|
-
}
|
|
183
|
-
`,
|
|
176
|
+
font-family: ${Io.fontFamily};
|
|
177
|
+
font-size: ${Io.fontSize};
|
|
178
|
+
font-weight: ${Io.fontWeight};
|
|
179
|
+
letter-spacing: ${Io.letterSpacing};
|
|
180
|
+
line-height: ${Io.lineHeight};
|
|
181
|
+
text-transform: ${Io.textTransform};
|
|
182
|
+
}
|
|
183
|
+
`,si=bt`
|
|
184
184
|
.ft-typography--body2 {
|
|
185
|
-
font-family: ${
|
|
186
|
-
font-size: ${
|
|
187
|
-
font-weight: ${
|
|
188
|
-
letter-spacing: ${
|
|
189
|
-
line-height: ${
|
|
190
|
-
text-transform: ${
|
|
191
|
-
}
|
|
192
|
-
`,
|
|
185
|
+
font-family: ${ko};
|
|
186
|
+
font-size: ${Wo};
|
|
187
|
+
font-weight: ${Lo};
|
|
188
|
+
letter-spacing: ${Ko};
|
|
189
|
+
line-height: ${zo};
|
|
190
|
+
text-transform: ${Zo};
|
|
191
|
+
}
|
|
192
|
+
`,li=bt`
|
|
193
193
|
.ft-typography--caption {
|
|
194
|
-
font-family: ${
|
|
195
|
-
font-size: ${
|
|
196
|
-
font-weight: ${
|
|
197
|
-
letter-spacing: ${
|
|
198
|
-
line-height: ${
|
|
199
|
-
text-transform: ${
|
|
200
|
-
}
|
|
201
|
-
`,
|
|
194
|
+
font-family: ${Fo.fontFamily};
|
|
195
|
+
font-size: ${Fo.fontSize};
|
|
196
|
+
font-weight: ${Fo.fontWeight};
|
|
197
|
+
letter-spacing: ${Fo.letterSpacing};
|
|
198
|
+
line-height: ${Fo.lineHeight};
|
|
199
|
+
text-transform: ${Fo.textTransform};
|
|
200
|
+
}
|
|
201
|
+
`,ci=bt`
|
|
202
202
|
.ft-typography--breadcrumb {
|
|
203
|
-
font-family: ${
|
|
204
|
-
font-size: ${
|
|
205
|
-
font-weight: ${
|
|
206
|
-
letter-spacing: ${
|
|
207
|
-
line-height: ${
|
|
208
|
-
text-transform: ${
|
|
209
|
-
}
|
|
210
|
-
`,
|
|
203
|
+
font-family: ${Do};
|
|
204
|
+
font-size: ${Mo};
|
|
205
|
+
font-weight: ${Ao};
|
|
206
|
+
letter-spacing: ${Bo};
|
|
207
|
+
line-height: ${Po};
|
|
208
|
+
text-transform: ${Ho};
|
|
209
|
+
}
|
|
210
|
+
`,pi=bt`
|
|
211
211
|
.ft-typography--overline {
|
|
212
|
-
font-family: ${
|
|
213
|
-
font-size: ${
|
|
214
|
-
font-weight: ${
|
|
215
|
-
letter-spacing: ${
|
|
216
|
-
line-height: ${
|
|
217
|
-
text-transform: ${
|
|
218
|
-
}
|
|
219
|
-
`,
|
|
212
|
+
font-family: ${jo};
|
|
213
|
+
font-size: ${_o};
|
|
214
|
+
font-weight: ${To};
|
|
215
|
+
letter-spacing: ${Go};
|
|
216
|
+
line-height: ${Vo};
|
|
217
|
+
text-transform: ${Yo};
|
|
218
|
+
}
|
|
219
|
+
`,fi=bt`
|
|
220
220
|
.ft-typography--button {
|
|
221
|
-
font-family: ${
|
|
222
|
-
font-size: ${
|
|
223
|
-
font-weight: ${
|
|
224
|
-
letter-spacing: ${
|
|
225
|
-
line-height: ${
|
|
226
|
-
text-transform: ${
|
|
227
|
-
}
|
|
228
|
-
`,
|
|
221
|
+
font-family: ${Jo};
|
|
222
|
+
font-size: ${qo};
|
|
223
|
+
font-weight: ${Xo};
|
|
224
|
+
letter-spacing: ${Qo};
|
|
225
|
+
line-height: ${ti};
|
|
226
|
+
text-transform: ${ei};
|
|
227
|
+
}
|
|
228
|
+
`,hi=bt`
|
|
229
229
|
.ft-typography {
|
|
230
230
|
vertical-align: inherit;
|
|
231
231
|
}
|
|
232
|
-
`,
|
|
232
|
+
`,di=[Object.keys(ve).map((t=>function(t){const e=ve[t];return bt`
|
|
233
233
|
.ft-typography--${yt(t)} {
|
|
234
234
|
font-family: ${e.fontFamily};
|
|
235
235
|
font-size: ${e.fontSize};
|
|
@@ -238,32 +238,32 @@ const Fe=1,De=2,Ae=t=>(...e)=>({_$litDirective$:t,values:e});let Me=class{constr
|
|
|
238
238
|
line-height: ${e.lineHeight};
|
|
239
239
|
text-transform: ${e.textCase};
|
|
240
240
|
}
|
|
241
|
-
`}(t)))];var
|
|
242
|
-
<${
|
|
241
|
+
`}(t)))];var gi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ui extends We{constructor(){super(...arguments),this.variant=eo.body1}render(){return this.element?to`
|
|
242
|
+
<${Xe(this.element)}
|
|
243
243
|
class="ft-typography ft-typography--${this.variant}">
|
|
244
244
|
<slot></slot>
|
|
245
|
-
</${
|
|
246
|
-
`:
|
|
245
|
+
</${Xe(this.element)}>
|
|
246
|
+
`:to`
|
|
247
247
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
248
|
-
`}}
|
|
248
|
+
`}}ui.styles=[oi,ii,ri,ni,ai,si,li,ci,pi,fi,hi,...di],gi([w()],ui.prototype,"element",void 0),gi([w()],ui.prototype,"variant",void 0),I("ft-typography")(ui);const yi={fontSize:me.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:me.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:me.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:me.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:me.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:me.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:me.extend("--ft-input-label-border-color","",Se.colorOutline),textColor:me.extend("--ft-input-label-text-color","",Se.colorOnSurfaceMedium),disabledTextColor:me.extend("--ft-input-label-disabled-text-color","",Se.colorOnSurfaceDisabled),colorSurface:me.external(Se.colorSurface,"Design system"),borderRadiusS:me.external(Se.borderRadiusS,"Design system"),colorError:me.external(Se.colorError,"Design system")},bi=bt`
|
|
249
249
|
.ft-input-label {
|
|
250
250
|
position: absolute;
|
|
251
251
|
inset: 0;
|
|
252
252
|
display: flex;
|
|
253
|
-
background-color: ${
|
|
254
|
-
border-radius: ${
|
|
253
|
+
background-color: ${yi.colorSurface};
|
|
254
|
+
border-radius: ${yi.borderRadiusS} ${yi.borderRadiusS} 0 0;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
.ft-input-label--outlined {
|
|
258
|
-
border-radius: ${
|
|
258
|
+
border-radius: ${yi.borderRadiusS};
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
.ft-input-label {
|
|
262
|
-
border-color: ${
|
|
262
|
+
border-color: ${yi.borderColor};
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
.ft-input-label.ft-input-label--in-error {
|
|
266
|
-
border-color: ${
|
|
266
|
+
border-color: ${yi.colorError}
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
.ft-input-label:before,
|
|
@@ -276,7 +276,7 @@ const Fe=1,De=2,Ae=t=>(...e)=>({_$litDirective$:t,values:e});let Me=class{constr
|
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
.ft-input-label:before {
|
|
279
|
-
width: calc(${
|
|
279
|
+
width: calc(${yi.horizontalSpacing} - 4px);
|
|
280
280
|
flex-shrink: 0;
|
|
281
281
|
}
|
|
282
282
|
|
|
@@ -292,20 +292,20 @@ const Fe=1,De=2,Ae=t=>(...e)=>({_$litDirective$:t,values:e});let Me=class{constr
|
|
|
292
292
|
border-bottom-width: 1px;
|
|
293
293
|
border-bottom-style: solid;
|
|
294
294
|
border-color: inherit;
|
|
295
|
-
color: ${
|
|
295
|
+
color: ${yi.textColor};
|
|
296
296
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
297
|
-
max-width: calc(${
|
|
297
|
+
max-width: calc(${yi.labelMaxWidth} - 2 * (${yi.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
298
298
|
text-overflow: ellipsis;
|
|
299
|
-
${xe(
|
|
300
|
-
${xe(
|
|
299
|
+
${xe(Fo.fontSize,yi.fontSize)};
|
|
300
|
+
${xe(Fo.lineHeight,yi.fontSize)};
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
.ft-input-label--in-error .ft-input-label--text {
|
|
304
|
-
color: ${
|
|
304
|
+
color: ${yi.colorError}
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
.ft-input-label--disabled .ft-input-label--text {
|
|
308
|
-
color: ${
|
|
308
|
+
color: ${yi.disabledTextColor};
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
.ft-input-label--hidden-text {
|
|
@@ -322,19 +322,19 @@ const Fe=1,De=2,Ae=t=>(...e)=>({_$litDirective$:t,values:e});let Me=class{constr
|
|
|
322
322
|
overflow: hidden;
|
|
323
323
|
white-space: nowrap;
|
|
324
324
|
text-overflow: ellipsis;
|
|
325
|
-
padding: ${
|
|
326
|
-
margin: calc(${
|
|
325
|
+
padding: ${yi.verticalSpacing} 4px;
|
|
326
|
+
margin: calc(${yi.verticalSpacing} * -1) 0;
|
|
327
327
|
max-width: 100%;
|
|
328
328
|
box-sizing: border-box;
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
.ft-input-label--raised .ft-input-label--text {
|
|
332
|
-
${xe(
|
|
333
|
-
${xe(
|
|
332
|
+
${xe(Fo.fontSize,yi.raisedFontSize)};
|
|
333
|
+
${xe(Fo.lineHeight,yi.raisedFontSize)};
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
337
|
-
top: ${
|
|
337
|
+
top: ${yi.verticalSpacing};
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -347,28 +347,28 @@ const Fe=1,De=2,Ae=t=>(...e)=>({_$litDirective$:t,values:e});let Me=class{constr
|
|
|
347
347
|
.ft-input-label--outlined:before {
|
|
348
348
|
border-left-width: 1px;
|
|
349
349
|
border-left-style: solid;
|
|
350
|
-
border-radius: ${
|
|
350
|
+
border-radius: ${yi.borderRadiusS} 0 0 ${yi.borderRadiusS};
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
.ft-input-label--outlined:after {
|
|
354
354
|
border-right-width: 1px;
|
|
355
355
|
border-right-style: solid;
|
|
356
|
-
border-radius: 0 ${
|
|
356
|
+
border-radius: 0 ${yi.borderRadiusS} ${yi.borderRadiusS} 0;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
360
360
|
padding: 2px 4px;
|
|
361
|
-
z-index: ${
|
|
362
|
-
background-color: ${
|
|
363
|
-
border-radius: ${
|
|
361
|
+
z-index: ${yi.raisedZIndex};
|
|
362
|
+
background-color: ${yi.colorSurface};
|
|
363
|
+
border-radius: ${yi.borderRadiusS};
|
|
364
364
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
368
368
|
border-top: none;
|
|
369
369
|
}
|
|
370
|
-
`;var
|
|
371
|
-
<div class="${
|
|
370
|
+
`;var mi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xi extends We{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 Qt`
|
|
371
|
+
<div class="${Ye(t)}">
|
|
372
372
|
${this.text?Qt`
|
|
373
373
|
<div class="ft-input-label--text ft-typography--caption">
|
|
374
374
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -376,7 +376,7 @@ const Fe=1,De=2,Ae=t=>(...e)=>({_$litDirective$:t,values:e});let Me=class{constr
|
|
|
376
376
|
</div>
|
|
377
377
|
`:null}
|
|
378
378
|
</div>
|
|
379
|
-
`}}
|
|
379
|
+
`}}xi.elementDefinitions={},xi.styles=[li,bi],mi([w({type:String})],xi.prototype,"text",void 0),mi([w({type:Boolean})],xi.prototype,"raised",void 0),mi([w({type:Boolean})],xi.prototype,"outlined",void 0),mi([w({type:Boolean})],xi.prototype,"disabled",void 0),mi([w({type:Boolean})],xi.prototype,"error",void 0),I("ft-input-label")(xi);const Oi=me.extend("--ft-ripple-color","",Se.colorContent),vi={color:Oi,backgroundColor:me.extend("--ft-ripple-background-color","",Oi),opacityContentOnSurfacePressed:me.external(Se.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:me.external(Se.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:me.external(Se.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:me.external(Se.opacityContentOnSurfaceSelected,"Design system"),borderRadius:me.create("--ft-ripple-border-radius","","SIZE","0px")},Ni=me.extend("--ft-ripple-color","",Se.colorPrimary),Si=Ni,wi=me.extend("--ft-ripple-background-color","",Ni),Ci=me.extend("--ft-ripple-color","",Se.colorSecondary),$i=Ci,Ei=me.extend("--ft-ripple-background-color","",Ci),Ri=bt`
|
|
380
380
|
:host {
|
|
381
381
|
display: contents;
|
|
382
382
|
}
|
|
@@ -389,7 +389,7 @@ const Fe=1,De=2,Ae=t=>(...e)=>({_$litDirective$:t,values:e});let Me=class{constr
|
|
|
389
389
|
|
|
390
390
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
391
391
|
overflow: hidden;
|
|
392
|
-
border-radius: ${
|
|
392
|
+
border-radius: ${vi.borderRadius};
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
.ft-ripple .ft-ripple--background,
|
|
@@ -423,27 +423,27 @@ const Fe=1,De=2,Ae=t=>(...e)=>({_$litDirective$:t,values:e});let Me=class{constr
|
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
.ft-ripple .ft-ripple--background {
|
|
426
|
-
background-color: ${
|
|
426
|
+
background-color: ${vi.backgroundColor};
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
.ft-ripple .ft-ripple--effect {
|
|
430
|
-
background-color: ${
|
|
430
|
+
background-color: ${vi.color};
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
434
|
-
background-color: ${
|
|
434
|
+
background-color: ${Ei};
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
438
|
-
background-color: ${
|
|
438
|
+
background-color: ${$i};
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
442
|
-
background-color: ${
|
|
442
|
+
background-color: ${wi};
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
446
|
-
background-color: ${
|
|
446
|
+
background-color: ${Si};
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
.ft-ripple .ft-ripple--background {
|
|
@@ -473,39 +473,39 @@ const Fe=1,De=2,Ae=t=>(...e)=>({_$litDirective$:t,values:e});let Me=class{constr
|
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
476
|
-
opacity: ${
|
|
476
|
+
opacity: ${vi.opacityContentOnSurfaceHover};
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
480
|
-
opacity: ${
|
|
480
|
+
opacity: ${vi.opacityContentOnSurfaceSelected};
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
484
|
-
opacity: ${
|
|
484
|
+
opacity: ${vi.opacityContentOnSurfaceFocused};
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
488
|
-
opacity: ${
|
|
488
|
+
opacity: ${vi.opacityContentOnSurfacePressed};
|
|
489
489
|
transform: translate(-50%, -50%) scale(1);
|
|
490
490
|
}
|
|
491
|
-
`;var
|
|
491
|
+
`;var Ui=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ii extends We{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new R(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new R(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
|
|
492
492
|
<style>
|
|
493
493
|
.ft-ripple .ft-ripple--effect {
|
|
494
494
|
left: ${this.originX}px;
|
|
495
495
|
top: ${this.originY}px;
|
|
496
496
|
}
|
|
497
497
|
</style>
|
|
498
|
-
<div class="${
|
|
498
|
+
<div class="${Ye(t)}">
|
|
499
499
|
<div class="ft-ripple--background"></div>
|
|
500
500
|
<div class="ft-ripple--effect"></div>
|
|
501
501
|
</div>
|
|
502
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
502
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ii.elementDefinitions={},Ii.styles=Ri,Ui([w({type:Boolean})],Ii.prototype,"primary",void 0),Ui([w({type:Boolean})],Ii.prototype,"secondary",void 0),Ui([w({type:Boolean})],Ii.prototype,"unbounded",void 0),Ui([w({type:Boolean})],Ii.prototype,"activated",void 0),Ui([w({type:Boolean})],Ii.prototype,"selected",void 0),Ui([w({type:Boolean})],Ii.prototype,"disabled",void 0),Ui([C()],Ii.prototype,"hovered",void 0),Ui([C()],Ii.prototype,"focused",void 0),Ui([C()],Ii.prototype,"pressed",void 0),Ui([C()],Ii.prototype,"rippling",void 0),Ui([C()],Ii.prototype,"originX",void 0),Ui([C()],Ii.prototype,"originY",void 0),Ui([E(".ft-ripple")],Ii.prototype,"ripple",void 0),Ui([E(".ft-ripple--effect")],Ii.prototype,"rippleEffect",void 0),I("ft-ripple")(Ii);
|
|
503
503
|
/**
|
|
504
504
|
* @license
|
|
505
505
|
* Copyright 2017 Google LLC
|
|
506
506
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
507
507
|
*/
|
|
508
|
-
class
|
|
508
|
+
class ki extends Ve{constructor(t){if(super(t),this.et=X,t.type!==Te)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.vt=void 0,this.et=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ki.directiveName="unsafeHTML",ki.resultType=1;const Wi=Ge(ki);var Li,Ki;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Li||(Li={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Ki||(Ki={})),new Map([...["abw"].map((t=>[t,Ki.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ki.AUDIO])),...["avi"].map((t=>[t,Ki.AVI])),...["chm","xhs"].map((t=>[t,Ki.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ki.CODE])),...["csv"].map((t=>[t,Ki.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ki.DITA])),...["epub"].map((t=>[t,Ki.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ki.EXCEL])),...["flac"].map((t=>[t,Ki.FLAC])),...["gif"].map((t=>[t,Ki.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ki.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ki.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ki.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ki.JPEG])),...["json"].map((t=>[t,Ki.JSON])),...["m4a","m4p"].map((t=>[t,Ki.M4A])),...["mov","qt"].map((t=>[t,Ki.MOV])),...["mp3"].map((t=>[t,Ki.MP3])),...["mp4","m4v"].map((t=>[t,Ki.MP4])),...["ogg","oga"].map((t=>[t,Ki.OGG])),...["pdf","ps"].map((t=>[t,Ki.PDF])),...["png"].map((t=>[t,Ki.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ki.POWERPOINT])),...["rar"].map((t=>[t,Ki.RAR])),...["stp"].map((t=>[t,Ki.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ki.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ki.VIDEO])),...["wav"].map((t=>[t,Ki.WAV])),...["wma"].map((t=>[t,Ki.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ki.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ki.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ki.YAML])),...["zip"].map((t=>[t,Ki.ZIP]))]);const zi=me.create("--ft-icon-font-size","","SIZE","24px"),Zi=me.extend("--ft-icon-fluid-topics-font-family","",me.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),Fi=me.extend("--ft-icon-file-format-font-family","",me.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),Di=me.extend("--ft-icon-material-font-family","",me.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),Mi=me.create("--ft-icon-vertical-align","","UNKNOWN","unset"),Ai=bt`
|
|
509
509
|
:host, i.ft-icon {
|
|
510
510
|
display: inline-flex;
|
|
511
511
|
align-items: center;
|
|
@@ -514,14 +514,14 @@ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)throw Error
|
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
:host {
|
|
517
|
-
width: ${
|
|
518
|
-
height: ${
|
|
517
|
+
width: ${zi};
|
|
518
|
+
height: ${zi};
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
i.ft-icon {
|
|
522
522
|
width: 100%;
|
|
523
523
|
height: 100%;
|
|
524
|
-
font-size: ${
|
|
524
|
+
font-size: ${zi};
|
|
525
525
|
line-height: 1;
|
|
526
526
|
font-weight: normal;
|
|
527
527
|
text-transform: none;
|
|
@@ -532,33 +532,33 @@ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)throw Error
|
|
|
532
532
|
text-rendering: auto;
|
|
533
533
|
-webkit-font-smoothing: antialiased;
|
|
534
534
|
-moz-osx-font-smoothing: grayscale;
|
|
535
|
-
vertical-align: ${
|
|
535
|
+
vertical-align: ${Mi};
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
i.ft-icon.ft-icon--fluid-topics {
|
|
539
|
-
font-family: ${
|
|
539
|
+
font-family: ${Zi}, ft-icons, fticons, sans-serif;
|
|
540
540
|
|
|
541
541
|
/* Ugly fix because font is broken */
|
|
542
|
-
font-size: calc(0.75 * ${
|
|
543
|
-
line-height: ${
|
|
542
|
+
font-size: calc(0.75 * ${zi});
|
|
543
|
+
line-height: ${zi};
|
|
544
544
|
position: relative;
|
|
545
545
|
top: -4%;
|
|
546
546
|
justify-content: center;
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
.ft-icon--file-format {
|
|
550
|
-
font-family: ${
|
|
550
|
+
font-family: ${Fi}, ft-mime, sans-serif;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
.ft-icon--material {
|
|
554
|
-
font-family: ${
|
|
554
|
+
font-family: ${Di}, "Material Icons", sans-serif;
|
|
555
555
|
}
|
|
556
|
-
`;var
|
|
556
|
+
`;var Bi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Bi||(Bi={}));var Pi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Hi extends We{constructor(){super(...arguments),this.resolvedIcon=ee}render(){const t=this.variant&&Object.values(Bi).includes(this.variant)?this.variant:Bi.fluid_topics,e=t!==Bi.material||!!this.value;return Qt`
|
|
557
557
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
558
|
-
${
|
|
558
|
+
${Wi(this.resolvedIcon)}
|
|
559
559
|
<slot ?hidden=${e}></slot>
|
|
560
560
|
</i>
|
|
561
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case
|
|
561
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Bi.file_format:this.resolvedIcon=null!==(t=Ki[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Bi.material:this.resolvedIcon=this.value||ee;break;default:this.resolvedIcon=null!==(e=Li[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Hi.elementDefinitions={},Hi.styles=Ai,Pi([w()],Hi.prototype,"variant",void 0),Pi([w()],Hi.prototype,"value",void 0),Pi([C()],Hi.prototype,"resolvedIcon",void 0),Pi([E("slot")],Hi.prototype,"slottedContent",void 0),I("ft-icon")(Hi);const ji={fontSize:me.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:me.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:me.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:me.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:me.extend("--ft-text-field-helper-color","",Se.colorOnSurfaceMedium),colorPrimary:me.external(Se.colorPrimary,"Design system"),colorOnSurface:me.external(Se.colorOnSurface,"Design system"),colorOnSurfaceDisabled:me.external(Se.colorOnSurfaceDisabled,"Design system"),borderRadiusS:me.external(Se.borderRadiusS,"Design system"),colorError:me.external(Se.colorError,"Design system"),prefixColor:me.extend("--ft-text-field-prefix-color","",Se.colorOnSurfaceMedium),iconColor:me.extend("--ft-text-field-icon-color","",Se.colorOnSurfaceMedium),floatingZIndex:me.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:me.external(Se.colorSurface,"Design system"),colorOutline:me.external(Se.colorOutline,"Design system"),elevation02:me.external(Se.elevation02,"Design system"),suggestSize:me.create("--ft-text-field-suggest-size","","SIZE","300px")},_i=bt`
|
|
562
562
|
*:focus {
|
|
563
563
|
outline: none;
|
|
564
564
|
}
|
|
@@ -571,16 +571,16 @@ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)throw Error
|
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
ft-input-label {
|
|
574
|
-
${xe(
|
|
575
|
-
${xe(
|
|
576
|
-
${xe(
|
|
577
|
-
${xe(
|
|
574
|
+
${xe(yi.fontSize,ji.fontSize)};
|
|
575
|
+
${xe(yi.raisedFontSize,ji.labelSize)};
|
|
576
|
+
${xe(yi.verticalSpacing,ji.verticalSpacing)};
|
|
577
|
+
${xe(yi.horizontalSpacing,ji.horizontalSpacing)};
|
|
578
578
|
}
|
|
579
579
|
|
|
580
580
|
.ft-text-field--main-panel {
|
|
581
581
|
position: relative;
|
|
582
582
|
display: flex;
|
|
583
|
-
height: calc(4 * ${
|
|
583
|
+
height: calc(4 * ${ji.verticalSpacing} + ${ji.labelSize} + ${ji.fontSize});
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
.ft-text-field--input-panel {
|
|
@@ -589,24 +589,24 @@ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)throw Error
|
|
|
589
589
|
display: flex;
|
|
590
590
|
align-items: center;
|
|
591
591
|
overflow: hidden;
|
|
592
|
-
padding: 0 ${
|
|
592
|
+
padding: 0 ${ji.horizontalSpacing};
|
|
593
593
|
|
|
594
|
-
${xe(
|
|
595
|
-
${xe(
|
|
594
|
+
${xe(Io.fontSize,ji.fontSize)};
|
|
595
|
+
${xe(Io.lineHeight,ji.fontSize)};
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
.ft-text-field--input-panel ft-ripple {
|
|
599
|
-
${xe(
|
|
600
|
-
${xe(
|
|
599
|
+
${xe(vi.opacityContentOnSurfaceHover,"0.08")};
|
|
600
|
+
${xe(vi.opacityContentOnSurfacePressed,"0.04")};
|
|
601
601
|
}
|
|
602
602
|
|
|
603
603
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
604
604
|
align-items: flex-end;
|
|
605
|
-
padding: 0 ${
|
|
605
|
+
padding: 0 ${ji.horizontalSpacing} ${ji.verticalSpacing} ${ji.horizontalSpacing};
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
.ft-text-field--prefix {
|
|
609
|
-
color: ${
|
|
609
|
+
color: ${ji.prefixColor};
|
|
610
610
|
margin-right: 2px;
|
|
611
611
|
flex-shrink: 1;
|
|
612
612
|
overflow: hidden;
|
|
@@ -625,15 +625,15 @@ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)throw Error
|
|
|
625
625
|
flex-shrink: 1;
|
|
626
626
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
627
627
|
|
|
628
|
-
color: ${
|
|
629
|
-
padding: calc(2 * ${
|
|
628
|
+
color: ${ji.colorOnSurface};
|
|
629
|
+
padding: calc(2 * ${ji.verticalSpacing}) 0;
|
|
630
630
|
border: none;
|
|
631
631
|
background: none;
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
635
635
|
padding-bottom: 0;
|
|
636
|
-
padding-top: calc(${
|
|
636
|
+
padding-top: calc(${ji.labelSize} + 2 * ${ji.verticalSpacing});
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -642,37 +642,37 @@ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)throw Error
|
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
.ft-text-field--disabled .ft-text-field--input {
|
|
645
|
-
color: ${
|
|
645
|
+
color: ${ji.colorOnSurfaceDisabled};
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
649
|
-
${xe(
|
|
650
|
-
${xe(
|
|
649
|
+
${xe(yi.borderColor,ji.colorPrimary)};
|
|
650
|
+
${xe(yi.textColor,ji.colorPrimary)};
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
654
|
-
border-radius: ${
|
|
654
|
+
border-radius: ${ji.borderRadiusS} ${ji.borderRadiusS} 0 0;
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
658
|
-
border-radius: ${
|
|
658
|
+
border-radius: ${ji.borderRadiusS};
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
.ft-text-field--helper-text {
|
|
662
|
-
padding: 0 12px 0 ${
|
|
663
|
-
color: ${
|
|
662
|
+
padding: 0 12px 0 ${ji.horizontalSpacing};
|
|
663
|
+
color: ${ji.helperColor};
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
.ft-text-field--in-error .ft-text-field--input,
|
|
667
667
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
668
668
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
669
|
-
color: ${
|
|
669
|
+
color: ${ji.colorError};
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
.ft-text-field--icon {
|
|
673
673
|
align-self: center;
|
|
674
674
|
margin-left: 8px;
|
|
675
|
-
color: ${
|
|
675
|
+
color: ${ji.iconColor};
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
.ft-text-field--container {
|
|
@@ -685,13 +685,13 @@ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)throw Error
|
|
|
685
685
|
position: absolute;
|
|
686
686
|
left: 0;
|
|
687
687
|
right: 0;
|
|
688
|
-
z-index: ${
|
|
689
|
-
background: ${
|
|
690
|
-
border: 1px solid ${
|
|
691
|
-
border-radius: 0 0 ${
|
|
692
|
-
box-shadow: ${
|
|
688
|
+
z-index: ${ji.floatingZIndex};
|
|
689
|
+
background: ${ji.colorSurface};
|
|
690
|
+
border: 1px solid ${ji.colorOutline};
|
|
691
|
+
border-radius: 0 0 ${ji.borderRadiusS} ${ji.borderRadiusS};
|
|
692
|
+
box-shadow: ${ji.elevation02};
|
|
693
693
|
outline: none;
|
|
694
|
-
max-height: ${
|
|
694
|
+
max-height: ${ji.suggestSize};
|
|
695
695
|
overflow-y: auto;
|
|
696
696
|
}
|
|
697
697
|
|
|
@@ -708,14 +708,14 @@ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)throw Error
|
|
|
708
708
|
}
|
|
709
709
|
|
|
710
710
|
.ft-text-field--with-icon {
|
|
711
|
-
${xe(
|
|
711
|
+
${xe(yi.labelMaxWidth,`calc(100% - ${zi} - ${yi.horizontalSpacing})`)};
|
|
712
712
|
}
|
|
713
713
|
|
|
714
714
|
.ft-text-field--with-password ft-icon:hover {
|
|
715
715
|
cursor: pointer;
|
|
716
716
|
}
|
|
717
|
-
`;var
|
|
718
|
-
<div class="${
|
|
717
|
+
`;var Ti=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Gi extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Pe].form}constructor(...t){super(t),this[Pe]=this.attachInternals(),this[Pe].role=e}setFormValue(t){this[Pe].setFormValue(t)}}}(We,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Li.EYE_SLASH,this.passwordRevealedIcon=Li.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return Qt`
|
|
718
|
+
<div class="${Ye(t)}">
|
|
719
719
|
<div class="ft-text-field--main-panel"
|
|
720
720
|
@keydown=${this.handleKeyboardNavigation}
|
|
721
721
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -770,12 +770,12 @@ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)throw Error
|
|
|
770
770
|
.variant=${this.iconVariant}
|
|
771
771
|
.value=${this.icon}
|
|
772
772
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
773
|
-
`:ee}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,o;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),i=null===(o=this.suggestionsContainer)||void 0===o?void 0:o.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}
|
|
773
|
+
`:ee}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,o;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),i=null===(o=this.suggestionsContainer)||void 0===o?void 0:o.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Gi.elementDefinitions={"ft-input-label":xi,"ft-ripple":Ii,"ft-typography":ui,"ft-icon":Hi},Gi.styles=[ai,_i],Ti([w()],Gi.prototype,"label",void 0),Ti([w({noAccessor:!0})],Gi.prototype,"value",null),Ti([C()],Gi.prototype,"dispatchedValue",void 0),Ti([w()],Gi.prototype,"helper",void 0),Ti([w({type:Boolean})],Gi.prototype,"outlined",void 0),Ti([w({type:Boolean})],Gi.prototype,"disabled",void 0),Ti([w({type:Boolean})],Gi.prototype,"error",void 0),Ti([w()],Gi.prototype,"prefix",void 0),Ti([w()],Gi.prototype,"icon",void 0),Ti([w()],Gi.prototype,"passwordHiddenIcon",void 0),Ti([w()],Gi.prototype,"passwordRevealedIcon",void 0),Ti([w()],Gi.prototype,"iconVariant",void 0),Ti([w({type:Boolean})],Gi.prototype,"filterSuggestions",void 0),Ti([w({type:Number})],Gi.prototype,"maxLength",void 0),Ti([w({type:Boolean})],Gi.prototype,"password",void 0),Ti([C()],Gi.prototype,"focused",void 0),Ti([C()],Gi.prototype,"hidePassword",void 0),Ti([C()],Gi.prototype,"suggestionsOnTop",void 0),Ti([C()],Gi.prototype,"hideSuggestions",void 0),Ti([C()],Gi.prototype,"visibleSuggestions",void 0),Ti([E(".ft-text-field--main-panel")],Gi.prototype,"mainPanel",void 0),Ti([E(".ft-text-field--input")],Gi.prototype,"input",void 0),Ti([E(".ft-text-field--suggestions")],Gi.prototype,"suggestionsContainer",void 0),Ti([function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return $(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}
|
|
774
774
|
/**
|
|
775
775
|
* @license
|
|
776
776
|
* Copyright 2017 Google LLC
|
|
777
777
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
778
|
-
*/({selector:"ft-text-field-suggestion"})],
|
|
778
|
+
*/({selector:"ft-text-field-suggestion"})],Gi.prototype,"suggestions",void 0);const Vi=bt`
|
|
779
779
|
.ft-text-field-suggestion {
|
|
780
780
|
position: relative;
|
|
781
781
|
padding: 8px 16px;
|
|
@@ -800,7 +800,7 @@ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)throw Error
|
|
|
800
800
|
slot {
|
|
801
801
|
pointer-events: none;
|
|
802
802
|
}
|
|
803
|
-
`;var
|
|
803
|
+
`;var Yi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ji extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class qi extends We{render(){return Qt`
|
|
804
804
|
<div class="ft-text-field-suggestion"
|
|
805
805
|
tabindex="-1"
|
|
806
806
|
@keydown=${this.onKeyDown}
|
|
@@ -812,4 +812,4 @@ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)throw Error
|
|
|
812
812
|
<slot></slot>
|
|
813
813
|
</ft-typography>
|
|
814
814
|
</div>
|
|
815
|
-
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new
|
|
815
|
+
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Ji(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}qi.elementDefinitions={"ft-ripple":Ii,"ft-typography":ui,"ft-icon":Hi},qi.styles=Vi,Yi([w()],qi.prototype,"value",void 0),Yi([E(".ft-text-field-suggestion")],qi.prototype,"container",void 0),Yi([function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return $(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],qi.prototype,"assignedNodes",void 0),I("ft-text-field")(Gi),I("ft-text-field-suggestion")(qi),t.FtTextField=Gi,t.FtTextFieldCssVariables=ji,t.FtTextFieldSuggestion=qi,t.SuggestionSelectedEvent=Ji,t.styles=_i,t.suggestionStyles=Vi}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-text-field",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "A fluidtopics text field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "1.1.
|
|
23
|
-
"@fluid-topics/ft-input-label": "1.1.
|
|
24
|
-
"@fluid-topics/ft-ripple": "1.1.
|
|
25
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.1.8",
|
|
23
|
+
"@fluid-topics/ft-input-label": "1.1.8",
|
|
24
|
+
"@fluid-topics/ft-ripple": "1.1.8",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.1.8",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.1.8",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "95fb2d06899d700513970ac830958922b98539df"
|
|
30
30
|
}
|