@fluid-topics/ft-filter 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-filter.d.ts +1 -0
- package/build/ft-filter.js +4 -1
- package/build/ft-filter.light.js +1 -1
- package/build/ft-filter.min.js +257 -257
- package/package.json +10 -10
package/build/ft-filter.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||[]);
|
|
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||[]);p(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 h=o.call(i,t);h||(h=f(t),e.call(i,t,h)),this===window.customElements&&(a.set(r,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.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,h=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=h(o)||window.customElements,r=i._getDefinition(e);return r?u(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)}},p=(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)},u=(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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.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(gn){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:
|
|
25
|
+
*/,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:h,getOwnPropertySymbols:f,getPrototypeOf:p}=Object,d=globalThis,u=d.trustedTypes,y=u?u.emptyScript:"",g=d.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?y: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),v={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let O=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=v){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)??v}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=p(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=[...h(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){}};O.elementStyles=[],O.shadowRootOptions={mode:"open"},O[b("elementProperties")]=new Map,O[b("finalized")]=new Map,g?.({ReactiveElement:O}),(d.reactiveElementVersions??=[]).push("2.0.2");
|
|
26
26
|
/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
@@ -58,7 +58,7 @@ const w={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},S=(t=w,e,
|
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2017 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/const F=globalThis,K=F.trustedTypes,B=K?K.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",D=`lit$${(Math.random()+"").slice(9)}$`,A="?"+D,M=`<${A}>`,P=document,H=()=>P.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,_=t=>T(t)||"function"==typeof t?.[Symbol.iterator],G="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Y=/-->/g,J=/>/g,q=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Q=/"/g,tt=/^(?:script|style|textarea|title)$/i,et=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ot=Symbol.for("lit-noChange"),it=Symbol.for("lit-nothing"),rt=new WeakMap,nt=P.createTreeWalker(P,129);function at(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==B?B.createHTML(e):e}const st=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=V;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,
|
|
61
|
+
*/const F=globalThis,K=F.trustedTypes,B=K?K.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",D=`lit$${(Math.random()+"").slice(9)}$`,A="?"+D,M=`<${A}>`,P=document,H=()=>P.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,_=t=>T(t)||"function"==typeof t?.[Symbol.iterator],G="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Y=/-->/g,J=/>/g,q=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Q=/"/g,tt=/^(?:script|style|textarea|title)$/i,et=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ot=Symbol.for("lit-noChange"),it=Symbol.for("lit-nothing"),rt=new WeakMap,nt=P.createTreeWalker(P,129);function at(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==B?B.createHTML(e):e}const st=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=V;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,h=0;for(;h<o.length&&(a.lastIndex=h,l=a.exec(o),null!==l);)h=a.lastIndex,a===V?"!--"===l[1]?a=Y:void 0!==l[1]?a=J:void 0!==l[2]?(tt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=q):void 0!==l[3]&&(a=q):a===q?">"===l[0]?(a=r??V,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?q:'"'===l[3]?Q:X):a===Q||a===X?a=q:a===Y||a===J?a=V:(a=q,r=void 0);const f=a===q&&t[e+1].startsWith("/>")?" ":"";n+=a===V?o+M:c>=0?(i.push(s),o.slice(0,c)+Z+o.slice(c)+D+f):o+D+(-2===c?e:f)}return[at(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let lt=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,h]=st(e,o);if(this.el=t.createElement(c,i),nt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=nt.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Z)){const e=h[a++],o=r.getAttribute(t).split(D),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?dt:"?"===i[1]?ut:"@"===i[1]?yt:pt}),r.removeAttribute(t)}else t.startsWith(D)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(tt.test(r.tagName)){const t=r.textContent.split(D),e=t.length-1;if(e>0){r.textContent=K?K.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],H()),nt.nextNode(),l.push({type:2,index:++n});r.append(t[e],H())}}}else if(8===r.nodeType)if(r.data===A)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(D,t+1));)l.push({type:7,index:n}),t+=D.length-1}n++}}static createElement(t,e){const o=P.createElement("template");return o.innerHTML=t,o}};function ct(t,e,o=t,i){if(e===ot)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=j(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=ct(t,r._$AS(t,e.values),r,i)),e}let ht=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??P).importNode(e,!0);nt.currentNode=i;let r=nt.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ft(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new gt(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=nt.nextNode(),n++)}return nt.currentNode=P,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++}},ft=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=it,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=ct(this,t,e),j(t)?t===it||null==t||""===t?(this._$AH!==it&&this._$AR(),this._$AH=it):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):_(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!==it&&j(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.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=lt.createElement(at(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new ht(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=rt.get(t.strings);return void 0===e&&rt.set(t.strings,e=new lt(t)),e}T(e){T(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(H()),this.k(H()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=it,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=it}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=ct(this,t,e,0),n=!j(t)||t!==this._$AH&&t!==ot,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ct(this,i[o+a],e,a),s===ot&&(s=this._$AH[a]),n||=!j(s)||s!==this._$AH[a],s===it?t=it:t!==it&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===it?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends pt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===it?void 0:t}},ut=class extends pt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==it)}},yt=class extends pt{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=ct(this,t,e,0)??it)===ot)return;const o=this._$AH,i=t===it&&o!==it||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==it&&(o===it||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)}},gt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ct(this,t)}};const bt={j:Z,P:D,A,C:1,M:st,L:ht,R:_,V:ct,D:ft,I:pt,H:ut,N:yt,U:dt,B:gt},mt=F.litHtmlPolyfillSupport;mt?.(lt,ft),(F.litHtmlVersions??=[]).push("3.1.0");
|
|
62
62
|
/**
|
|
63
63
|
* @license
|
|
64
64
|
* Copyright 2019 Google LLC
|
|
@@ -75,7 +75,7 @@ const xt=globalThis,vt=xt.ShadowRoot&&(void 0===xt.ShadyCSS||xt.ShadyCSS.nativeS
|
|
|
75
75
|
* Copyright 2017 Google LLC
|
|
76
76
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
77
77
|
*/
|
|
78
|
-
const Pt=globalThis,Ht=Pt.trustedTypes,jt=Ht?Ht.createPolicy("lit-html",{createHTML:t=>t}):void 0,Tt="$lit$",_t=`lit$${(Math.random()+"").slice(9)}$`,Gt="?"+_t,Vt=`<${Gt}>`,Yt=document,Jt=()=>Yt.createComment(""),qt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Xt=Array.isArray,Qt="[ \t\n\f\r]",te=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ee=/-->/g,oe=/>/g,ie=RegExp(`>|${Qt}(?:([^\\s"'>=/]+)(${Qt}*=${Qt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),re=/'/g,ne=/"/g,ae=/^(?:script|style|textarea|title)$/i,se=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),le=Symbol.for("lit-noChange"),ce=Symbol.for("lit-nothing"),
|
|
78
|
+
const Pt=globalThis,Ht=Pt.trustedTypes,jt=Ht?Ht.createPolicy("lit-html",{createHTML:t=>t}):void 0,Tt="$lit$",_t=`lit$${(Math.random()+"").slice(9)}$`,Gt="?"+_t,Vt=`<${Gt}>`,Yt=document,Jt=()=>Yt.createComment(""),qt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Xt=Array.isArray,Qt="[ \t\n\f\r]",te=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ee=/-->/g,oe=/>/g,ie=RegExp(`>|${Qt}(?:([^\\s"'>=/]+)(${Qt}*=${Qt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),re=/'/g,ne=/"/g,ae=/^(?:script|style|textarea|title)$/i,se=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),le=Symbol.for("lit-noChange"),ce=Symbol.for("lit-nothing"),he=new WeakMap,fe=Yt.createTreeWalker(Yt,129);function pe(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==jt?jt.createHTML(e):e}const de=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=te;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,h=0;for(;h<o.length&&(a.lastIndex=h,l=a.exec(o),null!==l);)h=a.lastIndex,a===te?"!--"===l[1]?a=ee:void 0!==l[1]?a=oe:void 0!==l[2]?(ae.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=ie):void 0!==l[3]&&(a=ie):a===ie?">"===l[0]?(a=r??te,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?ie:'"'===l[3]?ne:re):a===ne||a===re?a=ie:a===ee||a===oe?a=te:(a=ie,r=void 0);const f=a===ie&&t[e+1].startsWith("/>")?" ":"";n+=a===te?o+Vt:c>=0?(i.push(s),o.slice(0,c)+Tt+o.slice(c)+_t+f):o+_t+(-2===c?e:f)}return[pe(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class ue{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]=de(t,e);if(this.el=ue.createElement(l,o),fe.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=fe.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Tt)){const e=c[n++],o=i.getAttribute(t).split(_t),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?me:"?"===a[1]?xe:"@"===a[1]?ve:be}),i.removeAttribute(t)}else t.startsWith(_t)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(ae.test(i.tagName)){const t=i.textContent.split(_t),e=t.length-1;if(e>0){i.textContent=Ht?Ht.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Jt()),fe.nextNode(),s.push({type:2,index:++r});i.append(t[e],Jt())}}}else if(8===i.nodeType)if(i.data===Gt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(_t,t+1));)s.push({type:7,index:r}),t+=_t.length-1}r++}}static createElement(t,e){const o=Yt.createElement("template");return o.innerHTML=t,o}}function ye(t,e,o=t,i){if(e===le)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=qt(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=ye(t,r._$AS(t,e.values),r,i)),e}class ge{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ce,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=ye(this,t,e),qt(t)?t===ce||null==t||""===t?(this._$AH!==ce&&this._$AR(),this._$AH=ce):t!==this._$AH&&t!==le&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Xt(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!==ce&&qt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Yt.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=ue.createElement(pe(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??Yt).importNode(e,!0);fe.currentNode=i;let r=fe.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ge(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new Oe(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=fe.nextNode(),n++)}return fe.currentNode=Yt,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=he.get(t.strings);return void 0===e&&he.set(t.strings,e=new ue(t)),e}T(t){Xt(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 ge(this.k(Jt()),this.k(Jt()),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 be{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ce,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=ce}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=ye(this,t,e,0),n=!qt(t)||t!==this._$AH&&t!==le,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ye(this,i[o+a],e,a),s===le&&(s=this._$AH[a]),n||=!qt(s)||s!==this._$AH[a],s===ce?t=ce:t!==ce&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class me extends be{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ce?void 0:t}}class xe extends be{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ce)}}class ve extends be{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=ye(this,t,e,0)??ce)===le)return;const o=this._$AH,i=t===ce&&o!==ce||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ce&&(o===ce||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 Oe{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){ye(this,t)}}const we=Pt.litHtmlPolyfillSupport;we?.(ue,ge),(Pt.litHtmlVersions??=[]).push("3.1.0");
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
* Copyright 2017 Google LLC
|
|
@@ -86,7 +86,7 @@ let Se=class extends Mt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
86
86
|
* @license
|
|
87
87
|
* Copyright 2019 Google LLC
|
|
88
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
|
-
*/class Fe extends Se{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)=>{ze?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=We.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ke,Be=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 Ze=Symbol("constructorPrototype"),De=Symbol("constructorName"),Ae=Symbol("exportpartsDebouncer");class Me extends Fe{constructor(){super(),this[Ke]=new U(5),this[De]=this.constructor.name,this[Ze]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[De]&&Object.setPrototypeOf(this,this[Ze])}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[Ae].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
|
|
89
|
+
*/class Fe extends Se{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)=>{ze?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=We.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ke,Be=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 Ze=Symbol("constructorPrototype"),De=Symbol("constructorName"),Ae=Symbol("exportpartsDebouncer");class Me extends Fe{constructor(){super(),this[Ke]=new U(5),this[De]=this.constructor.name,this[Ze]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[De]&&Object.setPrototypeOf(this,this[Ze])}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[Ae].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 h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Ke=Ae,Be([N()],Me.prototype,"exportpartsPrefix",void 0),Be([z([])],Me.prototype,"exportpartsPrefixes",void 0),Be([N()],Me.prototype,"customStylesheet",void 0);const Pe=Ce.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");$t`
|
|
90
90
|
.highlight-html-match {
|
|
91
91
|
background: ${Pe};
|
|
92
92
|
}
|
|
@@ -122,107 +122,107 @@ let Se=class extends Mt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
122
122
|
display: inline-block;
|
|
123
123
|
width: 0;
|
|
124
124
|
}
|
|
125
|
-
`;window.ftReduxStores||(window.ftReduxStores={});const
|
|
125
|
+
`;function Te(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var _e,Ge,Ve;const Ye=Symbol("internalReduxEventsUnsubscribers"),Je=Symbol("internalStoresUnsubscribers"),qe=Symbol("internalStores");class Xe extends Me{constructor(){super(...arguments),this[_e]=new Map,this[Ge]=new Map,this[Ve]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[qe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[qe].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[qe].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Te(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[qe].delete(e)}setupStore(t,e){this[qe].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[qe].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[Je].has(t.store):this[Je].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Je].set(t,e.subscribe((()=>this.updateFromStores()))),Te(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[Ye].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Je].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ye].forEach((t=>t())),this[Ye]=[]}unsubscribeFromStore(t){this[Je].has(t)&&this[Je].get(t)(),this[Je].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}_e=Je,Ge=qe,Ve=Ye,Xe.reduxProperties=new Map,Xe.reduxReactiveProperties=new Set,Xe.reduxEventListeners=new Map,window.ftReduxStores||(window.ftReduxStores={});const Qe=Symbol("elementInternals");var to,eo,oo;const io=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(oo=null===(eo=null===(to=window.safari)||void 0===to?void 0:to.pushNotification)||void 0===eo?void 0:eo.toString())&&void 0!==oo?oo:""),ro=Symbol.for(""),no=t=>{if(t?.r===ro)return t?._$litStatic$},ao=t=>({_$litStatic$:t,r:ro}),so=new Map,lo=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=no(n));)l+=r+e[++c],h=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),h){const t=a.join("$$lit$$");void 0===(e=so.get(t))&&(a.raw=a,so.set(t,e=a)),o=s}return t(e,...o)})(et);
|
|
126
126
|
/**
|
|
127
127
|
* @license
|
|
128
128
|
* Copyright 2020 Google LLC
|
|
129
129
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
130
|
-
*/var
|
|
130
|
+
*/var co;!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"}(co||(co={}));const ho=Ce.extend("--ft-typography-font-family","",Le.titleFont),fo=Ce.extend("--ft-typography-font-family","",Le.contentFont),po={fontFamily:fo,fontSize:Ce.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ce.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ce.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ce.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ce.create("--ft-typography-text-transform","","UNKNOWN","inherit")},uo=Ce.extend("--ft-typography-title-font-family","",ho),yo=Ce.extend("--ft-typography-title-font-size","",po.fontSize,"20px"),go=Ce.extend("--ft-typography-title-font-weight","",po.fontWeight,"normal"),bo=Ce.extend("--ft-typography-title-letter-spacing","",po.letterSpacing,"0.15px"),mo=Ce.extend("--ft-typography-title-line-height","",po.lineHeight,"1.2"),xo=Ce.extend("--ft-typography-title-text-transform","",po.textTransform,"inherit"),vo=Ce.extend("--ft-typography-title-dense-font-family","",ho),Oo=Ce.extend("--ft-typography-title-dense-font-size","",po.fontSize,"14px"),wo=Ce.extend("--ft-typography-title-dense-font-weight","",po.fontWeight,"normal"),So=Ce.extend("--ft-typography-title-dense-letter-spacing","",po.letterSpacing,"0.105px"),No=Ce.extend("--ft-typography-title-dense-line-height","",po.lineHeight,"1.7"),$o=Ce.extend("--ft-typography-title-dense-text-transform","",po.textTransform,"inherit"),Co=Ce.extend("--ft-typography-subtitle1-font-family","",fo),ko=Ce.extend("--ft-typography-subtitle1-font-size","",po.fontSize,"16px"),Ro=Ce.extend("--ft-typography-subtitle1-font-weight","",po.fontWeight,"600"),Eo=Ce.extend("--ft-typography-subtitle1-letter-spacing","",po.letterSpacing,"0.144px"),Uo=Ce.extend("--ft-typography-subtitle1-line-height","",po.lineHeight,"1.5"),Io=Ce.extend("--ft-typography-subtitle1-text-transform","",po.textTransform,"inherit"),Lo=Ce.extend("--ft-typography-subtitle2-font-family","",fo),Wo=Ce.extend("--ft-typography-subtitle2-font-size","",po.fontSize,"14px"),zo=Ce.extend("--ft-typography-subtitle2-font-weight","",po.fontWeight,"normal"),Fo=Ce.extend("--ft-typography-subtitle2-letter-spacing","",po.letterSpacing,"0.098px"),Ko=Ce.extend("--ft-typography-subtitle2-line-height","",po.lineHeight,"1.7"),Bo=Ce.extend("--ft-typography-subtitle2-text-transform","",po.textTransform,"inherit"),Zo=Ce.extend("--ft-typography-body1-font-family","",fo),Do=Ce.extend("--ft-typography-body1-font-size","",po.fontSize,"16px"),Ao=Ce.extend("--ft-typography-body1-font-weight","",po.fontWeight,"normal"),Mo=Ce.extend("--ft-typography-body1-letter-spacing","",po.letterSpacing,"0.496px"),Po=Ce.extend("--ft-typography-body1-line-height","",po.lineHeight,"1.5"),Ho=Ce.extend("--ft-typography-body1-text-transform","",po.textTransform,"inherit"),jo={fontFamily:Ce.extend("--ft-typography-body2-font-family","",fo),fontSize:Ce.extend("--ft-typography-body2-font-size","",po.fontSize,"14px"),fontWeight:Ce.extend("--ft-typography-body2-font-weight","",po.fontWeight,"normal"),letterSpacing:Ce.extend("--ft-typography-body2-letter-spacing","",po.letterSpacing,"0.252px"),lineHeight:Ce.extend("--ft-typography-body2-line-height","",po.lineHeight,"1.4"),textTransform:Ce.extend("--ft-typography-body2-text-transform","",po.textTransform,"inherit")},To=Ce.extend("--ft-typography-caption-font-family","",fo),_o=Ce.extend("--ft-typography-caption-font-size","",po.fontSize,"12px"),Go=Ce.extend("--ft-typography-caption-font-weight","",po.fontWeight,"normal"),Vo=Ce.extend("--ft-typography-caption-letter-spacing","",po.letterSpacing,"0.396px"),Yo=Ce.extend("--ft-typography-caption-line-height","",po.lineHeight,"1.33"),Jo=Ce.extend("--ft-typography-caption-text-transform","",po.textTransform,"inherit"),qo=Ce.extend("--ft-typography-breadcrumb-font-family","",fo),Xo=Ce.extend("--ft-typography-breadcrumb-font-size","",po.fontSize,"10px"),Qo=Ce.extend("--ft-typography-breadcrumb-font-weight","",po.fontWeight,"normal"),ti=Ce.extend("--ft-typography-breadcrumb-letter-spacing","",po.letterSpacing,"0.33px"),ei=Ce.extend("--ft-typography-breadcrumb-line-height","",po.lineHeight,"1.6"),oi=Ce.extend("--ft-typography-breadcrumb-text-transform","",po.textTransform,"inherit"),ii=Ce.extend("--ft-typography-overline-font-family","",fo),ri=Ce.extend("--ft-typography-overline-font-size","",po.fontSize,"10px"),ni=Ce.extend("--ft-typography-overline-font-weight","",po.fontWeight,"normal"),ai=Ce.extend("--ft-typography-overline-letter-spacing","",po.letterSpacing,"1.5px"),si=Ce.extend("--ft-typography-overline-line-height","",po.lineHeight,"1.6"),li=Ce.extend("--ft-typography-overline-text-transform","",po.textTransform,"uppercase"),ci={fontFamily:Ce.extend("--ft-typography-button-font-family","",fo),fontSize:Ce.extend("--ft-typography-button-font-size","",po.fontSize,"14px"),fontWeight:Ce.extend("--ft-typography-button-font-weight","",po.fontWeight,"600"),letterSpacing:Ce.extend("--ft-typography-button-letter-spacing","",po.letterSpacing,"1.246px"),lineHeight:Ce.extend("--ft-typography-button-line-height","",po.lineHeight,"1.15"),textTransform:Ce.extend("--ft-typography-button-text-transform","",po.textTransform,"uppercase")},hi=$t`
|
|
131
131
|
.ft-typography--title {
|
|
132
|
-
font-family: ${
|
|
133
|
-
font-size: ${
|
|
134
|
-
font-weight: ${
|
|
135
|
-
letter-spacing: ${
|
|
136
|
-
line-height: ${
|
|
137
|
-
text-transform: ${
|
|
138
|
-
}
|
|
139
|
-
`,
|
|
132
|
+
font-family: ${uo};
|
|
133
|
+
font-size: ${yo};
|
|
134
|
+
font-weight: ${go};
|
|
135
|
+
letter-spacing: ${bo};
|
|
136
|
+
line-height: ${mo};
|
|
137
|
+
text-transform: ${xo};
|
|
138
|
+
}
|
|
139
|
+
`,fi=$t`
|
|
140
140
|
.ft-typography--title-dense {
|
|
141
|
-
font-family: ${
|
|
142
|
-
font-size: ${
|
|
143
|
-
font-weight: ${
|
|
144
|
-
letter-spacing: ${
|
|
145
|
-
line-height: ${
|
|
146
|
-
text-transform: ${
|
|
147
|
-
}
|
|
148
|
-
`,
|
|
141
|
+
font-family: ${vo};
|
|
142
|
+
font-size: ${Oo};
|
|
143
|
+
font-weight: ${wo};
|
|
144
|
+
letter-spacing: ${So};
|
|
145
|
+
line-height: ${No};
|
|
146
|
+
text-transform: ${$o};
|
|
147
|
+
}
|
|
148
|
+
`,pi=$t`
|
|
149
149
|
.ft-typography--subtitle1 {
|
|
150
|
-
font-family: ${
|
|
151
|
-
font-size: ${
|
|
152
|
-
font-weight: ${
|
|
153
|
-
letter-spacing: ${
|
|
154
|
-
line-height: ${
|
|
155
|
-
text-transform: ${
|
|
156
|
-
}
|
|
157
|
-
`,
|
|
150
|
+
font-family: ${Co};
|
|
151
|
+
font-size: ${ko};
|
|
152
|
+
font-weight: ${Ro};
|
|
153
|
+
letter-spacing: ${Eo};
|
|
154
|
+
line-height: ${Uo};
|
|
155
|
+
text-transform: ${Io};
|
|
156
|
+
}
|
|
157
|
+
`,di=$t`
|
|
158
158
|
.ft-typography--subtitle2 {
|
|
159
|
-
font-family: ${
|
|
160
|
-
font-size: ${
|
|
161
|
-
font-weight: ${
|
|
162
|
-
letter-spacing: ${
|
|
163
|
-
line-height: ${
|
|
164
|
-
text-transform: ${
|
|
159
|
+
font-family: ${Lo};
|
|
160
|
+
font-size: ${Wo};
|
|
161
|
+
font-weight: ${zo};
|
|
162
|
+
letter-spacing: ${Fo};
|
|
163
|
+
line-height: ${Ko};
|
|
164
|
+
text-transform: ${Bo};
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
`,
|
|
167
|
+
`,ui=$t`
|
|
168
168
|
.ft-typography--body1 {
|
|
169
|
-
font-family: ${
|
|
170
|
-
font-size: ${
|
|
171
|
-
font-weight: ${
|
|
172
|
-
letter-spacing: ${
|
|
173
|
-
line-height: ${
|
|
174
|
-
text-transform: ${
|
|
175
|
-
}
|
|
176
|
-
`,
|
|
169
|
+
font-family: ${Zo};
|
|
170
|
+
font-size: ${Do};
|
|
171
|
+
font-weight: ${Ao};
|
|
172
|
+
letter-spacing: ${Mo};
|
|
173
|
+
line-height: ${Po};
|
|
174
|
+
text-transform: ${Ho};
|
|
175
|
+
}
|
|
176
|
+
`,yi=$t`
|
|
177
177
|
.ft-typography--body2 {
|
|
178
|
-
font-family: ${
|
|
179
|
-
font-size: ${
|
|
180
|
-
font-weight: ${
|
|
181
|
-
letter-spacing: ${
|
|
182
|
-
line-height: ${
|
|
183
|
-
text-transform: ${
|
|
184
|
-
}
|
|
185
|
-
`,
|
|
178
|
+
font-family: ${jo.fontFamily};
|
|
179
|
+
font-size: ${jo.fontSize};
|
|
180
|
+
font-weight: ${jo.fontWeight};
|
|
181
|
+
letter-spacing: ${jo.letterSpacing};
|
|
182
|
+
line-height: ${jo.lineHeight};
|
|
183
|
+
text-transform: ${jo.textTransform};
|
|
184
|
+
}
|
|
185
|
+
`,gi=$t`
|
|
186
186
|
.ft-typography--caption {
|
|
187
|
-
font-family: ${
|
|
188
|
-
font-size: ${
|
|
189
|
-
font-weight: ${
|
|
190
|
-
letter-spacing: ${
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
193
|
-
}
|
|
194
|
-
`,
|
|
187
|
+
font-family: ${To};
|
|
188
|
+
font-size: ${_o};
|
|
189
|
+
font-weight: ${Go};
|
|
190
|
+
letter-spacing: ${Vo};
|
|
191
|
+
line-height: ${Yo};
|
|
192
|
+
text-transform: ${Jo};
|
|
193
|
+
}
|
|
194
|
+
`,bi=$t`
|
|
195
195
|
.ft-typography--breadcrumb {
|
|
196
|
-
font-family: ${
|
|
197
|
-
font-size: ${
|
|
198
|
-
font-weight: ${
|
|
199
|
-
letter-spacing: ${
|
|
200
|
-
line-height: ${
|
|
201
|
-
text-transform: ${
|
|
202
|
-
}
|
|
203
|
-
`,
|
|
196
|
+
font-family: ${qo};
|
|
197
|
+
font-size: ${Xo};
|
|
198
|
+
font-weight: ${Qo};
|
|
199
|
+
letter-spacing: ${ti};
|
|
200
|
+
line-height: ${ei};
|
|
201
|
+
text-transform: ${oi};
|
|
202
|
+
}
|
|
203
|
+
`,mi=$t`
|
|
204
204
|
.ft-typography--overline {
|
|
205
|
-
font-family: ${
|
|
206
|
-
font-size: ${
|
|
207
|
-
font-weight: ${
|
|
208
|
-
letter-spacing: ${
|
|
209
|
-
line-height: ${
|
|
210
|
-
text-transform: ${
|
|
211
|
-
}
|
|
212
|
-
`,
|
|
205
|
+
font-family: ${ii};
|
|
206
|
+
font-size: ${ri};
|
|
207
|
+
font-weight: ${ni};
|
|
208
|
+
letter-spacing: ${ai};
|
|
209
|
+
line-height: ${si};
|
|
210
|
+
text-transform: ${li};
|
|
211
|
+
}
|
|
212
|
+
`,xi=$t`
|
|
213
213
|
.ft-typography--button {
|
|
214
|
-
font-family: ${
|
|
215
|
-
font-size: ${
|
|
216
|
-
font-weight: ${
|
|
217
|
-
letter-spacing: ${
|
|
218
|
-
line-height: ${
|
|
219
|
-
text-transform: ${
|
|
220
|
-
}
|
|
221
|
-
`,
|
|
214
|
+
font-family: ${ci.fontFamily};
|
|
215
|
+
font-size: ${ci.fontSize};
|
|
216
|
+
font-weight: ${ci.fontWeight};
|
|
217
|
+
letter-spacing: ${ci.letterSpacing};
|
|
218
|
+
line-height: ${ci.lineHeight};
|
|
219
|
+
text-transform: ${ci.textTransform};
|
|
220
|
+
}
|
|
221
|
+
`,vi=$t`
|
|
222
222
|
.ft-typography {
|
|
223
223
|
vertical-align: inherit;
|
|
224
224
|
}
|
|
225
|
-
`,
|
|
225
|
+
`,Oi=[Object.keys(Ee).map((t=>function(t){const e=Ee[t];return $t`
|
|
226
226
|
.ft-typography--${Nt(t)} {
|
|
227
227
|
font-family: ${e.fontFamily};
|
|
228
228
|
font-size: ${e.fontSize};
|
|
@@ -231,25 +231,25 @@ let Se=class extends Mt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
231
231
|
line-height: ${e.lineHeight};
|
|
232
232
|
text-transform: ${e.textCase};
|
|
233
233
|
}
|
|
234
|
-
`}(t)))];var
|
|
235
|
-
<${
|
|
234
|
+
`}(t)))];var wi=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 Si extends Me{constructor(){super(...arguments),this.variant=co.body1}render(){return this.element?lo`
|
|
235
|
+
<${ao(this.element)}
|
|
236
236
|
class="ft-typography ft-typography--${this.variant}">
|
|
237
237
|
<slot></slot>
|
|
238
|
-
</${
|
|
239
|
-
`:
|
|
238
|
+
</${ao(this.element)}>
|
|
239
|
+
`:lo`
|
|
240
240
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
241
|
-
`}}
|
|
241
|
+
`}}Si.styles=[hi,fi,pi,di,ui,yi,gi,bi,mi,xi,vi,...Oi],wi([N()],Si.prototype,"element",void 0),wi([N()],Si.prototype,"variant",void 0),W("ft-typography")(Si);
|
|
242
242
|
/**
|
|
243
243
|
* @license
|
|
244
244
|
* Copyright 2017 Google LLC
|
|
245
245
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
246
246
|
*/
|
|
247
|
-
const
|
|
247
|
+
const Ni=1,$i=2,Ci=t=>(...e)=>({_$litDirective$:t,values:e});class ki{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)}}
|
|
248
248
|
/**
|
|
249
249
|
* @license
|
|
250
250
|
* Copyright 2020 Google LLC
|
|
251
251
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
252
|
-
*/const{D:
|
|
252
|
+
*/const{D:Ri}=bt,Ei=()=>document.createComment(""),Ui=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(Ei(),r),n=i.insertBefore(Ei(),r);o=new Ri(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},Ii=(t,e,o=t)=>(t._$AI(e,o),t),Li={},Wi=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}},zi=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},Fi=Ci(class extends ki{constructor(t){if(super(t),t.type!==$i)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,h,f=0,p=r.length-1,d=0,u=n.length-1;for(;f<=p&&d<=u;)if(null===r[f])f++;else if(null===r[p])p--;else if(s[f]===a[d])l[d]=Ii(r[f],n[d]),f++,d++;else if(s[p]===a[u])l[u]=Ii(r[p],n[u]),p--,u--;else if(s[f]===a[u])l[u]=Ii(r[f],n[u]),Ui(t,l[u+1],r[f]),f++,u--;else if(s[p]===a[d])l[d]=Ii(r[p],n[d]),Ui(t,r[f],r[p]),p--,d++;else if(void 0===c&&(c=zi(a,d,u),h=zi(s,f,p)),c.has(s[f]))if(c.has(s[p])){const e=h.get(a[d]),o=void 0!==e?r[e]:null;if(null===o){const e=Ui(t,r[f]);Ii(e,n[d]),l[d]=e}else l[d]=Ii(o,n[d]),Ui(t,r[f],o),r[e]=null;d++}else Wi(r[p]),p--;else Wi(r[f]),f++;for(;d<=u;){const e=Ui(t,l[u+1]);Ii(e,n[d]),l[d++]=e}for(;f<=p;){const t=r[f++];null!==t&&Wi(t)}return this.dt=a,((t,e=Li)=>{t._$AH=e})(t,l),ot}}),Ki=Ce.extend("--ft-ripple-color","",Le.colorContent),Bi={color:Ki,backgroundColor:Ce.extend("--ft-ripple-background-color","",Ki),opacityContentOnSurfacePressed:Ce.external(Le.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ce.external(Le.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ce.external(Le.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ce.external(Le.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ce.create("--ft-ripple-border-radius","","SIZE","0px")},Zi=Ce.extend("--ft-ripple-color","",Le.colorPrimary),Di=Zi,Ai=Ce.extend("--ft-ripple-background-color","",Zi),Mi=Ce.extend("--ft-ripple-color","",Le.colorSecondary),Pi=Mi,Hi=Ce.extend("--ft-ripple-background-color","",Mi),ji=$t`
|
|
253
253
|
:host {
|
|
254
254
|
display: contents;
|
|
255
255
|
}
|
|
@@ -262,7 +262,7 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
262
262
|
|
|
263
263
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
264
264
|
overflow: hidden;
|
|
265
|
-
border-radius: ${
|
|
265
|
+
border-radius: ${Bi.borderRadius};
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
.ft-ripple .ft-ripple--background,
|
|
@@ -296,27 +296,27 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
.ft-ripple .ft-ripple--background {
|
|
299
|
-
background-color: ${
|
|
299
|
+
background-color: ${Bi.backgroundColor};
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
.ft-ripple .ft-ripple--effect {
|
|
303
|
-
background-color: ${
|
|
303
|
+
background-color: ${Bi.color};
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
307
|
-
background-color: ${
|
|
307
|
+
background-color: ${Hi};
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
311
|
-
background-color: ${
|
|
311
|
+
background-color: ${Pi};
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
315
|
-
background-color: ${
|
|
315
|
+
background-color: ${Ai};
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
319
|
-
background-color: ${
|
|
319
|
+
background-color: ${Di};
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
.ft-ripple .ft-ripple--background {
|
|
@@ -346,22 +346,22 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
349
|
-
opacity: ${
|
|
349
|
+
opacity: ${Bi.opacityContentOnSurfaceHover};
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
353
|
-
opacity: ${
|
|
353
|
+
opacity: ${Bi.opacityContentOnSurfaceSelected};
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
357
|
-
opacity: ${
|
|
357
|
+
opacity: ${Bi.opacityContentOnSurfaceFocused};
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
361
|
-
opacity: ${
|
|
361
|
+
opacity: ${Bi.opacityContentOnSurfacePressed};
|
|
362
362
|
transform: translate(-50%, -50%) scale(1);
|
|
363
363
|
}
|
|
364
|
-
`,
|
|
364
|
+
`,Ti={color:Ce.extend("--ft-loader-color","",Le.colorPrimary),size:Ce.create("--ft-loader-size","","SIZE","80px")},_i=$t`
|
|
365
365
|
:host {
|
|
366
366
|
line-height: 0;
|
|
367
367
|
}
|
|
@@ -370,8 +370,8 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
370
370
|
display: inline-block;
|
|
371
371
|
position: relative;
|
|
372
372
|
|
|
373
|
-
width: ${
|
|
374
|
-
height: ${
|
|
373
|
+
width: ${Ti.size};
|
|
374
|
+
height: ${Ti.size};
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
.ft-loader div {
|
|
@@ -380,7 +380,7 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
380
380
|
width: 25%;
|
|
381
381
|
height: 25%;
|
|
382
382
|
border-radius: 50%;
|
|
383
|
-
background: ${
|
|
383
|
+
background: ${Ti.color};
|
|
384
384
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
385
385
|
}
|
|
386
386
|
|
|
@@ -427,10 +427,10 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
427
427
|
transform: translate(0, 0);
|
|
428
428
|
}
|
|
429
429
|
100% {
|
|
430
|
-
transform: translate(calc(0.35 * ${
|
|
430
|
+
transform: translate(calc(0.35 * ${Ti.size}), 0);
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
`,
|
|
433
|
+
`,Gi={size:Ce.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ce.extend("--ft-icon-fluid-topics-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ce.extend("--ft-icon-file-format-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ce.extend("--ft-icon-material-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ce.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Vi=$t`
|
|
434
434
|
:host, i.ft-icon {
|
|
435
435
|
display: inline-flex;
|
|
436
436
|
align-items: center;
|
|
@@ -439,14 +439,14 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
:host {
|
|
442
|
-
width: ${
|
|
443
|
-
height: ${
|
|
442
|
+
width: ${Gi.size};
|
|
443
|
+
height: ${Gi.size};
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
i.ft-icon {
|
|
447
447
|
width: 100%;
|
|
448
448
|
height: 100%;
|
|
449
|
-
font-size: ${
|
|
449
|
+
font-size: ${Gi.size};
|
|
450
450
|
line-height: 1;
|
|
451
451
|
font-weight: normal;
|
|
452
452
|
text-transform: none;
|
|
@@ -457,28 +457,28 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
457
457
|
text-rendering: auto;
|
|
458
458
|
-webkit-font-smoothing: antialiased;
|
|
459
459
|
-moz-osx-font-smoothing: grayscale;
|
|
460
|
-
vertical-align: ${
|
|
460
|
+
vertical-align: ${Gi.verticalAlign};
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
i.ft-icon.ft-icon--fluid-topics {
|
|
464
|
-
font-family: ${
|
|
464
|
+
font-family: ${Gi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
465
465
|
|
|
466
466
|
/* Ugly fix because font is broken */
|
|
467
|
-
font-size: calc(0.75 * ${
|
|
468
|
-
line-height: ${
|
|
467
|
+
font-size: calc(0.75 * ${Gi.size});
|
|
468
|
+
line-height: ${Gi.size};
|
|
469
469
|
position: relative;
|
|
470
470
|
top: -4%;
|
|
471
471
|
justify-content: center;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
.ft-icon--file-format {
|
|
475
|
-
font-family: ${
|
|
475
|
+
font-family: ${Gi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
.ft-icon--material {
|
|
479
|
-
font-family: ${
|
|
479
|
+
font-family: ${Gi.materialFontFamily}, "Material Icons", sans-serif;
|
|
480
480
|
}
|
|
481
|
-
`,
|
|
481
|
+
`,Yi=Ce.extend("--ft-button-color","",Le.colorPrimary),Ji={backgroundColor:Ce.extend("--ft-button-background-color","",Le.colorSurface),borderRadius:Ce.extend("--ft-button-border-radius","",Le.borderRadiusL),color:Yi,fontSize:Ce.extend("--ft-button-font-size","",ci.fontSize),iconSize:Ce.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ce.extend("--ft-button-ripple-color","",Yi),verticalPadding:Ce.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ce.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ce.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ce.external(Le.colorOpacityDisabled,"Design system")},qi=Ce.extend("--ft-button-primary-color","",Ce.extend("--ft-button-color","",Le.colorOnPrimary)),Xi={backgroundColor:Ce.extend("--ft-button-primary-background-color","",Ce.extend("--ft-button-background-color","",Le.colorPrimary)),color:qi,rippleColor:Ce.extend("--ft-button-primary-ripple-color","",qi)},Qi=Ce.extend("--ft-button-dense-border-radius","",Ce.extend("--ft-button-border-radius","",Le.borderRadiusM)),tr=Ce.create("--ft-button-dense-vertical-padding","","SIZE","2px"),er=Ce.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),or=Ce.create("--ft-button-dense-icon-padding","","SIZE","4px"),ir=[$t`
|
|
482
482
|
:host {
|
|
483
483
|
display: inline-block;
|
|
484
484
|
max-width: 100%;
|
|
@@ -489,7 +489,7 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
489
489
|
box-shadow: 0px 0px 0px transparent;
|
|
490
490
|
border: 0px solid transparent;
|
|
491
491
|
text-shadow: 0px 0px 0px transparent;
|
|
492
|
-
font-size: ${
|
|
492
|
+
font-size: ${Ji.fontSize};
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
button:hover {
|
|
@@ -518,31 +518,31 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
518
518
|
border: none;
|
|
519
519
|
pointer-events: auto;
|
|
520
520
|
|
|
521
|
-
--ft-button-internal-line-height: max(calc(${
|
|
522
|
-
--ft-button-internal-color: ${
|
|
523
|
-
${ke(
|
|
524
|
-
${ke(
|
|
521
|
+
--ft-button-internal-line-height: max(calc(${Ji.fontSize} + 2px), ${Ji.iconSize});
|
|
522
|
+
--ft-button-internal-color: ${Ji.color};
|
|
523
|
+
${ke(Gi.size,Ji.iconSize)};
|
|
524
|
+
${ke(Bi.color,Ji.rippleColor)};
|
|
525
525
|
|
|
526
|
-
border-radius: ${
|
|
527
|
-
padding: ${
|
|
528
|
-
background-color: ${
|
|
526
|
+
border-radius: ${Ji.borderRadius};
|
|
527
|
+
padding: ${Ji.verticalPadding} ${Ji.horizontalPadding};
|
|
528
|
+
background-color: ${Ji.backgroundColor};
|
|
529
529
|
color: var(--ft-button-internal-color);
|
|
530
530
|
-webkit-mask-image: radial-gradient(white, black);
|
|
531
531
|
}
|
|
532
532
|
|
|
533
533
|
.ft-button.ft-button--outlined {
|
|
534
534
|
border: 1px solid var(--ft-button-internal-color);
|
|
535
|
-
padding: calc(${
|
|
535
|
+
padding: calc(${Ji.verticalPadding} - 1px) calc(${Ji.horizontalPadding} - 1px);
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
.ft-button.ft-button--dense {
|
|
539
|
-
padding: ${
|
|
540
|
-
border-radius: ${
|
|
541
|
-
gap: ${
|
|
539
|
+
padding: ${tr} ${er};
|
|
540
|
+
border-radius: ${Qi};
|
|
541
|
+
gap: ${or};
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
545
|
-
padding: calc(${
|
|
545
|
+
padding: calc(${tr} - 1px) calc(${er} - 1px);
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
.ft-button:not([disabled]):hover {
|
|
@@ -550,22 +550,22 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
.ft-button--round {
|
|
553
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
553
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ji.verticalPadding});
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
.ft-button--round.ft-button--dense {
|
|
557
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
557
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${tr});
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
.ft-button[disabled] {
|
|
561
561
|
filter: grayscale(1);
|
|
562
|
-
opacity: ${
|
|
562
|
+
opacity: ${Ji.opacityDisabled};
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
.ft-button.ft-button--primary {
|
|
566
|
-
background-color: ${
|
|
567
|
-
--ft-button-internal-color: ${
|
|
568
|
-
${ke(
|
|
566
|
+
background-color: ${Xi.backgroundColor};
|
|
567
|
+
--ft-button-internal-color: ${Xi.color};
|
|
568
|
+
${ke(Bi.color,Xi.rippleColor)};
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
.ft-button:focus {
|
|
@@ -578,13 +578,13 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
578
578
|
white-space: nowrap;
|
|
579
579
|
text-overflow: ellipsis;
|
|
580
580
|
display: block;
|
|
581
|
-
margin: 0 ${
|
|
582
|
-
${ke(
|
|
583
|
-
${ke(
|
|
581
|
+
margin: 0 ${Ji.iconPadding};
|
|
582
|
+
${ke(ci.fontSize,"1em")};
|
|
583
|
+
${ke(ci.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
.ft-button--dense .ft-button--label {
|
|
587
|
-
margin: 0 ${
|
|
587
|
+
margin: 0 ${or};
|
|
588
588
|
}
|
|
589
589
|
|
|
590
590
|
.ft-button--label[hidden] {
|
|
@@ -597,13 +597,13 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
.ft-button--label[hidden] + ft-icon {
|
|
600
|
-
margin: 0 calc(${
|
|
601
|
-
padding: 0 ${
|
|
600
|
+
margin: 0 calc(${Ji.horizontalPadding} * -1);
|
|
601
|
+
padding: 0 ${Ji.verticalPadding};
|
|
602
602
|
}
|
|
603
603
|
|
|
604
604
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
605
|
-
margin: 0 calc(${
|
|
606
|
-
padding: 0 ${
|
|
605
|
+
margin: 0 calc(${er} * -1);
|
|
606
|
+
padding: 0 ${tr};
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -612,26 +612,26 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
612
612
|
}
|
|
613
613
|
|
|
614
614
|
ft-loader {
|
|
615
|
-
${ke(
|
|
616
|
-
${ke(
|
|
615
|
+
${ke(Ti.size,Ji.iconSize)};
|
|
616
|
+
${ke(Ti.color,"var(--ft-button-internal-color)")};
|
|
617
617
|
}
|
|
618
|
-
`,He],
|
|
618
|
+
`,He],rr=Ci(class extends ki{constructor(t){if(super(t),t.type!==Ni||"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 ot}});
|
|
619
619
|
/**
|
|
620
620
|
* @license
|
|
621
621
|
* Copyright 2017 Google LLC
|
|
622
622
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
623
|
-
*/var
|
|
623
|
+
*/var nr=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 ar extends Me{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 U(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 U(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 se`
|
|
624
624
|
<style>
|
|
625
625
|
.ft-ripple .ft-ripple--effect {
|
|
626
626
|
left: ${this.originX}px;
|
|
627
627
|
top: ${this.originY}px;
|
|
628
628
|
}
|
|
629
629
|
</style>
|
|
630
|
-
<div class="${
|
|
630
|
+
<div class="${rr(t)}">
|
|
631
631
|
<div class="ft-ripple--background"></div>
|
|
632
632
|
<div class="ft-ripple--effect"></div>
|
|
633
633
|
</div>
|
|
634
|
-
`}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()}}
|
|
634
|
+
`}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()}}ar.elementDefinitions={},ar.styles=ji,nr([N({type:Boolean})],ar.prototype,"primary",void 0),nr([N({type:Boolean})],ar.prototype,"secondary",void 0),nr([N({type:Boolean})],ar.prototype,"unbounded",void 0),nr([N({type:Boolean})],ar.prototype,"activated",void 0),nr([N({type:Boolean})],ar.prototype,"selected",void 0),nr([N({type:Boolean})],ar.prototype,"disabled",void 0),nr([$()],ar.prototype,"hovered",void 0),nr([$()],ar.prototype,"focused",void 0),nr([$()],ar.prototype,"pressed",void 0),nr([$()],ar.prototype,"rippling",void 0),nr([$()],ar.prototype,"originX",void 0),nr([$()],ar.prototype,"originY",void 0),nr([R(".ft-ripple")],ar.prototype,"ripple",void 0),nr([R(".ft-ripple--effect")],ar.prototype,"rippleEffect",void 0),W("ft-ripple")(ar);const sr=Ce.create("--ft-tooltip-distance","","SIZE","4px"),lr=Ce.create("--ft-tooltip-color","","COLOR","#FFFFFF"),cr=Ce.create("--ft-tooltip-background-color","","COLOR","#666666"),hr=Ce.create("--ft-tooltip-z-index","","NUMBER","100"),fr=Ce.external(Le.borderRadiusS,"Design system"),pr=Ce.create("--ft-tooltip-max-width","","SIZE","150px"),dr=$t`
|
|
635
635
|
.ft-tooltip--container {
|
|
636
636
|
display: block;
|
|
637
637
|
}
|
|
@@ -646,21 +646,21 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
646
646
|
box-sizing: border-box;
|
|
647
647
|
overflow: hidden;
|
|
648
648
|
width: max-content;
|
|
649
|
-
max-width: ${
|
|
649
|
+
max-width: ${pr};
|
|
650
650
|
text-align: center;
|
|
651
|
-
padding: ${
|
|
652
|
-
z-index: ${
|
|
651
|
+
padding: ${sr};
|
|
652
|
+
z-index: ${hr};
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
.ft-tooltip--content {
|
|
656
656
|
padding: 4px 8px;
|
|
657
|
-
border-radius: ${
|
|
658
|
-
background-color: ${
|
|
659
|
-
color: ${
|
|
657
|
+
border-radius: ${fr};
|
|
658
|
+
background-color: ${cr};
|
|
659
|
+
color: ${lr};
|
|
660
660
|
position: relative;
|
|
661
661
|
word-break: break-word;
|
|
662
662
|
}
|
|
663
|
-
`,ar=["start","end"],sr=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ar[0],e+"-"+ar[1])),[]),lr=Math.min,cr=Math.max,fr=Math.round,pr=t=>({x:t,y:t}),hr={left:"right",right:"left",bottom:"top",top:"bottom"},dr={start:"end",end:"start"};function ur(t,e,o){return cr(t,lr(e,o))}function yr(t,e){return"function"==typeof t?t(e):t}function gr(t){return t.split("-")[0]}function br(t){return t.split("-")[1]}function mr(t){return"x"===t?"y":"x"}function xr(t){return"y"===t?"height":"width"}function vr(t){return["top","bottom"].includes(gr(t))?"y":"x"}function Or(t){return mr(vr(t))}function wr(t){return t.replace(/left|right|bottom|top/g,(t=>hr[t]))}function Sr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Nr(t,e,o){let{reference:i,floating:r}=t;const n=vr(e),a=Or(e),s=xr(a),l=gr(e),c="y"===n,f=i.x+i.width/2-r.width/2,p=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:f,y:i.y-r.height};break;case"bottom":d={x:f,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:p};break;case"left":d={x:i.x-r.width,y:p};break;default:d={x:i.x,y:i.y}}switch(br(e)){case"start":d[a]-=h*(o&&c?-1:1);break;case"end":d[a]+=h*(o&&c?-1:1)}return d}async function $r(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:d=0}=yr(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[h?"floating"===p?"reference":"floating":p],g=Sr(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===p?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},v=Sr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-v.top+u.top)/x.y,bottom:(v.bottom-g.bottom+u.bottom)/x.y,left:(g.left-v.left+u.left)/x.x,right:(v.right-g.right+u.right)/x.x}}function Cr(t,e,o){return(t?[...o.filter((e=>br(e)===t)),...o.filter((e=>br(e)!==t))]:o.filter((t=>gr(t)===t))).filter((o=>!t||(br(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>dr[t]))}(o)!==o)))}const kr=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:p,allowedPlacements:h=sr,autoAlignment:d=!0,...u}=yr(t,e),y=void 0!==p||h===sr?Cr(p||null,d,h):h,g=await $r(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const x=function(t,e,o){void 0===o&&(o=!1);const i=br(t),r=Or(t),n=xr(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=wr(a)),[a,wr(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const v=[g[gr(m)],g[x[0]],g[x[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:v}],w=y[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=br(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,br(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:b+1,overflows:O},reset:{placement:$}}:{}}}};function Rr(t){return Ir(t)?(t.nodeName||"").toLowerCase():"#document"}function Er(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ur(t){var e;return null==(e=(Ir(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ir(t){return t instanceof Node||t instanceof Er(t).Node}function Lr(t){return t instanceof Element||t instanceof Er(t).Element}function Wr(t){return t instanceof HTMLElement||t instanceof Er(t).HTMLElement}function zr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Er(t).ShadowRoot)}function Fr(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Ar(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Kr(t){return["table","td","th"].includes(Rr(t))}function Br(t){const e=Zr(),o=Ar(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Zr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Dr(t){return["html","body","#document"].includes(Rr(t))}function Ar(t){return Er(t).getComputedStyle(t)}function Mr(t){return Lr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Pr(t){if("html"===Rr(t))return t;const e=t.assignedSlot||t.parentNode||zr(t)&&t.host||Ur(t);return zr(e)?e.host:e}function Hr(t){const e=Pr(t);return Dr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Wr(e)&&Fr(e)?e:Hr(e)}function jr(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Hr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Er(r);return n?e.concat(a,a.visualViewport||[],Fr(r)?r:[],a.frameElement&&o?jr(a.frameElement):[]):e.concat(r,jr(r,[],o))}function Tr(t){const e=Ar(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Wr(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=fr(o)!==n||fr(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function _r(t){return Lr(t)?t:t.contextElement}function Gr(t){const e=_r(t);if(!Wr(e))return pr(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Tr(e);let a=(n?fr(o.width):o.width)/i,s=(n?fr(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Vr=pr(0);function Yr(t){const e=Er(t);return Zr()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Vr}function Jr(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=_r(t);let a=pr(1);e&&(i?Lr(i)&&(a=Gr(i)):a=Gr(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Er(t))&&e}(n,o,i)?Yr(n):pr(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,p=r.height/a.y;if(n){const t=Er(n),e=i&&Lr(i)?Er(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Gr(o),e=o.getBoundingClientRect(),i=Ar(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,p*=t.y,l+=r,c+=n,o=Er(o).frameElement}}return Sr({width:f,height:p,x:l,y:c})}function qr(t){return Jr(Ur(t)).left+Mr(t).scrollLeft}function Xr(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Er(t),i=Ur(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=Zr();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=Ur(t),o=Mr(t),i=t.ownerDocument.body,r=cr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=cr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+qr(t);const s=-o.scrollTop;return"rtl"===Ar(i).direction&&(a+=cr(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Ur(t));else if(Lr(e))i=function(t,e){const o=Jr(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Wr(t)?Gr(t):pr(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=Yr(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Sr(i)}function Qr(t,e){const o=Pr(t);return!(o===e||!Lr(o)||Dr(o))&&("fixed"===Ar(o).position||Qr(o,e))}function tn(t,e,o){const i=Wr(e),r=Ur(e),n="fixed"===o,a=Jr(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=pr(0);if(i||!i&&!n)if(("body"!==Rr(e)||Fr(r))&&(s=Mr(e)),i){const t=Jr(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=qr(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function en(t,e){return Wr(t)&&"fixed"!==Ar(t).position?e?e(t):t.offsetParent:null}function on(t,e){const o=Er(t);if(!Wr(t))return o;let i=en(t,e);for(;i&&Kr(i)&&"static"===Ar(i).position;)i=en(i,e);return i&&("html"===Rr(i)||"body"===Rr(i)&&"static"===Ar(i).position&&!Br(i))?o:i||function(t){let e=Pr(t);for(;Wr(e)&&!Dr(e);){if(Br(e))return e;e=Pr(e)}return null}(t)||o}const rn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Wr(o),n=Ur(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=pr(1);const l=pr(0);if((r||!r&&"fixed"!==i)&&(("body"!==Rr(o)||Fr(n))&&(a=Mr(o)),Wr(o))){const t=Jr(o);s=Gr(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Ur,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=jr(t,[],!1).filter((t=>Lr(t)&&"body"!==Rr(t))),r=null;const n="fixed"===Ar(t).position;let a=n?Pr(t):t;for(;Lr(a)&&!Dr(a);){const e=Ar(a),o=Br(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Fr(a)&&!o&&Qr(t,a))?i=i.filter((t=>t!==a)):r=e,a=Pr(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=Xr(e,o,r);return t.top=cr(i.top,t.top),t.right=lr(i.right,t.right),t.bottom=lr(i.bottom,t.bottom),t.left=cr(i.left,t.left),t}),Xr(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:on,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||on,n=this.getDimensions;return{reference:tn(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Tr(t)},getScale:Gr,isElement:Lr,isRTL:function(t){return"rtl"===Ar(t).direction}},nn=(t,e,o)=>{const i=new Map,r={platform:rn,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:p}=Nr(c,i,l),h=i,d={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:x}=await y({x:f,y:p,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,p=null!=b?b:p,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:f,y:p}=Nr(c,h,l))),o=-1)}return{x:f,y:p,placement:h,strategy:r,middlewareData:d}})(t,e,{...r,platform:n})};var an=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 sn extends Me{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return se`
|
|
663
|
+
`,ur=["start","end"],yr=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ur[0],e+"-"+ur[1])),[]),gr=Math.min,br=Math.max,mr=Math.round,xr=t=>({x:t,y:t}),vr={left:"right",right:"left",bottom:"top",top:"bottom"},Or={start:"end",end:"start"};function wr(t,e,o){return br(t,gr(e,o))}function Sr(t,e){return"function"==typeof t?t(e):t}function Nr(t){return t.split("-")[0]}function $r(t){return t.split("-")[1]}function Cr(t){return"x"===t?"y":"x"}function kr(t){return"y"===t?"height":"width"}function Rr(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function Er(t){return Cr(Rr(t))}function Ur(t){return t.replace(/left|right|bottom|top/g,(t=>vr[t]))}function Ir(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Lr(t,e,o){let{reference:i,floating:r}=t;const n=Rr(e),a=Er(e),s=kr(a),l=Nr(e),c="y"===n,h=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,p=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:h,y:i.y-r.height};break;case"bottom":d={x:h,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-r.width,y:f};break;default:d={x:i.x,y:i.y}}switch($r(e)){case"start":d[a]-=p*(o&&c?-1:1);break;case"end":d[a]+=p*(o&&c?-1:1)}return d}async function Wr(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:p=!1,padding:d=0}=Sr(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[p?"floating"===f?"reference":"floating":f],g=Ir(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:h,strategy:l})),b="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},v=Ir(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-v.top+u.top)/x.y,bottom:(v.bottom-g.bottom+u.bottom)/x.y,left:(g.left-v.left+u.left)/x.x,right:(v.right-g.right+u.right)/x.x}}function zr(t,e,o){return(t?[...o.filter((e=>$r(e)===t)),...o.filter((e=>$r(e)!==t))]:o.filter((t=>Nr(t)===t))).filter((o=>!t||($r(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Or[t]))}(o)!==o)))}const Fr=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:p=yr,autoAlignment:d=!0,...u}=Sr(t,e),y=void 0!==f||p===yr?zr(f||null,d,p):p,g=await Wr(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const x=function(t,e,o){void 0===o&&(o=!1);const i=$r(t),r=Er(t),n=kr(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Ur(a)),[a,Ur(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const v=[g[Nr(m)],g[x[0]],g[x[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:v}],w=y[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=$r(t.placement);return[t.placement,e&&h?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,$r(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:b+1,overflows:O},reset:{placement:$}}:{}}}};function Kr(t){return Dr(t)?(t.nodeName||"").toLowerCase():"#document"}function Br(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Zr(t){var e;return null==(e=(Dr(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Dr(t){return t instanceof Node||t instanceof Br(t).Node}function Ar(t){return t instanceof Element||t instanceof Br(t).Element}function Mr(t){return t instanceof HTMLElement||t instanceof Br(t).HTMLElement}function Pr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Br(t).ShadowRoot)}function Hr(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Vr(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function jr(t){return["table","td","th"].includes(Kr(t))}function Tr(t){const e=_r(),o=Vr(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function _r(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Gr(t){return["html","body","#document"].includes(Kr(t))}function Vr(t){return Br(t).getComputedStyle(t)}function Yr(t){return Ar(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jr(t){if("html"===Kr(t))return t;const e=t.assignedSlot||t.parentNode||Pr(t)&&t.host||Zr(t);return Pr(e)?e.host:e}function qr(t){const e=Jr(t);return Gr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Mr(e)&&Hr(e)?e:qr(e)}function Xr(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=qr(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Br(r);return n?e.concat(a,a.visualViewport||[],Hr(r)?r:[],a.frameElement&&o?Xr(a.frameElement):[]):e.concat(r,Xr(r,[],o))}function Qr(t){const e=Vr(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Mr(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=mr(o)!==n||mr(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function tn(t){return Ar(t)?t:t.contextElement}function en(t){const e=tn(t);if(!Mr(e))return xr(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Qr(e);let a=(n?mr(o.width):o.width)/i,s=(n?mr(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const on=xr(0);function rn(t){const e=Br(t);return _r()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:on}function nn(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=tn(t);let a=xr(1);e&&(i?Ar(i)&&(a=en(i)):a=en(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Br(t))&&e}(n,o,i)?rn(n):xr(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,h=r.width/a.x,f=r.height/a.y;if(n){const t=Br(n),e=i&&Ar(i)?Br(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=en(o),e=o.getBoundingClientRect(),i=Vr(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,h*=t.x,f*=t.y,l+=r,c+=n,o=Br(o).frameElement}}return Ir({width:h,height:f,x:l,y:c})}function an(t){return nn(Zr(t)).left+Yr(t).scrollLeft}function sn(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Br(t),i=Zr(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=_r();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=Zr(t),o=Yr(t),i=t.ownerDocument.body,r=br(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=br(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+an(t);const s=-o.scrollTop;return"rtl"===Vr(i).direction&&(a+=br(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Zr(t));else if(Ar(e))i=function(t,e){const o=nn(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Mr(t)?en(t):xr(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=rn(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Ir(i)}function ln(t,e){const o=Jr(t);return!(o===e||!Ar(o)||Gr(o))&&("fixed"===Vr(o).position||ln(o,e))}function cn(t,e,o){const i=Mr(e),r=Zr(e),n="fixed"===o,a=nn(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=xr(0);if(i||!i&&!n)if(("body"!==Kr(e)||Hr(r))&&(s=Yr(e)),i){const t=nn(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=an(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function hn(t,e){return Mr(t)&&"fixed"!==Vr(t).position?e?e(t):t.offsetParent:null}function fn(t,e){const o=Br(t);if(!Mr(t))return o;let i=hn(t,e);for(;i&&jr(i)&&"static"===Vr(i).position;)i=hn(i,e);return i&&("html"===Kr(i)||"body"===Kr(i)&&"static"===Vr(i).position&&!Tr(i))?o:i||function(t){let e=Jr(t);for(;Mr(e)&&!Gr(e);){if(Tr(e))return e;e=Jr(e)}return null}(t)||o}const pn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Mr(o),n=Zr(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=xr(1);const l=xr(0);if((r||!r&&"fixed"!==i)&&(("body"!==Kr(o)||Hr(n))&&(a=Yr(o)),Mr(o))){const t=nn(o);s=en(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Zr,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=Xr(t,[],!1).filter((t=>Ar(t)&&"body"!==Kr(t))),r=null;const n="fixed"===Vr(t).position;let a=n?Jr(t):t;for(;Ar(a)&&!Gr(a);){const e=Vr(a),o=Tr(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Hr(a)&&!o&&ln(t,a))?i=i.filter((t=>t!==a)):r=e,a=Jr(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=sn(e,o,r);return t.top=br(i.top,t.top),t.right=gr(i.right,t.right),t.bottom=gr(i.bottom,t.bottom),t.left=br(i.left,t.left),t}),sn(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:fn,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||fn,n=this.getDimensions;return{reference:cn(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Qr(t)},getScale:en,isElement:Ar,isRTL:function(t){return"rtl"===Vr(t).direction}},dn=(t,e,o)=>{const i=new Map,r={platform:pn,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:h,y:f}=Lr(c,i,l),p=i,d={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:x}=await y({x:h,y:f,initialPlacement:i,placement:p,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});h=null!=g?g:h,f=null!=b?b:f,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:h,y:f}=Lr(c,p,l))),o=-1)}return{x:h,y:f,placement:p,strategy:r,middlewareData:d}})(t,e,{...r,platform:n})};var un=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 yn extends Me{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return se`
|
|
664
664
|
<div part="container"
|
|
665
665
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
666
666
|
@mouseenter=${this.onHover}
|
|
@@ -678,40 +678,40 @@ const gi=1,bi=2,mi=t=>(...e)=>({_$litDirective$:t,values:e});class xi{constructo
|
|
|
678
678
|
</div>
|
|
679
679
|
</div>
|
|
680
680
|
</div>
|
|
681
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",
|
|
681
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",dn(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Sr(t,e),c={x:o,y:i},h=await Wr(e,l),f=Rr(Nr(r)),p=Cr(f);let d=c[p],u=c[f];if(n){const t="y"===p?"bottom":"right";d=wr(d+h["y"===p?"top":"left"],d,d-h[t])}if(a){const t="y"===f?"bottom":"right";u=wr(u+h["y"===f?"top":"left"],u,u-h[t])}const y=s.fn({...e,[p]:d,[f]:u});return{...y,data:{x:y.x-o,y:y.y-i}}}}),Fr({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}yn.elementDefinitions={"ft-typography":Si},yn.styles=dr,un([N()],yn.prototype,"text",void 0),un([N({type:Boolean})],yn.prototype,"manual",void 0),un([N({type:Boolean})],yn.prototype,"inline",void 0),un([N({type:Number})],yn.prototype,"delay",void 0),un([N()],yn.prototype,"position",void 0),un([
|
|
682
682
|
/**
|
|
683
683
|
* @license
|
|
684
684
|
* Copyright 2017 Google LLC
|
|
685
685
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
686
686
|
*/
|
|
687
|
-
function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return k(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],
|
|
687
|
+
function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return k(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],yn.prototype,"slotNodes",void 0),un([R(".ft-tooltip--container")],yn.prototype,"container",void 0),un([R(".ft-tooltip")],yn.prototype,"tooltip",void 0),un([R(".ft-tooltip--content")],yn.prototype,"tooltipContent",void 0),un([$()],yn.prototype,"visible",void 0),un([C({passive:!0})],yn.prototype,"onTouch",null),un([C({passive:!0})],yn.prototype,"onHover",null),un([C({passive:!0})],yn.prototype,"onOut",null),W("ft-tooltip")(yn);
|
|
688
688
|
/**
|
|
689
689
|
* @license
|
|
690
690
|
* Copyright 2017 Google LLC
|
|
691
691
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
692
692
|
*/
|
|
693
|
-
class
|
|
693
|
+
class gn extends ki{constructor(t){if(super(t),this.et=it,t.type!==$i)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===it||null==t)return this.vt=void 0,this.et=t;if(t===ot)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:[]}}}gn.directiveName="unsafeHTML",gn.resultType=1;const bn=Ci(gn);var mn,xn,vn;!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=""}(mn||(mn={})),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=""}(xn||(xn={})),new Map([...["abw"].map((t=>[t,xn.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,xn.AUDIO])),...["avi"].map((t=>[t,xn.AVI])),...["chm","xhs"].map((t=>[t,xn.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,xn.CODE])),...["csv"].map((t=>[t,xn.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xn.DITA])),...["epub"].map((t=>[t,xn.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xn.EXCEL])),...["flac"].map((t=>[t,xn.FLAC])),...["gif"].map((t=>[t,xn.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xn.GZIP])),...["html","htm","xhtml"].map((t=>[t,xn.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,xn.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xn.JPEG])),...["json"].map((t=>[t,xn.JSON])),...["m4a","m4p"].map((t=>[t,xn.M4A])),...["mov","qt"].map((t=>[t,xn.MOV])),...["mp3"].map((t=>[t,xn.MP3])),...["mp4","m4v"].map((t=>[t,xn.MP4])),...["ogg","oga"].map((t=>[t,xn.OGG])),...["pdf","ps"].map((t=>[t,xn.PDF])),...["png"].map((t=>[t,xn.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xn.POWERPOINT])),...["rar"].map((t=>[t,xn.RAR])),...["stp"].map((t=>[t,xn.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xn.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,xn.VIDEO])),...["wav"].map((t=>[t,xn.WAV])),...["wma"].map((t=>[t,xn.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xn.WORD])),...["xml","xsl","rdf"].map((t=>[t,xn.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xn.YAML])),...["zip"].map((t=>[t,xn.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(vn||(vn={}));var On=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 wn extends Me{constructor(){super(...arguments),this.resolvedIcon=ce}render(){const t=this.variant&&Object.values(vn).includes(this.variant)?this.variant:vn.fluid_topics,e=t!==vn.material||!!this.value;return se`
|
|
694
694
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
695
|
-
${
|
|
695
|
+
${bn(this.resolvedIcon)}
|
|
696
696
|
<slot ?hidden=${e}></slot>
|
|
697
697
|
</i>
|
|
698
|
-
`}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
|
|
698
|
+
`}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 vn.file_format:this.resolvedIcon=null!==(t=xn[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case vn.material:this.resolvedIcon=this.value||ce;break;default:this.resolvedIcon=null!==(e=mn[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}wn.elementDefinitions={},wn.styles=Vi,On([N()],wn.prototype,"variant",void 0),On([N()],wn.prototype,"value",void 0),On([$()],wn.prototype,"resolvedIcon",void 0),On([R("slot")],wn.prototype,"slottedContent",void 0),W("ft-icon")(wn);class Sn extends Me{render(){return se`
|
|
699
699
|
<div class="ft-loader">
|
|
700
700
|
<div></div>
|
|
701
701
|
<div></div>
|
|
702
702
|
<div></div>
|
|
703
703
|
<div></div>
|
|
704
704
|
</div>
|
|
705
|
-
`}}
|
|
705
|
+
`}}Sn.styles=_i,W("ft-loader")(Sn);var Nn=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 $n extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Qe].form}constructor(...t){super(t),this[Qe]=this.attachInternals(),this[Qe].role=e}setFormValue(t){this[Qe].setFormValue(t)}}}(Me,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(se`
|
|
706
706
|
<button part="button"
|
|
707
|
-
class="${
|
|
707
|
+
class="${rr(this.buttonClasses)}"
|
|
708
708
|
aria-label="${this.getLabel()}"
|
|
709
709
|
?disabled=${this.isDisabled()}>
|
|
710
710
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
711
711
|
<ft-typography part="label"
|
|
712
712
|
variant=${this.typographyVariant}
|
|
713
713
|
element="span"
|
|
714
|
-
class="ft-button--label ${
|
|
714
|
+
class="ft-button--label ${io?"ft-safari-ellipsis-fix":""}"
|
|
715
715
|
?hidden=${!this.hasTextContent()}>
|
|
716
716
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
717
717
|
</ft-typography>
|
|
@@ -725,7 +725,7 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
725
725
|
</ft-tooltip>
|
|
726
726
|
`:t}resolveIcon(){return this.loading?se`
|
|
727
727
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?se`
|
|
728
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ce}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
728
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ce}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}$n.elementDefinitions={"ft-ripple":ar,"ft-tooltip":yn,"ft-typography":Si,"ft-icon":wn,"ft-loader":Sn},Nn([N({type:String,reflect:!0})],$n.prototype,"role",void 0),Nn([N()],$n.prototype,"type",void 0),Nn([N({type:Boolean})],$n.prototype,"disabled",void 0),Nn([N()],$n.prototype,"label",void 0),Nn([N()],$n.prototype,"icon",void 0),Nn([N()],$n.prototype,"iconVariant",void 0),Nn([N({type:Boolean})],$n.prototype,"trailingIcon",void 0),Nn([N({type:Boolean})],$n.prototype,"loading",void 0),Nn([N()],$n.prototype,"tooltipPosition",void 0),Nn([N({type:Boolean})],$n.prototype,"hideTooltip",void 0),Nn([N({type:Boolean})],$n.prototype,"forceTooltip",void 0),Nn([R(".ft-button")],$n.prototype,"button",void 0),Nn([R(".ft-button--label slot")],$n.prototype,"slottedContent",void 0);var Cn=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 kn extends $n{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}kn.styles=[je,ir],Cn([N({type:Boolean})],kn.prototype,"primary",void 0),Cn([N({type:Boolean})],kn.prototype,"outlined",void 0),Cn([N({type:Boolean})],kn.prototype,"dense",void 0),Cn([N({type:Boolean})],kn.prototype,"round",void 0);const Rn=[$t`
|
|
729
729
|
:host {
|
|
730
730
|
display: inline-block;
|
|
731
731
|
max-width: 100%;
|
|
@@ -804,13 +804,13 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
804
804
|
/** Primary styles **/
|
|
805
805
|
|
|
806
806
|
.ft-button--primary {
|
|
807
|
-
${ke(
|
|
807
|
+
${ke(Ti.color,Ie.primaryIconColor)};
|
|
808
808
|
|
|
809
|
-
${ke(
|
|
810
|
-
${ke(
|
|
811
|
-
${ke(
|
|
812
|
-
${ke(
|
|
813
|
-
${ke(
|
|
809
|
+
${ke(Bi.color,Ie.primaryStateLayerColor)};
|
|
810
|
+
${ke(Bi.opacityContentOnSurfaceHover,Ie.primaryStateLayerOpacityHover)};
|
|
811
|
+
${ke(Bi.opacityContentOnSurfaceFocused,Ie.primaryStateLayerOpacityFocus)};
|
|
812
|
+
${ke(Bi.opacityContentOnSurfaceSelected,Ie.primaryStateLayerOpacityActive)};
|
|
813
|
+
${ke(Bi.opacityContentOnSurfacePressed,Ie.primaryStateLayerOpacityActive)};
|
|
814
814
|
|
|
815
815
|
background-color: ${Ie.primaryBackgroundColor};
|
|
816
816
|
color: ${Ie.primaryColor};
|
|
@@ -828,13 +828,13 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
828
828
|
/** Secondary styles **/
|
|
829
829
|
|
|
830
830
|
.ft-button--secondary {
|
|
831
|
-
${ke(
|
|
831
|
+
${ke(Ti.color,Ie.secondaryIconColor)};
|
|
832
832
|
|
|
833
|
-
${ke(
|
|
834
|
-
${ke(
|
|
835
|
-
${ke(
|
|
836
|
-
${ke(
|
|
837
|
-
${ke(
|
|
833
|
+
${ke(Bi.color,Ie.secondaryStateLayerColor)};
|
|
834
|
+
${ke(Bi.opacityContentOnSurfaceHover,Ie.secondaryStateLayerOpacityHover)};
|
|
835
|
+
${ke(Bi.opacityContentOnSurfaceFocused,Ie.secondaryStateLayerOpacityFocus)};
|
|
836
|
+
${ke(Bi.opacityContentOnSurfaceSelected,Ie.secondaryStateLayerOpacityActive)};
|
|
837
|
+
${ke(Bi.opacityContentOnSurfacePressed,Ie.secondaryStateLayerOpacityActive)};
|
|
838
838
|
|
|
839
839
|
background-color: ${Ie.secondaryBackgroundColor};
|
|
840
840
|
color: ${Ie.secondaryColor};
|
|
@@ -853,13 +853,13 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
853
853
|
/** Tertiary styles **/
|
|
854
854
|
|
|
855
855
|
.ft-button--tertiary {
|
|
856
|
-
${ke(
|
|
856
|
+
${ke(Ti.color,Ie.tertiaryIconColor)};
|
|
857
857
|
|
|
858
|
-
${ke(
|
|
859
|
-
${ke(
|
|
860
|
-
${ke(
|
|
861
|
-
${ke(
|
|
862
|
-
${ke(
|
|
858
|
+
${ke(Bi.color,Ie.tertiaryStateLayerColor)};
|
|
859
|
+
${ke(Bi.opacityContentOnSurfaceHover,Ie.tertiaryStateLayerOpacityHover)};
|
|
860
|
+
${ke(Bi.opacityContentOnSurfaceFocused,Ie.tertiaryStateLayerOpacityFocus)};
|
|
861
|
+
${ke(Bi.opacityContentOnSurfaceSelected,Ie.tertiaryStateLayerOpacityActive)};
|
|
862
|
+
${ke(Bi.opacityContentOnSurfacePressed,Ie.tertiaryStateLayerOpacityActive)};
|
|
863
863
|
|
|
864
864
|
background-color: ${Ie.tertiaryBackgroundColor};
|
|
865
865
|
color: ${Ie.tertiaryColor};
|
|
@@ -877,13 +877,13 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
877
877
|
/** Neutral styles **/
|
|
878
878
|
|
|
879
879
|
.ft-button--neutral {
|
|
880
|
-
${ke(
|
|
880
|
+
${ke(Ti.color,Ie.neutralIconColor)};
|
|
881
881
|
|
|
882
|
-
${ke(
|
|
883
|
-
${ke(
|
|
884
|
-
${ke(
|
|
885
|
-
${ke(
|
|
886
|
-
${ke(
|
|
882
|
+
${ke(Bi.backgroundColor,Ie.neutralStateLayerColor)};
|
|
883
|
+
${ke(Bi.opacityContentOnSurfaceHover,Ie.neutralStateLayerOpacityHover)};
|
|
884
|
+
${ke(Bi.opacityContentOnSurfaceFocused,Ie.neutralStateLayerOpacityFocus)};
|
|
885
|
+
${ke(Bi.opacityContentOnSurfaceSelected,Ie.neutralStateLayerOpacityActive)};
|
|
886
|
+
${ke(Bi.opacityContentOnSurfacePressed,Ie.neutralStateLayerOpacityActive)};
|
|
887
887
|
|
|
888
888
|
background-color: ${Ie.neutralBackgroundColor};
|
|
889
889
|
color: ${Ie.neutralColor};
|
|
@@ -901,8 +901,8 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
901
901
|
/** Large styles **/
|
|
902
902
|
|
|
903
903
|
.ft-button--large {
|
|
904
|
-
${ke(
|
|
905
|
-
${ke(
|
|
904
|
+
${ke(Gi.size,Ie.largeIconSize)};
|
|
905
|
+
${ke(Ti.size,Ie.largeIconSize)};
|
|
906
906
|
|
|
907
907
|
height: ${Ie.largeHeight};
|
|
908
908
|
padding: 0 ${Ie.largeHorizontalPadding};
|
|
@@ -924,8 +924,8 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
924
924
|
/** Small styles **/
|
|
925
925
|
|
|
926
926
|
.ft-button--small {
|
|
927
|
-
${ke(
|
|
928
|
-
${ke(
|
|
927
|
+
${ke(Gi.size,Ie.smallIconSize)};
|
|
928
|
+
${ke(Ti.size,Ie.smallIconSize)};
|
|
929
929
|
|
|
930
930
|
height: ${Ie.smallHeight};
|
|
931
931
|
padding: 0 ${Ie.smallHorizontalPadding};
|
|
@@ -943,14 +943,14 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
943
943
|
width: ${Ie.smallIconOnlyWidth};
|
|
944
944
|
padding: unset;
|
|
945
945
|
}
|
|
946
|
-
`,He];var
|
|
946
|
+
`,He];var En=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 Un extends $n{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?co.caption1medium:co.body2medium}}Un.styles=[je,Rn],En([N({type:Boolean})],Un.prototype,"primary",void 0),En([N({type:Boolean})],Un.prototype,"secondary",void 0),En([N({type:Boolean})],Un.prototype,"tertiary",void 0),En([N({type:Boolean})],Un.prototype,"neutral",void 0),En([N({type:Boolean})],Un.prototype,"small",void 0),W("ft-button")(kn),W("ftds-button")(Un);const In=Ce.extend("--ft-checkbox-text-color","",Le.colorOnSurfaceHigh),Ln=Ce.external(Le.colorPrimary,"Design system"),Wn=Ce.external(Le.colorOnPrimary,"Design system"),zn=Ce.extend("--ft-checkbox-border-color","",Le.colorOnSurfaceMedium),Fn=Ce.external(Le.colorOnSurfaceDisabled,"Design system"),Kn=$t`
|
|
947
947
|
* {
|
|
948
948
|
box-sizing: border-box;
|
|
949
949
|
}
|
|
950
950
|
|
|
951
951
|
.ft-checkbox {
|
|
952
952
|
box-sizing: border-box;
|
|
953
|
-
color: ${
|
|
953
|
+
color: ${In};
|
|
954
954
|
|
|
955
955
|
display: inline-flex;
|
|
956
956
|
align-items: center;
|
|
@@ -958,7 +958,7 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
958
958
|
}
|
|
959
959
|
|
|
960
960
|
.ft-checkbox--disabled {
|
|
961
|
-
color: ${
|
|
961
|
+
color: ${Fn};
|
|
962
962
|
}
|
|
963
963
|
|
|
964
964
|
input {
|
|
@@ -982,26 +982,26 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
982
982
|
|
|
983
983
|
.ft-checkbox--box {
|
|
984
984
|
display: flex;
|
|
985
|
-
border: 2px solid ${
|
|
985
|
+
border: 2px solid ${zn};
|
|
986
986
|
border-radius: 2px;
|
|
987
987
|
|
|
988
988
|
width: 18px;
|
|
989
989
|
height: 18px;
|
|
990
990
|
|
|
991
|
-
color: ${
|
|
991
|
+
color: ${Wn};
|
|
992
992
|
}
|
|
993
993
|
|
|
994
994
|
|
|
995
995
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
996
996
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
997
|
-
border-color: ${
|
|
998
|
-
background-color: ${
|
|
997
|
+
border-color: ${Ln};
|
|
998
|
+
background-color: ${Ln};
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
1001
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
1002
|
-
border-color: ${
|
|
1002
|
+
border-color: ${Fn};
|
|
1003
1003
|
background-color: transparent;
|
|
1004
|
-
color: ${
|
|
1004
|
+
color: ${Fn};
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
1007
|
.ft-checkbox--checkmark {
|
|
@@ -1020,8 +1020,8 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
1020
1020
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
1021
1021
|
opacity: 1;
|
|
1022
1022
|
}
|
|
1023
|
-
`;var
|
|
1024
|
-
<label class="${
|
|
1023
|
+
`;var Bn=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 Zn extends Me{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return se`
|
|
1024
|
+
<label class="${rr(t)}" for="checkbox-input">
|
|
1025
1025
|
<div class="ft-checkbox--box-container">
|
|
1026
1026
|
<ft-ripple
|
|
1027
1027
|
?disabled=${this.disabled}
|
|
@@ -1046,14 +1046,14 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
1046
1046
|
<slot></slot>
|
|
1047
1047
|
</ft-typography>
|
|
1048
1048
|
</label>
|
|
1049
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}
|
|
1049
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Zn.elementDefinitions={"ft-ripple":ar,"ft-typography":Si},Zn.styles=Kn,Bn([N()],Zn.prototype,"name",void 0),Bn([N({type:Boolean,reflect:!0})],Zn.prototype,"checked",void 0),Bn([N({type:Boolean})],Zn.prototype,"indeterminate",void 0),Bn([N({type:Boolean})],Zn.prototype,"disabled",void 0),Bn([R(".ft-checkbox")],Zn.prototype,"container",void 0),Bn([R("ft-ripple")],Zn.prototype,"ripple",void 0),W("ft-checkbox")(Zn);const Dn=Ce.extend("--ft-radio-text-color","",Le.colorOnSurfaceHigh),An=Ce.external(Le.colorPrimary,"Design system"),Mn=(Ce.external(Le.colorOnPrimary,"Design system"),Ce.extend("--ft-radio-border-color","",Le.colorOnSurfaceMedium)),Pn=Ce.external(Le.colorOnSurfaceDisabled,"Design system"),Hn=$t`
|
|
1050
1050
|
* {
|
|
1051
1051
|
box-sizing: border-box;
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
1054
|
.ft-radio {
|
|
1055
1055
|
box-sizing: border-box;
|
|
1056
|
-
color: ${
|
|
1056
|
+
color: ${Dn};
|
|
1057
1057
|
|
|
1058
1058
|
display: inline-flex;
|
|
1059
1059
|
align-items: center;
|
|
@@ -1061,7 +1061,7 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
1063
|
.ft-radio--disabled {
|
|
1064
|
-
color: ${
|
|
1064
|
+
color: ${Pn};
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
1067
|
input {
|
|
@@ -1084,7 +1084,7 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
1084
1084
|
}
|
|
1085
1085
|
|
|
1086
1086
|
.ft-radio--box {
|
|
1087
|
-
border: 2px solid ${
|
|
1087
|
+
border: 2px solid ${Mn};
|
|
1088
1088
|
border-radius: 50%;
|
|
1089
1089
|
|
|
1090
1090
|
display: flex;
|
|
@@ -1097,7 +1097,7 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
1097
1097
|
|
|
1098
1098
|
.ft-radio--box:after {
|
|
1099
1099
|
content: " ";
|
|
1100
|
-
background-color: ${
|
|
1100
|
+
background-color: ${An};
|
|
1101
1101
|
|
|
1102
1102
|
border-radius: 50%;
|
|
1103
1103
|
|
|
@@ -1109,7 +1109,7 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
1111
|
.ft-radio--checked .ft-radio--box {
|
|
1112
|
-
border-color: ${
|
|
1112
|
+
border-color: ${An};
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
1115
1115
|
|
|
@@ -1118,15 +1118,15 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
1120
|
.ft-radio--disabled .ft-radio--box {
|
|
1121
|
-
border-color: ${
|
|
1121
|
+
border-color: ${Pn};
|
|
1122
1122
|
background-color: transparent;
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
1125
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1126
|
-
background-color: ${
|
|
1126
|
+
background-color: ${Pn};
|
|
1127
1127
|
}
|
|
1128
|
-
`;var
|
|
1129
|
-
<div class="${
|
|
1128
|
+
`;var jn=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 Tn extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class _n extends Me{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return se`
|
|
1129
|
+
<div class="${rr(t)}">
|
|
1130
1130
|
<div class="ft-radio--box-container">
|
|
1131
1131
|
<ft-ripple
|
|
1132
1132
|
?disabled=${this.disabled}
|
|
@@ -1150,22 +1150,22 @@ class ln extends xi{constructor(t){if(super(t),this.et=it,t.type!==bi)throw Erro
|
|
|
1150
1150
|
</ft-typography>
|
|
1151
1151
|
</label>
|
|
1152
1152
|
</div>
|
|
1153
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new
|
|
1153
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Tn(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Tn(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}_n.elementDefinitions={"ft-ripple":ar,"ft-typography":Si},_n.styles=Hn,jn([N()],_n.prototype,"value",void 0),jn([N()],_n.prototype,"name",void 0),jn([N({type:Boolean,reflect:!0})],_n.prototype,"checked",void 0),jn([N({type:Boolean})],_n.prototype,"disabled",void 0),jn([R(".ft-radio")],_n.prototype,"container",void 0),jn([R("ft-ripple")],_n.prototype,"ripple",void 0),jn([R("input")],_n.prototype,"input",void 0);const Gn=$t`
|
|
1154
1154
|
:host {
|
|
1155
1155
|
display: contents;
|
|
1156
1156
|
}
|
|
1157
|
-
`;var
|
|
1157
|
+
`;var Vn=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 Yn extends Me{constructor(){super(...arguments),this.name=""}render(){return se`
|
|
1158
1158
|
<slot @slotchange=${this.onSlotChange}
|
|
1159
1159
|
@change=${this.onChange}
|
|
1160
1160
|
@keydown=${this.onKeyDown}
|
|
1161
1161
|
></slot>
|
|
1162
|
-
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}
|
|
1162
|
+
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}Yn.elementDefinitions={},Yn.styles=Gn,Vn([N()],Yn.prototype,"name",void 0),Vn([
|
|
1163
1163
|
/**
|
|
1164
1164
|
* @license
|
|
1165
1165
|
* Copyright 2021 Google LLC
|
|
1166
1166
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1167
1167
|
*/
|
|
1168
|
-
function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return k(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],
|
|
1168
|
+
function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return k(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],Yn.prototype,"radioButtons",void 0),W("ft-radio")(_n),W("ft-radio-group")(Yn);const Jn={borderRadiusM:Ce.external(Le.borderRadiusM,"Design system"),colorOutline:Ce.external(Le.colorOutline,"Design system"),colorOnSurface:Ce.external(Le.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ce.external(Le.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Ce.external(Le.colorOnSurfaceDisabled,"Design system"),colorPrimary:Ce.external(Le.colorPrimary,"Design system"),colorOnPrimary:Ce.external(Le.colorOnPrimary,"Design system"),fontFamily:Ce.external(jo.fontFamily,"Body2 typography"),fontSize:Ce.external(jo.fontSize,"Body2 typography"),fontWeight:Ce.external(jo.fontWeight,"Body2 typography"),letterSpacing:Ce.external(jo.letterSpacing,"Body2 typography"),lineHeight:Ce.external(jo.lineHeight,"Body2 typography"),textTransform:Ce.external(jo.textTransform,"Body2 typography")},qn=$t`
|
|
1169
1169
|
.ft-filter-level--container {
|
|
1170
1170
|
display: flex;
|
|
1171
1171
|
flex-direction: column;
|
|
@@ -1179,14 +1179,14 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1179
1179
|
flex-shrink: 0;
|
|
1180
1180
|
text-decoration: none;
|
|
1181
1181
|
position: relative;
|
|
1182
|
-
border-radius: ${
|
|
1182
|
+
border-radius: ${Jn.borderRadiusM};
|
|
1183
1183
|
overflow: hidden;
|
|
1184
1184
|
display: flex;
|
|
1185
1185
|
align-items: center;
|
|
1186
1186
|
padding: 4px 4px;
|
|
1187
1187
|
gap: 4px;
|
|
1188
1188
|
cursor: pointer;
|
|
1189
|
-
color: ${
|
|
1189
|
+
color: ${Jn.colorOnSurface};
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
1192
|
.ft-filter-level--go-back:focus {
|
|
@@ -1215,7 +1215,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1215
1215
|
}
|
|
1216
1216
|
|
|
1217
1217
|
ft-button {
|
|
1218
|
-
${ke(
|
|
1218
|
+
${ke(Ji.color,Jn.colorOnSurface)};
|
|
1219
1219
|
}
|
|
1220
1220
|
|
|
1221
1221
|
ft-radio, ft-checkbox {
|
|
@@ -1229,9 +1229,9 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1229
1229
|
|
|
1230
1230
|
.ft-filter-level--no-values {
|
|
1231
1231
|
margin: 10px 0;
|
|
1232
|
-
color: ${
|
|
1232
|
+
color: ${Jn.colorOnSurfaceMedium};
|
|
1233
1233
|
}
|
|
1234
|
-
`;var
|
|
1234
|
+
`;var Xn=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 Qn extends Me{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return se`
|
|
1235
1235
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1236
1236
|
${null==this.parent?null:se`
|
|
1237
1237
|
<div tabindex="0"
|
|
@@ -1250,7 +1250,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1250
1250
|
${this.noValuesLabel}
|
|
1251
1251
|
</ft-typography>
|
|
1252
1252
|
`:ce}
|
|
1253
|
-
${
|
|
1253
|
+
${Fi(e,(t=>t.value),(t=>{var e;return se`
|
|
1254
1254
|
<div class="ft-filter-level--option" part="options">
|
|
1255
1255
|
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
1256
1256
|
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?ce:se`
|
|
@@ -1295,7 +1295,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1295
1295
|
@change=${t=>t.stopPropagation()}>
|
|
1296
1296
|
${t.renderOption?t.renderOption:t.label}
|
|
1297
1297
|
</ft-radio>
|
|
1298
|
-
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}
|
|
1298
|
+
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}Qn.elementDefinitions={"ft-button":kn,"ft-ripple":ar,"ft-typography":Si,"ft-checkbox":Zn,"ft-icon":wn,"ft-radio":_n},Qn.styles=qn,Xn([N({type:String})],Qn.prototype,"filterId",void 0),Xn([N({type:Object})],Qn.prototype,"parent",void 0),Xn([N({type:Array})],Qn.prototype,"options",void 0),Xn([N({type:Boolean})],Qn.prototype,"multivalued",void 0),Xn([N({type:Boolean})],Qn.prototype,"disabled",void 0),Xn([N({type:Boolean})],Qn.prototype,"hideSelectedOptions",void 0),Xn([N({type:Boolean})],Qn.prototype,"preventNavigation",void 0),Xn([N({type:String})],Qn.prototype,"filter",void 0),Xn([N({type:String})],Qn.prototype,"moreValuesButtonLabel",void 0),Xn([N({type:String})],Qn.prototype,"noValuesLabel",void 0),Xn([N({type:Number})],Qn.prototype,"displayedValuesLimit",void 0),Xn([R(".ft-filter-level--container")],Qn.prototype,"container",void 0),Xn([$()],Qn.prototype,"displayedPages",void 0);const ta={buttonsColor:Ce.extend("--ft-snap-scroll-buttons-color","",Le.colorPrimary),buttonsZIndex:Ce.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:Ce.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Ce.external(Le.colorSurface,"Design system")},ea=$t`
|
|
1299
1299
|
.ft-snap-scroll {
|
|
1300
1300
|
box-sizing: border-box;
|
|
1301
1301
|
position: relative;
|
|
@@ -1330,7 +1330,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1330
1330
|
flex-wrap: nowrap;
|
|
1331
1331
|
align-items: flex-start;
|
|
1332
1332
|
justify-content: flex-start;
|
|
1333
|
-
gap: ${
|
|
1333
|
+
gap: ${ta.gap};
|
|
1334
1334
|
}
|
|
1335
1335
|
|
|
1336
1336
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1373,11 +1373,11 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1373
1373
|
.ft-snap-scroll--next {
|
|
1374
1374
|
position: absolute;
|
|
1375
1375
|
display: flex;
|
|
1376
|
-
z-index: ${
|
|
1376
|
+
z-index: ${ta.buttonsZIndex};
|
|
1377
1377
|
opacity: 1;
|
|
1378
1378
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1379
|
-
${ke(
|
|
1380
|
-
${ke(
|
|
1379
|
+
${ke(Ji.backgroundColor,"transparent")};
|
|
1380
|
+
${ke(Ji.color,ta.buttonsColor)};
|
|
1381
1381
|
}
|
|
1382
1382
|
|
|
1383
1383
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1390,37 +1390,37 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1390
1390
|
top: 0;
|
|
1391
1391
|
left: -1px;
|
|
1392
1392
|
bottom: 0;
|
|
1393
|
-
background: linear-gradient(to right, ${
|
|
1393
|
+
background: linear-gradient(to right, ${ta.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1394
1394
|
}
|
|
1395
1395
|
|
|
1396
1396
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1397
1397
|
top: -1px;
|
|
1398
1398
|
left: 0;
|
|
1399
1399
|
right: 0;
|
|
1400
|
-
background: linear-gradient(to bottom, ${
|
|
1400
|
+
background: linear-gradient(to bottom, ${ta.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1401
1401
|
}
|
|
1402
1402
|
|
|
1403
1403
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1404
1404
|
top: 0;
|
|
1405
1405
|
right: -1px;
|
|
1406
1406
|
bottom: 0;
|
|
1407
|
-
background: linear-gradient(to left, ${
|
|
1407
|
+
background: linear-gradient(to left, ${ta.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
1410
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1411
1411
|
left: 0;
|
|
1412
1412
|
right: 0;
|
|
1413
1413
|
bottom: -1px;
|
|
1414
|
-
background: linear-gradient(to top, ${
|
|
1414
|
+
background: linear-gradient(to top, ${ta.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1415
1415
|
}
|
|
1416
1416
|
|
|
1417
1417
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1418
1418
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1419
1419
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1420
1420
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1421
|
-
background-color: ${
|
|
1421
|
+
background-color: ${ta.colorSurface};
|
|
1422
1422
|
}
|
|
1423
|
-
`;var
|
|
1423
|
+
`;var oa=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 ia extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class ra extends Me{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new U(200),this.updateScrollDebouncer=new U(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<o||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=rr({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":io}),e=this.controls&&this.withScroll;return se`
|
|
1424
1424
|
<div part="container" class="${t}">
|
|
1425
1425
|
<ft-button
|
|
1426
1426
|
class="ft-snap-scroll--previous"
|
|
@@ -1444,7 +1444,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1444
1444
|
@click=${this.next}
|
|
1445
1445
|
></ft-button>
|
|
1446
1446
|
</div>
|
|
1447
|
-
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new
|
|
1447
|
+
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new ia(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}ra.elementDefinitions={"ft-button":kn},ra.styles=ea,oa([N({type:Boolean})],ra.prototype,"horizontal",void 0),oa([N({type:Boolean})],ra.prototype,"hideScrollbar",void 0),oa([N({type:Boolean})],ra.prototype,"controls",void 0),oa([N({type:Boolean})],ra.prototype,"limitSize",void 0),oa([$()],ra.prototype,"elements",void 0),oa([$()],ra.prototype,"currentElement",void 0),oa([$()],ra.prototype,"withScroll",void 0),oa([$()],ra.prototype,"startReached",void 0),oa([$()],ra.prototype,"endReached",void 0),oa([R(".ft-snap-scroll--content")],ra.prototype,"contentSlot",void 0),W("ft-snap-scroll")(ra);const na={colorOutline:Ce.external(Le.colorOutline,"Design system"),colorOnSurface:Ce.external(Le.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ce.external(Le.colorOnSurfaceMedium,"Design system"),colorPrimary:Ce.external(Le.colorPrimary,"Design system"),colorSurface:Ce.external(Le.colorSurface,"Design system"),transitionDuration:Ce.external(Le.transitionDuration,"Design system"),transitionTimingFunction:Ce.external(Le.transitionTimingFunction,"Design system")},aa=[gi,$t`
|
|
1448
1448
|
:host {
|
|
1449
1449
|
display: flex;
|
|
1450
1450
|
max-height: 100%;
|
|
@@ -1457,7 +1457,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1457
1457
|
flex-direction: column;
|
|
1458
1458
|
max-height: 100%;
|
|
1459
1459
|
max-width: 100%;
|
|
1460
|
-
color: ${
|
|
1460
|
+
color: ${na.colorOnSurface};
|
|
1461
1461
|
}
|
|
1462
1462
|
|
|
1463
1463
|
.ft-filter--header {
|
|
@@ -1467,13 +1467,13 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1467
1467
|
flex-shrink: 0;
|
|
1468
1468
|
padding: 0 10px;
|
|
1469
1469
|
margin-bottom: 8px;
|
|
1470
|
-
${ke(
|
|
1470
|
+
${ke(po.fontSize,"14px")};
|
|
1471
1471
|
}
|
|
1472
1472
|
|
|
1473
1473
|
.ft-filter--header ft-button {
|
|
1474
1474
|
flex-shrink: 0;
|
|
1475
1475
|
margin-left: auto;
|
|
1476
|
-
${ke(
|
|
1476
|
+
${ke(Ji.iconSize,"18px")};
|
|
1477
1477
|
}
|
|
1478
1478
|
|
|
1479
1479
|
.ft-filter--label {
|
|
@@ -1481,8 +1481,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1481
1481
|
flex-shrink: 1;
|
|
1482
1482
|
flex-grow: 1;
|
|
1483
1483
|
word-break: break-word;
|
|
1484
|
-
${ke(
|
|
1485
|
-
${ke(
|
|
1484
|
+
${ke(po.lineHeight,"22px")};
|
|
1485
|
+
${ke(po.fontWeight,"bold")};
|
|
1486
1486
|
}
|
|
1487
1487
|
|
|
1488
1488
|
.ft-filter--filter {
|
|
@@ -1493,8 +1493,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1493
1493
|
padding: 0 10px;
|
|
1494
1494
|
overflow: hidden;
|
|
1495
1495
|
height: 32px;
|
|
1496
|
-
transition: height ${
|
|
1497
|
-
margin ${
|
|
1496
|
+
transition: height ${na.transitionDuration} ${na.transitionTimingFunction},
|
|
1497
|
+
margin ${na.transitionDuration} ${na.transitionTimingFunction};
|
|
1498
1498
|
transition-delay: 500ms;
|
|
1499
1499
|
}
|
|
1500
1500
|
|
|
@@ -1507,15 +1507,15 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1507
1507
|
display: block;
|
|
1508
1508
|
width: 100%;
|
|
1509
1509
|
border-radius: 4px;
|
|
1510
|
-
border: 1px solid ${
|
|
1510
|
+
border: 1px solid ${na.colorOutline};
|
|
1511
1511
|
padding: 4px;
|
|
1512
|
-
background-color: ${
|
|
1513
|
-
color: ${
|
|
1514
|
-
outline-color: ${
|
|
1512
|
+
background-color: ${na.colorSurface};
|
|
1513
|
+
color: ${na.colorOnSurface};
|
|
1514
|
+
outline-color: ${na.colorPrimary};
|
|
1515
1515
|
}
|
|
1516
1516
|
|
|
1517
1517
|
input::placeholder {
|
|
1518
|
-
color: ${
|
|
1518
|
+
color: ${na.colorOnSurfaceMedium};
|
|
1519
1519
|
}
|
|
1520
1520
|
|
|
1521
1521
|
input:placeholder-shown {
|
|
@@ -1531,7 +1531,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1531
1531
|
}
|
|
1532
1532
|
|
|
1533
1533
|
.ft-filter--separator {
|
|
1534
|
-
border-top: 1px solid ${
|
|
1534
|
+
border-top: 1px solid ${na.colorOutline};
|
|
1535
1535
|
margin: 4px 10px;
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
@@ -1556,7 +1556,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1556
1556
|
slot:not([name]) {
|
|
1557
1557
|
display: none;
|
|
1558
1558
|
}
|
|
1559
|
-
`];var
|
|
1559
|
+
`];var sa=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 la extends CustomEvent{constructor(t){super("change",{detail:t})}}class ca extends Me{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new U(300),this.changeDebouncer=new U(10),this.lastDispatchedValues=[]}get flatOptions(){return I(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get childrenFilteredFlatOptions(){return I(this.options,(t=>{var e;return t.selected?[]:null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.childrenFilteredFlatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return se`
|
|
1560
1560
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1561
1561
|
part="container">
|
|
1562
1562
|
${this.label||t?se`
|
|
@@ -1628,6 +1628,6 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1628
1628
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1629
1629
|
noValuesLabel="${this.noValuesLabel}"
|
|
1630
1630
|
></ft-filter-level>
|
|
1631
|
-
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;L(this.lastDispatchedValues,t)||(this.dispatchEvent(new
|
|
1631
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;L(this.lastDispatchedValues,t)||(this.dispatchEvent(new la(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}ca.elementDefinitions={"ft-button":kn,"ft-filter-level":Qn,"ft-snap-scroll":ra,"ft-typography":Si},ca.styles=aa,sa([N({type:String})],ca.prototype,"id",void 0),sa([N({type:String})],ca.prototype,"label",void 0),sa([N({type:String})],ca.prototype,"filterPlaceHolder",void 0),sa([N({type:String})],ca.prototype,"clearButtonLabel",void 0),sa([N({type:String})],ca.prototype,"moreValuesButtonLabel",void 0),sa([N({type:String})],ca.prototype,"noValuesLabel",void 0),sa([z([])],ca.prototype,"options",void 0),sa([N({type:Boolean})],ca.prototype,"multivalued",void 0),sa([N({type:Boolean})],ca.prototype,"disabled",void 0),sa([N({type:Boolean})],ca.prototype,"raiseSelectedOptions",void 0),sa([N({type:Number})],ca.prototype,"displayedValuesLimit",void 0),sa([N({type:Boolean})],ca.prototype,"hideClearButton",void 0),sa([R(".ft-filter--slot")],ca.prototype,"slotElement",void 0),sa([R(".ft-filter--container")],ca.prototype,"container",void 0),sa([R(".ft-filter--values")],ca.prototype,"valuesContainer",void 0),sa([R(".ft-filter--levels")],ca.prototype,"levelsContainer",void 0),sa([$()],ca.prototype,"lastLevelHasHiddenvalues",void 0),sa([R(".ft-filter--filter input")],ca.prototype,"filterInput",void 0),sa([function(t){return(e,o)=>k(0,0,{get(){return(this.renderRoot??(E??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],ca.prototype,"levels",void 0),sa([$()],ca.prototype,"withScroll",void 0),sa([$()],ca.prototype,"filter",void 0),sa([$()],ca.prototype,"slideIn",void 0),sa([$()],ca.prototype,"slideOut",void 0);var ha=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 fa extends Me{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return se`
|
|
1632
1632
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1633
|
-
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}
|
|
1633
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}fa.elementDefinitions={},ha([N({type:String})],fa.prototype,"label",void 0),ha([N({type:Object,converter:t=>t})],fa.prototype,"value",void 0),ha([N({type:Boolean,reflect:!0})],fa.prototype,"selected",void 0),ha([N({type:Object})],fa.prototype,"subOptions",void 0),ha([z({})],fa.prototype,"renderOption",void 0),ha([R(".ft-filter-option--slot")],fa.prototype,"slotElement",void 0),W("ft-filter")(ca),W("ft-filter-option")(fa),t.FtFilter=ca,t.FtFilterChangeEvent=la,t.FtFilterCssVariables=na,t.FtFilterLevelCssVariables=Jn,t.FtFilterOption=fa,t.levelStyles=qn,t.styles=aa}({});
|