@fluid-topics/ft-search-bar 0.3.28 → 0.3.31
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-search-bar.min.js +14 -14
- package/package.json +16 -16
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);d(s,a,l);const c={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,c),this._definitionsByClass.set(s,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(n.set(s,c),c.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,c,!0)}const b=this._whenDefinedPromises.get(t);return void 0!==b&&(b.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},b=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=b.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(ki){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);d(s,a,l);const c={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,c),this._definitionsByClass.set(s,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(n.set(s,c),c.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,c,!0)}const b=this._whenDefinedPromises.get(t);return void 0!==b&&(b.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},b=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=b.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(ki){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.reject()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){o(t)}s()}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}reject(){this.rejectPromise&&(this.rejectPromise(),this.clearPromise())}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -66,7 +66,7 @@ var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prot
|
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var M;B.finalized=!0,B.elementProperties=new Map,B.elementStyles=[],B.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:B}),(null!==($=w.reactiveElementVersions)&&void 0!==$?$:w.reactiveElementVersions=[]).push("1.4.1");const N=window,F=N.trustedTypes,R=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,L=`lit$${(Math.random()+"").slice(9)}$`,D="?"+L,
|
|
69
|
+
var M;B.finalized=!0,B.elementProperties=new Map,B.elementStyles=[],B.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:B}),(null!==($=w.reactiveElementVersions)&&void 0!==$?$:w.reactiveElementVersions=[]).push("1.4.1");const N=window,F=N.trustedTypes,R=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,L=`lit$${(Math.random()+"").slice(9)}$`,D="?"+L,j=`<${D}>`,I=document,U=(t="")=>I.createComment(t),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,T=t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,Z=/>/g,K=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,V=/"/g,q=/^(?:script|style|textarea|title)$/i,J=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Q=new WeakMap,G=I.createTreeWalker(I,129,null,!1),tt=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=_;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(n.lastIndex=h,a=n.exec(i),null!==a);)h=n.lastIndex,n===_?"!--"===a[1]?n=H:void 0!==a[1]?n=Z:void 0!==a[2]?(q.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=K):void 0!==a[3]&&(n=K):n===K?">"===a[0]?(n=null!=s?s:_,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?K:'"'===a[3]?V:W):n===V||n===W?n=K:n===H||n===Z?n=_:(n=K,s=void 0);const p=n===K&&t[e+1].startsWith("/>")?" ":"";r+=n===_?i+j:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+L+p):i+L+(-2===c?(o.push(void 0),e):p)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(l):l,o]};class et{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[a,c]=tt(t,e);if(this.el=et.createElement(a,i),G.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=G.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(L)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(L),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?at:"@"===e[1]?ct:rt})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(q.test(o.tagName)){const t=o.textContent.split(L),e=t.length-1;if(e>0){o.textContent=F?F.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),G.nextNode(),l.push({type:2,index:++s});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===D)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(L,t+1));)l.push({type:7,index:s}),t+=L.length-1}s++}}static createElement(t,e){const i=I.createElement("template");return i.innerHTML=t,i}}function it(t,e,i=t,o){var s,r,n,l;if(e===X)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const c=P(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Co)&&void 0!==n?n:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=it(t,a._$AS(t,e.values),a,o)),e}class ot{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:I).importNode(i,!0);G.currentNode=s;let r=G.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new st(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new ht(r,this,t)),this.u.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=G.nextNode(),n++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class st{constructor(t,e,i,o){var s;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),P(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==X&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):T(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Y&&P(this._$AH)?this._$AA.nextSibling.data=t:this.T(I.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=et.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new ot(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new et(t)),e}k(t){A(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new st(this.O(U()),this.O(U()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class rt{constructor(t,e,i,o,s){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=it(this,t,e,0),r=!P(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=it(this,o[i+n],e,n),l===X&&(l=this._$AH[n]),r||(r=!P(l)||l!==this._$AH[n]),l===Y?t=Y:t!==Y&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const lt=F?F.emptyScript:"";class at extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,lt):this.element.removeAttribute(this.name)}}class ct extends rt{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=it(this,t,e,0))&&void 0!==i?i:Y)===X)return;const o=this._$AH,s=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Y&&(o===Y||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ht{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}}const pt={P:"$lit$",A:L,M:D,C:1,L:tt,R:ot,D:T,V:it,I:st,H:rt,N:at,U:ct,B:nt,F:ht},dt=N.litHtmlPolyfillSupport;null==dt||dt(et,st),(null!==(M=N.litHtmlVersions)&&void 0!==M?M:N.litHtmlVersions=[]).push("2.4.0");
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2017 Google LLC
|
|
@@ -77,7 +77,7 @@ var ft,ut;class bt extends B{constructor(){super(...arguments),this.renderOption
|
|
|
77
77
|
* @license
|
|
78
78
|
* Copyright 2021 Google LLC
|
|
79
79
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
80
|
-
*/var mt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class $t extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return y(s,this.constructor.elementStyles),s}}}(bt)){constructor(){super(
|
|
80
|
+
*/var mt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class $t extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return y(s,this.constructor.elementStyles),s}}}(bt)){constructor(){super(),this.exportpartsDebouncer=new e(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),J`
|
|
81
81
|
${t.map((t=>J`
|
|
82
82
|
<style>${t}</style>
|
|
83
83
|
`))}
|
|
@@ -113,7 +113,7 @@ var ft,ut;class bt extends B{constructor(){super(...arguments),this.renderOption
|
|
|
113
113
|
* @license
|
|
114
114
|
* Copyright 2020 Google LLC
|
|
115
115
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
116
|
-
*/const{I:Rt}=pt,Lt=()=>document.createComment(""),Dt=(t,e,i)=>{var o;const s=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Lt(),r),o=s.insertBefore(Lt(),r);i=new Rt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,l=n!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,r),t=e}}}return i},
|
|
116
|
+
*/const{I:Rt}=pt,Lt=()=>document.createComment(""),Dt=(t,e,i)=>{var o;const s=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Lt(),r),o=s.insertBefore(Lt(),r);i=new Rt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,l=n!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,r),t=e}}}return i},jt=(t,e,i=t)=>(t._$AI(e,i),t),It={},Ut=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Pt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},At=Nt(class extends Ft{constructor(t){if(super(t),t.type!==Mt)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],r=[];let n=0;for(const e of t)s[n]=o?o(e,n):n,r[n]=i(e,n),n++;return{values:r,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const r=(t=>t._$AH)(t),{values:n,keys:l}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=l,n;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],c=[];let h,p,d=0,f=r.length-1,u=0,b=n.length-1;for(;d<=f&&u<=b;)if(null===r[d])d++;else if(null===r[f])f--;else if(a[d]===l[u])c[u]=jt(r[d],n[u]),d++,u++;else if(a[f]===l[b])c[b]=jt(r[f],n[b]),f--,b--;else if(a[d]===l[b])c[b]=jt(r[d],n[b]),Dt(t,c[b+1],r[d]),d++,b--;else if(a[f]===l[u])c[u]=jt(r[f],n[u]),Dt(t,r[d],r[f]),f--,u++;else if(void 0===h&&(h=Pt(l,u,b),p=Pt(a,d,f)),h.has(a[d]))if(h.has(a[f])){const e=p.get(l[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Dt(t,r[d]);jt(e,n[u]),c[u]=e}else c[u]=jt(i,n[u]),Dt(t,r[d],i),r[e]=null;u++}else Ut(r[f]),f--;else Ut(r[d]),d++;for(;u<=b;){const e=Dt(t,c[b+1]);jt(e,n[u]),c[u++]=e}for(;d<=f;){const t=r[d++];null!==t&&Ut(t)}return this.ut=l,((t,e=It)=>{t._$AH=e})(t,c),X}});
|
|
117
117
|
/**
|
|
118
118
|
* @license
|
|
119
119
|
* Copyright 2017 Google LLC
|
|
@@ -147,7 +147,7 @@ var ft,ut;class bt extends B{constructor(){super(...arguments),this.renderOption
|
|
|
147
147
|
* Copyright 2020 Google LLC
|
|
148
148
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
149
149
|
*/
|
|
150
|
-
const Wt=Symbol.for(""),Vt=t=>{if((null==t?void 0:t.r)===Wt)return null==t?void 0:t._$litStatic$},qt=t=>({_$litStatic$:t,r:Wt}),Jt=new Map,Xt=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(r=i[c],s=Vt(r));)a+=s+e[++c],h=!0;l.push(r),n.push(a),c++}if(c===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=Jt.get(t))&&(n.raw=n,Jt.set(t,e=n)),i=l}return t(e,...i)})(J);var Yt;!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"}(Yt||(Yt={}));const Qt=gt.extend("--ft-typography-font-family",yt.titleFont),Gt=gt.extend("--ft-typography-font-family",yt.contentFont),te={fontFamily:Gt,fontSize:gt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:gt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:gt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:gt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:gt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ee=gt.extend("--ft-typography-title-font-family",Qt),ie=gt.extend("--ft-typography-title-font-size",te.fontSize,"20px"),oe=gt.extend("--ft-typography-title-font-weight",te.fontWeight,"normal"),se=gt.extend("--ft-typography-title-letter-spacing",te.letterSpacing,"0.15px"),re=gt.extend("--ft-typography-title-line-height",te.lineHeight,"1.2"),ne=gt.extend("--ft-typography-title-text-transform",te.textTransform,"inherit"),le=gt.extend("--ft-typography-title-dense-font-family",Qt),ae=gt.extend("--ft-typography-title-dense-font-size",te.fontSize,"14px"),ce=gt.extend("--ft-typography-title-dense-font-weight",te.fontWeight,"normal"),he=gt.extend("--ft-typography-title-dense-letter-spacing",te.letterSpacing,"0.105px"),pe=gt.extend("--ft-typography-title-dense-line-height",te.lineHeight,"1.7"),de=gt.extend("--ft-typography-title-dense-text-transform",te.textTransform,"inherit"),fe=gt.extend("--ft-typography-subtitle1-font-family",Gt),ue=gt.extend("--ft-typography-subtitle1-font-size",te.fontSize,"16px"),be=gt.extend("--ft-typography-subtitle1-font-weight",te.fontWeight,"600"),ve=gt.extend("--ft-typography-subtitle1-letter-spacing",te.letterSpacing,"0.144px"),ge=gt.extend("--ft-typography-subtitle1-line-height",te.lineHeight,"1.5"),xe=gt.extend("--ft-typography-subtitle1-text-transform",te.textTransform,"inherit"),ye=gt.extend("--ft-typography-subtitle2-font-family",Gt),me=gt.extend("--ft-typography-subtitle2-font-size",te.fontSize,"14px"),$e=gt.extend("--ft-typography-subtitle2-font-weight",te.fontWeight,"normal"),we=gt.extend("--ft-typography-subtitle2-letter-spacing",te.letterSpacing,"0.098px"),ke=gt.extend("--ft-typography-subtitle2-line-height",te.lineHeight,"1.7"),Se=gt.extend("--ft-typography-subtitle2-text-transform",te.textTransform,"inherit"),Oe={fontFamily:gt.extend("--ft-typography-body1-font-family",Gt),fontSize:gt.extend("--ft-typography-body1-font-size",te.fontSize,"16px"),fontWeight:gt.extend("--ft-typography-body1-font-weight",te.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-body1-letter-spacing",te.letterSpacing,"0.496px"),lineHeight:gt.extend("--ft-typography-body1-line-height",te.lineHeight,"1.5"),textTransform:gt.extend("--ft-typography-body1-text-transform",te.textTransform,"inherit")},Ce={fontFamily:gt.extend("--ft-typography-body2-font-family",Gt),fontSize:gt.extend("--ft-typography-body2-font-size",te.fontSize,"14px"),fontWeight:gt.extend("--ft-typography-body2-font-weight",te.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-body2-letter-spacing",te.letterSpacing,"0.252px"),lineHeight:gt.extend("--ft-typography-body2-line-height",te.lineHeight,"1.4"),textTransform:gt.extend("--ft-typography-body2-text-transform",te.textTransform,"inherit")},Ee={fontFamily:gt.extend("--ft-typography-caption-font-family",Gt),fontSize:gt.extend("--ft-typography-caption-font-size",te.fontSize,"12px"),fontWeight:gt.extend("--ft-typography-caption-font-weight",te.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-caption-letter-spacing",te.letterSpacing,"0.396px"),lineHeight:gt.extend("--ft-typography-caption-line-height",te.lineHeight,"1.33"),textTransform:gt.extend("--ft-typography-caption-text-transform",te.textTransform,"inherit")},ze=gt.extend("--ft-typography-breadcrumb-font-family",Gt),Be=gt.extend("--ft-typography-breadcrumb-font-size",te.fontSize,"10px"),Me=gt.extend("--ft-typography-breadcrumb-font-weight",te.fontWeight,"normal"),Ne=gt.extend("--ft-typography-breadcrumb-letter-spacing",te.letterSpacing,"0.33px"),Fe=gt.extend("--ft-typography-breadcrumb-line-height",te.lineHeight,"1.6"),Re=gt.extend("--ft-typography-breadcrumb-text-transform",te.textTransform,"inherit"),Le=gt.extend("--ft-typography-overline-font-family",Gt),De=gt.extend("--ft-typography-overline-font-size",te.fontSize,"10px"),
|
|
150
|
+
const Wt=Symbol.for(""),Vt=t=>{if((null==t?void 0:t.r)===Wt)return null==t?void 0:t._$litStatic$},qt=t=>({_$litStatic$:t,r:Wt}),Jt=new Map,Xt=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(r=i[c],s=Vt(r));)a+=s+e[++c],h=!0;l.push(r),n.push(a),c++}if(c===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=Jt.get(t))&&(n.raw=n,Jt.set(t,e=n)),i=l}return t(e,...i)})(J);var Yt;!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"}(Yt||(Yt={}));const Qt=gt.extend("--ft-typography-font-family",yt.titleFont),Gt=gt.extend("--ft-typography-font-family",yt.contentFont),te={fontFamily:Gt,fontSize:gt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:gt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:gt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:gt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:gt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ee=gt.extend("--ft-typography-title-font-family",Qt),ie=gt.extend("--ft-typography-title-font-size",te.fontSize,"20px"),oe=gt.extend("--ft-typography-title-font-weight",te.fontWeight,"normal"),se=gt.extend("--ft-typography-title-letter-spacing",te.letterSpacing,"0.15px"),re=gt.extend("--ft-typography-title-line-height",te.lineHeight,"1.2"),ne=gt.extend("--ft-typography-title-text-transform",te.textTransform,"inherit"),le=gt.extend("--ft-typography-title-dense-font-family",Qt),ae=gt.extend("--ft-typography-title-dense-font-size",te.fontSize,"14px"),ce=gt.extend("--ft-typography-title-dense-font-weight",te.fontWeight,"normal"),he=gt.extend("--ft-typography-title-dense-letter-spacing",te.letterSpacing,"0.105px"),pe=gt.extend("--ft-typography-title-dense-line-height",te.lineHeight,"1.7"),de=gt.extend("--ft-typography-title-dense-text-transform",te.textTransform,"inherit"),fe=gt.extend("--ft-typography-subtitle1-font-family",Gt),ue=gt.extend("--ft-typography-subtitle1-font-size",te.fontSize,"16px"),be=gt.extend("--ft-typography-subtitle1-font-weight",te.fontWeight,"600"),ve=gt.extend("--ft-typography-subtitle1-letter-spacing",te.letterSpacing,"0.144px"),ge=gt.extend("--ft-typography-subtitle1-line-height",te.lineHeight,"1.5"),xe=gt.extend("--ft-typography-subtitle1-text-transform",te.textTransform,"inherit"),ye=gt.extend("--ft-typography-subtitle2-font-family",Gt),me=gt.extend("--ft-typography-subtitle2-font-size",te.fontSize,"14px"),$e=gt.extend("--ft-typography-subtitle2-font-weight",te.fontWeight,"normal"),we=gt.extend("--ft-typography-subtitle2-letter-spacing",te.letterSpacing,"0.098px"),ke=gt.extend("--ft-typography-subtitle2-line-height",te.lineHeight,"1.7"),Se=gt.extend("--ft-typography-subtitle2-text-transform",te.textTransform,"inherit"),Oe={fontFamily:gt.extend("--ft-typography-body1-font-family",Gt),fontSize:gt.extend("--ft-typography-body1-font-size",te.fontSize,"16px"),fontWeight:gt.extend("--ft-typography-body1-font-weight",te.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-body1-letter-spacing",te.letterSpacing,"0.496px"),lineHeight:gt.extend("--ft-typography-body1-line-height",te.lineHeight,"1.5"),textTransform:gt.extend("--ft-typography-body1-text-transform",te.textTransform,"inherit")},Ce={fontFamily:gt.extend("--ft-typography-body2-font-family",Gt),fontSize:gt.extend("--ft-typography-body2-font-size",te.fontSize,"14px"),fontWeight:gt.extend("--ft-typography-body2-font-weight",te.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-body2-letter-spacing",te.letterSpacing,"0.252px"),lineHeight:gt.extend("--ft-typography-body2-line-height",te.lineHeight,"1.4"),textTransform:gt.extend("--ft-typography-body2-text-transform",te.textTransform,"inherit")},Ee={fontFamily:gt.extend("--ft-typography-caption-font-family",Gt),fontSize:gt.extend("--ft-typography-caption-font-size",te.fontSize,"12px"),fontWeight:gt.extend("--ft-typography-caption-font-weight",te.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-caption-letter-spacing",te.letterSpacing,"0.396px"),lineHeight:gt.extend("--ft-typography-caption-line-height",te.lineHeight,"1.33"),textTransform:gt.extend("--ft-typography-caption-text-transform",te.textTransform,"inherit")},ze=gt.extend("--ft-typography-breadcrumb-font-family",Gt),Be=gt.extend("--ft-typography-breadcrumb-font-size",te.fontSize,"10px"),Me=gt.extend("--ft-typography-breadcrumb-font-weight",te.fontWeight,"normal"),Ne=gt.extend("--ft-typography-breadcrumb-letter-spacing",te.letterSpacing,"0.33px"),Fe=gt.extend("--ft-typography-breadcrumb-line-height",te.lineHeight,"1.6"),Re=gt.extend("--ft-typography-breadcrumb-text-transform",te.textTransform,"inherit"),Le=gt.extend("--ft-typography-overline-font-family",Gt),De=gt.extend("--ft-typography-overline-font-size",te.fontSize,"10px"),je=gt.extend("--ft-typography-overline-font-weight",te.fontWeight,"normal"),Ie=gt.extend("--ft-typography-overline-letter-spacing",te.letterSpacing,"1.5px"),Ue=gt.extend("--ft-typography-overline-line-height",te.lineHeight,"1.6"),Pe=gt.extend("--ft-typography-overline-text-transform",te.textTransform,"uppercase"),Ae={fontFamily:gt.extend("--ft-typography-button-font-family",Gt),fontSize:gt.extend("--ft-typography-button-font-size",te.fontSize,"14px"),fontWeight:gt.extend("--ft-typography-button-font-weight",te.fontWeight,"600"),letterSpacing:gt.extend("--ft-typography-button-letter-spacing",te.letterSpacing,"1.246px"),lineHeight:gt.extend("--ft-typography-button-line-height",te.lineHeight,"1.15"),textTransform:gt.extend("--ft-typography-button-text-transform",te.textTransform,"uppercase")},Te=x`
|
|
151
151
|
.ft-typography--title {
|
|
152
152
|
font-family: ${ee};
|
|
153
153
|
font-size: ${ie};
|
|
@@ -224,8 +224,8 @@ const Wt=Symbol.for(""),Vt=t=>{if((null==t?void 0:t.r)===Wt)return null==t?void
|
|
|
224
224
|
.ft-typography--overline {
|
|
225
225
|
font-family: ${Le};
|
|
226
226
|
font-size: ${De};
|
|
227
|
-
font-weight: ${
|
|
228
|
-
letter-spacing: ${
|
|
227
|
+
font-weight: ${je};
|
|
228
|
+
letter-spacing: ${Ie};
|
|
229
229
|
line-height: ${Ue};
|
|
230
230
|
text-transform: ${Pe};
|
|
231
231
|
}
|
|
@@ -533,7 +533,7 @@ class ki extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==Mt)throw Error
|
|
|
533
533
|
${Si(this.resolvedIcon)}
|
|
534
534
|
<slot ?hidden=${t}></slot>
|
|
535
535
|
</i>
|
|
536
|
-
`}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 i=this.value||this.textContent;switch(this.variant){case Ni.file_format:this.resolvedIcon=null!==(t=Ci[i.toUpperCase()])&&void 0!==t?t:i;break;case Ni.fluid_topics:this.resolvedIcon=null!==(e=Oi[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Y}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Ri.elementDefinitions={},Ri.styles=Mi,Fi([o()],Ri.prototype,"variant",void 0),Fi([o()],Ri.prototype,"value",void 0),Fi([s()],Ri.prototype,"resolvedIcon",void 0),Fi([n("slot")],Ri.prototype,"slottedContent",void 0),h("ft-icon")(Ri);const Li=gt.extend("--ft-button-color",yt.colorPrimary),Di={backgroundColor:gt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:gt.extend("--ft-button-border-radius",yt.borderRadiusL),color:Li,fontSize:gt.extend("--ft-button-font-size",Ae.fontSize),iconSize:gt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:gt.extend("--ft-button-ripple-color",Li),opacityDisabled:gt.external(yt.colorOpacityDisabled,"Design system")},
|
|
536
|
+
`}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 i=this.value||this.textContent;switch(this.variant){case Ni.file_format:this.resolvedIcon=null!==(t=Ci[i.toUpperCase()])&&void 0!==t?t:i;break;case Ni.fluid_topics:this.resolvedIcon=null!==(e=Oi[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Y}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Ri.elementDefinitions={},Ri.styles=Mi,Fi([o()],Ri.prototype,"variant",void 0),Fi([o()],Ri.prototype,"value",void 0),Fi([s()],Ri.prototype,"resolvedIcon",void 0),Fi([n("slot")],Ri.prototype,"slottedContent",void 0),h("ft-icon")(Ri);const Li=gt.extend("--ft-button-color",yt.colorPrimary),Di={backgroundColor:gt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:gt.extend("--ft-button-border-radius",yt.borderRadiusL),color:Li,fontSize:gt.extend("--ft-button-font-size",Ae.fontSize),iconSize:gt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:gt.extend("--ft-button-ripple-color",Li),opacityDisabled:gt.external(yt.colorOpacityDisabled,"Design system")},ji=gt.extend("--ft-button-primary-color",gt.extend("--ft-button-color",yt.colorOnPrimary)),Ii={backgroundColor:gt.extend("--ft-button-primary-background-color",gt.extend("--ft-button-background-color",yt.colorPrimary)),color:ji,rippleColor:gt.extend("--ft-button-primary-ripple-color",ji)},Ui=gt.extend("--ft-button-dense-border-radius",gt.extend("--ft-button-border-radius",yt.borderRadiusM)),Pi=[wt,x`
|
|
537
537
|
:host {
|
|
538
538
|
display: inline-block;
|
|
539
539
|
max-width: 100%;
|
|
@@ -608,9 +608,9 @@ class ki extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==Mt)throw Error
|
|
|
608
608
|
}
|
|
609
609
|
|
|
610
610
|
.ft-button.ft-button--primary {
|
|
611
|
-
background-color: ${
|
|
612
|
-
--ft-button-internal-color: ${
|
|
613
|
-
${xt(ni.color,
|
|
611
|
+
background-color: ${Ii.backgroundColor};
|
|
612
|
+
--ft-button-internal-color: ${Ii.color};
|
|
613
|
+
${xt(ni.color,Ii.rippleColor)};
|
|
614
614
|
}
|
|
615
615
|
|
|
616
616
|
.ft-button.ft-button--outlined {
|
|
@@ -1371,7 +1371,7 @@ class ki extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==Mt)throw Error
|
|
|
1371
1371
|
<div class="ft-accordion">
|
|
1372
1372
|
<slot @activated=${this.onChange}></slot>
|
|
1373
1373
|
</div>
|
|
1374
|
-
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}Fo.elementDefinitions={},Fo.styles=Mo,No([o({type:Boolean})],Fo.prototype,"multi",void 0),No([n("slot")],Fo.prototype,"content",void 0);const Ro=gt.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),Lo=gt.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),Do=gt.external(yt.colorOutline,"Design system"),
|
|
1374
|
+
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}Fo.elementDefinitions={},Fo.styles=Mo,No([o({type:Boolean})],Fo.prototype,"multi",void 0),No([n("slot")],Fo.prototype,"content",void 0);const Ro=gt.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),Lo=gt.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),Do=gt.external(yt.colorOutline,"Design system"),jo=x`
|
|
1375
1375
|
.ft-accordion-item {
|
|
1376
1376
|
display: flex;
|
|
1377
1377
|
flex-direction: column;
|
|
@@ -1416,7 +1416,7 @@ class ki extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==Mt)throw Error
|
|
|
1416
1416
|
.ft-accordion-item--separator {
|
|
1417
1417
|
border-bottom: 1px solid ${Do};
|
|
1418
1418
|
}
|
|
1419
|
-
`;var
|
|
1419
|
+
`;var Io=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Uo extends $t{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return J`
|
|
1420
1420
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1421
1421
|
<div class="ft-accordion-item--toggle"
|
|
1422
1422
|
part="toggle"
|
|
@@ -1440,7 +1440,7 @@ class ki extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==Mt)throw Error
|
|
|
1440
1440
|
</div>
|
|
1441
1441
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1442
1442
|
</div>
|
|
1443
|
-
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}Uo.elementDefinitions={"ft-ripple":bi,"ft-typography":Ge,"ft-icon":Ri},Uo.styles=Io
|
|
1443
|
+
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}Uo.elementDefinitions={"ft-ripple":bi,"ft-typography":Ge,"ft-icon":Ri},Uo.styles=jo,Io([o({type:String})],Uo.prototype,"icon",void 0),Io([o({type:String})],Uo.prototype,"label",void 0),Io([o({type:Boolean,reflect:!0})],Uo.prototype,"active",void 0),h("ft-accordion")(Fo),h("ft-accordion-item")(Uo);const Po=gt.extend("--ft-chip-color",yt.colorOnSurface),Ao={backgroundColor:gt.extend("--ft-chip-background-color",yt.colorSurface),color:Po,fontSize:gt.extend("--ft-chip-font-size",Ce.fontSize),iconSize:gt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:gt.extend("--ft-chip-ripple-color",Po),horizontalPadding:gt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:gt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:gt.external(yt.colorOutline,"Design system"),opacityDisabled:gt.external(yt.colorOpacityDisabled,"Design system")},To=gt.extend("--ft-chip-highlighted-color",gt.extend("--ft-chip-color",yt.colorOnPrimary)),_o={backgroundColor:gt.extend("--ft-chip-highlighted-background-color",gt.extend("--ft-chip-background-color",yt.colorPrimary)),color:To,rippleColor:gt.extend("--ft-chip-highlighted-ripple-color",To)},Ho=gt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Zo=gt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Ko=[wt,x`
|
|
1444
1444
|
:host {
|
|
1445
1445
|
display: inline-block;
|
|
1446
1446
|
max-width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-bar",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.31",
|
|
4
4
|
"description": "Search bar component using Fluid Topics public API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,25 +19,25 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-accordion": "0.3.
|
|
23
|
-
"@fluid-topics/ft-button": "0.3.
|
|
24
|
-
"@fluid-topics/ft-chip": "0.3.
|
|
25
|
-
"@fluid-topics/ft-filter": "0.3.
|
|
26
|
-
"@fluid-topics/ft-icon": "0.3.
|
|
27
|
-
"@fluid-topics/ft-select": "0.3.
|
|
28
|
-
"@fluid-topics/ft-size-watcher": "0.3.
|
|
29
|
-
"@fluid-topics/ft-skeleton": "0.3.
|
|
30
|
-
"@fluid-topics/ft-snap-scroll": "0.3.
|
|
31
|
-
"@fluid-topics/ft-tooltip": "0.3.
|
|
32
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
33
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-accordion": "0.3.31",
|
|
23
|
+
"@fluid-topics/ft-button": "0.3.31",
|
|
24
|
+
"@fluid-topics/ft-chip": "0.3.31",
|
|
25
|
+
"@fluid-topics/ft-filter": "0.3.31",
|
|
26
|
+
"@fluid-topics/ft-icon": "0.3.31",
|
|
27
|
+
"@fluid-topics/ft-select": "0.3.31",
|
|
28
|
+
"@fluid-topics/ft-size-watcher": "0.3.31",
|
|
29
|
+
"@fluid-topics/ft-skeleton": "0.3.31",
|
|
30
|
+
"@fluid-topics/ft-snap-scroll": "0.3.31",
|
|
31
|
+
"@fluid-topics/ft-tooltip": "0.3.31",
|
|
32
|
+
"@fluid-topics/ft-typography": "0.3.31",
|
|
33
|
+
"@fluid-topics/ft-wc-utils": "0.3.31",
|
|
34
34
|
"lit": "2.2.8"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@fluid-topics/public-api": "1.0.
|
|
37
|
+
"@fluid-topics/public-api": "1.0.27"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@fluid-topics/public-api": "1.0.
|
|
40
|
+
"@fluid-topics/public-api": "1.0.27"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "65117d677b7174e71b6c695661d333e2a9ac8eae"
|
|
43
43
|
}
|