@fluid-topics/ft-filter 0.3.71 → 1.0.0-alpha.1
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-level.css.d.ts +1 -2
- package/build/ft-filter-level.css.js +1 -2
- package/build/ft-filter-level.d.ts +0 -1
- package/build/ft-filter-level.js +7 -7
- package/build/ft-filter-option.d.ts +0 -1
- package/build/ft-filter-option.js +2 -2
- package/build/ft-filter-option.properties.d.ts +0 -1
- package/build/ft-filter-option.properties.js +0 -1
- package/build/ft-filter.css.d.ts +0 -1
- package/build/ft-filter.css.js +0 -1
- package/build/ft-filter.d.ts +0 -1
- package/build/ft-filter.js +2 -2
- package/build/ft-filter.light.js +208 -208
- package/build/ft-filter.min.js +241 -251
- package/build/ft-filter.properties.d.ts +0 -1
- package/build/ft-filter.properties.js +0 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/utils.d.ts +0 -1
- package/build/utils.js +0 -1
- package/package.json +11 -11
package/build/ft-filter.min.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);d(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(n.set(s,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);d(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(n.set(s,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.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 i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const x=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Di){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -55,34 +55,24 @@ var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prot
|
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2019 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/const f=window,u=f.ShadowRoot&&(void 0===f.ShadyCSS||f.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,v=Symbol(),b=new WeakMap;
|
|
58
|
+
*/const f=window,u=f.ShadowRoot&&(void 0===f.ShadyCSS||f.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,v=Symbol(),b=new WeakMap;let x=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==v)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(u&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=b.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&b.set(e,t))}return t}toString(){return this.cssText}};const y=t=>new x("string"==typeof t?t:t+"",void 0,v),g=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new x(i,t,v)},m=(t,e)=>{u?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=f.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},$=u?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return y(e)})(t):t
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
-
*/;var w;const k=window,O=k.trustedTypes,S=O?O.emptyScript:"",C=k.reactiveElementPolyfillSupport,E={toAttribute(t,e){switch(e){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},N=(t,e)=>e!==t&&(e==e||t==t),
|
|
63
|
+
*/;var w;const k=window,O=k.trustedTypes,S=O?O.emptyScript:"",C=k.reactiveElementPolyfillSupport,E={toAttribute(t,e){switch(e){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},N=(t,e)=>e!==t&&(e==e||t==t),R={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:N};let z=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=R){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||R}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift($(t))}else void 0!==t&&e.push($(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return m(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=R){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const r=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:E).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:E;this._$El=s,this[s]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||N)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var
|
|
69
|
+
var M;z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:z}),(null!==(w=k.reactiveElementVersions)&&void 0!==w?w:k.reactiveElementVersions=[]).push("1.6.1");const j=window,B=j.trustedTypes,F=B?B.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",L=`lit$${(Math.random()+"").slice(9)}$`,D="?"+L,T=`<${D}>`,A=document,P=()=>A.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,H=t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),W="[ \t\n\f\r]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,Z=/>/g,J=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),q=/'/g,X=/"/g,G=/^(?:script|style|textarea|title)$/i,Y=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Q=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),et=new WeakMap,it=A.createTreeWalker(A,129,null,!1),ot=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=K;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,a=n.exec(i),null!==a);)c=n.lastIndex,n===K?"!--"===a[1]?n=V:void 0!==a[1]?n=Z:void 0!==a[2]?(G.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=J):void 0!==a[3]&&(n=J):n===J?">"===a[0]?(n=null!=s?s:K,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?J:'"'===a[3]?X:q):n===X||n===q?n=J:n===V||n===Z?n=K:(n=J,s=void 0);const p=n===J&&t[e+1].startsWith("/>")?" ":"";r+=n===K?i+T:h>=0?(o.push(l),i.slice(0,h)+U+i.slice(h)+L+p):i+L+(-2===h?(o.push(void 0),e):p)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(l):l,o]};class st{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[a,h]=ot(t,e);if(this.el=st.createElement(a,i),it.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=it.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(U)||e.startsWith(L)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+U).split(L),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ht:"?"===e[1]?pt:"@"===e[1]?dt:at})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(G.test(o.tagName)){const t=o.textContent.split(L),e=t.length-1;if(e>0){o.textContent=B?B.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],P()),it.nextNode(),l.push({type:2,index:++s});o.append(t[e],P())}}}else if(8===o.nodeType)if(o.data===D)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(L,t+1));)l.push({type:7,index:s}),t+=L.length-1}s++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function rt(t,e,i=t,o){var s,r,n,l;if(e===Q)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=I(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Co)&&void 0!==n?n:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=rt(t,a._$AS(t,e.values),a,o)),e}class nt{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){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(i,!0);it.currentNode=s;let r=it.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new lt(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new ft(r,this,t)),this._$AV.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=it.nextNode(),n++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class lt{constructor(t,e,i,o){var s;this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=rt(this,t,e),I(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==Q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):H(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!==tt&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=st.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new nt(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=et.get(t.strings);return void 0===e&&et.set(t.strings,e=new st(t)),e}T(t){_(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new lt(this.k(P()),this.k(P()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class at{constructor(t,e,i,o,s){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=tt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=rt(this,t,e,0),r=!I(t)||t!==this._$AH&&t!==Q,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=rt(this,o[i+n],e,n),l===Q&&(l=this._$AH[n]),r||(r=!I(l)||l!==this._$AH[n]),l===tt?t=tt:t!==tt&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ht extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}}const ct=B?B.emptyScript:"";class pt extends at{constructor(){super(...arguments),this.type=4}j(t){t&&t!==tt?this.element.setAttribute(this.name,ct):this.element.removeAttribute(this.name)}}class dt extends at{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=rt(this,t,e,0))&&void 0!==i?i:tt)===Q)return;const o=this._$AH,s=t===tt&&o!==tt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==tt&&(o===tt||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ft{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){rt(this,t)}}const ut={O:U,P:L,A:D,C:1,M:ot,L:nt,D:H,R:rt,I:lt,V:at,H:pt,N:dt,U:ht,F:ft},vt=j.litHtmlPolyfillSupport;null==vt||vt(st,lt),(null!==(M=j.litHtmlVersions)&&void 0!==M?M:j.litHtmlVersions=[]).push("2.7.3");
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2017 Google LLC
|
|
73
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
74
|
*/
|
|
75
|
-
var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new rt(e.insertBefore(T(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}}bt.finalized=!0,bt._$litElement$=!0,null===(ut=globalThis.litElementHydrateSupport)||void 0===ut||ut.call(globalThis,{LitElement:bt});const xt=globalThis.litElementPolyfillSupport;null==xt||xt({LitElement:bt}),(null!==(vt=globalThis.litElementVersions)&&void 0!==vt?vt:globalThis.litElementVersions=[]).push("3.2.2");class yt{static create(t,e,i){let o=t=>y(null!=t?t:i),s=g`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>g`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=g`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>g`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=g`var(${y(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>g`var(${y(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function gt(t,e){return y(`${t.name}: ${e}`)}const mt={colorPrimary:yt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:yt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:yt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:yt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:yt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:yt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:yt.create("--ft-color-error","COLOR","#B00020"),colorOutline:yt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:yt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:yt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:yt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:yt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:yt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:yt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:yt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:yt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:yt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:yt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:yt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:yt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:yt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:yt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:yt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:yt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:yt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:yt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:yt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:yt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:yt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:yt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:yt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:yt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:yt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:yt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:yt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:yt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:yt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:yt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:yt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:yt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:yt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:yt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:yt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:yt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:yt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:yt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:yt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:yt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:yt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:yt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:yt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:yt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:yt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:yt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:yt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:yt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:yt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:yt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:yt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:yt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:yt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:yt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
76
|
-
/**
|
|
77
|
-
* @license
|
|
78
|
-
* Copyright 2021 Google LLC
|
|
79
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
80
|
-
*/var $t=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class wt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return m(s,this.constructor.elementStyles),s}}}(bt)){constructor(){super(),this.exportpartsDebouncer=new e(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),X`
|
|
81
|
-
${t.map((t=>X`
|
|
82
|
-
<style>${t}</style>
|
|
83
|
-
`))}
|
|
84
|
-
${this.getTemplate()}
|
|
85
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).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.exportpartsDebouncer.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,i,o,s,r,n;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}$t([o()],wt.prototype,"exportpartsPrefix",void 0),$t([d([])],wt.prototype,"exportpartsPrefixes",void 0),$t([o()],wt.prototype,"customStylesheet",void 0);const kt=g`
|
|
75
|
+
var bt,xt;let yt=class extends z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new lt(e.insertBefore(P(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Q}};yt.finalized=!0,yt._$litElement$=!0,null===(bt=globalThis.litElementHydrateSupport)||void 0===bt||bt.call(globalThis,{LitElement:yt});const gt=globalThis.litElementPolyfillSupport;null==gt||gt({LitElement:yt}),(null!==(xt=globalThis.litElementVersions)&&void 0!==xt?xt:globalThis.litElementVersions=[]).push("3.3.2");class mt{static create(t,e,i){let o=t=>y(null!=t?t:i),s=g`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>g`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=g`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>g`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=g`var(${y(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>g`var(${y(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function $t(t,e){return y(`${t.name}: ${e}`)}const wt={colorPrimary:mt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:mt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:mt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:mt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:mt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:mt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:mt.create("--ft-color-error","COLOR","#B00020"),colorOutline:mt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:mt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:mt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:mt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:mt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:mt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:mt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:mt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:mt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:mt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:mt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:mt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:mt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:mt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:mt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:mt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:mt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:mt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:mt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:mt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:mt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:mt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:mt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:mt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:mt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:mt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:mt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:mt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:mt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:mt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:mt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:mt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:mt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:mt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:mt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:mt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:mt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:mt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:mt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:mt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:mt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:mt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:mt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:mt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:mt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:mt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:mt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:mt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:mt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:mt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:mt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:mt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:mt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:mt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:mt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class kt extends yt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return m(i,t.elementStyles),i}}var Ot,St=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Ct=Symbol("constructorPrototype"),Et=Symbol("constructorName"),Nt=Symbol("exportpartsDebouncer");class Rt extends kt{constructor(){super(),this[Ot]=new e(5),this[Et]=this.constructor.name,this[Ct]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Et]&&Object.setPrototypeOf(this,this[Ct])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).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[Nt].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,i,o,s,r,n;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}Ot=Nt,St([o()],Rt.prototype,"exportpartsPrefix",void 0),St([d([])],Rt.prototype,"exportpartsPrefixes",void 0),St([o()],Rt.prototype,"customStylesheet",void 0);const zt=g`
|
|
86
76
|
.ft-no-text-select {
|
|
87
77
|
-webkit-touch-callout: none;
|
|
88
78
|
-webkit-user-select: none;
|
|
@@ -103,7 +93,7 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
103
93
|
-webkit-hyphens: auto;
|
|
104
94
|
hyphens: auto
|
|
105
95
|
}
|
|
106
|
-
`;const
|
|
96
|
+
`;const Mt=g`
|
|
107
97
|
.ft-safari-ellipsis-fix {
|
|
108
98
|
margin-right: 0;
|
|
109
99
|
|
|
@@ -114,68 +104,50 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
114
104
|
display: inline-block;
|
|
115
105
|
width: 0;
|
|
116
106
|
}
|
|
117
|
-
`;var
|
|
107
|
+
`;var jt,Bt,Ft;const Ut=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ft=null===(Bt=null===(jt=window.safari)||void 0===jt?void 0:jt.pushNotification)||void 0===Bt?void 0:Bt.toString())&&void 0!==Ft?Ft:""),Lt=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===Lt)return null==t?void 0:t._$litStatic$},Tt=t=>({_$litStatic$:t,r:Lt}),At=new Map,Pt=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=e[h];h<o&&void 0!==(r=i[h],s=Dt(r));)a+=s+e[++h],c=!0;h!==o&&l.push(r),n.push(a),h++}if(h===o&&n.push(e[o]),c){const t=n.join("$$lit$$");void 0===(e=At.get(t))&&(n.raw=n,At.set(t,e=n)),i=l}return t(e,...i)})(Y);
|
|
118
108
|
/**
|
|
119
109
|
* @license
|
|
120
110
|
* Copyright 2020 Google LLC
|
|
121
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
122
|
-
*/var
|
|
112
|
+
*/var It;!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"}(It||(It={}));const _t=mt.extend("--ft-typography-font-family",wt.titleFont),Ht=mt.extend("--ft-typography-font-family",wt.contentFont),Wt={fontFamily:Ht,fontSize:mt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:mt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:mt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:mt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:mt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Kt=mt.extend("--ft-typography-title-font-family",_t),Vt=mt.extend("--ft-typography-title-font-size",Wt.fontSize,"20px"),Zt=mt.extend("--ft-typography-title-font-weight",Wt.fontWeight,"normal"),Jt=mt.extend("--ft-typography-title-letter-spacing",Wt.letterSpacing,"0.15px"),qt=mt.extend("--ft-typography-title-line-height",Wt.lineHeight,"1.2"),Xt=mt.extend("--ft-typography-title-text-transform",Wt.textTransform,"inherit"),Gt=mt.extend("--ft-typography-title-dense-font-family",_t),Yt=mt.extend("--ft-typography-title-dense-font-size",Wt.fontSize,"14px"),Qt=mt.extend("--ft-typography-title-dense-font-weight",Wt.fontWeight,"normal"),te=mt.extend("--ft-typography-title-dense-letter-spacing",Wt.letterSpacing,"0.105px"),ee=mt.extend("--ft-typography-title-dense-line-height",Wt.lineHeight,"1.7"),ie=mt.extend("--ft-typography-title-dense-text-transform",Wt.textTransform,"inherit"),oe=mt.extend("--ft-typography-subtitle1-font-family",Ht),se=mt.extend("--ft-typography-subtitle1-font-size",Wt.fontSize,"16px"),re=mt.extend("--ft-typography-subtitle1-font-weight",Wt.fontWeight,"600"),ne=mt.extend("--ft-typography-subtitle1-letter-spacing",Wt.letterSpacing,"0.144px"),le=mt.extend("--ft-typography-subtitle1-line-height",Wt.lineHeight,"1.5"),ae=mt.extend("--ft-typography-subtitle1-text-transform",Wt.textTransform,"inherit"),he=mt.extend("--ft-typography-subtitle2-font-family",Ht),ce=mt.extend("--ft-typography-subtitle2-font-size",Wt.fontSize,"14px"),pe=mt.extend("--ft-typography-subtitle2-font-weight",Wt.fontWeight,"normal"),de=mt.extend("--ft-typography-subtitle2-letter-spacing",Wt.letterSpacing,"0.098px"),fe=mt.extend("--ft-typography-subtitle2-line-height",Wt.lineHeight,"1.7"),ue=mt.extend("--ft-typography-subtitle2-text-transform",Wt.textTransform,"inherit"),ve=mt.extend("--ft-typography-body1-font-family",Ht),be=mt.extend("--ft-typography-body1-font-size",Wt.fontSize,"16px"),xe=mt.extend("--ft-typography-body1-font-weight",Wt.fontWeight,"normal"),ye=mt.extend("--ft-typography-body1-letter-spacing",Wt.letterSpacing,"0.496px"),ge=mt.extend("--ft-typography-body1-line-height",Wt.lineHeight,"1.5"),me=mt.extend("--ft-typography-body1-text-transform",Wt.textTransform,"inherit"),$e={fontFamily:mt.extend("--ft-typography-body2-font-family",Ht),fontSize:mt.extend("--ft-typography-body2-font-size",Wt.fontSize,"14px"),fontWeight:mt.extend("--ft-typography-body2-font-weight",Wt.fontWeight,"normal"),letterSpacing:mt.extend("--ft-typography-body2-letter-spacing",Wt.letterSpacing,"0.252px"),lineHeight:mt.extend("--ft-typography-body2-line-height",Wt.lineHeight,"1.4"),textTransform:mt.extend("--ft-typography-body2-text-transform",Wt.textTransform,"inherit")},we=mt.extend("--ft-typography-caption-font-family",Ht),ke=mt.extend("--ft-typography-caption-font-size",Wt.fontSize,"12px"),Oe=mt.extend("--ft-typography-caption-font-weight",Wt.fontWeight,"normal"),Se=mt.extend("--ft-typography-caption-letter-spacing",Wt.letterSpacing,"0.396px"),Ce=mt.extend("--ft-typography-caption-line-height",Wt.lineHeight,"1.33"),Ee=mt.extend("--ft-typography-caption-text-transform",Wt.textTransform,"inherit"),Ne=mt.extend("--ft-typography-breadcrumb-font-family",Ht),Re=mt.extend("--ft-typography-breadcrumb-font-size",Wt.fontSize,"10px"),ze=mt.extend("--ft-typography-breadcrumb-font-weight",Wt.fontWeight,"normal"),Me=mt.extend("--ft-typography-breadcrumb-letter-spacing",Wt.letterSpacing,"0.33px"),je=mt.extend("--ft-typography-breadcrumb-line-height",Wt.lineHeight,"1.6"),Be=mt.extend("--ft-typography-breadcrumb-text-transform",Wt.textTransform,"inherit"),Fe=mt.extend("--ft-typography-overline-font-family",Ht),Ue=mt.extend("--ft-typography-overline-font-size",Wt.fontSize,"10px"),Le=mt.extend("--ft-typography-overline-font-weight",Wt.fontWeight,"normal"),De=mt.extend("--ft-typography-overline-letter-spacing",Wt.letterSpacing,"1.5px"),Te=mt.extend("--ft-typography-overline-line-height",Wt.lineHeight,"1.6"),Ae=mt.extend("--ft-typography-overline-text-transform",Wt.textTransform,"uppercase"),Pe={fontFamily:mt.extend("--ft-typography-button-font-family",Ht),fontSize:mt.extend("--ft-typography-button-font-size",Wt.fontSize,"14px"),fontWeight:mt.extend("--ft-typography-button-font-weight",Wt.fontWeight,"600"),letterSpacing:mt.extend("--ft-typography-button-letter-spacing",Wt.letterSpacing,"1.246px"),lineHeight:mt.extend("--ft-typography-button-line-height",Wt.lineHeight,"1.15"),textTransform:mt.extend("--ft-typography-button-text-transform",Wt.textTransform,"uppercase")},Ie=g`
|
|
123
113
|
.ft-typography--title {
|
|
124
|
-
font-family: ${
|
|
125
|
-
font-size: ${
|
|
126
|
-
font-weight: ${
|
|
127
|
-
letter-spacing: ${
|
|
128
|
-
line-height: ${
|
|
129
|
-
text-transform: ${
|
|
130
|
-
}
|
|
131
|
-
`,
|
|
114
|
+
font-family: ${Kt};
|
|
115
|
+
font-size: ${Vt};
|
|
116
|
+
font-weight: ${Zt};
|
|
117
|
+
letter-spacing: ${Jt};
|
|
118
|
+
line-height: ${qt};
|
|
119
|
+
text-transform: ${Xt};
|
|
120
|
+
}
|
|
121
|
+
`,_e=g`
|
|
132
122
|
.ft-typography--title-dense {
|
|
133
|
-
font-family: ${
|
|
134
|
-
font-size: ${Kt};
|
|
135
|
-
font-weight: ${Vt};
|
|
136
|
-
letter-spacing: ${Zt};
|
|
137
|
-
line-height: ${Jt};
|
|
138
|
-
text-transform: ${qt};
|
|
139
|
-
}
|
|
140
|
-
`,Le=g`
|
|
141
|
-
.ft-typography--subtitle1 {
|
|
142
|
-
font-family: ${Xt};
|
|
123
|
+
font-family: ${Gt};
|
|
143
124
|
font-size: ${Yt};
|
|
144
|
-
font-weight: ${
|
|
145
|
-
letter-spacing: ${
|
|
146
|
-
line-height: ${
|
|
147
|
-
text-transform: ${
|
|
125
|
+
font-weight: ${Qt};
|
|
126
|
+
letter-spacing: ${te};
|
|
127
|
+
line-height: ${ee};
|
|
128
|
+
text-transform: ${ie};
|
|
129
|
+
}
|
|
130
|
+
`,He=g`
|
|
131
|
+
.ft-typography--subtitle1 {
|
|
132
|
+
font-family: ${oe};
|
|
133
|
+
font-size: ${se};
|
|
134
|
+
font-weight: ${re};
|
|
135
|
+
letter-spacing: ${ne};
|
|
136
|
+
line-height: ${le};
|
|
137
|
+
text-transform: ${ae};
|
|
148
138
|
}
|
|
149
|
-
`,
|
|
139
|
+
`,We=g`
|
|
150
140
|
.ft-typography--subtitle2 {
|
|
151
|
-
font-family: ${
|
|
152
|
-
font-size: ${
|
|
153
|
-
font-weight: ${
|
|
154
|
-
letter-spacing: ${
|
|
155
|
-
line-height: ${
|
|
156
|
-
text-transform: ${
|
|
141
|
+
font-family: ${he};
|
|
142
|
+
font-size: ${ce};
|
|
143
|
+
font-weight: ${pe};
|
|
144
|
+
letter-spacing: ${de};
|
|
145
|
+
line-height: ${fe};
|
|
146
|
+
text-transform: ${ue};
|
|
157
147
|
}
|
|
158
148
|
|
|
159
|
-
`,
|
|
149
|
+
`,Ke=g`
|
|
160
150
|
.ft-typography--body1 {
|
|
161
|
-
font-family: ${ae};
|
|
162
|
-
font-size: ${he};
|
|
163
|
-
font-weight: ${ce};
|
|
164
|
-
letter-spacing: ${pe};
|
|
165
|
-
line-height: ${de};
|
|
166
|
-
text-transform: ${fe};
|
|
167
|
-
}
|
|
168
|
-
`,Te=g`
|
|
169
|
-
.ft-typography--body2 {
|
|
170
|
-
font-family: ${ue.fontFamily};
|
|
171
|
-
font-size: ${ue.fontSize};
|
|
172
|
-
font-weight: ${ue.fontWeight};
|
|
173
|
-
letter-spacing: ${ue.letterSpacing};
|
|
174
|
-
line-height: ${ue.lineHeight};
|
|
175
|
-
text-transform: ${ue.textTransform};
|
|
176
|
-
}
|
|
177
|
-
`,Pe=g`
|
|
178
|
-
.ft-typography--caption {
|
|
179
151
|
font-family: ${ve};
|
|
180
152
|
font-size: ${be};
|
|
181
153
|
font-weight: ${xe};
|
|
@@ -183,55 +155,73 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
183
155
|
line-height: ${ge};
|
|
184
156
|
text-transform: ${me};
|
|
185
157
|
}
|
|
186
|
-
`,
|
|
158
|
+
`,Ve=g`
|
|
159
|
+
.ft-typography--body2 {
|
|
160
|
+
font-family: ${$e.fontFamily};
|
|
161
|
+
font-size: ${$e.fontSize};
|
|
162
|
+
font-weight: ${$e.fontWeight};
|
|
163
|
+
letter-spacing: ${$e.letterSpacing};
|
|
164
|
+
line-height: ${$e.lineHeight};
|
|
165
|
+
text-transform: ${$e.textTransform};
|
|
166
|
+
}
|
|
167
|
+
`,Ze=g`
|
|
168
|
+
.ft-typography--caption {
|
|
169
|
+
font-family: ${we};
|
|
170
|
+
font-size: ${ke};
|
|
171
|
+
font-weight: ${Oe};
|
|
172
|
+
letter-spacing: ${Se};
|
|
173
|
+
line-height: ${Ce};
|
|
174
|
+
text-transform: ${Ee};
|
|
175
|
+
}
|
|
176
|
+
`,Je=g`
|
|
187
177
|
.ft-typography--breadcrumb {
|
|
188
|
-
font-family: ${
|
|
189
|
-
font-size: ${
|
|
190
|
-
font-weight: ${ke};
|
|
191
|
-
letter-spacing: ${Oe};
|
|
192
|
-
line-height: ${Se};
|
|
193
|
-
text-transform: ${Ce};
|
|
194
|
-
}
|
|
195
|
-
`,_e=g`
|
|
196
|
-
.ft-typography--overline {
|
|
197
|
-
font-family: ${Ee};
|
|
198
|
-
font-size: ${Ne};
|
|
178
|
+
font-family: ${Ne};
|
|
179
|
+
font-size: ${Re};
|
|
199
180
|
font-weight: ${ze};
|
|
200
181
|
letter-spacing: ${Me};
|
|
201
|
-
line-height: ${
|
|
202
|
-
text-transform: ${
|
|
182
|
+
line-height: ${je};
|
|
183
|
+
text-transform: ${Be};
|
|
203
184
|
}
|
|
204
|
-
`,
|
|
185
|
+
`,qe=g`
|
|
186
|
+
.ft-typography--overline {
|
|
187
|
+
font-family: ${Fe};
|
|
188
|
+
font-size: ${Ue};
|
|
189
|
+
font-weight: ${Le};
|
|
190
|
+
letter-spacing: ${De};
|
|
191
|
+
line-height: ${Te};
|
|
192
|
+
text-transform: ${Ae};
|
|
193
|
+
}
|
|
194
|
+
`,Xe=g`
|
|
205
195
|
.ft-typography--button {
|
|
206
|
-
font-family: ${
|
|
207
|
-
font-size: ${
|
|
208
|
-
font-weight: ${
|
|
209
|
-
letter-spacing: ${
|
|
210
|
-
line-height: ${
|
|
211
|
-
text-transform: ${
|
|
212
|
-
}
|
|
213
|
-
`,
|
|
196
|
+
font-family: ${Pe.fontFamily};
|
|
197
|
+
font-size: ${Pe.fontSize};
|
|
198
|
+
font-weight: ${Pe.fontWeight};
|
|
199
|
+
letter-spacing: ${Pe.letterSpacing};
|
|
200
|
+
line-height: ${Pe.lineHeight};
|
|
201
|
+
text-transform: ${Pe.textTransform};
|
|
202
|
+
}
|
|
203
|
+
`,Ge=g`
|
|
214
204
|
.ft-typography {
|
|
215
205
|
vertical-align: inherit;
|
|
216
206
|
}
|
|
217
|
-
`;var
|
|
218
|
-
<${
|
|
207
|
+
`;var Ye=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Qe extends Rt{constructor(){super(...arguments),this.variant=It.body1}render(){return this.element?Pt`
|
|
208
|
+
<${Tt(this.element)}
|
|
219
209
|
class="ft-typography ft-typography--${this.variant}">
|
|
220
210
|
<slot></slot>
|
|
221
|
-
</${
|
|
222
|
-
`:
|
|
211
|
+
</${Tt(this.element)}>
|
|
212
|
+
`:Pt`
|
|
223
213
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
224
|
-
`}}function
|
|
214
|
+
`}}function ti(t,e){return t.flatMap((t=>[t,...ti(e(t),e)]))}
|
|
225
215
|
/**
|
|
226
216
|
* @license
|
|
227
217
|
* Copyright 2017 Google LLC
|
|
228
218
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
229
|
-
*/
|
|
219
|
+
*/Qe.styles=[Ie,_e,He,We,Ke,Ve,Ze,Je,qe,Xe,Ge],Ye([o()],Qe.prototype,"element",void 0),Ye([o()],Qe.prototype,"variant",void 0),p("ft-typography")(Qe);const ei=1,ii=2,oi=t=>(...e)=>({_$litDirective$:t,values:e});class si{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
230
220
|
/**
|
|
231
221
|
* @license
|
|
232
222
|
* Copyright 2020 Google LLC
|
|
233
223
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
234
|
-
*/const{I:
|
|
224
|
+
*/const{I:ri}=ut,ni=()=>document.createComment(""),li=(t,e,i)=>{var o;const s=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(ni(),r),o=s.insertBefore(ni(),r);i=new ri(e,o,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,l=n!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,r),t=e}}}return i},ai=(t,e,i=t)=>(t._$AI(e,i),t),hi={},ci=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},pi=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},di=oi(class extends si{constructor(t){if(super(t),t.type!==ii)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],r=[];let n=0;for(const e of t)s[n]=o?o(e,n):n,r[n]=i(e,n),n++;return{values:r,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const r=(t=>t._$AH)(t),{values:n,keys:l}=this.dt(e,i,o);if(!Array.isArray(r))return this.ht=l,n;const a=null!==(s=this.ht)&&void 0!==s?s:this.ht=[],h=[];let c,p,d=0,f=r.length-1,u=0,v=n.length-1;for(;d<=f&&u<=v;)if(null===r[d])d++;else if(null===r[f])f--;else if(a[d]===l[u])h[u]=ai(r[d],n[u]),d++,u++;else if(a[f]===l[v])h[v]=ai(r[f],n[v]),f--,v--;else if(a[d]===l[v])h[v]=ai(r[d],n[v]),li(t,h[v+1],r[d]),d++,v--;else if(a[f]===l[u])h[u]=ai(r[f],n[u]),li(t,r[d],r[f]),f--,u++;else if(void 0===c&&(c=pi(l,u,v),p=pi(a,d,f)),c.has(a[d]))if(c.has(a[f])){const e=p.get(l[u]),i=void 0!==e?r[e]:null;if(null===i){const e=li(t,r[d]);ai(e,n[u]),h[u]=e}else h[u]=ai(i,n[u]),li(t,r[d],i),r[e]=null;u++}else ci(r[f]),f--;else ci(r[d]),d++;for(;u<=v;){const e=li(t,h[v+1]);ai(e,n[u]),h[u++]=e}for(;d<=f;){const t=r[d++];null!==t&&ci(t)}return this.ht=l,((t,e=hi)=>{t._$AH=e})(t,h),Q}}),fi=oi(class extends si{constructor(t){var e;if(super(t),t.type!==ei||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return Q}}),ui=mt.extend("--ft-ripple-color",wt.colorContent),vi={color:ui,backgroundColor:mt.extend("--ft-ripple-background-color",ui),opacityContentOnSurfacePressed:mt.external(wt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:mt.external(wt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:mt.external(wt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:mt.external(wt.opacityContentOnSurfaceSelected,"Design system")},bi=mt.extend("--ft-ripple-color",wt.colorPrimary),xi=bi,yi=mt.extend("--ft-ripple-background-color",bi),gi=mt.extend("--ft-ripple-color",wt.colorSecondary),mi=gi,$i=mt.extend("--ft-ripple-background-color",gi),wi=g`
|
|
235
225
|
:host {
|
|
236
226
|
display: contents;
|
|
237
227
|
}
|
|
@@ -253,27 +243,27 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
253
243
|
}
|
|
254
244
|
|
|
255
245
|
.ft-ripple .ft-ripple--background {
|
|
256
|
-
background-color: ${
|
|
246
|
+
background-color: ${vi.backgroundColor};
|
|
257
247
|
}
|
|
258
248
|
|
|
259
249
|
.ft-ripple .ft-ripple--effect {
|
|
260
|
-
background-color: ${
|
|
250
|
+
background-color: ${vi.color};
|
|
261
251
|
}
|
|
262
252
|
|
|
263
253
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
264
|
-
background-color: ${
|
|
254
|
+
background-color: ${$i};
|
|
265
255
|
}
|
|
266
256
|
|
|
267
257
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
268
|
-
background-color: ${
|
|
258
|
+
background-color: ${mi};
|
|
269
259
|
}
|
|
270
260
|
|
|
271
261
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
272
|
-
background-color: ${
|
|
262
|
+
background-color: ${yi};
|
|
273
263
|
}
|
|
274
264
|
|
|
275
265
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
276
|
-
background-color: ${
|
|
266
|
+
background-color: ${xi};
|
|
277
267
|
}
|
|
278
268
|
|
|
279
269
|
.ft-ripple .ft-ripple--background {
|
|
@@ -305,19 +295,19 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
305
295
|
}
|
|
306
296
|
|
|
307
297
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
308
|
-
opacity: ${
|
|
298
|
+
opacity: ${vi.opacityContentOnSurfaceHover};
|
|
309
299
|
}
|
|
310
300
|
|
|
311
301
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
312
|
-
opacity: ${
|
|
302
|
+
opacity: ${vi.opacityContentOnSurfaceSelected};
|
|
313
303
|
}
|
|
314
304
|
|
|
315
305
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
316
|
-
opacity: ${
|
|
306
|
+
opacity: ${vi.opacityContentOnSurfaceFocused};
|
|
317
307
|
}
|
|
318
308
|
|
|
319
309
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
320
|
-
opacity: ${
|
|
310
|
+
opacity: ${vi.opacityContentOnSurfacePressed};
|
|
321
311
|
transform: translate(-50%, -50%) scale(1);
|
|
322
312
|
}
|
|
323
313
|
`;
|
|
@@ -325,7 +315,7 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
325
315
|
* @license
|
|
326
316
|
* Copyright 2017 Google LLC
|
|
327
317
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
328
|
-
*/var
|
|
318
|
+
*/var ki=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Oi extends Rt{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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(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 e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.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.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 Y`
|
|
329
319
|
<style>
|
|
330
320
|
.ft-ripple .ft-ripple--effect,
|
|
331
321
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -338,11 +328,11 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
338
328
|
top: ${this.originY}px;
|
|
339
329
|
}
|
|
340
330
|
</style>
|
|
341
|
-
<div class="${
|
|
331
|
+
<div class="${fi(t)}">
|
|
342
332
|
<div class="ft-ripple--background"></div>
|
|
343
333
|
<div class="ft-ripple--effect"></div>
|
|
344
334
|
</div>
|
|
345
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(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)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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.resizeObserver.disconnect(),this.endRipple()}}
|
|
335
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(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)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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.resizeObserver.disconnect(),this.endRipple()}}Oi.elementDefinitions={},Oi.styles=wi,ki([o({type:Boolean})],Oi.prototype,"primary",void 0),ki([o({type:Boolean})],Oi.prototype,"secondary",void 0),ki([o({type:Boolean})],Oi.prototype,"unbounded",void 0),ki([o({type:Boolean})],Oi.prototype,"activated",void 0),ki([o({type:Boolean})],Oi.prototype,"selected",void 0),ki([o({type:Boolean})],Oi.prototype,"disabled",void 0),ki([s()],Oi.prototype,"hovered",void 0),ki([s()],Oi.prototype,"focused",void 0),ki([s()],Oi.prototype,"pressed",void 0),ki([s()],Oi.prototype,"rippling",void 0),ki([s()],Oi.prototype,"rippleSize",void 0),ki([s()],Oi.prototype,"originX",void 0),ki([s()],Oi.prototype,"originY",void 0),ki([n(".ft-ripple")],Oi.prototype,"ripple",void 0),ki([n(".ft-ripple--effect")],Oi.prototype,"rippleEffect",void 0),p("ft-ripple")(Oi);const Si=mt.create("--ft-tooltip-distance","SIZE","4px"),Ci=mt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ei=mt.create("--ft-tooltip-background-color","COLOR","#666666"),Ni=mt.create("--ft-tooltip-z-index","NUMBER","1"),Ri=mt.external(wt.borderRadiusS,"Design system"),zi=mt.create("--ft-tooltip-max-width","SIZE","150px"),Mi=g`
|
|
346
336
|
.ft-tooltip--container {
|
|
347
337
|
display: block;
|
|
348
338
|
position: relative;
|
|
@@ -358,23 +348,23 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
358
348
|
box-sizing: border-box;
|
|
359
349
|
overflow: hidden;
|
|
360
350
|
width: max-content;
|
|
361
|
-
max-width: ${
|
|
351
|
+
max-width: ${zi};
|
|
362
352
|
text-align: center;
|
|
363
|
-
padding: ${
|
|
364
|
-
z-index: ${
|
|
353
|
+
padding: ${Si};
|
|
354
|
+
z-index: ${Ni};
|
|
365
355
|
}
|
|
366
356
|
|
|
367
357
|
.ft-tooltip--content {
|
|
368
358
|
padding: 4px 8px;
|
|
369
|
-
border-radius: ${
|
|
370
|
-
background-color: ${
|
|
371
|
-
color: ${
|
|
359
|
+
border-radius: ${Ri};
|
|
360
|
+
background-color: ${Ei};
|
|
361
|
+
color: ${Ci};
|
|
372
362
|
top: -500px;
|
|
373
363
|
left: -500px;
|
|
374
364
|
position: relative;
|
|
375
365
|
word-break: break-word;
|
|
376
366
|
}
|
|
377
|
-
`;var
|
|
367
|
+
`;var ji=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Bi extends Rt{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 e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Y`
|
|
378
368
|
<div part="container"
|
|
379
369
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
380
370
|
@mouseenter=${this.onHover}
|
|
@@ -392,7 +382,7 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
392
382
|
</div>
|
|
393
383
|
</div>
|
|
394
384
|
</div>
|
|
395
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}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(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,s=o;break;case"bottom":r=e.height,s=o;break;case"left":r=i,s=-this.tooltip.clientWidth;break;case"right":r=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const n=this.tooltip.style;n.left=s+"px",n.top=r+"px",n.maxWidth=`max(${e.width}px, ${
|
|
385
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}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(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,s=o;break;case"bottom":r=e.height,s=o;break;case"left":r=i,s=-this.tooltip.clientWidth;break;case"right":r=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const n=this.tooltip.style;n.left=s+"px",n.top=r+"px",n.maxWidth=`max(${e.width}px, ${zi})`}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())}}Bi.elementDefinitions={"ft-typography":Qe},Bi.styles=Mi,ji([o()],Bi.prototype,"text",void 0),ji([o({type:Boolean})],Bi.prototype,"manual",void 0),ji([o({type:Boolean})],Bi.prototype,"inline",void 0),ji([o({type:Number})],Bi.prototype,"delay",void 0),ji([o()],Bi.prototype,"position",void 0),ji([function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?h({slot:s,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Bi.prototype,"slotNodes",void 0),ji([n(".ft-tooltip--container")],Bi.prototype,"container",void 0),ji([n("slot")],Bi.prototype,"target",void 0),ji([n(".ft-tooltip")],Bi.prototype,"tooltip",void 0),ji([n(".ft-tooltip--content")],Bi.prototype,"tooltipContent",void 0),ji([s()],Bi.prototype,"visible",void 0),p("ft-tooltip")(Bi);const Fi={color:mt.extend("--ft-loader-color",wt.colorPrimary),size:mt.create("--ft-loader-size","SIZE","80px")},Ui=g`
|
|
396
386
|
:host {
|
|
397
387
|
line-height: 0;
|
|
398
388
|
}
|
|
@@ -401,8 +391,8 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
401
391
|
display: inline-block;
|
|
402
392
|
position: relative;
|
|
403
393
|
|
|
404
|
-
width: ${
|
|
405
|
-
height: ${
|
|
394
|
+
width: ${Fi.size};
|
|
395
|
+
height: ${Fi.size};
|
|
406
396
|
}
|
|
407
397
|
|
|
408
398
|
.ft-loader div {
|
|
@@ -411,7 +401,7 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
411
401
|
width: 25%;
|
|
412
402
|
height: 25%;
|
|
413
403
|
border-radius: 50%;
|
|
414
|
-
background: ${
|
|
404
|
+
background: ${Fi.color};
|
|
415
405
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
416
406
|
}
|
|
417
407
|
|
|
@@ -458,23 +448,23 @@ var ut,vt;class bt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
458
448
|
transform: translate(0, 0);
|
|
459
449
|
}
|
|
460
450
|
100% {
|
|
461
|
-
transform: translate(calc(0.35 * ${
|
|
451
|
+
transform: translate(calc(0.35 * ${Fi.size}), 0);
|
|
462
452
|
}
|
|
463
453
|
}
|
|
464
|
-
`;class
|
|
454
|
+
`;class Li extends Rt{render(){return Y`
|
|
465
455
|
<div class="ft-loader">
|
|
466
456
|
<div></div>
|
|
467
457
|
<div></div>
|
|
468
458
|
<div></div>
|
|
469
459
|
<div></div>
|
|
470
460
|
</div>
|
|
471
|
-
`}}
|
|
461
|
+
`}}Li.styles=Ui,p("ft-loader")(Li);
|
|
472
462
|
/**
|
|
473
463
|
* @license
|
|
474
464
|
* Copyright 2017 Google LLC
|
|
475
465
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
476
466
|
*/
|
|
477
|
-
class
|
|
467
|
+
class Di extends si{constructor(t){if(super(t),this.et=tt,t.type!==ii)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this.ft=void 0,this.et=t;if(t===Q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Di.directiveName="unsafeHTML",Di.resultType=1;const Ti=oi(Di);var Ai,Pi;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",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.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",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=""}(Ai||(Ai={})),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=""}(Pi||(Pi={})),new Map([...["abw"].map((t=>[t,Pi.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,Pi.AUDIO])),...["avi"].map((t=>[t,Pi.AVI])),...["chm","xhs"].map((t=>[t,Pi.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,Pi.CODE])),...["csv"].map((t=>[t,Pi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Pi.DITA])),...["epub"].map((t=>[t,Pi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Pi.EXCEL])),...["flac"].map((t=>[t,Pi.FLAC])),...["gif"].map((t=>[t,Pi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Pi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Pi.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,Pi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Pi.JPEG])),...["json"].map((t=>[t,Pi.JSON])),...["m4a","m4p"].map((t=>[t,Pi.M4A])),...["mov","qt"].map((t=>[t,Pi.MOV])),...["mp3"].map((t=>[t,Pi.MP3])),...["mp4","m4v"].map((t=>[t,Pi.MP4])),...["ogg","oga"].map((t=>[t,Pi.OGG])),...["pdf","ps"].map((t=>[t,Pi.PDF])),...["png"].map((t=>[t,Pi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Pi.POWERPOINT])),...["rar"].map((t=>[t,Pi.RAR])),...["stp"].map((t=>[t,Pi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Pi.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,Pi.VIDEO])),...["wav"].map((t=>[t,Pi.WAV])),...["wma"].map((t=>[t,Pi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Pi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Pi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Pi.YAML])),...["zip"].map((t=>[t,Pi.ZIP]))]);const Ii={size:mt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:mt.extend("--ft-icon-fluid-topics-font-family",mt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:mt.extend("--ft-icon-file-format-font-family",mt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:mt.extend("--ft-icon-material-font-family",mt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:mt.create("--ft-icon-vertical-align","UNKNOWN","unset")},_i=g`
|
|
478
468
|
:host, i.ft-icon {
|
|
479
469
|
display: inline-flex;
|
|
480
470
|
align-items: center;
|
|
@@ -483,14 +473,14 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
483
473
|
}
|
|
484
474
|
|
|
485
475
|
:host {
|
|
486
|
-
width: ${
|
|
487
|
-
height: ${
|
|
476
|
+
width: ${Ii.size};
|
|
477
|
+
height: ${Ii.size};
|
|
488
478
|
}
|
|
489
479
|
|
|
490
480
|
i.ft-icon {
|
|
491
481
|
width: 100%;
|
|
492
482
|
height: 100%;
|
|
493
|
-
font-size: ${
|
|
483
|
+
font-size: ${Ii.size};
|
|
494
484
|
line-height: 1;
|
|
495
485
|
font-weight: normal;
|
|
496
486
|
text-transform: none;
|
|
@@ -501,32 +491,32 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
501
491
|
text-rendering: auto;
|
|
502
492
|
-webkit-font-smoothing: antialiased;
|
|
503
493
|
-moz-osx-font-smoothing: grayscale;
|
|
504
|
-
vertical-align: ${
|
|
494
|
+
vertical-align: ${Ii.verticalAlign};
|
|
505
495
|
}
|
|
506
496
|
|
|
507
497
|
i.ft-icon.ft-icon--fluid-topics {
|
|
508
|
-
font-family: ${
|
|
498
|
+
font-family: ${Ii.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
509
499
|
|
|
510
500
|
/* Ugly fix because font is broken */
|
|
511
|
-
font-size: calc(0.
|
|
501
|
+
font-size: calc(0.75 * ${Ii.size});
|
|
512
502
|
position: relative;
|
|
513
|
-
top: -
|
|
503
|
+
top: -4%;
|
|
514
504
|
justify-content: center;
|
|
515
505
|
}
|
|
516
506
|
|
|
517
507
|
.ft-icon--file-format {
|
|
518
|
-
font-family: ${
|
|
508
|
+
font-family: ${Ii.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
519
509
|
}
|
|
520
510
|
|
|
521
511
|
.ft-icon--material {
|
|
522
|
-
font-family: ${
|
|
512
|
+
font-family: ${Ii.materialFontFamily}, "Material Icons", sans-serif;
|
|
523
513
|
}
|
|
524
|
-
`;var
|
|
525
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
526
|
-
${
|
|
527
|
-
<slot ?hidden=${
|
|
514
|
+
`;var Hi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Hi||(Hi={}));var Wi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ki extends Rt{constructor(){super(...arguments),this.resolvedIcon=tt}render(){const t=this.variant&&Object.values(Hi).includes(this.variant)?this.variant:Hi.fluid_topics,e=t!==Hi.material||!!this.value;return Y`
|
|
515
|
+
<i class="ft-icon ${"ft-icon--"+t}">
|
|
516
|
+
${Ti(this.resolvedIcon)}
|
|
517
|
+
<slot ?hidden=${e}></slot>
|
|
528
518
|
</i>
|
|
529
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
519
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Hi.file_format:this.resolvedIcon=null!==(t=Pi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Hi.material:this.resolvedIcon=this.value||tt;break;default:this.resolvedIcon=null!==(e=Ai[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ki.elementDefinitions={},Ki.styles=_i,Wi([o()],Ki.prototype,"variant",void 0),Wi([o()],Ki.prototype,"value",void 0),Wi([s()],Ki.prototype,"resolvedIcon",void 0),Wi([n("slot")],Ki.prototype,"slottedContent",void 0),p("ft-icon")(Ki);const Vi=mt.extend("--ft-button-color",wt.colorPrimary),Zi={backgroundColor:mt.extend("--ft-button-background-color",wt.colorSurface),borderRadius:mt.extend("--ft-button-border-radius",wt.borderRadiusL),color:Vi,fontSize:mt.extend("--ft-button-font-size",Pe.fontSize),iconSize:mt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:mt.extend("--ft-button-ripple-color",Vi),verticalPadding:mt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:mt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:mt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:mt.external(wt.colorOpacityDisabled,"Design system")},Ji=mt.extend("--ft-button-primary-color",mt.extend("--ft-button-color",wt.colorOnPrimary)),qi={backgroundColor:mt.extend("--ft-button-primary-background-color",mt.extend("--ft-button-background-color",wt.colorPrimary)),color:Ji,rippleColor:mt.extend("--ft-button-primary-ripple-color",Ji)},Xi=mt.extend("--ft-button-dense-border-radius",mt.extend("--ft-button-border-radius",wt.borderRadiusM)),Gi=mt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Yi=mt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Qi=mt.create("--ft-button-dense-icon-padding","SIZE","4px"),to=[zt,g`
|
|
530
520
|
:host {
|
|
531
521
|
display: inline-block;
|
|
532
522
|
max-width: 100%;
|
|
@@ -537,7 +527,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
537
527
|
box-shadow: 0px 0px 0px transparent;
|
|
538
528
|
border: 0px solid transparent;
|
|
539
529
|
text-shadow: 0px 0px 0px transparent;
|
|
540
|
-
font-size: ${
|
|
530
|
+
font-size: ${Zi.fontSize};
|
|
541
531
|
}
|
|
542
532
|
|
|
543
533
|
button:hover {
|
|
@@ -566,32 +556,32 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
566
556
|
border: none;
|
|
567
557
|
pointer-events: auto;
|
|
568
558
|
|
|
569
|
-
--ft-button-internal-line-height: calc(${
|
|
570
|
-
--ft-button-internal-color: ${
|
|
571
|
-
${
|
|
572
|
-
${
|
|
573
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
559
|
+
--ft-button-internal-line-height: calc(${Zi.fontSize} + 2px);
|
|
560
|
+
--ft-button-internal-color: ${Zi.color};
|
|
561
|
+
${$t(Ii.size,Zi.iconSize)};
|
|
562
|
+
${$t(vi.color,Zi.rippleColor)};
|
|
563
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Zi.iconSize});
|
|
574
564
|
|
|
575
|
-
border-radius: ${
|
|
576
|
-
padding: ${
|
|
577
|
-
background-color: ${
|
|
565
|
+
border-radius: ${Zi.borderRadius};
|
|
566
|
+
padding: ${Zi.verticalPadding} ${Zi.horizontalPadding};
|
|
567
|
+
background-color: ${Zi.backgroundColor};
|
|
578
568
|
color: var(--ft-button-internal-color);
|
|
579
569
|
-webkit-mask-image: radial-gradient(white, black);
|
|
580
570
|
}
|
|
581
571
|
|
|
582
572
|
.ft-button.ft-button--outlined {
|
|
583
573
|
border: 1px solid var(--ft-button-internal-color);
|
|
584
|
-
padding: calc(${
|
|
574
|
+
padding: calc(${Zi.verticalPadding} - 1px) calc(${Zi.horizontalPadding} - 1px);
|
|
585
575
|
}
|
|
586
576
|
|
|
587
577
|
.ft-button.ft-button--dense {
|
|
588
|
-
padding: ${
|
|
589
|
-
border-radius: ${
|
|
590
|
-
gap: ${
|
|
578
|
+
padding: ${Gi} ${Yi};
|
|
579
|
+
border-radius: ${Xi};
|
|
580
|
+
gap: ${Qi};
|
|
591
581
|
}
|
|
592
582
|
|
|
593
583
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
594
|
-
padding: calc(${
|
|
584
|
+
padding: calc(${Gi} - 1px) calc(${Yi} - 1px);
|
|
595
585
|
}
|
|
596
586
|
|
|
597
587
|
.ft-button:not([disabled]):hover {
|
|
@@ -599,22 +589,22 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
599
589
|
}
|
|
600
590
|
|
|
601
591
|
.ft-button--round {
|
|
602
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
592
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Zi.verticalPadding});
|
|
603
593
|
}
|
|
604
594
|
|
|
605
595
|
.ft-button--round.ft-button--dense {
|
|
606
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
596
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Gi});
|
|
607
597
|
}
|
|
608
598
|
|
|
609
599
|
.ft-button[disabled] {
|
|
610
600
|
filter: grayscale(1);
|
|
611
|
-
opacity: ${
|
|
601
|
+
opacity: ${Zi.opacityDisabled};
|
|
612
602
|
}
|
|
613
603
|
|
|
614
604
|
.ft-button.ft-button--primary {
|
|
615
|
-
background-color: ${
|
|
616
|
-
--ft-button-internal-color: ${
|
|
617
|
-
${
|
|
605
|
+
background-color: ${qi.backgroundColor};
|
|
606
|
+
--ft-button-internal-color: ${qi.color};
|
|
607
|
+
${$t(vi.color,qi.rippleColor)};
|
|
618
608
|
}
|
|
619
609
|
|
|
620
610
|
.ft-button:focus {
|
|
@@ -627,13 +617,13 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
627
617
|
white-space: nowrap;
|
|
628
618
|
text-overflow: ellipsis;
|
|
629
619
|
display: block;
|
|
630
|
-
margin: 0 ${
|
|
631
|
-
${
|
|
632
|
-
${
|
|
620
|
+
margin: 0 ${Zi.iconPadding};
|
|
621
|
+
${$t(Pe.fontSize,"1em")};
|
|
622
|
+
${$t(Pe.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
633
623
|
}
|
|
634
624
|
|
|
635
625
|
.ft-button--dense .ft-button--label {
|
|
636
|
-
margin: 0 ${
|
|
626
|
+
margin: 0 ${Qi};
|
|
637
627
|
}
|
|
638
628
|
|
|
639
629
|
.ft-button--label[hidden] {
|
|
@@ -646,13 +636,13 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
646
636
|
}
|
|
647
637
|
|
|
648
638
|
.ft-button--label[hidden] + ft-icon {
|
|
649
|
-
margin: 0 calc(${
|
|
650
|
-
padding: 0 ${
|
|
639
|
+
margin: 0 calc(${Zi.horizontalPadding} * -1);
|
|
640
|
+
padding: 0 ${Zi.verticalPadding};
|
|
651
641
|
}
|
|
652
642
|
|
|
653
643
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
654
|
-
margin: 0 calc(${
|
|
655
|
-
padding: 0 ${
|
|
644
|
+
margin: 0 calc(${Yi} * -1);
|
|
645
|
+
padding: 0 ${Gi};
|
|
656
646
|
}
|
|
657
647
|
|
|
658
648
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -661,40 +651,40 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
661
651
|
}
|
|
662
652
|
|
|
663
653
|
ft-loader {
|
|
664
|
-
${
|
|
665
|
-
${
|
|
654
|
+
${$t(Fi.size,Zi.iconSize)};
|
|
655
|
+
${$t(Fi.color,"var(--ft-button-internal-color)")};
|
|
666
656
|
}
|
|
667
|
-
`];var
|
|
657
|
+
`];var eo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class io extends Rt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!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=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"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};return this.addTooltipIfNeeded(Y`
|
|
668
658
|
<button part="button"
|
|
669
|
-
class="${
|
|
659
|
+
class="${fi(t)}"
|
|
670
660
|
aria-label="${this.getLabel()}"
|
|
671
661
|
?disabled=${this.isDisabled()}>
|
|
672
662
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
673
663
|
<ft-typography part="label"
|
|
674
664
|
variant="button"
|
|
675
665
|
element="span"
|
|
676
|
-
class="ft-button--label ${
|
|
666
|
+
class="ft-button--label ${Ut?"ft-safari-ellipsis-fix":""}"
|
|
677
667
|
?hidden=${!this.hasTextContent()}>
|
|
678
668
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
679
669
|
</ft-typography>
|
|
680
670
|
${this.resolveIcon()}
|
|
681
671
|
</button>
|
|
682
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
672
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Y`
|
|
683
673
|
<ft-tooltip part="tooltip"
|
|
684
674
|
text="${this.getLabel()}"
|
|
685
675
|
position="${this.tooltipPosition}">
|
|
686
676
|
${t}
|
|
687
677
|
</ft-tooltip>
|
|
688
|
-
`:t}resolveIcon(){return this.loading?
|
|
689
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
690
|
-
<ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:
|
|
678
|
+
`:t}resolveIcon(){return this.loading?Y`
|
|
679
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Y`
|
|
680
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:tt}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}}io.elementDefinitions={"ft-ripple":Oi,"ft-tooltip":Bi,"ft-typography":Qe,"ft-icon":Ki,"ft-loader":Li},io.styles=[Mt,to],eo([o({type:String,reflect:!0})],io.prototype,"role",void 0),eo([o({type:Boolean})],io.prototype,"primary",void 0),eo([o({type:Boolean})],io.prototype,"outlined",void 0),eo([o({type:Boolean})],io.prototype,"disabled",void 0),eo([o({type:Boolean})],io.prototype,"dense",void 0),eo([o({type:Boolean})],io.prototype,"round",void 0),eo([o()],io.prototype,"label",void 0),eo([o()],io.prototype,"icon",void 0),eo([o()],io.prototype,"iconVariant",void 0),eo([o({type:Boolean})],io.prototype,"trailingIcon",void 0),eo([o({type:Boolean})],io.prototype,"loading",void 0),eo([o()],io.prototype,"tooltipPosition",void 0),eo([o({type:Boolean})],io.prototype,"hideTooltip",void 0),eo([o({type:Boolean})],io.prototype,"forceTooltip",void 0),eo([n(".ft-button")],io.prototype,"button",void 0),eo([n(".ft-button--label slot")],io.prototype,"slottedContent",void 0),p("ft-button")(io);const oo=mt.extend("--ft-checkbox-text-color",wt.colorOnSurfaceHigh),so=mt.external(wt.colorPrimary,"Design system"),ro=mt.external(wt.colorOnPrimary,"Design system"),no=mt.extend("--ft-checkbox-border-color",wt.colorOnSurfaceMedium),lo=mt.external(wt.colorOnSurfaceDisabled,"Design system"),ao=g`
|
|
691
681
|
* {
|
|
692
682
|
box-sizing: border-box;
|
|
693
683
|
}
|
|
694
684
|
|
|
695
685
|
.ft-checkbox {
|
|
696
686
|
box-sizing: border-box;
|
|
697
|
-
color: ${
|
|
687
|
+
color: ${oo};
|
|
698
688
|
|
|
699
689
|
display: inline-flex;
|
|
700
690
|
align-items: center;
|
|
@@ -702,7 +692,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
702
692
|
}
|
|
703
693
|
|
|
704
694
|
.ft-checkbox--disabled {
|
|
705
|
-
color: ${
|
|
695
|
+
color: ${lo};
|
|
706
696
|
}
|
|
707
697
|
|
|
708
698
|
input {
|
|
@@ -726,26 +716,26 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
726
716
|
|
|
727
717
|
.ft-checkbox--box {
|
|
728
718
|
display: flex;
|
|
729
|
-
border: 2px solid ${
|
|
719
|
+
border: 2px solid ${no};
|
|
730
720
|
border-radius: 2px;
|
|
731
721
|
|
|
732
722
|
width: 18px;
|
|
733
723
|
height: 18px;
|
|
734
724
|
|
|
735
|
-
color: ${
|
|
725
|
+
color: ${ro};
|
|
736
726
|
}
|
|
737
727
|
|
|
738
728
|
|
|
739
729
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
740
730
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
741
|
-
border-color: ${
|
|
742
|
-
background-color: ${
|
|
731
|
+
border-color: ${so};
|
|
732
|
+
background-color: ${so};
|
|
743
733
|
}
|
|
744
734
|
|
|
745
735
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
746
|
-
border-color: ${
|
|
736
|
+
border-color: ${lo};
|
|
747
737
|
background-color: transparent;
|
|
748
|
-
color: ${
|
|
738
|
+
color: ${lo};
|
|
749
739
|
}
|
|
750
740
|
|
|
751
741
|
.ft-checkbox--checkmark {
|
|
@@ -764,8 +754,8 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
764
754
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
765
755
|
opacity: 1;
|
|
766
756
|
}
|
|
767
|
-
`;var
|
|
768
|
-
<label class="${
|
|
757
|
+
`;var ho=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class co extends Rt{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 Y`
|
|
758
|
+
<label class="${fi(t)}" for="checkbox-input">
|
|
769
759
|
<div class="ft-checkbox--box-container">
|
|
770
760
|
<ft-ripple
|
|
771
761
|
?disabled=${this.disabled}
|
|
@@ -790,14 +780,14 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
790
780
|
<slot></slot>
|
|
791
781
|
</ft-typography>
|
|
792
782
|
</label>
|
|
793
|
-
`}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)}}
|
|
783
|
+
`}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)}}co.elementDefinitions={"ft-ripple":Oi,"ft-typography":Qe},co.styles=ao,ho([o()],co.prototype,"name",void 0),ho([o({type:Boolean,reflect:!0})],co.prototype,"checked",void 0),ho([o({type:Boolean})],co.prototype,"indeterminate",void 0),ho([o({type:Boolean})],co.prototype,"disabled",void 0),ho([n(".ft-checkbox")],co.prototype,"container",void 0),ho([n("ft-ripple")],co.prototype,"ripple",void 0),p("ft-checkbox")(co);const po=mt.extend("--ft-radio-text-color",wt.colorOnSurfaceHigh),fo=mt.external(wt.colorPrimary,"Design system"),uo=(mt.external(wt.colorOnPrimary,"Design system"),mt.extend("--ft-radio-border-color",wt.colorOnSurfaceMedium)),vo=mt.external(wt.colorOnSurfaceDisabled,"Design system"),bo=g`
|
|
794
784
|
* {
|
|
795
785
|
box-sizing: border-box;
|
|
796
786
|
}
|
|
797
787
|
|
|
798
788
|
.ft-radio {
|
|
799
789
|
box-sizing: border-box;
|
|
800
|
-
color: ${
|
|
790
|
+
color: ${po};
|
|
801
791
|
|
|
802
792
|
display: inline-flex;
|
|
803
793
|
align-items: center;
|
|
@@ -805,7 +795,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
805
795
|
}
|
|
806
796
|
|
|
807
797
|
.ft-radio--disabled {
|
|
808
|
-
color: ${
|
|
798
|
+
color: ${vo};
|
|
809
799
|
}
|
|
810
800
|
|
|
811
801
|
input {
|
|
@@ -828,7 +818,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
828
818
|
}
|
|
829
819
|
|
|
830
820
|
.ft-radio--box {
|
|
831
|
-
border: 2px solid ${
|
|
821
|
+
border: 2px solid ${uo};
|
|
832
822
|
border-radius: 50%;
|
|
833
823
|
|
|
834
824
|
display: flex;
|
|
@@ -841,7 +831,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
841
831
|
|
|
842
832
|
.ft-radio--box:after {
|
|
843
833
|
content: " ";
|
|
844
|
-
background-color: ${
|
|
834
|
+
background-color: ${fo};
|
|
845
835
|
|
|
846
836
|
border-radius: 50%;
|
|
847
837
|
|
|
@@ -853,7 +843,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
853
843
|
}
|
|
854
844
|
|
|
855
845
|
.ft-radio--checked .ft-radio--box {
|
|
856
|
-
border-color: ${
|
|
846
|
+
border-color: ${fo};
|
|
857
847
|
}
|
|
858
848
|
|
|
859
849
|
|
|
@@ -862,15 +852,15 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
862
852
|
}
|
|
863
853
|
|
|
864
854
|
.ft-radio--disabled .ft-radio--box {
|
|
865
|
-
border-color: ${
|
|
855
|
+
border-color: ${vo};
|
|
866
856
|
background-color: transparent;
|
|
867
857
|
}
|
|
868
858
|
|
|
869
859
|
.ft-radio--disabled .ft-radio--box:after {
|
|
870
|
-
background-color: ${
|
|
860
|
+
background-color: ${vo};
|
|
871
861
|
}
|
|
872
|
-
`;var
|
|
873
|
-
<div class="${
|
|
862
|
+
`;var xo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class yo extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class go extends Rt{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 Y`
|
|
863
|
+
<div class="${fi(t)}">
|
|
874
864
|
<div class="ft-radio--box-container">
|
|
875
865
|
<ft-ripple
|
|
876
866
|
?disabled=${this.disabled}
|
|
@@ -894,17 +884,17 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
894
884
|
</ft-typography>
|
|
895
885
|
</label>
|
|
896
886
|
</div>
|
|
897
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new
|
|
887
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new yo(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 yo(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}go.elementDefinitions={"ft-ripple":Oi,"ft-typography":Qe},go.styles=bo,xo([o()],go.prototype,"value",void 0),xo([o()],go.prototype,"name",void 0),xo([o({type:Boolean,reflect:!0})],go.prototype,"checked",void 0),xo([o({type:Boolean})],go.prototype,"disabled",void 0),xo([n(".ft-radio")],go.prototype,"container",void 0),xo([n("ft-ripple")],go.prototype,"ripple",void 0),xo([n("input")],go.prototype,"input",void 0);const mo=g`
|
|
898
888
|
:host {
|
|
899
889
|
display: contents;
|
|
900
890
|
}
|
|
901
|
-
`;var
|
|
891
|
+
`;var $o=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class wo extends Rt{constructor(){super(...arguments),this.name=""}render(){return Y`
|
|
902
892
|
<slot @slotchange=${this.onSlotChange}
|
|
903
893
|
@change=${this.onChange}
|
|
904
894
|
@keydown=${this.onKeyDown}
|
|
905
895
|
@focusin=${this.focusCurrentValue}
|
|
906
896
|
></slot>
|
|
907
|
-
`}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),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].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)}}
|
|
897
|
+
`}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),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].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)}}wo.elementDefinitions={},wo.styles=mo,$o([o()],wo.prototype,"name",void 0),$o([h()],wo.prototype,"radioButtons",void 0),p("ft-radio")(go),p("ft-radio-group")(wo);const ko={borderRadiusM:mt.external(wt.borderRadiusM,"Design system"),colorOutline:mt.external(wt.colorOutline,"Design system"),colorOnSurface:mt.external(wt.colorOnSurface,"Design system"),colorOnSurfaceMedium:mt.external(wt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:mt.external(wt.colorOnSurfaceDisabled,"Design system"),colorPrimary:mt.external(wt.colorPrimary,"Design system"),colorOnPrimary:mt.external(wt.colorOnPrimary,"Design system"),fontFamily:mt.external($e.fontFamily,"Body2 typography"),fontSize:mt.external($e.fontSize,"Body2 typography"),fontWeight:mt.external($e.fontWeight,"Body2 typography"),letterSpacing:mt.external($e.letterSpacing,"Body2 typography"),lineHeight:mt.external($e.lineHeight,"Body2 typography"),textTransform:mt.external($e.textTransform,"Body2 typography")},Oo=g`
|
|
908
898
|
.ft-filter-level--container {
|
|
909
899
|
display: flex;
|
|
910
900
|
flex-direction: column;
|
|
@@ -918,14 +908,14 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
918
908
|
flex-shrink: 0;
|
|
919
909
|
text-decoration: none;
|
|
920
910
|
position: relative;
|
|
921
|
-
border-radius: ${
|
|
911
|
+
border-radius: ${ko.borderRadiusM};
|
|
922
912
|
overflow: hidden;
|
|
923
913
|
display: flex;
|
|
924
914
|
align-items: center;
|
|
925
915
|
padding: 4px 4px;
|
|
926
916
|
gap: 4px;
|
|
927
917
|
cursor: pointer;
|
|
928
|
-
color: ${
|
|
918
|
+
color: ${ko.colorOnSurface};
|
|
929
919
|
}
|
|
930
920
|
|
|
931
921
|
.ft-filter-level--go-back:focus {
|
|
@@ -954,7 +944,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
954
944
|
}
|
|
955
945
|
|
|
956
946
|
ft-button {
|
|
957
|
-
${
|
|
947
|
+
${$t(Zi.color,ko.colorOnSurface)};
|
|
958
948
|
}
|
|
959
949
|
|
|
960
950
|
ft-radio, ft-checkbox {
|
|
@@ -968,11 +958,11 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
968
958
|
|
|
969
959
|
.ft-filter-level--no-values {
|
|
970
960
|
margin: 10px 0;
|
|
971
|
-
color: ${
|
|
961
|
+
color: ${ko.colorOnSurfaceMedium};
|
|
972
962
|
}
|
|
973
|
-
`;var
|
|
963
|
+
`;var So=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Co extends Rt{constructor(){super(...arguments),this.id="",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 Y`
|
|
974
964
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
975
|
-
${null==this.parent?null:
|
|
965
|
+
${null==this.parent?null:Y`
|
|
976
966
|
<div tabindex="0"
|
|
977
967
|
part="controls go-back"
|
|
978
968
|
class="ft-filter-level--go-back"
|
|
@@ -980,20 +970,20 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
980
970
|
@keyup=${this.goBackOnKeyPress}
|
|
981
971
|
@click=${this.goBackOnClick}>
|
|
982
972
|
<ft-ripple></ft-ripple>
|
|
983
|
-
<ft-icon
|
|
973
|
+
<ft-icon>thin_arrow_left</ft-icon>
|
|
984
974
|
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
985
975
|
</div>
|
|
986
976
|
`}
|
|
987
|
-
${0===this.options.length&&this.noValuesLabel?
|
|
977
|
+
${0===this.options.length&&this.noValuesLabel?Y`
|
|
988
978
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
989
979
|
${this.noValuesLabel}
|
|
990
980
|
</ft-typography>
|
|
991
|
-
`:
|
|
992
|
-
${
|
|
981
|
+
`:tt}
|
|
982
|
+
${di(e,(t=>t.value),(t=>{var e;return Y`
|
|
993
983
|
<div class="ft-filter-level--option" part="options">
|
|
994
984
|
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
995
|
-
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?
|
|
996
|
-
<ft-button icon="
|
|
985
|
+
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?tt:Y`
|
|
986
|
+
<ft-button icon="thin_arrow_right"
|
|
997
987
|
part="controls navigate-hierarchy"
|
|
998
988
|
label="${t.label}"
|
|
999
989
|
?disabled=${this.disabled}
|
|
@@ -1002,28 +992,28 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1002
992
|
`}
|
|
1003
993
|
</div>
|
|
1004
994
|
`}))}
|
|
1005
|
-
${e.length<t.length?
|
|
995
|
+
${e.length<t.length?Y`
|
|
1006
996
|
<ft-button
|
|
1007
997
|
class="ft-filter-level--display-more"
|
|
1008
|
-
icon="
|
|
998
|
+
icon="thin_arrow"
|
|
1009
999
|
dense trailingIcon
|
|
1010
1000
|
part="controls display-more"
|
|
1011
1001
|
@click=${this.displayMore}>
|
|
1012
1002
|
${this.moreValuesButtonLabel}
|
|
1013
1003
|
</ft-button>
|
|
1014
|
-
`:
|
|
1004
|
+
`:tt}
|
|
1015
1005
|
</div>
|
|
1016
|
-
`}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return
|
|
1006
|
+
`}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return Y`
|
|
1017
1007
|
<ft-checkbox name="${this.id}"
|
|
1018
1008
|
part="multivalued-option"
|
|
1019
1009
|
data-value="${t.value}"
|
|
1020
1010
|
.checked=${t.selected}
|
|
1021
1011
|
.disabled=${this.disabled}
|
|
1022
|
-
.indeterminate=${
|
|
1012
|
+
.indeterminate=${ti(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
|
|
1023
1013
|
@change=${e=>this.optionsChanged(e,t)}>
|
|
1024
1014
|
${t.renderOption?t.renderOption:t.label}
|
|
1025
1015
|
</ft-checkbox>
|
|
1026
|
-
`}buildMonoValuedOption(t){return
|
|
1016
|
+
`}buildMonoValuedOption(t){return Y`
|
|
1027
1017
|
<ft-radio name="${this.id+Math.round(1e6*Math.random())}"
|
|
1028
1018
|
part="monovalued-option"
|
|
1029
1019
|
data-value="${t.value}"
|
|
@@ -1034,7 +1024,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1034
1024
|
@change=${t=>t.stopPropagation()}>
|
|
1035
1025
|
${t.renderOption?t.renderOption:t.label}
|
|
1036
1026
|
</ft-radio>
|
|
1037
|
-
`}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}))}}
|
|
1027
|
+
`}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}))}}Co.elementDefinitions={"ft-button":io,"ft-ripple":Oi,"ft-typography":Qe,"ft-checkbox":co,"ft-icon":Ki,"ft-radio":go},Co.styles=Oo,So([o({type:String})],Co.prototype,"id",void 0),So([o({type:Object})],Co.prototype,"parent",void 0),So([o({type:Array})],Co.prototype,"options",void 0),So([o({type:Boolean})],Co.prototype,"multivalued",void 0),So([o({type:Boolean})],Co.prototype,"disabled",void 0),So([o({type:Boolean})],Co.prototype,"hideSelectedOptions",void 0),So([o({type:Boolean})],Co.prototype,"preventNavigation",void 0),So([o({type:String})],Co.prototype,"filter",void 0),So([o({type:String})],Co.prototype,"moreValuesButtonLabel",void 0),So([o({type:String})],Co.prototype,"noValuesLabel",void 0),So([o({type:Number})],Co.prototype,"displayedValuesLimit",void 0),So([n(".ft-filter-level--container")],Co.prototype,"container",void 0),So([s()],Co.prototype,"displayedPages",void 0);const Eo={buttonsColor:mt.extend("--ft-snap-scroll-buttons-color",wt.colorPrimary),buttonsZIndex:mt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:mt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:mt.external(wt.colorSurface,"Design system")},No=g`
|
|
1038
1028
|
.ft-snap-scroll {
|
|
1039
1029
|
box-sizing: border-box;
|
|
1040
1030
|
position: relative;
|
|
@@ -1069,7 +1059,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1069
1059
|
flex-wrap: nowrap;
|
|
1070
1060
|
align-items: flex-start;
|
|
1071
1061
|
justify-content: flex-start;
|
|
1072
|
-
gap: ${
|
|
1062
|
+
gap: ${Eo.gap};
|
|
1073
1063
|
}
|
|
1074
1064
|
|
|
1075
1065
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1112,11 +1102,11 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1112
1102
|
.ft-snap-scroll--next {
|
|
1113
1103
|
position: absolute;
|
|
1114
1104
|
display: flex;
|
|
1115
|
-
z-index: ${
|
|
1105
|
+
z-index: ${Eo.buttonsZIndex};
|
|
1116
1106
|
opacity: 1;
|
|
1117
1107
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1118
|
-
${
|
|
1119
|
-
${
|
|
1108
|
+
${$t(Zi.backgroundColor,"transparent")};
|
|
1109
|
+
${$t(Zi.color,Eo.buttonsColor)};
|
|
1120
1110
|
}
|
|
1121
1111
|
|
|
1122
1112
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1129,43 +1119,43 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1129
1119
|
top: 0;
|
|
1130
1120
|
left: -1px;
|
|
1131
1121
|
bottom: 0;
|
|
1132
|
-
background: linear-gradient(to right, ${
|
|
1122
|
+
background: linear-gradient(to right, ${Eo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1133
1123
|
}
|
|
1134
1124
|
|
|
1135
1125
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1136
1126
|
top: -1px;
|
|
1137
1127
|
left: 0;
|
|
1138
1128
|
right: 0;
|
|
1139
|
-
background: linear-gradient(to bottom, ${
|
|
1129
|
+
background: linear-gradient(to bottom, ${Eo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1140
1130
|
}
|
|
1141
1131
|
|
|
1142
1132
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1143
1133
|
top: 0;
|
|
1144
1134
|
right: -1px;
|
|
1145
1135
|
bottom: 0;
|
|
1146
|
-
background: linear-gradient(to left, ${
|
|
1136
|
+
background: linear-gradient(to left, ${Eo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1147
1137
|
}
|
|
1148
1138
|
|
|
1149
1139
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1150
1140
|
left: 0;
|
|
1151
1141
|
right: 0;
|
|
1152
1142
|
bottom: -1px;
|
|
1153
|
-
background: linear-gradient(to top, ${
|
|
1143
|
+
background: linear-gradient(to top, ${Eo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1154
1144
|
}
|
|
1155
1145
|
|
|
1156
1146
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1157
1147
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1158
1148
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1159
1149
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1160
|
-
background-color: ${
|
|
1150
|
+
background-color: ${Eo.colorSurface};
|
|
1161
1151
|
}
|
|
1162
|
-
`;var
|
|
1152
|
+
`;var Ro=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class zo extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Mo extends Rt{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 e(200),this.updateScrollDebouncer=new e(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,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||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=fi({"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":Ut}),e=this.controls&&this.withScroll;return Y`
|
|
1163
1153
|
<div part="container" class="${t}">
|
|
1164
1154
|
<ft-button
|
|
1165
1155
|
class="ft-snap-scroll--previous"
|
|
1166
1156
|
part="controls"
|
|
1167
1157
|
primary
|
|
1168
|
-
icon="${this.horizontal?"
|
|
1158
|
+
icon="${this.horizontal?"THIN_ARROW_LEFT":"THIN_ARROW_UP"}"
|
|
1169
1159
|
?hidden=${!e||this.startReached}
|
|
1170
1160
|
?disabled=${!e||this.startReached}
|
|
1171
1161
|
@click=${this.previous}
|
|
@@ -1177,13 +1167,13 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1177
1167
|
class="ft-snap-scroll--next"
|
|
1178
1168
|
part="controls"
|
|
1179
1169
|
primary
|
|
1180
|
-
icon="${this.horizontal?"
|
|
1170
|
+
icon="${this.horizontal?"THIN_ARROW_RIGHT":"THIN_ARROW"}"
|
|
1181
1171
|
?hidden=${!e||this.endReached}
|
|
1182
1172
|
?disabled=${!e||this.endReached}
|
|
1183
1173
|
@click=${this.next}
|
|
1184
1174
|
></ft-button>
|
|
1185
1175
|
</div>
|
|
1186
|
-
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==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))),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
|
|
1176
|
+
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==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))),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 zo(this.currentElement,this.elements[this.currentElement]))}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,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.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)}}Mo.elementDefinitions={"ft-button":io},Mo.styles=No,Ro([o({type:Boolean})],Mo.prototype,"horizontal",void 0),Ro([o({type:Boolean})],Mo.prototype,"hideScrollbar",void 0),Ro([o({type:Boolean})],Mo.prototype,"controls",void 0),Ro([o({type:Boolean})],Mo.prototype,"limitSize",void 0),Ro([s()],Mo.prototype,"elements",void 0),Ro([s()],Mo.prototype,"currentElement",void 0),Ro([s()],Mo.prototype,"withScroll",void 0),Ro([s()],Mo.prototype,"startReached",void 0),Ro([s()],Mo.prototype,"endReached",void 0),Ro([n(".ft-snap-scroll--content")],Mo.prototype,"contentSlot",void 0),p("ft-snap-scroll")(Mo);const jo={colorOutline:mt.external(wt.colorOutline,"Design system"),colorOnSurface:mt.external(wt.colorOnSurface,"Design system"),colorOnSurfaceMedium:mt.external(wt.colorOnSurfaceMedium,"Design system"),colorPrimary:mt.external(wt.colorPrimary,"Design system"),colorSurface:mt.external(wt.colorSurface,"Design system"),transitionDuration:mt.external(wt.transitionDuration,"Design system"),transitionTimingFunction:mt.external(wt.transitionTimingFunction,"Design system")},Bo=[Ze,g`
|
|
1187
1177
|
:host {
|
|
1188
1178
|
display: flex;
|
|
1189
1179
|
max-height: 100%;
|
|
@@ -1196,7 +1186,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1196
1186
|
flex-direction: column;
|
|
1197
1187
|
max-height: 100%;
|
|
1198
1188
|
max-width: 100%;
|
|
1199
|
-
color: ${
|
|
1189
|
+
color: ${jo.colorOnSurface};
|
|
1200
1190
|
}
|
|
1201
1191
|
|
|
1202
1192
|
.ft-filter--header {
|
|
@@ -1206,13 +1196,13 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1206
1196
|
flex-shrink: 0;
|
|
1207
1197
|
padding: 0 10px;
|
|
1208
1198
|
margin-bottom: 8px;
|
|
1209
|
-
${
|
|
1199
|
+
${$t(Wt.fontSize,"14px")};
|
|
1210
1200
|
}
|
|
1211
1201
|
|
|
1212
1202
|
.ft-filter--header ft-button {
|
|
1213
1203
|
flex-shrink: 0;
|
|
1214
1204
|
margin-left: auto;
|
|
1215
|
-
${
|
|
1205
|
+
${$t(Zi.iconSize,"18px")};
|
|
1216
1206
|
}
|
|
1217
1207
|
|
|
1218
1208
|
.ft-filter--label {
|
|
@@ -1220,8 +1210,8 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1220
1210
|
flex-shrink: 1;
|
|
1221
1211
|
flex-grow: 1;
|
|
1222
1212
|
word-break: break-word;
|
|
1223
|
-
${
|
|
1224
|
-
${
|
|
1213
|
+
${$t(Wt.lineHeight,"22px")};
|
|
1214
|
+
${$t(Wt.fontWeight,"bold")};
|
|
1225
1215
|
}
|
|
1226
1216
|
|
|
1227
1217
|
.ft-filter--filter {
|
|
@@ -1232,8 +1222,8 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1232
1222
|
padding: 0 10px;
|
|
1233
1223
|
overflow: hidden;
|
|
1234
1224
|
height: 32px;
|
|
1235
|
-
transition: height ${
|
|
1236
|
-
margin ${
|
|
1225
|
+
transition: height ${jo.transitionDuration} ${jo.transitionTimingFunction},
|
|
1226
|
+
margin ${jo.transitionDuration} ${jo.transitionTimingFunction};
|
|
1237
1227
|
transition-delay: 500ms;
|
|
1238
1228
|
}
|
|
1239
1229
|
|
|
@@ -1246,15 +1236,15 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1246
1236
|
display: block;
|
|
1247
1237
|
width: 100%;
|
|
1248
1238
|
border-radius: 4px;
|
|
1249
|
-
border: 1px solid ${
|
|
1239
|
+
border: 1px solid ${jo.colorOutline};
|
|
1250
1240
|
padding: 4px;
|
|
1251
|
-
background-color: ${
|
|
1252
|
-
color: ${
|
|
1253
|
-
outline-color: ${
|
|
1241
|
+
background-color: ${jo.colorSurface};
|
|
1242
|
+
color: ${jo.colorOnSurface};
|
|
1243
|
+
outline-color: ${jo.colorPrimary};
|
|
1254
1244
|
}
|
|
1255
1245
|
|
|
1256
1246
|
input::placeholder {
|
|
1257
|
-
color: ${
|
|
1247
|
+
color: ${jo.colorOnSurfaceMedium};
|
|
1258
1248
|
}
|
|
1259
1249
|
|
|
1260
1250
|
input:placeholder-shown {
|
|
@@ -1270,7 +1260,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1270
1260
|
}
|
|
1271
1261
|
|
|
1272
1262
|
.ft-filter--separator {
|
|
1273
|
-
border-top: 1px solid ${
|
|
1263
|
+
border-top: 1px solid ${jo.colorOutline};
|
|
1274
1264
|
margin: 4px 10px;
|
|
1275
1265
|
}
|
|
1276
1266
|
|
|
@@ -1295,14 +1285,14 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1295
1285
|
slot {
|
|
1296
1286
|
display: none;
|
|
1297
1287
|
}
|
|
1298
|
-
`];var
|
|
1288
|
+
`];var Fo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Uo extends CustomEvent{constructor(t){super("change",{detail:t})}}class Lo extends Rt{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.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e(300),this.changeDebouncer=new e(10)}get flatOptions(){return ti(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){var t,e;const i=this.flatOptions.some((t=>t.selected)),o=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e,s=this.filterPlaceHolder.replace("{0}",this.label);return Y`
|
|
1299
1289
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1300
1290
|
part="container">
|
|
1301
|
-
${this.label||i?
|
|
1291
|
+
${this.label||i?Y`
|
|
1302
1292
|
<div class="ft-filter--header" part="header">
|
|
1303
1293
|
<ft-typography class="ft-filter--label" variant="overline" part="label">${this.label}
|
|
1304
1294
|
</ft-typography>
|
|
1305
|
-
${i&&!this.hideClearButton?
|
|
1295
|
+
${i&&!this.hideClearButton?Y`
|
|
1306
1296
|
<ft-button icon="close" dense @click=${this.clear} part="clear-button">
|
|
1307
1297
|
${this.clearButtonLabel}
|
|
1308
1298
|
</ft-button>
|
|
@@ -1326,8 +1316,8 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1326
1316
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1327
1317
|
@option-change=${this.optionsChanged}></slot>
|
|
1328
1318
|
</div>
|
|
1329
|
-
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300))}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return
|
|
1330
|
-
${this.raiseSelectedOptions&&e.length>0?
|
|
1319
|
+
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300))}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return Y`
|
|
1320
|
+
${this.raiseSelectedOptions&&e.length>0?Y`
|
|
1331
1321
|
<ft-filter-level
|
|
1332
1322
|
id="${this.id}"
|
|
1333
1323
|
?multivalued=${this.multivalued}
|
|
@@ -1346,7 +1336,7 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1346
1336
|
${this.renderLevel(o,this.options)}
|
|
1347
1337
|
${this.displayedLevels.map((e=>t.find((t=>t.value===e)))).map(((t,e)=>{var o;const s=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":e===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(s,null!==(o=null==t?void 0:t.subOptions)&&void 0!==o?o:[],t)}))}
|
|
1348
1338
|
</ft-snap-scroll>
|
|
1349
|
-
`}renderLevel(t,e,i){return
|
|
1339
|
+
`}renderLevel(t,e,i){return Y`
|
|
1350
1340
|
<ft-filter-level
|
|
1351
1341
|
class="${t}"
|
|
1352
1342
|
id="${this.id}"
|
|
@@ -1365,6 +1355,6 @@ class Mi extends Ye{constructor(t){if(super(t),this.it=G,t.type!==qe)throw Error
|
|
|
1365
1355
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1366
1356
|
noValuesLabel="${this.noValuesLabel}"
|
|
1367
1357
|
></ft-filter-level>
|
|
1368
|
-
`}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 i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.dispatchEvent(new
|
|
1358
|
+
`}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 i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.dispatchEvent(new Uo(this.selectedValues)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}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)}}Lo.elementDefinitions={"ft-button":io,"ft-filter-level":Co,"ft-snap-scroll":Mo,"ft-typography":Qe},Lo.styles=Bo,Fo([o({type:String})],Lo.prototype,"id",void 0),Fo([o({type:String})],Lo.prototype,"label",void 0),Fo([o({type:String})],Lo.prototype,"filterPlaceHolder",void 0),Fo([o({type:String})],Lo.prototype,"clearButtonLabel",void 0),Fo([o({type:String})],Lo.prototype,"moreValuesButtonLabel",void 0),Fo([o({type:String})],Lo.prototype,"noValuesLabel",void 0),Fo([d([])],Lo.prototype,"options",void 0),Fo([o({type:Boolean})],Lo.prototype,"multivalued",void 0),Fo([o({type:Boolean})],Lo.prototype,"disabled",void 0),Fo([o({type:Boolean})],Lo.prototype,"raiseSelectedOptions",void 0),Fo([o({type:Number})],Lo.prototype,"displayedValuesLimit",void 0),Fo([o({type:Boolean})],Lo.prototype,"hideClearButton",void 0),Fo([n(".ft-filter--slot")],Lo.prototype,"slotElement",void 0),Fo([n(".ft-filter--container")],Lo.prototype,"container",void 0),Fo([n(".ft-filter--values")],Lo.prototype,"valuesContainer",void 0),Fo([n(".ft-filter--levels")],Lo.prototype,"levelsContainer",void 0),Fo([n(".ft-filter--levels ft-filter-level:last-child")],Lo.prototype,"lastLevel",void 0),Fo([n(".ft-filter--filter input")],Lo.prototype,"filterInput",void 0),Fo([function(t){return r({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],Lo.prototype,"levels",void 0),Fo([s()],Lo.prototype,"withScroll",void 0),Fo([s()],Lo.prototype,"filter",void 0),Fo([s()],Lo.prototype,"slideIn",void 0),Fo([s()],Lo.prototype,"slideOut",void 0);var Do=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class To extends Rt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Y`
|
|
1369
1359
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1370
|
-
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}
|
|
1360
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}To.elementDefinitions={},Do([o({type:String})],To.prototype,"label",void 0),Do([o({type:Object,converter:t=>t})],To.prototype,"value",void 0),Do([o({type:Boolean,reflect:!0})],To.prototype,"selected",void 0),Do([o({type:Object})],To.prototype,"subOptions",void 0),Do([d({})],To.prototype,"renderOption",void 0),Do([n(".ft-filter-option--slot")],To.prototype,"slotElement",void 0),p("ft-filter")(Lo),p("ft-filter-option")(To),t.FtFilter=Lo,t.FtFilterChangeEvent=Uo,t.FtFilterCssVariables=jo,t.FtFilterLevelCssVariables=ko,t.FtFilterOption=To,t.levelStyles=Oo,t.styles=Bo}({});
|