@fluid-topics/ft-select 1.1.7 → 1.1.9
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-select.min.js +183 -183
- package/package.json +7 -7
package/build/ft-select.min.js
CHANGED
|
@@ -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),y(t,c,!0)}const
|
|
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),y(t,c,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.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=g[g.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?y(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)},y=(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 g=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.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){g.push(this),o.set.call(this,t),g.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(Pi){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
|
|
@@ -22,7 +22,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:p,getOwnPropertySymbols:f,getPrototypeOf:h}=Object,d=globalThis,y=d.trustedTypes,
|
|
25
|
+
*/,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:p,getOwnPropertySymbols:f,getPrototypeOf:h}=Object,d=globalThis,y=d.trustedTypes,u=y?y.emptyScript:"",g=d.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},x=(t,e)=>!s(t,e),O={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let v=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=O){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??O}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...p(t),...f(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(o)t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of i){const i=document.createElement("style"),r=e.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=o.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:m).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??x)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[b("elementProperties")]=new Map,v[b("finalized")]=new Map,g?.({ReactiveElement:v}),(d.reactiveElementVersions??=[]).push("2.0.2");
|
|
26
26
|
/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
@@ -55,18 +55,18 @@ const k=globalThis,W=k.trustedTypes,L=W?W.createPolicy("lit-html",{createHTML:t=
|
|
|
55
55
|
* Copyright 2019 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
const
|
|
58
|
+
const ut=globalThis,gt=ut.ShadowRoot&&(void 0===ut.ShadyCSS||ut.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bt=Symbol(),mt=new WeakMap;let xt=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==bt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(gt&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=mt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&mt.set(e,t))}return t}toString(){return this.cssText}};const Ot=t=>new xt("string"==typeof t?t:t+"",void 0,bt),vt=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1]),t[0]);return new xt(o,t,bt)},Nt=gt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return Ot(e)})(t):t
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
-
*/,{is:St,defineProperty:wt,getOwnPropertyDescriptor:Ct,getOwnPropertyNames:$t,getOwnPropertySymbols:Et,getPrototypeOf:Rt}=Object,Ut=globalThis,It=Ut.trustedTypes,kt=It?It.emptyScript:"",Wt=Ut.reactiveElementPolyfillSupport,Lt=(t,e)=>t,Kt={toAttribute(t,e){switch(e){case Boolean:t=t?kt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},zt=(t,e)=>!St(t,e),Zt={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:zt};Symbol.metadata??=Symbol("metadata"),Ut.litPropertyMetadata??=new WeakMap;class Ft extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&wt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=Ct(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Zt}static _$Ei(){if(this.hasOwnProperty(Lt("elementProperties")))return;const t=Rt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Lt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Lt("properties"))){const t=this.properties,e=[...$t(t),...Et(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Nt(t))}else void 0!==t&&e.push(Nt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(
|
|
63
|
+
*/,{is:St,defineProperty:wt,getOwnPropertyDescriptor:Ct,getOwnPropertyNames:$t,getOwnPropertySymbols:Et,getPrototypeOf:Rt}=Object,Ut=globalThis,It=Ut.trustedTypes,kt=It?It.emptyScript:"",Wt=Ut.reactiveElementPolyfillSupport,Lt=(t,e)=>t,Kt={toAttribute(t,e){switch(e){case Boolean:t=t?kt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},zt=(t,e)=>!St(t,e),Zt={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:zt};Symbol.metadata??=Symbol("metadata"),Ut.litPropertyMetadata??=new WeakMap;class Ft extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&wt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=Ct(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Zt}static _$Ei(){if(this.hasOwnProperty(Lt("elementProperties")))return;const t=Rt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Lt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Lt("properties"))){const t=this.properties,e=[...$t(t),...Et(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Nt(t))}else void 0!==t&&e.push(Nt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(gt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=ut.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:Kt).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Kt;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??zt)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}Ft.elementStyles=[],Ft.shadowRootOptions={mode:"open"},Ft[Lt("elementProperties")]=new Map,Ft[Lt("finalized")]=new Map,Wt?.({ReactiveElement:Ft}),(Ut.reactiveElementVersions??=[]).push("2.0.2");
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
const Dt=globalThis,Mt=Dt.trustedTypes,At=Mt?Mt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Bt="$lit$",Pt=`lit$${(Math.random()+"").slice(9)}$`,Ht="?"+Pt,jt=`<${Ht}>`,_t=document,Tt=()=>_t.createComment(""),Gt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Yt=Array.isArray,Vt="[ \t\n\f\r]",Jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qt=/-->/g,Xt=/>/g,Qt=RegExp(`>|${Vt}(?:([^\\s"'>=/]+)(${Vt}*=${Vt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),te=/'/g,ee=/"/g,oe=/^(?:script|style|textarea|title)$/i,ie=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),re=Symbol.for("lit-noChange"),ne=Symbol.for("lit-nothing"),ae=new WeakMap,se=_t.createTreeWalker(_t,129);function le(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==At?At.createHTML(e):e}const ce=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=Jt;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===Jt?"!--"===l[1]?a=qt:void 0!==l[1]?a=Xt:void 0!==l[2]?(oe.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Qt):void 0!==l[3]&&(a=Qt):a===Qt?">"===l[0]?(a=r??Jt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Qt:'"'===l[3]?ee:te):a===ee||a===te?a=Qt:a===qt||a===Xt?a=Jt:(a=Qt,r=void 0);const f=a===Qt&&t[e+1].startsWith("/>")?" ":"";n+=a===Jt?o+jt:c>=0?(i.push(s),o.slice(0,c)+Bt+o.slice(c)+Pt+f):o+Pt+(-2===c?e:f)}return[le(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class pe{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]=ce(t,e);if(this.el=pe.createElement(l,o),se.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=se.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Bt)){const e=c[n++],o=i.getAttribute(t).split(Pt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?ye:"?"===a[1]?
|
|
69
|
+
const Dt=globalThis,Mt=Dt.trustedTypes,At=Mt?Mt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Bt="$lit$",Pt=`lit$${(Math.random()+"").slice(9)}$`,Ht="?"+Pt,jt=`<${Ht}>`,_t=document,Tt=()=>_t.createComment(""),Gt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Yt=Array.isArray,Vt="[ \t\n\f\r]",Jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qt=/-->/g,Xt=/>/g,Qt=RegExp(`>|${Vt}(?:([^\\s"'>=/]+)(${Vt}*=${Vt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),te=/'/g,ee=/"/g,oe=/^(?:script|style|textarea|title)$/i,ie=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),re=Symbol.for("lit-noChange"),ne=Symbol.for("lit-nothing"),ae=new WeakMap,se=_t.createTreeWalker(_t,129);function le(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==At?At.createHTML(e):e}const ce=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=Jt;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===Jt?"!--"===l[1]?a=qt:void 0!==l[1]?a=Xt:void 0!==l[2]?(oe.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Qt):void 0!==l[3]&&(a=Qt):a===Qt?">"===l[0]?(a=r??Jt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Qt:'"'===l[3]?ee:te):a===ee||a===te?a=Qt:a===qt||a===Xt?a=Jt:(a=Qt,r=void 0);const f=a===Qt&&t[e+1].startsWith("/>")?" ":"";n+=a===Jt?o+jt:c>=0?(i.push(s),o.slice(0,c)+Bt+o.slice(c)+Pt+f):o+Pt+(-2===c?e:f)}return[le(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class pe{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]=ce(t,e);if(this.el=pe.createElement(l,o),se.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=se.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Bt)){const e=c[n++],o=i.getAttribute(t).split(Pt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?ye:"?"===a[1]?ue:"@"===a[1]?ge:de}),i.removeAttribute(t)}else t.startsWith(Pt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(oe.test(i.tagName)){const t=i.textContent.split(Pt),e=t.length-1;if(e>0){i.textContent=Mt?Mt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Tt()),se.nextNode(),s.push({type:2,index:++r});i.append(t[e],Tt())}}}else if(8===i.nodeType)if(i.data===Ht)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Pt,t+1));)s.push({type:7,index:r}),t+=Pt.length-1}r++}}static createElement(t,e){const o=_t.createElement("template");return o.innerHTML=t,o}}function fe(t,e,o=t,i){if(e===re)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Gt(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=fe(t,r._$AS(t,e.values),r,i)),e}class he{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ne,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=fe(this,t,e),Gt(t)?t===ne||null==t||""===t?(this._$AH!==ne&&this._$AR(),this._$AH=ne):t!==this._$AH&&t!==re&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Yt(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!==ne&&Gt(this._$AH)?this._$AA.nextSibling.data=t:this.$(_t.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=pe.createElement(le(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??_t).importNode(e,!0);se.currentNode=i;let r=se.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new he(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new be(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=se.nextNode(),n++)}return se.currentNode=_t,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=ae.get(t.strings);return void 0===e&&ae.set(t.strings,e=new pe(t)),e}T(t){Yt(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 he(this.k(Tt()),this.k(Tt()),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 de{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ne,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=ne}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=fe(this,t,e,0),n=!Gt(t)||t!==this._$AH&&t!==re,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=fe(this,i[o+a],e,a),s===re&&(s=this._$AH[a]),n||=!Gt(s)||s!==this._$AH[a],s===ne?t=ne:t!==ne&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===ne?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ye extends de{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ne?void 0:t}}class ue extends de{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ne)}}class ge extends de{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=fe(this,t,e,0)??ne)===re)return;const o=this._$AH,i=t===ne&&o!==ne||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ne&&(o===ne||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 be{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){fe(this,t)}}const me=Dt.litHtmlPolyfillSupport;me?.(pe,he),(Dt.litHtmlVersions??=[]).push("3.1.0");
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2017 Google LLC
|
|
@@ -77,7 +77,7 @@ let xe=class extends Ft{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
77
77
|
* @license
|
|
78
78
|
* Copyright 2019 Google LLC
|
|
79
79
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
80
|
-
*/class Ie extends xe{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)=>{Ue?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Re.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var ke,We=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 Le=Symbol("constructorPrototype"),Ke=Symbol("constructorName"),ze=Symbol("exportpartsDebouncer");class Ze extends Ie{constructor(){super(),this[ke]=new R(5),this[Ke]=this.constructor.name,this[Le]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ke]&&Object.setPrototypeOf(this,this[Le])}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[ze].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(", "))}}ke=ze,We([w()],Ze.prototype,"exportpartsPrefix",void 0),We([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:{}})}([])],Ze.prototype,"exportpartsPrefixes",void 0),We([w()],Ze.prototype,"customStylesheet",void 0);const Fe=Ne.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");var
|
|
80
|
+
*/class Ie extends xe{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)=>{Ue?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Re.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var ke,We=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 Le=Symbol("constructorPrototype"),Ke=Symbol("constructorName"),ze=Symbol("exportpartsDebouncer");class Ze extends Ie{constructor(){super(),this[ke]=new R(5),this[Ke]=this.constructor.name,this[Le]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ke]&&Object.setPrototypeOf(this,this[Le])}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[ze].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(", "))}}ke=ze,We([w()],Ze.prototype,"exportpartsPrefix",void 0),We([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:{}})}([])],Ze.prototype,"exportpartsPrefixes",void 0),We([w()],Ze.prototype,"customStylesheet",void 0);const Fe=Ne.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");function De(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Me,Ae,Be;vt`
|
|
81
81
|
.highlight-html-match {
|
|
82
82
|
background: ${Fe};
|
|
83
83
|
}
|
|
@@ -113,118 +113,118 @@ let xe=class extends Ft{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
113
113
|
display: inline-block;
|
|
114
114
|
width: 0;
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
`;const Pe=Symbol("internalReduxEventsUnsubscribers"),He=Symbol("internalStoresUnsubscribers"),je=Symbol("internalStores");class _e extends Ze{constructor(){super(...arguments),this[Me]=new Map,this[Ae]=new Map,this[Be]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[je].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[je].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[je].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:De(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[je].delete(e)}setupStore(t,e){this[je].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[je].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[He].has(t.store):this[He].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[He].set(t,e.subscribe((()=>this.updateFromStores()))),De(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[Pe].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[He].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Pe].forEach((t=>t())),this[Pe]=[]}unsubscribeFromStore(t){this[He].has(t)&&this[He].get(t)(),this[He].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}var Te,Ge;Me=He,Ae=je,Be=Pe,_e.reduxProperties=new Map,_e.reduxReactiveProperties=new Set,_e.reduxEventListeners=new Map,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Ge=null===(Te=window.safari)||void 0===Te?void 0:Te.pushNotification)||void 0===Ge||Ge.toString());
|
|
117
117
|
/**
|
|
118
118
|
* @license
|
|
119
119
|
* Copyright 2017 Google LLC
|
|
120
120
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
121
121
|
*/
|
|
122
|
-
const
|
|
122
|
+
const Ye=1,Ve=2,Je=t=>(...e)=>({_$litDirective$:t,values:e});let qe=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)}};
|
|
123
123
|
/**
|
|
124
124
|
* @license
|
|
125
125
|
* Copyright 2018 Google LLC
|
|
126
126
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
127
|
-
*/const
|
|
127
|
+
*/const Xe=Je(class extends qe{constructor(t){if(super(t),t.type!==Ye||"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 X}}),{D:Qe}=dt,to=()=>document.createComment(""),eo=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(to(),r),n=i.insertBefore(to(),r);o=new Qe(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},oo=(t,e,o=t)=>(t._$AI(e,o),t),io={},ro=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},no=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},ao=Je(class extends qe{constructor(t){if(super(t),t.type!==Ve)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let a=0;for(const e of t)r[a]=i?i(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,p,f=0,h=r.length-1,d=0,y=n.length-1;for(;f<=h&&d<=y;)if(null===r[f])f++;else if(null===r[h])h--;else if(s[f]===a[d])l[d]=oo(r[f],n[d]),f++,d++;else if(s[h]===a[y])l[y]=oo(r[h],n[y]),h--,y--;else if(s[f]===a[y])l[y]=oo(r[f],n[y]),eo(t,l[y+1],r[f]),f++,y--;else if(s[h]===a[d])l[d]=oo(r[h],n[d]),eo(t,r[f],r[h]),h--,d++;else if(void 0===c&&(c=no(a,d,y),p=no(s,f,h)),c.has(s[f]))if(c.has(s[h])){const e=p.get(a[d]),o=void 0!==e?r[e]:null;if(null===o){const e=eo(t,r[f]);oo(e,n[d]),l[d]=e}else l[d]=oo(o,n[d]),eo(t,r[f],o),r[e]=null;d++}else ro(r[h]),h--;else ro(r[f]),f++;for(;d<=y;){const e=eo(t,l[y+1]);oo(e,n[d]),l[d++]=e}for(;f<=h;){const t=r[f++];null!==t&&ro(t)}return this.dt=a,((t,e=io)=>{t._$AH=e})(t,l),X}}),so=Symbol.for(""),lo=t=>{if(t?.r===so)return t?._$litStatic$},co=t=>({_$litStatic$:t,r:so}),po=new Map,fo=(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=lo(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=po.get(t))&&(a.raw=a,po.set(t,e=a)),o=s}return t(e,...o)})(q);
|
|
128
128
|
/**
|
|
129
129
|
* @license
|
|
130
130
|
* Copyright 2020 Google LLC
|
|
131
131
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
132
|
-
*/var
|
|
132
|
+
*/var ho;!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"}(ho||(ho={}));const yo=Ne.extend("--ft-typography-font-family","",Ee.titleFont),uo=Ne.extend("--ft-typography-font-family","",Ee.contentFont),go={fontFamily:uo,fontSize:Ne.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ne.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ne.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ne.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ne.create("--ft-typography-text-transform","","UNKNOWN","inherit")},bo=Ne.extend("--ft-typography-title-font-family","",yo),mo=Ne.extend("--ft-typography-title-font-size","",go.fontSize,"20px"),xo=Ne.extend("--ft-typography-title-font-weight","",go.fontWeight,"normal"),Oo=Ne.extend("--ft-typography-title-letter-spacing","",go.letterSpacing,"0.15px"),vo=Ne.extend("--ft-typography-title-line-height","",go.lineHeight,"1.2"),No=Ne.extend("--ft-typography-title-text-transform","",go.textTransform,"inherit"),So=Ne.extend("--ft-typography-title-dense-font-family","",yo),wo=Ne.extend("--ft-typography-title-dense-font-size","",go.fontSize,"14px"),Co=Ne.extend("--ft-typography-title-dense-font-weight","",go.fontWeight,"normal"),$o=Ne.extend("--ft-typography-title-dense-letter-spacing","",go.letterSpacing,"0.105px"),Eo=Ne.extend("--ft-typography-title-dense-line-height","",go.lineHeight,"1.7"),Ro=Ne.extend("--ft-typography-title-dense-text-transform","",go.textTransform,"inherit"),Uo=Ne.extend("--ft-typography-subtitle1-font-family","",uo),Io=Ne.extend("--ft-typography-subtitle1-font-size","",go.fontSize,"16px"),ko=Ne.extend("--ft-typography-subtitle1-font-weight","",go.fontWeight,"600"),Wo=Ne.extend("--ft-typography-subtitle1-letter-spacing","",go.letterSpacing,"0.144px"),Lo=Ne.extend("--ft-typography-subtitle1-line-height","",go.lineHeight,"1.5"),Ko=Ne.extend("--ft-typography-subtitle1-text-transform","",go.textTransform,"inherit"),zo=Ne.extend("--ft-typography-subtitle2-font-family","",uo),Zo=Ne.extend("--ft-typography-subtitle2-font-size","",go.fontSize,"14px"),Fo=Ne.extend("--ft-typography-subtitle2-font-weight","",go.fontWeight,"normal"),Do=Ne.extend("--ft-typography-subtitle2-letter-spacing","",go.letterSpacing,"0.098px"),Mo=Ne.extend("--ft-typography-subtitle2-line-height","",go.lineHeight,"1.7"),Ao=Ne.extend("--ft-typography-subtitle2-text-transform","",go.textTransform,"inherit"),Bo={fontFamily:Ne.extend("--ft-typography-body1-font-family","",uo),fontSize:Ne.extend("--ft-typography-body1-font-size","",go.fontSize,"16px"),fontWeight:Ne.extend("--ft-typography-body1-font-weight","",go.fontWeight,"normal"),letterSpacing:Ne.extend("--ft-typography-body1-letter-spacing","",go.letterSpacing,"0.496px"),lineHeight:Ne.extend("--ft-typography-body1-line-height","",go.lineHeight,"1.5"),textTransform:Ne.extend("--ft-typography-body1-text-transform","",go.textTransform,"inherit")},Po=Ne.extend("--ft-typography-body2-font-family","",uo),Ho=Ne.extend("--ft-typography-body2-font-size","",go.fontSize,"14px"),jo=Ne.extend("--ft-typography-body2-font-weight","",go.fontWeight,"normal"),_o=Ne.extend("--ft-typography-body2-letter-spacing","",go.letterSpacing,"0.252px"),To=Ne.extend("--ft-typography-body2-line-height","",go.lineHeight,"1.4"),Go=Ne.extend("--ft-typography-body2-text-transform","",go.textTransform,"inherit"),Yo={fontFamily:Ne.extend("--ft-typography-caption-font-family","",uo),fontSize:Ne.extend("--ft-typography-caption-font-size","",go.fontSize,"12px"),fontWeight:Ne.extend("--ft-typography-caption-font-weight","",go.fontWeight,"normal"),letterSpacing:Ne.extend("--ft-typography-caption-letter-spacing","",go.letterSpacing,"0.396px"),lineHeight:Ne.extend("--ft-typography-caption-line-height","",go.lineHeight,"1.33"),textTransform:Ne.extend("--ft-typography-caption-text-transform","",go.textTransform,"inherit")},Vo=Ne.extend("--ft-typography-breadcrumb-font-family","",uo),Jo=Ne.extend("--ft-typography-breadcrumb-font-size","",go.fontSize,"10px"),qo=Ne.extend("--ft-typography-breadcrumb-font-weight","",go.fontWeight,"normal"),Xo=Ne.extend("--ft-typography-breadcrumb-letter-spacing","",go.letterSpacing,"0.33px"),Qo=Ne.extend("--ft-typography-breadcrumb-line-height","",go.lineHeight,"1.6"),ti=Ne.extend("--ft-typography-breadcrumb-text-transform","",go.textTransform,"inherit"),ei=Ne.extend("--ft-typography-overline-font-family","",uo),oi=Ne.extend("--ft-typography-overline-font-size","",go.fontSize,"10px"),ii=Ne.extend("--ft-typography-overline-font-weight","",go.fontWeight,"normal"),ri=Ne.extend("--ft-typography-overline-letter-spacing","",go.letterSpacing,"1.5px"),ni=Ne.extend("--ft-typography-overline-line-height","",go.lineHeight,"1.6"),ai=Ne.extend("--ft-typography-overline-text-transform","",go.textTransform,"uppercase"),si=Ne.extend("--ft-typography-button-font-family","",uo),li=Ne.extend("--ft-typography-button-font-size","",go.fontSize,"14px"),ci=Ne.extend("--ft-typography-button-font-weight","",go.fontWeight,"600"),pi=Ne.extend("--ft-typography-button-letter-spacing","",go.letterSpacing,"1.246px"),fi=Ne.extend("--ft-typography-button-line-height","",go.lineHeight,"1.15"),hi=Ne.extend("--ft-typography-button-text-transform","",go.textTransform,"uppercase"),di=vt`
|
|
133
133
|
.ft-typography--title {
|
|
134
|
-
font-family: ${
|
|
135
|
-
font-size: ${
|
|
136
|
-
font-weight: ${
|
|
137
|
-
letter-spacing: ${
|
|
138
|
-
line-height: ${
|
|
139
|
-
text-transform: ${
|
|
140
|
-
}
|
|
141
|
-
`,
|
|
134
|
+
font-family: ${bo};
|
|
135
|
+
font-size: ${mo};
|
|
136
|
+
font-weight: ${xo};
|
|
137
|
+
letter-spacing: ${Oo};
|
|
138
|
+
line-height: ${vo};
|
|
139
|
+
text-transform: ${No};
|
|
140
|
+
}
|
|
141
|
+
`,yi=vt`
|
|
142
142
|
.ft-typography--title-dense {
|
|
143
|
-
font-family: ${
|
|
144
|
-
font-size: ${
|
|
145
|
-
font-weight: ${
|
|
146
|
-
letter-spacing: ${
|
|
147
|
-
line-height: ${
|
|
148
|
-
text-transform: ${
|
|
149
|
-
}
|
|
150
|
-
`,
|
|
143
|
+
font-family: ${So};
|
|
144
|
+
font-size: ${wo};
|
|
145
|
+
font-weight: ${Co};
|
|
146
|
+
letter-spacing: ${$o};
|
|
147
|
+
line-height: ${Eo};
|
|
148
|
+
text-transform: ${Ro};
|
|
149
|
+
}
|
|
150
|
+
`,ui=vt`
|
|
151
151
|
.ft-typography--subtitle1 {
|
|
152
|
-
font-family: ${
|
|
153
|
-
font-size: ${
|
|
154
|
-
font-weight: ${
|
|
155
|
-
letter-spacing: ${
|
|
156
|
-
line-height: ${
|
|
157
|
-
text-transform: ${
|
|
158
|
-
}
|
|
159
|
-
`,
|
|
152
|
+
font-family: ${Uo};
|
|
153
|
+
font-size: ${Io};
|
|
154
|
+
font-weight: ${ko};
|
|
155
|
+
letter-spacing: ${Wo};
|
|
156
|
+
line-height: ${Lo};
|
|
157
|
+
text-transform: ${Ko};
|
|
158
|
+
}
|
|
159
|
+
`,gi=vt`
|
|
160
160
|
.ft-typography--subtitle2 {
|
|
161
|
-
font-family: ${
|
|
162
|
-
font-size: ${
|
|
163
|
-
font-weight: ${
|
|
164
|
-
letter-spacing: ${
|
|
165
|
-
line-height: ${
|
|
166
|
-
text-transform: ${
|
|
161
|
+
font-family: ${zo};
|
|
162
|
+
font-size: ${Zo};
|
|
163
|
+
font-weight: ${Fo};
|
|
164
|
+
letter-spacing: ${Do};
|
|
165
|
+
line-height: ${Mo};
|
|
166
|
+
text-transform: ${Ao};
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
`,
|
|
169
|
+
`,bi=vt`
|
|
170
170
|
.ft-typography--body1 {
|
|
171
|
-
font-family: ${
|
|
172
|
-
font-size: ${
|
|
173
|
-
font-weight: ${
|
|
174
|
-
letter-spacing: ${
|
|
175
|
-
line-height: ${
|
|
176
|
-
text-transform: ${
|
|
177
|
-
}
|
|
178
|
-
`,
|
|
171
|
+
font-family: ${Bo.fontFamily};
|
|
172
|
+
font-size: ${Bo.fontSize};
|
|
173
|
+
font-weight: ${Bo.fontWeight};
|
|
174
|
+
letter-spacing: ${Bo.letterSpacing};
|
|
175
|
+
line-height: ${Bo.lineHeight};
|
|
176
|
+
text-transform: ${Bo.textTransform};
|
|
177
|
+
}
|
|
178
|
+
`,mi=vt`
|
|
179
179
|
.ft-typography--body2 {
|
|
180
|
-
font-family: ${
|
|
181
|
-
font-size: ${
|
|
182
|
-
font-weight: ${
|
|
183
|
-
letter-spacing: ${
|
|
184
|
-
line-height: ${
|
|
185
|
-
text-transform: ${
|
|
186
|
-
}
|
|
187
|
-
`,
|
|
180
|
+
font-family: ${Po};
|
|
181
|
+
font-size: ${Ho};
|
|
182
|
+
font-weight: ${jo};
|
|
183
|
+
letter-spacing: ${_o};
|
|
184
|
+
line-height: ${To};
|
|
185
|
+
text-transform: ${Go};
|
|
186
|
+
}
|
|
187
|
+
`,xi=vt`
|
|
188
188
|
.ft-typography--caption {
|
|
189
|
-
font-family: ${
|
|
190
|
-
font-size: ${
|
|
191
|
-
font-weight: ${
|
|
192
|
-
letter-spacing: ${
|
|
193
|
-
line-height: ${
|
|
194
|
-
text-transform: ${
|
|
195
|
-
}
|
|
196
|
-
`,
|
|
189
|
+
font-family: ${Yo.fontFamily};
|
|
190
|
+
font-size: ${Yo.fontSize};
|
|
191
|
+
font-weight: ${Yo.fontWeight};
|
|
192
|
+
letter-spacing: ${Yo.letterSpacing};
|
|
193
|
+
line-height: ${Yo.lineHeight};
|
|
194
|
+
text-transform: ${Yo.textTransform};
|
|
195
|
+
}
|
|
196
|
+
`,Oi=vt`
|
|
197
197
|
.ft-typography--breadcrumb {
|
|
198
|
-
font-family: ${
|
|
199
|
-
font-size: ${
|
|
200
|
-
font-weight: ${
|
|
201
|
-
letter-spacing: ${
|
|
202
|
-
line-height: ${
|
|
203
|
-
text-transform: ${
|
|
204
|
-
}
|
|
205
|
-
`,
|
|
198
|
+
font-family: ${Vo};
|
|
199
|
+
font-size: ${Jo};
|
|
200
|
+
font-weight: ${qo};
|
|
201
|
+
letter-spacing: ${Xo};
|
|
202
|
+
line-height: ${Qo};
|
|
203
|
+
text-transform: ${ti};
|
|
204
|
+
}
|
|
205
|
+
`,vi=vt`
|
|
206
206
|
.ft-typography--overline {
|
|
207
|
-
font-family: ${
|
|
208
|
-
font-size: ${
|
|
209
|
-
font-weight: ${
|
|
210
|
-
letter-spacing: ${
|
|
211
|
-
line-height: ${
|
|
212
|
-
text-transform: ${
|
|
213
|
-
}
|
|
214
|
-
`,
|
|
207
|
+
font-family: ${ei};
|
|
208
|
+
font-size: ${oi};
|
|
209
|
+
font-weight: ${ii};
|
|
210
|
+
letter-spacing: ${ri};
|
|
211
|
+
line-height: ${ni};
|
|
212
|
+
text-transform: ${ai};
|
|
213
|
+
}
|
|
214
|
+
`,Ni=vt`
|
|
215
215
|
.ft-typography--button {
|
|
216
|
-
font-family: ${
|
|
217
|
-
font-size: ${
|
|
218
|
-
font-weight: ${
|
|
219
|
-
letter-spacing: ${
|
|
220
|
-
line-height: ${
|
|
221
|
-
text-transform: ${
|
|
222
|
-
}
|
|
223
|
-
`,
|
|
216
|
+
font-family: ${si};
|
|
217
|
+
font-size: ${li};
|
|
218
|
+
font-weight: ${ci};
|
|
219
|
+
letter-spacing: ${pi};
|
|
220
|
+
line-height: ${fi};
|
|
221
|
+
text-transform: ${hi};
|
|
222
|
+
}
|
|
223
|
+
`,Si=vt`
|
|
224
224
|
.ft-typography {
|
|
225
225
|
vertical-align: inherit;
|
|
226
226
|
}
|
|
227
|
-
`,
|
|
227
|
+
`,wi=[Object.keys(Ce).map((t=>function(t){const e=Ce[t];return vt`
|
|
228
228
|
.ft-typography--${Ot(t)} {
|
|
229
229
|
font-family: ${e.fontFamily};
|
|
230
230
|
font-size: ${e.fontSize};
|
|
@@ -233,32 +233,32 @@ const Ae=1,Be=2,Pe=t=>(...e)=>({_$litDirective$:t,values:e});let He=class{constr
|
|
|
233
233
|
line-height: ${e.lineHeight};
|
|
234
234
|
text-transform: ${e.textCase};
|
|
235
235
|
}
|
|
236
|
-
`}(t)))];var
|
|
237
|
-
<${
|
|
236
|
+
`}(t)))];var Ci=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 $i extends Ze{constructor(){super(...arguments),this.variant=ho.body1}render(){return this.element?fo`
|
|
237
|
+
<${co(this.element)}
|
|
238
238
|
class="ft-typography ft-typography--${this.variant}">
|
|
239
239
|
<slot></slot>
|
|
240
|
-
</${
|
|
241
|
-
`:
|
|
240
|
+
</${co(this.element)}>
|
|
241
|
+
`:fo`
|
|
242
242
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
243
|
-
`}}
|
|
243
|
+
`}}$i.styles=[di,yi,ui,gi,bi,mi,xi,Oi,vi,Ni,Si,...wi],Ci([w()],$i.prototype,"element",void 0),Ci([w()],$i.prototype,"variant",void 0),I("ft-typography")($i);const Ei={fontSize:Ne.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Ne.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Ne.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Ne.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ne.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Ne.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Ne.extend("--ft-input-label-border-color","",Ee.colorOutline),textColor:Ne.extend("--ft-input-label-text-color","",Ee.colorOnSurfaceMedium),disabledTextColor:Ne.extend("--ft-input-label-disabled-text-color","",Ee.colorOnSurfaceDisabled),colorSurface:Ne.external(Ee.colorSurface,"Design system"),borderRadiusS:Ne.external(Ee.borderRadiusS,"Design system"),colorError:Ne.external(Ee.colorError,"Design system")},Ri=vt`
|
|
244
244
|
.ft-input-label {
|
|
245
245
|
position: absolute;
|
|
246
246
|
inset: 0;
|
|
247
247
|
display: flex;
|
|
248
|
-
background-color: ${
|
|
249
|
-
border-radius: ${
|
|
248
|
+
background-color: ${Ei.colorSurface};
|
|
249
|
+
border-radius: ${Ei.borderRadiusS} ${Ei.borderRadiusS} 0 0;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.ft-input-label--outlined {
|
|
253
|
-
border-radius: ${
|
|
253
|
+
border-radius: ${Ei.borderRadiusS};
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
.ft-input-label {
|
|
257
|
-
border-color: ${
|
|
257
|
+
border-color: ${Ei.borderColor};
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
.ft-input-label.ft-input-label--in-error {
|
|
261
|
-
border-color: ${
|
|
261
|
+
border-color: ${Ei.colorError}
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
.ft-input-label:before,
|
|
@@ -271,7 +271,7 @@ const Ae=1,Be=2,Pe=t=>(...e)=>({_$litDirective$:t,values:e});let He=class{constr
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
.ft-input-label:before {
|
|
274
|
-
width: calc(${
|
|
274
|
+
width: calc(${Ei.horizontalSpacing} - 4px);
|
|
275
275
|
flex-shrink: 0;
|
|
276
276
|
}
|
|
277
277
|
|
|
@@ -287,20 +287,20 @@ const Ae=1,Be=2,Pe=t=>(...e)=>({_$litDirective$:t,values:e});let He=class{constr
|
|
|
287
287
|
border-bottom-width: 1px;
|
|
288
288
|
border-bottom-style: solid;
|
|
289
289
|
border-color: inherit;
|
|
290
|
-
color: ${
|
|
290
|
+
color: ${Ei.textColor};
|
|
291
291
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
292
|
-
max-width: calc(${
|
|
292
|
+
max-width: calc(${Ei.labelMaxWidth} - 2 * (${Ei.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
293
293
|
text-overflow: ellipsis;
|
|
294
|
-
${Se(
|
|
295
|
-
${Se(
|
|
294
|
+
${Se(Yo.fontSize,Ei.fontSize)};
|
|
295
|
+
${Se(Yo.lineHeight,Ei.fontSize)};
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
.ft-input-label--in-error .ft-input-label--text {
|
|
299
|
-
color: ${
|
|
299
|
+
color: ${Ei.colorError}
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
.ft-input-label--disabled .ft-input-label--text {
|
|
303
|
-
color: ${
|
|
303
|
+
color: ${Ei.disabledTextColor};
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
.ft-input-label--hidden-text {
|
|
@@ -317,19 +317,19 @@ const Ae=1,Be=2,Pe=t=>(...e)=>({_$litDirective$:t,values:e});let He=class{constr
|
|
|
317
317
|
overflow: hidden;
|
|
318
318
|
white-space: nowrap;
|
|
319
319
|
text-overflow: ellipsis;
|
|
320
|
-
padding: ${
|
|
321
|
-
margin: calc(${
|
|
320
|
+
padding: ${Ei.verticalSpacing} 4px;
|
|
321
|
+
margin: calc(${Ei.verticalSpacing} * -1) 0;
|
|
322
322
|
max-width: 100%;
|
|
323
323
|
box-sizing: border-box;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
.ft-input-label--raised .ft-input-label--text {
|
|
327
|
-
${Se(
|
|
328
|
-
${Se(
|
|
327
|
+
${Se(Yo.fontSize,Ei.raisedFontSize)};
|
|
328
|
+
${Se(Yo.lineHeight,Ei.raisedFontSize)};
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
332
|
-
top: ${
|
|
332
|
+
top: ${Ei.verticalSpacing};
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -342,28 +342,28 @@ const Ae=1,Be=2,Pe=t=>(...e)=>({_$litDirective$:t,values:e});let He=class{constr
|
|
|
342
342
|
.ft-input-label--outlined:before {
|
|
343
343
|
border-left-width: 1px;
|
|
344
344
|
border-left-style: solid;
|
|
345
|
-
border-radius: ${
|
|
345
|
+
border-radius: ${Ei.borderRadiusS} 0 0 ${Ei.borderRadiusS};
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
.ft-input-label--outlined:after {
|
|
349
349
|
border-right-width: 1px;
|
|
350
350
|
border-right-style: solid;
|
|
351
|
-
border-radius: 0 ${
|
|
351
|
+
border-radius: 0 ${Ei.borderRadiusS} ${Ei.borderRadiusS} 0;
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
355
355
|
padding: 2px 4px;
|
|
356
|
-
z-index: ${
|
|
357
|
-
background-color: ${
|
|
358
|
-
border-radius: ${
|
|
356
|
+
z-index: ${Ei.raisedZIndex};
|
|
357
|
+
background-color: ${Ei.colorSurface};
|
|
358
|
+
border-radius: ${Ei.borderRadiusS};
|
|
359
359
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
363
363
|
border-top: none;
|
|
364
364
|
}
|
|
365
|
-
`;var
|
|
366
|
-
<div class="${
|
|
365
|
+
`;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 Ze{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 ie`
|
|
366
|
+
<div class="${Xe(t)}">
|
|
367
367
|
${this.text?ie`
|
|
368
368
|
<div class="ft-input-label--text ft-typography--caption">
|
|
369
369
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -371,7 +371,7 @@ const Ae=1,Be=2,Pe=t=>(...e)=>({_$litDirective$:t,values:e});let He=class{constr
|
|
|
371
371
|
</div>
|
|
372
372
|
`:null}
|
|
373
373
|
</div>
|
|
374
|
-
`}}
|
|
374
|
+
`}}Ii.elementDefinitions={},Ii.styles=[xi,Ri],Ui([w({type:String})],Ii.prototype,"text",void 0),Ui([w({type:Boolean})],Ii.prototype,"raised",void 0),Ui([w({type:Boolean})],Ii.prototype,"outlined",void 0),Ui([w({type:Boolean})],Ii.prototype,"disabled",void 0),Ui([w({type:Boolean})],Ii.prototype,"error",void 0),I("ft-input-label")(Ii);const ki=Ne.extend("--ft-ripple-color","",Ee.colorContent),Wi={color:ki,backgroundColor:Ne.extend("--ft-ripple-background-color","",ki),opacityContentOnSurfacePressed:Ne.external(Ee.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ne.external(Ee.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ne.external(Ee.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ne.external(Ee.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ne.create("--ft-ripple-border-radius","","SIZE","0px")},Li=Ne.extend("--ft-ripple-color","",Ee.colorPrimary),Ki=Li,zi=Ne.extend("--ft-ripple-background-color","",Li),Zi=Ne.extend("--ft-ripple-color","",Ee.colorSecondary),Fi=Zi,Di=Ne.extend("--ft-ripple-background-color","",Zi),Mi=vt`
|
|
375
375
|
:host {
|
|
376
376
|
display: contents;
|
|
377
377
|
}
|
|
@@ -384,7 +384,7 @@ const Ae=1,Be=2,Pe=t=>(...e)=>({_$litDirective$:t,values:e});let He=class{constr
|
|
|
384
384
|
|
|
385
385
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
386
386
|
overflow: hidden;
|
|
387
|
-
border-radius: ${
|
|
387
|
+
border-radius: ${Wi.borderRadius};
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
.ft-ripple .ft-ripple--background,
|
|
@@ -418,27 +418,27 @@ const Ae=1,Be=2,Pe=t=>(...e)=>({_$litDirective$:t,values:e});let He=class{constr
|
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
.ft-ripple .ft-ripple--background {
|
|
421
|
-
background-color: ${
|
|
421
|
+
background-color: ${Wi.backgroundColor};
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
.ft-ripple .ft-ripple--effect {
|
|
425
|
-
background-color: ${
|
|
425
|
+
background-color: ${Wi.color};
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
429
|
-
background-color: ${
|
|
429
|
+
background-color: ${Di};
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
433
|
-
background-color: ${
|
|
433
|
+
background-color: ${Fi};
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
437
|
-
background-color: ${
|
|
437
|
+
background-color: ${zi};
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
441
|
-
background-color: ${
|
|
441
|
+
background-color: ${Ki};
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
.ft-ripple .ft-ripple--background {
|
|
@@ -468,39 +468,39 @@ const Ae=1,Be=2,Pe=t=>(...e)=>({_$litDirective$:t,values:e});let He=class{constr
|
|
|
468
468
|
}
|
|
469
469
|
|
|
470
470
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
471
|
-
opacity: ${
|
|
471
|
+
opacity: ${Wi.opacityContentOnSurfaceHover};
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
475
|
-
opacity: ${
|
|
475
|
+
opacity: ${Wi.opacityContentOnSurfaceSelected};
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
479
|
-
opacity: ${
|
|
479
|
+
opacity: ${Wi.opacityContentOnSurfaceFocused};
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
483
|
-
opacity: ${
|
|
483
|
+
opacity: ${Wi.opacityContentOnSurfacePressed};
|
|
484
484
|
transform: translate(-50%, -50%) scale(1);
|
|
485
485
|
}
|
|
486
|
-
`;var
|
|
486
|
+
`;var Ai=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 Bi extends Ze{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 ie`
|
|
487
487
|
<style>
|
|
488
488
|
.ft-ripple .ft-ripple--effect {
|
|
489
489
|
left: ${this.originX}px;
|
|
490
490
|
top: ${this.originY}px;
|
|
491
491
|
}
|
|
492
492
|
</style>
|
|
493
|
-
<div class="${
|
|
493
|
+
<div class="${Xe(t)}">
|
|
494
494
|
<div class="ft-ripple--background"></div>
|
|
495
495
|
<div class="ft-ripple--effect"></div>
|
|
496
496
|
</div>
|
|
497
|
-
`}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()}}
|
|
497
|
+
`}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()}}Bi.elementDefinitions={},Bi.styles=Mi,Ai([w({type:Boolean})],Bi.prototype,"primary",void 0),Ai([w({type:Boolean})],Bi.prototype,"secondary",void 0),Ai([w({type:Boolean})],Bi.prototype,"unbounded",void 0),Ai([w({type:Boolean})],Bi.prototype,"activated",void 0),Ai([w({type:Boolean})],Bi.prototype,"selected",void 0),Ai([w({type:Boolean})],Bi.prototype,"disabled",void 0),Ai([C()],Bi.prototype,"hovered",void 0),Ai([C()],Bi.prototype,"focused",void 0),Ai([C()],Bi.prototype,"pressed",void 0),Ai([C()],Bi.prototype,"rippling",void 0),Ai([C()],Bi.prototype,"originX",void 0),Ai([C()],Bi.prototype,"originY",void 0),Ai([E(".ft-ripple")],Bi.prototype,"ripple",void 0),Ai([E(".ft-ripple--effect")],Bi.prototype,"rippleEffect",void 0),I("ft-ripple")(Bi);
|
|
498
498
|
/**
|
|
499
499
|
* @license
|
|
500
500
|
* Copyright 2017 Google LLC
|
|
501
501
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
502
502
|
*/
|
|
503
|
-
class
|
|
503
|
+
class Pi extends qe{constructor(t){if(super(t),this.et=Q,t.type!==Ve)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this.vt=void 0,this.et=t;if(t===X)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:[]}}}Pi.directiveName="unsafeHTML",Pi.resultType=1;const Hi=Je(Pi);var ji,_i;!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=""}(ji||(ji={})),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=""}(_i||(_i={})),new Map([...["abw"].map((t=>[t,_i.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,_i.AUDIO])),...["avi"].map((t=>[t,_i.AVI])),...["chm","xhs"].map((t=>[t,_i.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,_i.CODE])),...["csv"].map((t=>[t,_i.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,_i.DITA])),...["epub"].map((t=>[t,_i.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,_i.EXCEL])),...["flac"].map((t=>[t,_i.FLAC])),...["gif"].map((t=>[t,_i.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,_i.GZIP])),...["html","htm","xhtml"].map((t=>[t,_i.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,_i.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,_i.JPEG])),...["json"].map((t=>[t,_i.JSON])),...["m4a","m4p"].map((t=>[t,_i.M4A])),...["mov","qt"].map((t=>[t,_i.MOV])),...["mp3"].map((t=>[t,_i.MP3])),...["mp4","m4v"].map((t=>[t,_i.MP4])),...["ogg","oga"].map((t=>[t,_i.OGG])),...["pdf","ps"].map((t=>[t,_i.PDF])),...["png"].map((t=>[t,_i.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,_i.POWERPOINT])),...["rar"].map((t=>[t,_i.RAR])),...["stp"].map((t=>[t,_i.STP])),...["txt","rtf","md","mdown"].map((t=>[t,_i.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,_i.VIDEO])),...["wav"].map((t=>[t,_i.WAV])),...["wma"].map((t=>[t,_i.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,_i.WORD])),...["xml","xsl","rdf"].map((t=>[t,_i.XML])),...["yaml","yml","x-yaml"].map((t=>[t,_i.YAML])),...["zip"].map((t=>[t,_i.ZIP]))]);const Ti=Ne.create("--ft-icon-font-size","","SIZE","24px"),Gi=Ne.extend("--ft-icon-fluid-topics-font-family","",Ne.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),Yi=Ne.extend("--ft-icon-file-format-font-family","",Ne.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),Vi=Ne.extend("--ft-icon-material-font-family","",Ne.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),Ji=Ne.create("--ft-icon-vertical-align","","UNKNOWN","unset"),qi=vt`
|
|
504
504
|
:host, i.ft-icon {
|
|
505
505
|
display: inline-flex;
|
|
506
506
|
align-items: center;
|
|
@@ -509,14 +509,14 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
:host {
|
|
512
|
-
width: ${
|
|
513
|
-
height: ${
|
|
512
|
+
width: ${Ti};
|
|
513
|
+
height: ${Ti};
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
i.ft-icon {
|
|
517
517
|
width: 100%;
|
|
518
518
|
height: 100%;
|
|
519
|
-
font-size: ${
|
|
519
|
+
font-size: ${Ti};
|
|
520
520
|
line-height: 1;
|
|
521
521
|
font-weight: normal;
|
|
522
522
|
text-transform: none;
|
|
@@ -527,33 +527,33 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
527
527
|
text-rendering: auto;
|
|
528
528
|
-webkit-font-smoothing: antialiased;
|
|
529
529
|
-moz-osx-font-smoothing: grayscale;
|
|
530
|
-
vertical-align: ${
|
|
530
|
+
vertical-align: ${Ji};
|
|
531
531
|
}
|
|
532
532
|
|
|
533
533
|
i.ft-icon.ft-icon--fluid-topics {
|
|
534
|
-
font-family: ${
|
|
534
|
+
font-family: ${Gi}, ft-icons, fticons, sans-serif;
|
|
535
535
|
|
|
536
536
|
/* Ugly fix because font is broken */
|
|
537
|
-
font-size: calc(0.75 * ${
|
|
538
|
-
line-height: ${
|
|
537
|
+
font-size: calc(0.75 * ${Ti});
|
|
538
|
+
line-height: ${Ti};
|
|
539
539
|
position: relative;
|
|
540
540
|
top: -4%;
|
|
541
541
|
justify-content: center;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
.ft-icon--file-format {
|
|
545
|
-
font-family: ${
|
|
545
|
+
font-family: ${Yi}, ft-mime, sans-serif;
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
.ft-icon--material {
|
|
549
|
-
font-family: ${
|
|
549
|
+
font-family: ${Vi}, "Material Icons", sans-serif;
|
|
550
550
|
}
|
|
551
|
-
`;var
|
|
551
|
+
`;var Xi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xi||(Xi={}));var Qi=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 tr extends Ze{constructor(){super(...arguments),this.resolvedIcon=ne}render(){const t=this.variant&&Object.values(Xi).includes(this.variant)?this.variant:Xi.fluid_topics,e=t!==Xi.material||!!this.value;return ie`
|
|
552
552
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
553
|
-
${
|
|
553
|
+
${Hi(this.resolvedIcon)}
|
|
554
554
|
<slot ?hidden=${e}></slot>
|
|
555
555
|
</i>
|
|
556
|
-
`}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
|
|
556
|
+
`}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 Xi.file_format:this.resolvedIcon=null!==(t=_i[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Xi.material:this.resolvedIcon=this.value||ne;break;default:this.resolvedIcon=null!==(e=ji[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}tr.elementDefinitions={},tr.styles=qi,Qi([w()],tr.prototype,"variant",void 0),Qi([w()],tr.prototype,"value",void 0),Qi([C()],tr.prototype,"resolvedIcon",void 0),Qi([E("slot")],tr.prototype,"slottedContent",void 0),I("ft-icon")(tr);const er={labelSize:Ne.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:Ne.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:Ne.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ne.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:Ne.create("--ft-select-options-height","","SIZE","unset"),selectedOptionColor:Ne.extend("--ft-select-selected-option-color","",Ee.colorOnSurface),helperColor:Ne.extend("--ft-select-helper-color","",Ee.colorOnSurfaceMedium),optionsColor:Ne.extend("--ft-select-options-color","",Ee.colorOnSurface),optionsZIndex:Ne.create("--ft-select-options-z-index","","NUMBER","3"),colorSurface:Ne.external(Ee.colorSurface,"Design system"),colorOnSurfaceDisabled:Ne.external(Ee.colorOnSurfaceDisabled,"Design system"),colorPrimary:Ne.external(Ee.colorPrimary,"Design system"),borderRadiusS:Ne.external(Ee.borderRadiusS,"Design system"),elevation02:Ne.external(Ee.elevation02,"Design system"),colorError:Ne.external(Ee.colorError,"Design system")},or=vt`
|
|
557
557
|
*:focus {
|
|
558
558
|
outline: none;
|
|
559
559
|
}
|
|
@@ -567,7 +567,7 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
567
567
|
.ft-select--main-panel {
|
|
568
568
|
position: relative;
|
|
569
569
|
display: flex;
|
|
570
|
-
height: calc(4 * ${
|
|
570
|
+
height: calc(4 * ${er.verticalSpacing} + ${er.labelSize} + ${er.selectedOptionSize});
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
.ft-select--input-panel {
|
|
@@ -576,17 +576,17 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
576
576
|
display: flex;
|
|
577
577
|
align-items: center;
|
|
578
578
|
overflow: hidden;
|
|
579
|
-
padding-left: ${
|
|
580
|
-
padding-right: ${
|
|
579
|
+
padding-left: ${er.horizontalSpacing};
|
|
580
|
+
padding-right: ${er.horizontalSpacing};
|
|
581
581
|
gap: 8px;
|
|
582
|
-
color: ${
|
|
583
|
-
${Se(
|
|
582
|
+
color: ${er.selectedOptionColor};
|
|
583
|
+
${Se(Wi.color,er.selectedOptionColor)};
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
.ft-select--input-panel,
|
|
587
587
|
.ft-select--option {
|
|
588
|
-
${Se(
|
|
589
|
-
${Se(
|
|
588
|
+
${Se(Wi.opacityContentOnSurfaceHover,"0.08")};
|
|
589
|
+
${Se(Wi.opacityContentOnSurfacePressed,"0.04")};
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
.ft-select--input-panel > *:not(ft-ripple),
|
|
@@ -596,7 +596,7 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
596
596
|
|
|
597
597
|
.ft-select--disabled .ft-select--input-panel,
|
|
598
598
|
.ft-select--disabled .ft-select--option {
|
|
599
|
-
color: ${
|
|
599
|
+
color: ${er.colorOnSurfaceDisabled};
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -605,20 +605,20 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
605
605
|
}
|
|
606
606
|
|
|
607
607
|
ft-input-label {
|
|
608
|
-
${Se(
|
|
609
|
-
${Se(
|
|
610
|
-
${Se(
|
|
611
|
-
${Se(
|
|
612
|
-
${Se(
|
|
608
|
+
${Se(Ei.fontSize,er.selectedOptionSize)};
|
|
609
|
+
${Se(Ei.raisedFontSize,er.labelSize)};
|
|
610
|
+
${Se(Ei.verticalSpacing,er.verticalSpacing)};
|
|
611
|
+
${Se(Ei.horizontalSpacing,er.horizontalSpacing)};
|
|
612
|
+
${Se(Ei.labelMaxWidth,`calc(100% - ${Ti} - 8px)`)};
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
616
|
-
color: ${
|
|
616
|
+
color: ${er.colorPrimary};
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
620
|
-
${Se(
|
|
621
|
-
${Se(
|
|
620
|
+
${Se(Ei.borderColor,er.colorPrimary)};
|
|
621
|
+
${Se(Ei.textColor,er.colorPrimary)};
|
|
622
622
|
}
|
|
623
623
|
|
|
624
624
|
.ft-select--selected-option {
|
|
@@ -628,12 +628,12 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
628
628
|
overflow: hidden;
|
|
629
629
|
white-space: nowrap;
|
|
630
630
|
text-overflow: ellipsis;
|
|
631
|
-
${Se(
|
|
632
|
-
${Se(
|
|
631
|
+
${Se(Bo.fontSize,er.selectedOptionSize)};
|
|
632
|
+
${Se(Bo.lineHeight,er.selectedOptionSize)};
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
.ft-select--in-error .ft-select--selected-option {
|
|
636
|
-
color: ${
|
|
636
|
+
color: ${er.colorError};
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
ft-icon {
|
|
@@ -645,16 +645,16 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
.ft-select--filled .ft-select--input-panel {
|
|
648
|
-
border-radius: ${
|
|
648
|
+
border-radius: ${er.borderRadiusS} ${er.borderRadiusS} 0 0;
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
652
652
|
align-self: stretch;
|
|
653
|
-
padding-top: calc(${
|
|
653
|
+
padding-top: calc(${er.labelSize} + 2 * ${er.verticalSpacing});
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
.ft-select--outlined .ft-select--input-panel {
|
|
657
|
-
border-radius: ${
|
|
657
|
+
border-radius: ${er.borderRadiusS};
|
|
658
658
|
}
|
|
659
659
|
|
|
660
660
|
.ft-select--options {
|
|
@@ -663,10 +663,10 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
663
663
|
top: 100%;
|
|
664
664
|
left: 0;
|
|
665
665
|
right: 0;
|
|
666
|
-
color: ${
|
|
667
|
-
background: ${
|
|
668
|
-
z-index: ${
|
|
669
|
-
box-shadow: ${
|
|
666
|
+
color: ${er.optionsColor};
|
|
667
|
+
background: ${er.colorSurface};
|
|
668
|
+
z-index: ${er.optionsZIndex};
|
|
669
|
+
box-shadow: ${er.elevation02};
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
.ft-select--fixed .ft-select--options {
|
|
@@ -677,13 +677,13 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
677
677
|
|
|
678
678
|
.ft-select--options-displayed .ft-select--options {
|
|
679
679
|
display: block;
|
|
680
|
-
max-height: ${
|
|
680
|
+
max-height: ${er.optionsHeight};
|
|
681
681
|
overflow-y: auto;
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
.ft-select--option {
|
|
685
685
|
position: relative;
|
|
686
|
-
padding: 4px ${
|
|
686
|
+
padding: 4px ${er.horizontalSpacing};
|
|
687
687
|
min-height: 32px;
|
|
688
688
|
display: flex;
|
|
689
689
|
align-items: center;
|
|
@@ -695,15 +695,15 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
695
695
|
}
|
|
696
696
|
|
|
697
697
|
.ft-select--helper-text {
|
|
698
|
-
padding: 0 ${
|
|
699
|
-
color: ${
|
|
698
|
+
padding: 0 ${er.horizontalSpacing};
|
|
699
|
+
color: ${er.helperColor};
|
|
700
700
|
}
|
|
701
701
|
|
|
702
702
|
.ft-select--in-error .ft-select--helper-text {
|
|
703
|
-
color: ${
|
|
703
|
+
color: ${er.colorError};
|
|
704
704
|
}
|
|
705
|
-
`;var
|
|
706
|
-
<div class="${
|
|
705
|
+
`;var ir=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 rr extends Ze{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return ie``}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}rr.elementDefinitions={},ir([w({type:String})],rr.prototype,"label",void 0),ir([w({type:Object,converter:t=>t})],rr.prototype,"value",void 0),ir([w({type:Boolean,reflect:!0})],rr.prototype,"selected",void 0);class nr extends Ze{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,o,i,r;let n=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions;const s=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,l={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":n,"ft-select--has-option-selected":s,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return ie`
|
|
706
|
+
<div class="${Xe(l)}" part="container">
|
|
707
707
|
<div class="ft-select--main-panel" part="main-panel">
|
|
708
708
|
<ft-input-label text="${this.label}"
|
|
709
709
|
part="label"
|
|
@@ -730,7 +730,7 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
730
730
|
part="options"
|
|
731
731
|
@keydown=${this.onOptionsKeyDown}
|
|
732
732
|
innerrole="listbox">
|
|
733
|
-
${
|
|
733
|
+
${ao(this.options,(t=>t.value),(t=>this.renderOption(t)))}
|
|
734
734
|
</div>
|
|
735
735
|
</div>
|
|
736
736
|
${this.helper?ie`
|
|
@@ -741,7 +741,7 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
741
741
|
@option-change=${this.updateOptionsFromSlot}
|
|
742
742
|
></slot>
|
|
743
743
|
`}renderOption(t){let e=this.selectedOption===t;return ie`
|
|
744
|
-
<div class="${
|
|
744
|
+
<div class="${Xe({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
|
|
745
745
|
part="option"
|
|
746
746
|
tabindex="0"
|
|
747
747
|
data-value="${t.value}"
|
|
@@ -750,4 +750,4 @@ class Ki extends He{constructor(t){if(super(t),this.et=Q,t.type!==Be)throw Error
|
|
|
750
750
|
<ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
|
|
751
751
|
<span>${t.label}</span>
|
|
752
752
|
</div>
|
|
753
|
-
`}update(t){super.update(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,o;super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&(null===(o=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===o||o.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let o=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));o&&o.length>0&&(this.options=o)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,o,i,r,n;let a;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),a=null!==(i=null===(o=this.focusedOption)||void 0===o?void 0:o.previousElementSibling)&&void 0!==i?i:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),a=null!==(n=null===(r=this.focusedOption)||void 0===r?void 0:r.nextElementSibling)&&void 0!==n?n:this.firstOption}null==a||a.focus()}onOptionKeyDown(t,e){var o;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(o=this.mainPanel)||void 0===o||o.focus())}selectOption(t){var e,o;if(!U(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(o=this.selectedOption)||void 0===o?void 0:o.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}
|
|
753
|
+
`}update(t){super.update(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,o;super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&(null===(o=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===o||o.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let o=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));o&&o.length>0&&(this.options=o)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,o,i,r,n;let a;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),a=null!==(i=null===(o=this.focusedOption)||void 0===o?void 0:o.previousElementSibling)&&void 0!==i?i:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),a=null!==(n=null===(r=this.focusedOption)||void 0===r?void 0:r.nextElementSibling)&&void 0!==n?n:this.firstOption}null==a||a.focus()}onOptionKeyDown(t,e){var o;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(o=this.mainPanel)||void 0===o||o.focus())}selectOption(t){var e,o;if(!U(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(o=this.selectedOption)||void 0===o?void 0:o.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}nr.elementDefinitions={"ft-input-label":Ii,"ft-typography":$i,"ft-ripple":Bi,"ft-icon":tr},nr.styles=[mi,xi,or],ir([w({type:String})],nr.prototype,"label",void 0),ir([w({type:String})],nr.prototype,"helper",void 0),ir([w({type:Boolean})],nr.prototype,"outlined",void 0),ir([w({type:Boolean})],nr.prototype,"disabled",void 0),ir([w({type:Boolean})],nr.prototype,"error",void 0),ir([w({type:Boolean})],nr.prototype,"fixedMenuPosition",void 0),ir([w({type:Array})],nr.prototype,"options",void 0),ir([C()],nr.prototype,"selectedOption",void 0),ir([C()],nr.prototype,"optionsDisplayed",void 0),ir([C()],nr.prototype,"focusOptions",void 0),ir([E(".ft-select")],nr.prototype,"container",void 0),ir([E(".ft-select--options")],nr.prototype,"optionsMenu",void 0),ir([E(".ft-select--input-panel")],nr.prototype,"mainPanel",void 0),ir([E(".ft-select--option:first-child")],nr.prototype,"firstOption",void 0),ir([E(".ft-select--option:focus")],nr.prototype,"focusedOption",void 0),ir([E(".ft-select--option.ft-select--option-selected")],nr.prototype,"selectedOptionElement",void 0),ir([E(".ft-select--option:last-child")],nr.prototype,"lastOption",void 0),ir([E("slot")],nr.prototype,"optionsSlot",void 0),I("ft-select")(nr),I("ft-select-option")(rr),t.FtSelect=nr,t.FtSelectCssVariables=er,t.FtSelectOption=rr,t.styles=or}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-select",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Value selector for a predefined list of choices",
|
|
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.9",
|
|
23
|
+
"@fluid-topics/ft-input-label": "1.1.9",
|
|
24
|
+
"@fluid-topics/ft-ripple": "1.1.9",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.1.9",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.1.9",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "260010bbe1de163e812ed46e15cd25b7008f2f87"
|
|
30
30
|
}
|