@fluid-topics/ft-filter 0.3.18 → 0.3.20
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.light.js +185 -185
- package/build/ft-filter.min.js +229 -229
- package/package.json +10 -10
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,
|
|
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){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const 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(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},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)=>{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(Ei){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -29,12 +29,12 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const
|
|
32
|
+
*/const r=({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,o)}}
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function
|
|
37
|
+
*/;function n(t,e){return r({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2017 Google LLC
|
|
@@ -45,7 +45,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
45
45
|
* Copyright 2021 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(t){const{slot:e,selector:i}=null!=t?t:{};return
|
|
48
|
+
var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),n=null!=r?a(r,t):[];return i?n.filter((t=>t.matches(i))):n},enumerable:!0,configurable:!0})})}
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
@@ -55,34 +55,34 @@ 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 d=window.ShadowRoot&&(void 0===
|
|
58
|
+
*/const d=window,f=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),v=new WeakMap;class b{constructor(t,e,i){if(this._$cssResult$=!0,i!==u)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(f&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=v.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&v.set(e,t))}return t}toString(){return this.cssText}}const x=t=>new b("string"==typeof t?t:t+"",void 0,u),y=(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 b(i,t,u)},g=(t,e)=>{f?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=d.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},m=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return x(e)})(t):t
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
-
*/;var
|
|
63
|
+
*/;var $;const w=window,k=w.trustedTypes,O=k?k.emptyScript:"",S=w.reactiveElementPolyfillSupport,C={toAttribute(t,e){switch(e){case Boolean:t=t?O: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),E={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:N};class z extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),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=E){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)||E}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),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(m(t))}else void 0!==t&&e.push(m(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 g(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=E){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:C).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:C;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 R;z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:z}),(null!==($=w.reactiveElementVersions)&&void 0!==$?$:w.reactiveElementVersions=[]).push("1.4.1");const M=window,B=M.trustedTypes,F=B?B.createPolicy("lit-html",{createHTML:t=>t}):void 0,j=`lit$${(Math.random()+"").slice(9)}$`,U="?"+j,L=`<${U}>`,D=document,A=(t="")=>D.createComment(t),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_=t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,K=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),V=/'/g,Z=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),G=new WeakMap,Q=D.createTreeWalker(D,129,null,!1),tt=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=I;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===I?"!--"===a[1]?n=W:void 0!==a[1]?n=H:void 0!==a[2]?(J.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=K):void 0!==a[3]&&(n=K):n===K?">"===a[0]?(n=null!=s?s:I,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?K:'"'===a[3]?Z:V):n===Z||n===V?n=K:n===W||n===H?n=I:(n=K,s=void 0);const p=n===K&&t[e+1].startsWith("/>")?" ":"";r+=n===I?i+L:h>=0?(o.push(l),i.slice(0,h)+"$lit$"+i.slice(h)+j+p):i+j+(-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 et{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[a,h]=tt(t,e);if(this.el=et.createElement(a,i),Q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Q.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(j)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(j),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?at:"@"===e[1]?ht:rt})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(J.test(o.tagName)){const t=o.textContent.split(j),e=t.length-1;if(e>0){o.textContent=B?B.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),Q.nextNode(),l.push({type:2,index:++s});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===U)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(j,t+1));)l.push({type:7,index:s}),t+=j.length-1}s++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function it(t,e,i=t,o){var s,r,n,l;if(e===X)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=T(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=it(t,a._$AS(t,e.values),a,o)),e}class ot{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:D).importNode(i,!0);Q.currentNode=s;let r=Q.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new st(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new ct(r,this,t)),this.u.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=Q.nextNode(),n++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class st{constructor(t,e,i,o){var s;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),T(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==X&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):_(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Y&&T(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=et.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new ot(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new et(t)),e}k(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new st(this.O(A()),this.O(A()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class rt{constructor(t,e,i,o,s){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=it(this,t,e,0),r=!T(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=it(this,o[i+n],e,n),l===X&&(l=this._$AH[n]),r||(r=!T(l)||l!==this._$AH[n]),l===Y?t=Y:t!==Y&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const lt=B?B.emptyScript:"";class at extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,lt):this.element.removeAttribute(this.name)}}class ht extends rt{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=it(this,t,e,0))&&void 0!==i?i:Y)===X)return;const o=this._$AH,s=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Y&&(o===Y||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ct{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}}const pt={P:"$lit$",A:j,M:U,C:1,L:tt,R:ot,D:_,V:it,I:st,H:rt,N:at,U:ht,B:nt,F:ct},dt=M.litHtmlPolyfillSupport;null==dt||dt(et,st),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.4.0");
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2017 Google LLC
|
|
73
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
74
|
*/
|
|
75
|
-
var
|
|
75
|
+
var ft,ut;class vt 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 st(e.insertBefore(A(),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 X}}vt.finalized=!0,vt._$litElement$=!0,null===(ft=globalThis.litElementHydrateSupport)||void 0===ft||ft.call(globalThis,{LitElement:vt});const bt=globalThis.litElementPolyfillSupport;null==bt||bt({LitElement:vt}),(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.2.2");class xt{static create(t,e,i){let o=t=>x(null!=t?t:i),s=y`var(${x(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${x(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=y`var(${x(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${x(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):x(null!=e?e:t.defaultValue),o=y`var(${x(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=>y`var(${x(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 yt(t,e){return x(`${t.name}: ${e}`)}const gt={colorPrimary:xt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:xt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:xt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:xt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:xt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:xt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xt.create("--ft-color-error","COLOR","#B00020"),colorOutline:xt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:xt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:xt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:xt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:xt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:xt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:xt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:xt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:xt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:xt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:xt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:xt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:xt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:xt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:xt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:xt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:xt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:xt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:xt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:xt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:xt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
76
76
|
/**
|
|
77
77
|
* @license
|
|
78
78
|
* Copyright 2021 Google LLC
|
|
79
79
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
80
|
-
*/var
|
|
81
|
-
${t.map((t=>
|
|
80
|
+
*/var mt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class $t extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return g(s,this.constructor.elementStyles),s}}}(vt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),q`
|
|
81
|
+
${t.map((t=>q`
|
|
82
82
|
<style>${t}</style>
|
|
83
83
|
`))}
|
|
84
84
|
${this.getTemplate()}
|
|
85
|
-
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,s,n
|
|
85
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}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(", "))}contentAvailableCallback(t){}}mt([o()],$t.prototype,"exportpartsPrefix",void 0),mt([p([])],$t.prototype,"exportpartsPrefixes",void 0);const wt=y`
|
|
86
86
|
.ft-no-text-select {
|
|
87
87
|
-webkit-touch-callout: none;
|
|
88
88
|
-webkit-user-select: none;
|
|
@@ -91,7 +91,7 @@ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
|
|
|
91
91
|
-ms-user-select: none;
|
|
92
92
|
user-select: none;
|
|
93
93
|
}
|
|
94
|
-
`;var
|
|
94
|
+
`;var kt,Ot,St;y`
|
|
95
95
|
.ft-word-wrap {
|
|
96
96
|
white-space: normal;
|
|
97
97
|
word-wrap: break-word;
|
|
@@ -103,124 +103,124 @@ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
|
|
|
103
103
|
-webkit-hyphens: auto;
|
|
104
104
|
hyphens: auto
|
|
105
105
|
}
|
|
106
|
-
`;const
|
|
106
|
+
`;const Ct=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(St=null===(Ot=null===(kt=window.safari)||void 0===kt?void 0:kt.pushNotification)||void 0===Ot?void 0:Ot.toString())&&void 0!==St?St:""),Nt=Symbol.for(""),Et=t=>{if((null==t?void 0:t.r)===Nt)return null==t?void 0:t._$litStatic$},zt=t=>({_$litStatic$:t,r:Nt}),Rt=new Map,Mt=(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=Et(r));)a+=s+e[++h],c=!0;l.push(r),n.push(a),h++}if(h===o&&n.push(e[o]),c){const t=n.join("$$lit$$");void 0===(e=Rt.get(t))&&(n.raw=n,Rt.set(t,e=n)),i=l}return t(e,...i)})(q);
|
|
107
107
|
/**
|
|
108
108
|
* @license
|
|
109
109
|
* Copyright 2020 Google LLC
|
|
110
110
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
111
|
-
*/var
|
|
111
|
+
*/var Bt;!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"}(Bt||(Bt={}));const Ft=xt.extend("--ft-typography-font-family",gt.titleFont),jt=xt.extend("--ft-typography-font-family",gt.contentFont),Ut={fontFamily:jt,fontSize:xt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:xt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:xt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:xt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:xt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Lt=xt.extend("--ft-typography-title-font-family",Ft),Dt=xt.extend("--ft-typography-title-font-size",Ut.fontSize,"20px"),At=xt.extend("--ft-typography-title-font-weight",Ut.fontWeight,"normal"),Tt=xt.extend("--ft-typography-title-letter-spacing",Ut.letterSpacing,"0.15px"),Pt=xt.extend("--ft-typography-title-line-height",Ut.lineHeight,"1.2"),_t=xt.extend("--ft-typography-title-text-transform",Ut.textTransform,"inherit"),It=xt.extend("--ft-typography-title-dense-font-family",Ft),Wt=xt.extend("--ft-typography-title-dense-font-size",Ut.fontSize,"14px"),Ht=xt.extend("--ft-typography-title-dense-font-weight",Ut.fontWeight,"normal"),Kt=xt.extend("--ft-typography-title-dense-letter-spacing",Ut.letterSpacing,"0.105px"),Vt=xt.extend("--ft-typography-title-dense-line-height",Ut.lineHeight,"1.7"),Zt=xt.extend("--ft-typography-title-dense-text-transform",Ut.textTransform,"inherit"),Jt=xt.extend("--ft-typography-subtitle1-font-family",jt),qt=xt.extend("--ft-typography-subtitle1-font-size",Ut.fontSize,"16px"),Xt=xt.extend("--ft-typography-subtitle1-font-weight",Ut.fontWeight,"600"),Yt=xt.extend("--ft-typography-subtitle1-letter-spacing",Ut.letterSpacing,"0.144px"),Gt=xt.extend("--ft-typography-subtitle1-line-height",Ut.lineHeight,"1.5"),Qt=xt.extend("--ft-typography-subtitle1-text-transform",Ut.textTransform,"inherit"),te=xt.extend("--ft-typography-subtitle2-font-family",jt),ee=xt.extend("--ft-typography-subtitle2-font-size",Ut.fontSize,"14px"),ie=xt.extend("--ft-typography-subtitle2-font-weight",Ut.fontWeight,"normal"),oe=xt.extend("--ft-typography-subtitle2-letter-spacing",Ut.letterSpacing,"0.098px"),se=xt.extend("--ft-typography-subtitle2-line-height",Ut.lineHeight,"1.7"),re=xt.extend("--ft-typography-subtitle2-text-transform",Ut.textTransform,"inherit"),ne=xt.extend("--ft-typography-body1-font-family",jt),le=xt.extend("--ft-typography-body1-font-size",Ut.fontSize,"16px"),ae=xt.extend("--ft-typography-body1-font-weight",Ut.fontWeight,"normal"),he=xt.extend("--ft-typography-body1-letter-spacing",Ut.letterSpacing,"0.496px"),ce=xt.extend("--ft-typography-body1-line-height",Ut.lineHeight,"1.5"),pe=xt.extend("--ft-typography-body1-text-transform",Ut.textTransform,"inherit"),de={fontFamily:xt.extend("--ft-typography-body2-font-family",jt),fontSize:xt.extend("--ft-typography-body2-font-size",Ut.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-body2-font-weight",Ut.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-body2-letter-spacing",Ut.letterSpacing,"0.252px"),lineHeight:xt.extend("--ft-typography-body2-line-height",Ut.lineHeight,"1.4"),textTransform:xt.extend("--ft-typography-body2-text-transform",Ut.textTransform,"inherit")},fe=xt.extend("--ft-typography-caption-font-family",jt),ue=xt.extend("--ft-typography-caption-font-size",Ut.fontSize,"12px"),ve=xt.extend("--ft-typography-caption-font-weight",Ut.fontWeight,"normal"),be=xt.extend("--ft-typography-caption-letter-spacing",Ut.letterSpacing,"0.396px"),xe=xt.extend("--ft-typography-caption-line-height",Ut.lineHeight,"1.33"),ye=xt.extend("--ft-typography-caption-text-transform",Ut.textTransform,"inherit"),ge=xt.extend("--ft-typography-breadcrumb-font-family",jt),me=xt.extend("--ft-typography-breadcrumb-font-size",Ut.fontSize,"10px"),$e=xt.extend("--ft-typography-breadcrumb-font-weight",Ut.fontWeight,"normal"),we=xt.extend("--ft-typography-breadcrumb-letter-spacing",Ut.letterSpacing,"0.33px"),ke=xt.extend("--ft-typography-breadcrumb-line-height",Ut.lineHeight,"1.6"),Oe=xt.extend("--ft-typography-breadcrumb-text-transform",Ut.textTransform,"inherit"),Se=xt.extend("--ft-typography-overline-font-family",jt),Ce=xt.extend("--ft-typography-overline-font-size",Ut.fontSize,"10px"),Ne=xt.extend("--ft-typography-overline-font-weight",Ut.fontWeight,"normal"),Ee=xt.extend("--ft-typography-overline-letter-spacing",Ut.letterSpacing,"1.5px"),ze=xt.extend("--ft-typography-overline-line-height",Ut.lineHeight,"1.6"),Re=xt.extend("--ft-typography-overline-text-transform",Ut.textTransform,"uppercase"),Me={fontFamily:xt.extend("--ft-typography-button-font-family",jt),fontSize:xt.extend("--ft-typography-button-font-size",Ut.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-button-font-weight",Ut.fontWeight,"600"),letterSpacing:xt.extend("--ft-typography-button-letter-spacing",Ut.letterSpacing,"1.246px"),lineHeight:xt.extend("--ft-typography-button-line-height",Ut.lineHeight,"1.15"),textTransform:xt.extend("--ft-typography-button-text-transform",Ut.textTransform,"uppercase")},Be=y`
|
|
112
112
|
.ft-typography--title {
|
|
113
|
-
font-family: ${
|
|
114
|
-
font-size: ${
|
|
115
|
-
font-weight: ${
|
|
116
|
-
letter-spacing: ${
|
|
117
|
-
line-height: ${
|
|
118
|
-
text-transform: ${
|
|
119
|
-
}
|
|
120
|
-
`,
|
|
113
|
+
font-family: ${Lt};
|
|
114
|
+
font-size: ${Dt};
|
|
115
|
+
font-weight: ${At};
|
|
116
|
+
letter-spacing: ${Tt};
|
|
117
|
+
line-height: ${Pt};
|
|
118
|
+
text-transform: ${_t};
|
|
119
|
+
}
|
|
120
|
+
`,Fe=y`
|
|
121
121
|
.ft-typography--title-dense {
|
|
122
|
-
font-family: ${
|
|
123
|
-
font-size: ${
|
|
124
|
-
font-weight: ${
|
|
125
|
-
letter-spacing: ${
|
|
126
|
-
line-height: ${
|
|
127
|
-
text-transform: ${
|
|
128
|
-
}
|
|
129
|
-
`,
|
|
122
|
+
font-family: ${It};
|
|
123
|
+
font-size: ${Wt};
|
|
124
|
+
font-weight: ${Ht};
|
|
125
|
+
letter-spacing: ${Kt};
|
|
126
|
+
line-height: ${Vt};
|
|
127
|
+
text-transform: ${Zt};
|
|
128
|
+
}
|
|
129
|
+
`,je=y`
|
|
130
130
|
.ft-typography--subtitle1 {
|
|
131
|
-
font-family: ${
|
|
132
|
-
font-size: ${
|
|
133
|
-
font-weight: ${
|
|
134
|
-
letter-spacing: ${
|
|
135
|
-
line-height: ${
|
|
136
|
-
text-transform: ${
|
|
137
|
-
}
|
|
138
|
-
`,
|
|
131
|
+
font-family: ${Jt};
|
|
132
|
+
font-size: ${qt};
|
|
133
|
+
font-weight: ${Xt};
|
|
134
|
+
letter-spacing: ${Yt};
|
|
135
|
+
line-height: ${Gt};
|
|
136
|
+
text-transform: ${Qt};
|
|
137
|
+
}
|
|
138
|
+
`,Ue=y`
|
|
139
139
|
.ft-typography--subtitle2 {
|
|
140
|
-
font-family: ${
|
|
141
|
-
font-size: ${
|
|
142
|
-
font-weight: ${
|
|
143
|
-
letter-spacing: ${
|
|
144
|
-
line-height: ${
|
|
145
|
-
text-transform: ${
|
|
140
|
+
font-family: ${te};
|
|
141
|
+
font-size: ${ee};
|
|
142
|
+
font-weight: ${ie};
|
|
143
|
+
letter-spacing: ${oe};
|
|
144
|
+
line-height: ${se};
|
|
145
|
+
text-transform: ${re};
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
`,
|
|
148
|
+
`,Le=y`
|
|
149
149
|
.ft-typography--body1 {
|
|
150
|
-
font-family: ${
|
|
151
|
-
font-size: ${
|
|
152
|
-
font-weight: ${
|
|
153
|
-
letter-spacing: ${
|
|
154
|
-
line-height: ${
|
|
155
|
-
text-transform: ${
|
|
150
|
+
font-family: ${ne};
|
|
151
|
+
font-size: ${le};
|
|
152
|
+
font-weight: ${ae};
|
|
153
|
+
letter-spacing: ${he};
|
|
154
|
+
line-height: ${ce};
|
|
155
|
+
text-transform: ${pe};
|
|
156
156
|
}
|
|
157
|
-
`,
|
|
157
|
+
`,De=y`
|
|
158
158
|
.ft-typography--body2 {
|
|
159
|
-
font-family: ${
|
|
160
|
-
font-size: ${
|
|
161
|
-
font-weight: ${
|
|
162
|
-
letter-spacing: ${
|
|
163
|
-
line-height: ${
|
|
164
|
-
text-transform: ${
|
|
159
|
+
font-family: ${de.fontFamily};
|
|
160
|
+
font-size: ${de.fontSize};
|
|
161
|
+
font-weight: ${de.fontWeight};
|
|
162
|
+
letter-spacing: ${de.letterSpacing};
|
|
163
|
+
line-height: ${de.lineHeight};
|
|
164
|
+
text-transform: ${de.textTransform};
|
|
165
165
|
}
|
|
166
|
-
`,
|
|
166
|
+
`,Ae=y`
|
|
167
167
|
.ft-typography--caption {
|
|
168
|
-
font-family: ${
|
|
169
|
-
font-size: ${
|
|
170
|
-
font-weight: ${
|
|
171
|
-
letter-spacing: ${
|
|
172
|
-
line-height: ${
|
|
173
|
-
text-transform: ${
|
|
168
|
+
font-family: ${fe};
|
|
169
|
+
font-size: ${ue};
|
|
170
|
+
font-weight: ${ve};
|
|
171
|
+
letter-spacing: ${be};
|
|
172
|
+
line-height: ${xe};
|
|
173
|
+
text-transform: ${ye};
|
|
174
174
|
}
|
|
175
|
-
`,
|
|
175
|
+
`,Te=y`
|
|
176
176
|
.ft-typography--breadcrumb {
|
|
177
|
-
font-family: ${
|
|
178
|
-
font-size: ${
|
|
179
|
-
font-weight: ${
|
|
180
|
-
letter-spacing: ${
|
|
181
|
-
line-height: ${
|
|
182
|
-
text-transform: ${
|
|
183
|
-
}
|
|
184
|
-
`,
|
|
177
|
+
font-family: ${ge};
|
|
178
|
+
font-size: ${me};
|
|
179
|
+
font-weight: ${$e};
|
|
180
|
+
letter-spacing: ${we};
|
|
181
|
+
line-height: ${ke};
|
|
182
|
+
text-transform: ${Oe};
|
|
183
|
+
}
|
|
184
|
+
`,Pe=y`
|
|
185
185
|
.ft-typography--overline {
|
|
186
|
-
font-family: ${
|
|
187
|
-
font-size: ${
|
|
188
|
-
font-weight: ${
|
|
189
|
-
letter-spacing: ${
|
|
190
|
-
line-height: ${
|
|
191
|
-
text-transform: ${
|
|
192
|
-
}
|
|
193
|
-
`,
|
|
186
|
+
font-family: ${Se};
|
|
187
|
+
font-size: ${Ce};
|
|
188
|
+
font-weight: ${Ne};
|
|
189
|
+
letter-spacing: ${Ee};
|
|
190
|
+
line-height: ${ze};
|
|
191
|
+
text-transform: ${Re};
|
|
192
|
+
}
|
|
193
|
+
`,_e=y`
|
|
194
194
|
.ft-typography--button {
|
|
195
|
-
font-family: ${
|
|
196
|
-
font-size: ${
|
|
197
|
-
font-weight: ${
|
|
198
|
-
letter-spacing: ${
|
|
199
|
-
line-height: ${
|
|
200
|
-
text-transform: ${
|
|
201
|
-
}
|
|
202
|
-
`,
|
|
195
|
+
font-family: ${Me.fontFamily};
|
|
196
|
+
font-size: ${Me.fontSize};
|
|
197
|
+
font-weight: ${Me.fontWeight};
|
|
198
|
+
letter-spacing: ${Me.letterSpacing};
|
|
199
|
+
line-height: ${Me.lineHeight};
|
|
200
|
+
text-transform: ${Me.textTransform};
|
|
201
|
+
}
|
|
202
|
+
`,Ie=y`
|
|
203
203
|
.ft-typography {
|
|
204
204
|
vertical-align: inherit;
|
|
205
205
|
}
|
|
206
|
-
`;var
|
|
207
|
-
<${
|
|
206
|
+
`;var We=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 He extends $t{constructor(){super(...arguments),this.variant=Bt.body1}render(){return this.element?Mt`
|
|
207
|
+
<${zt(this.element)}
|
|
208
208
|
class="ft-typography ft-typography--${this.variant}">
|
|
209
209
|
<slot></slot>
|
|
210
|
-
</${
|
|
211
|
-
`:
|
|
210
|
+
</${zt(this.element)}>
|
|
211
|
+
`:Mt`
|
|
212
212
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
213
|
-
`}}function
|
|
213
|
+
`}}function Ke(t,e){return t.flatMap((t=>[t,...Ke(e(t),e)]))}
|
|
214
214
|
/**
|
|
215
215
|
* @license
|
|
216
216
|
* Copyright 2017 Google LLC
|
|
217
217
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
218
|
-
*/
|
|
218
|
+
*/He.styles=[Be,Fe,je,Ue,Le,De,Ae,Te,Pe,_e,Ie],We([o()],He.prototype,"element",void 0),We([o()],He.prototype,"variant",void 0),c("ft-typography")(He);const Ve=1,Ze=2,Je=t=>(...e)=>({_$litDirective$:t,values:e});class qe{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)}}
|
|
219
219
|
/**
|
|
220
220
|
* @license
|
|
221
221
|
* Copyright 2020 Google LLC
|
|
222
222
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
223
|
-
*/const{
|
|
223
|
+
*/const{I:Xe}=pt,Ye=()=>document.createComment(""),Ge=(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(Ye(),r),o=s.insertBefore(Ye(),r);i=new Xe(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},Qe=(t,e,i=t)=>(t._$AI(e,i),t),ti={},ei=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}},ii=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},oi=Je(class extends qe{constructor(t){if(super(t),t.type!==Ze)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],r=[];let n=0;for(const e of t)s[n]=o?o(e,n):n,r[n]=i(e,n),n++;return{values:r,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const r=(t=>t._$AH)(t),{values:n,keys:l}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=l,n;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],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]=Qe(r[d],n[u]),d++,u++;else if(a[f]===l[v])h[v]=Qe(r[f],n[v]),f--,v--;else if(a[d]===l[v])h[v]=Qe(r[d],n[v]),Ge(t,h[v+1],r[d]),d++,v--;else if(a[f]===l[u])h[u]=Qe(r[f],n[u]),Ge(t,r[d],r[f]),f--,u++;else if(void 0===c&&(c=ii(l,u,v),p=ii(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=Ge(t,r[d]);Qe(e,n[u]),h[u]=e}else h[u]=Qe(i,n[u]),Ge(t,r[d],i),r[e]=null;u++}else ei(r[f]),f--;else ei(r[d]),d++;for(;u<=v;){const e=Ge(t,h[v+1]);Qe(e,n[u]),h[u++]=e}for(;d<=f;){const t=r[d++];null!==t&&ei(t)}return this.ut=l,((t,e=ti)=>{t._$AH=e})(t,h),X}}),si=Je(class extends qe{constructor(t){var e;if(super(t),t.type!==Ve||"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.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return X}}),ri=xt.extend("--ft-ripple-color",gt.colorContent),ni={color:ri,backgroundColor:xt.extend("--ft-ripple-background-color",ri),opacityContentOnSurfacePressed:xt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xt.external(gt.opacityContentOnSurfaceSelected,"Design system")},li=xt.extend("--ft-ripple-color",gt.colorPrimary),ai=li,hi=xt.extend("--ft-ripple-background-color",li),ci=xt.extend("--ft-ripple-color",gt.colorSecondary),pi=ci,di=xt.extend("--ft-ripple-background-color",ci),fi=y`
|
|
224
224
|
:host {
|
|
225
225
|
display: contents;
|
|
226
226
|
}
|
|
@@ -242,27 +242,27 @@ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
.ft-ripple .ft-ripple--background {
|
|
245
|
-
background-color: ${
|
|
245
|
+
background-color: ${ni.backgroundColor};
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
.ft-ripple .ft-ripple--effect {
|
|
249
|
-
background-color: ${
|
|
249
|
+
background-color: ${ni.color};
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
253
|
-
background-color: ${
|
|
253
|
+
background-color: ${di};
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
257
|
-
background-color: ${
|
|
257
|
+
background-color: ${pi};
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
261
|
-
background-color: ${
|
|
261
|
+
background-color: ${hi};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
265
|
-
background-color: ${
|
|
265
|
+
background-color: ${ai};
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
.ft-ripple .ft-ripple--background {
|
|
@@ -294,19 +294,19 @@ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
297
|
-
opacity: ${
|
|
297
|
+
opacity: ${ni.opacityContentOnSurfaceHover};
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
301
|
-
opacity: ${
|
|
301
|
+
opacity: ${ni.opacityContentOnSurfaceSelected};
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
305
|
-
opacity: ${
|
|
305
|
+
opacity: ${ni.opacityContentOnSurfaceFocused};
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
309
|
-
opacity: ${
|
|
309
|
+
opacity: ${ni.opacityContentOnSurfacePressed};
|
|
310
310
|
transform: translate(-50%, -50%) scale(1);
|
|
311
311
|
}
|
|
312
312
|
`;
|
|
@@ -314,7 +314,7 @@ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
|
|
|
314
314
|
* @license
|
|
315
315
|
* Copyright 2017 Google LLC
|
|
316
316
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
317
|
-
*/var
|
|
317
|
+
*/var ui=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 vi extends $t{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.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 q`
|
|
318
318
|
<style>
|
|
319
319
|
.ft-ripple .ft-ripple--effect,
|
|
320
320
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -327,11 +327,11 @@ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
|
|
|
327
327
|
top: ${this.originY}px;
|
|
328
328
|
}
|
|
329
329
|
</style>
|
|
330
|
-
<div class="${
|
|
330
|
+
<div class="${si(t)}">
|
|
331
331
|
<div class="ft-ripple--background"></div>
|
|
332
332
|
<div class="ft-ripple--effect"></div>
|
|
333
333
|
</div>
|
|
334
|
-
`}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(){var t;super.connectedCallback();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}}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()}}
|
|
334
|
+
`}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(){var t;super.connectedCallback();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}}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()}}vi.elementDefinitions={},vi.styles=fi,ui([o({type:Boolean})],vi.prototype,"primary",void 0),ui([o({type:Boolean})],vi.prototype,"secondary",void 0),ui([o({type:Boolean})],vi.prototype,"unbounded",void 0),ui([o({type:Boolean})],vi.prototype,"activated",void 0),ui([o({type:Boolean})],vi.prototype,"selected",void 0),ui([o({type:Boolean})],vi.prototype,"disabled",void 0),ui([s()],vi.prototype,"hovered",void 0),ui([s()],vi.prototype,"focused",void 0),ui([s()],vi.prototype,"pressed",void 0),ui([s()],vi.prototype,"rippling",void 0),ui([s()],vi.prototype,"rippleSize",void 0),ui([s()],vi.prototype,"originX",void 0),ui([s()],vi.prototype,"originY",void 0),ui([n(".ft-ripple")],vi.prototype,"ripple",void 0),ui([n(".ft-ripple--effect")],vi.prototype,"rippleEffect",void 0),c("ft-ripple")(vi);const bi=xt.create("--ft-tooltip-distance","SIZE","4px"),xi=xt.create("--ft-tooltip-color","COLOR","#FFFFFF"),yi=xt.create("--ft-tooltip-background-color","COLOR","#666666"),gi=xt.create("--ft-tooltip-z-index","NUMBER","1"),mi=xt.external(gt.borderRadiusS,"Design system"),$i=xt.create("--ft-tooltip-max-width","SIZE","150px"),wi=y`
|
|
335
335
|
.ft-tooltip--container {
|
|
336
336
|
display: block;
|
|
337
337
|
position: relative;
|
|
@@ -347,23 +347,23 @@ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
|
|
|
347
347
|
box-sizing: border-box;
|
|
348
348
|
overflow: hidden;
|
|
349
349
|
width: max-content;
|
|
350
|
-
max-width: ${
|
|
350
|
+
max-width: ${$i};
|
|
351
351
|
text-align: center;
|
|
352
|
-
padding: ${
|
|
353
|
-
z-index: ${
|
|
352
|
+
padding: ${bi};
|
|
353
|
+
z-index: ${gi};
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
.ft-tooltip--content {
|
|
357
357
|
padding: 4px 8px;
|
|
358
|
-
border-radius: ${
|
|
359
|
-
background-color: ${
|
|
360
|
-
color: ${
|
|
358
|
+
border-radius: ${mi};
|
|
359
|
+
background-color: ${yi};
|
|
360
|
+
color: ${xi};
|
|
361
361
|
top: -500px;
|
|
362
362
|
left: -500px;
|
|
363
363
|
position: relative;
|
|
364
364
|
word-break: break-word;
|
|
365
365
|
}
|
|
366
|
-
`;var
|
|
366
|
+
`;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 $t{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return q`
|
|
367
367
|
<div part="container"
|
|
368
368
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
369
369
|
@mouseenter=${this.onHover}
|
|
@@ -379,7 +379,7 @@ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
|
|
|
379
379
|
</div>
|
|
380
380
|
<slot></slot>
|
|
381
381
|
</div>
|
|
382
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has(
|
|
382
|
+
`}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.position){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.position){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, ${$i})`}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())}}Oi.elementDefinitions={"ft-typography":He},Oi.styles=wi,ki([o()],Oi.prototype,"text",void 0),ki([o({type:Boolean})],Oi.prototype,"manual",void 0),ki([o({type:Boolean})],Oi.prototype,"inline",void 0),ki([o({type:Number})],Oi.prototype,"delay",void 0),ki([o()],Oi.prototype,"position",void 0),ki([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)],Oi.prototype,"slotNodes",void 0),ki([n(".ft-tooltip--container")],Oi.prototype,"container",void 0),ki([n("slot")],Oi.prototype,"target",void 0),ki([n(".ft-tooltip")],Oi.prototype,"tooltip",void 0),ki([n(".ft-tooltip--content")],Oi.prototype,"tooltipContent",void 0),ki([s()],Oi.prototype,"visible",void 0),c("ft-tooltip")(Oi);const Si={color:xt.extend("--ft-loader-color",gt.colorPrimary),size:xt.create("--ft-loader-size","SIZE","80px")},Ci=y`
|
|
383
383
|
:host {
|
|
384
384
|
line-height: 0;
|
|
385
385
|
}
|
|
@@ -388,8 +388,8 @@ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
|
|
|
388
388
|
display: inline-block;
|
|
389
389
|
position: relative;
|
|
390
390
|
|
|
391
|
-
width: ${
|
|
392
|
-
height: ${
|
|
391
|
+
width: ${Si.size};
|
|
392
|
+
height: ${Si.size};
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
.ft-loader div {
|
|
@@ -398,7 +398,7 @@ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
|
|
|
398
398
|
width: 25%;
|
|
399
399
|
height: 25%;
|
|
400
400
|
border-radius: 50%;
|
|
401
|
-
background: ${
|
|
401
|
+
background: ${Si.color};
|
|
402
402
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
403
403
|
}
|
|
404
404
|
|
|
@@ -445,35 +445,35 @@ var ct,pt;null==ht||ht(G,et),(null!==(E=globalThis.litHtmlVersions)&&void 0!==E?
|
|
|
445
445
|
transform: translate(0, 0);
|
|
446
446
|
}
|
|
447
447
|
100% {
|
|
448
|
-
transform: translate(calc(0.35 * ${
|
|
448
|
+
transform: translate(calc(0.35 * ${Si.size}), 0);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
`;class
|
|
451
|
+
`;class Ni extends $t{render(){return q`
|
|
452
452
|
<div class="ft-loader">
|
|
453
453
|
<div></div>
|
|
454
454
|
<div></div>
|
|
455
455
|
<div></div>
|
|
456
456
|
<div></div>
|
|
457
457
|
</div>
|
|
458
|
-
`}}
|
|
458
|
+
`}}Ni.styles=Ci,c("ft-loader")(Ni);
|
|
459
459
|
/**
|
|
460
460
|
* @license
|
|
461
461
|
* Copyright 2017 Google LLC
|
|
462
462
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
463
463
|
*/
|
|
464
|
-
class
|
|
464
|
+
class Ei extends qe{constructor(t){if(super(t),this.it=Y,t.type!==Ze)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this._t=void 0,this.it=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ei.directiveName="unsafeHTML",Ei.resultType=1;const zi=Je(Ei);var Ri,Mi;!function(t){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.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",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="\f06e",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=""}(Ri||(Ri={})),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=""}(Mi||(Mi={})),new Map([...["abw"].map((t=>[t,Mi.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,Mi.AUDIO])),...["avi"].map((t=>[t,Mi.AVI])),...["chm","xhs"].map((t=>[t,Mi.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,Mi.CODE])),...["csv"].map((t=>[t,Mi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Mi.DITA])),...["epub"].map((t=>[t,Mi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Mi.EXCEL])),...["flac"].map((t=>[t,Mi.FLAC])),...["gif"].map((t=>[t,Mi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Mi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Mi.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,Mi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Mi.JPEG])),...["json"].map((t=>[t,Mi.JSON])),...["m4a","m4p"].map((t=>[t,Mi.M4A])),...["mov","qt"].map((t=>[t,Mi.MOV])),...["mp3"].map((t=>[t,Mi.MP3])),...["mp4","m4v"].map((t=>[t,Mi.MP4])),...["ogg","oga"].map((t=>[t,Mi.OGG])),...["pdf","ps"].map((t=>[t,Mi.PDF])),...["png"].map((t=>[t,Mi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Mi.POWERPOINT])),...["rar"].map((t=>[t,Mi.RAR])),...["stp"].map((t=>[t,Mi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Mi.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,Mi.VIDEO])),...["wav"].map((t=>[t,Mi.WAV])),...["wma"].map((t=>[t,Mi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Mi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Mi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Mi.YAML])),...["zip"].map((t=>[t,Mi.ZIP]))]);const Bi={size:xt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:xt.extend("--ft-icon-fluid-topics-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:xt.extend("--ft-icon-file-format-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:xt.extend("--ft-icon-material-font-family",xt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:xt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Fi=y`
|
|
465
465
|
:host {
|
|
466
466
|
display: inline-block;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
:host, i.ft-icon {
|
|
470
|
-
width: ${
|
|
471
|
-
height: ${
|
|
470
|
+
width: ${Bi.size};
|
|
471
|
+
height: ${Bi.size};
|
|
472
472
|
text-align: center;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
i.ft-icon {
|
|
476
|
-
font-size: ${
|
|
476
|
+
font-size: ${Bi.size};
|
|
477
477
|
line-height: 1;
|
|
478
478
|
font-weight: normal;
|
|
479
479
|
text-transform: none;
|
|
@@ -484,26 +484,26 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
484
484
|
text-rendering: auto;
|
|
485
485
|
-webkit-font-smoothing: antialiased;
|
|
486
486
|
-moz-osx-font-smoothing: grayscale;
|
|
487
|
-
vertical-align: ${
|
|
487
|
+
vertical-align: ${Bi.verticalAlign};
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
.ft-icon--fluid-topics {
|
|
491
|
-
font-family: ${
|
|
491
|
+
font-family: ${Bi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
.ft-icon--file-format {
|
|
495
|
-
font-family: ${
|
|
495
|
+
font-family: ${Bi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
.ft-icon--material {
|
|
499
|
-
font-family: ${
|
|
499
|
+
font-family: ${Bi.materialFontFamily}, "Material Icons", sans-serif;
|
|
500
500
|
}
|
|
501
|
-
`;var
|
|
501
|
+
`;var ji;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ji||(ji={}));var Ui=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 Li extends $t{constructor(){super(...arguments),this.variant=ji.fluid_topics,this.resolvedIcon=Y}render(){const t="material"!==this.variant||this.value;return q`
|
|
502
502
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
503
|
-
${
|
|
503
|
+
${zi(this.resolvedIcon)}
|
|
504
504
|
<slot ?hidden=${t}></slot>
|
|
505
505
|
</i>
|
|
506
|
-
`}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
|
|
506
|
+
`}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 ji.file_format:this.resolvedIcon=null!==(t=Mi[i.toUpperCase()])&&void 0!==t?t:i;break;case ji.fluid_topics:this.resolvedIcon=null!==(e=Ri[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Y}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Li.elementDefinitions={},Li.styles=Fi,Ui([o()],Li.prototype,"variant",void 0),Ui([o()],Li.prototype,"value",void 0),Ui([s()],Li.prototype,"resolvedIcon",void 0),Ui([n("slot")],Li.prototype,"slottedContent",void 0),c("ft-icon")(Li);const Di=xt.extend("--ft-button-color",gt.colorPrimary),Ai={backgroundColor:xt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",gt.borderRadiusL),color:Di,fontSize:xt.extend("--ft-button-font-size",Me.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",Di),opacityDisabled:xt.external(gt.colorOpacityDisabled,"Design system")},Ti=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",gt.colorOnPrimary)),Pi={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",gt.colorPrimary)),color:Ti,rippleColor:xt.extend("--ft-button-primary-ripple-color",Ti)},_i=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",gt.borderRadiusM)),Ii=[wt,y`
|
|
507
507
|
:host {
|
|
508
508
|
display: inline-block;
|
|
509
509
|
max-width: 100%;
|
|
@@ -514,7 +514,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
514
514
|
box-shadow: 0px 0px 0px transparent;
|
|
515
515
|
border: 0px solid transparent;
|
|
516
516
|
text-shadow: 0px 0px 0px transparent;
|
|
517
|
-
font-size: ${
|
|
517
|
+
font-size: ${Ai.fontSize};
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
button:hover {
|
|
@@ -543,17 +543,17 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
543
543
|
border: none;
|
|
544
544
|
pointer-events: auto;
|
|
545
545
|
|
|
546
|
-
--ft-button-internal-line-height: calc(${
|
|
547
|
-
--ft-button-internal-color: ${
|
|
548
|
-
${
|
|
546
|
+
--ft-button-internal-line-height: calc(${Ai.fontSize} + 2px);
|
|
547
|
+
--ft-button-internal-color: ${Ai.color};
|
|
548
|
+
${yt(Bi.size,Ai.iconSize)};
|
|
549
549
|
--ft-button-internal-vertical-padding: 6px;
|
|
550
550
|
--ft-button-internal-horizontal-padding: 8px;
|
|
551
|
-
${
|
|
552
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
551
|
+
${yt(ni.color,Ai.rippleColor)};
|
|
552
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ai.iconSize});
|
|
553
553
|
|
|
554
|
-
border-radius: ${
|
|
554
|
+
border-radius: ${Ai.borderRadius};
|
|
555
555
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
556
|
-
background-color: ${
|
|
556
|
+
background-color: ${Ai.backgroundColor};
|
|
557
557
|
color: var(--ft-button-internal-color);
|
|
558
558
|
-webkit-mask-image: radial-gradient(white, black);
|
|
559
559
|
}
|
|
@@ -565,7 +565,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
565
565
|
.ft-button--dense {
|
|
566
566
|
--ft-button-internal-vertical-padding: 2px;
|
|
567
567
|
--ft-button-internal-horizontal-padding: 4px;
|
|
568
|
-
border-radius: ${
|
|
568
|
+
border-radius: ${_i};
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
.ft-button--round {
|
|
@@ -574,13 +574,13 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
574
574
|
|
|
575
575
|
.ft-button[disabled] {
|
|
576
576
|
filter: grayscale(1);
|
|
577
|
-
opacity: ${
|
|
577
|
+
opacity: ${Ai.opacityDisabled};
|
|
578
578
|
}
|
|
579
579
|
|
|
580
580
|
.ft-button.ft-button--primary {
|
|
581
|
-
background-color: ${
|
|
582
|
-
--ft-button-internal-color: ${
|
|
583
|
-
${
|
|
581
|
+
background-color: ${Pi.backgroundColor};
|
|
582
|
+
--ft-button-internal-color: ${Pi.color};
|
|
583
|
+
${yt(ni.color,Pi.rippleColor)};
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
.ft-button.ft-button--outlined {
|
|
@@ -599,8 +599,8 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
599
599
|
text-overflow: ellipsis;
|
|
600
600
|
display: block;
|
|
601
601
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
602
|
-
${
|
|
603
|
-
${
|
|
602
|
+
${yt(Me.fontSize,"1em")};
|
|
603
|
+
${yt(Me.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -633,12 +633,12 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
ft-loader {
|
|
636
|
-
${
|
|
637
|
-
${
|
|
636
|
+
${yt(Si.size,Ai.iconSize)};
|
|
637
|
+
${yt(Si.color,"var(--ft-button-internal-color)")};
|
|
638
638
|
}
|
|
639
|
-
`];var
|
|
639
|
+
`];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 Hi extends $t{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=ji.material,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-button--safari-fix":Ct,"ft-no-text-select":!0};return this.addTooltipIfNeeded(q`
|
|
640
640
|
<button part="button"
|
|
641
|
-
class="${
|
|
641
|
+
class="${si(t)}"
|
|
642
642
|
aria-label="${this.getLabel()}"
|
|
643
643
|
?disabled=${this.isDisabled()}>
|
|
644
644
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -650,22 +650,22 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
650
650
|
</ft-typography>
|
|
651
651
|
${this.resolveIcon()}
|
|
652
652
|
</button>
|
|
653
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
653
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?q`
|
|
654
654
|
<ft-tooltip part="tooltip"
|
|
655
655
|
text="${this.getLabel()}"
|
|
656
656
|
position="${this.tooltipPosition}">
|
|
657
657
|
${t}
|
|
658
658
|
</ft-tooltip>
|
|
659
|
-
`:t}resolveIcon(){return this.loading?
|
|
660
|
-
<ft-loader></ft-loader> `:this.icon?
|
|
661
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:
|
|
659
|
+
`:t}resolveIcon(){return this.loading?q`
|
|
660
|
+
<ft-loader></ft-loader> `:this.icon?q`
|
|
661
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Y}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}}Hi.elementDefinitions={"ft-ripple":vi,"ft-tooltip":Oi,"ft-typography":He,"ft-icon":Li,"ft-loader":Ni},Hi.styles=Ii,Wi([o({type:Boolean})],Hi.prototype,"primary",void 0),Wi([o({type:Boolean})],Hi.prototype,"outlined",void 0),Wi([o({type:Boolean})],Hi.prototype,"disabled",void 0),Wi([o({type:Boolean})],Hi.prototype,"dense",void 0),Wi([o({type:Boolean})],Hi.prototype,"round",void 0),Wi([o({type:String})],Hi.prototype,"label",void 0),Wi([o({type:String})],Hi.prototype,"icon",void 0),Wi([o({type:String})],Hi.prototype,"iconVariant",void 0),Wi([o({type:Boolean})],Hi.prototype,"trailingIcon",void 0),Wi([o({type:Boolean})],Hi.prototype,"loading",void 0),Wi([o({type:String})],Hi.prototype,"tooltipPosition",void 0),Wi([o({type:Boolean})],Hi.prototype,"hideTooltip",void 0),Wi([o({type:Boolean})],Hi.prototype,"forceTooltip",void 0),Wi([n(".ft-button")],Hi.prototype,"button",void 0),Wi([n(".ft-button--label slot")],Hi.prototype,"slottedContent",void 0),c("ft-button")(Hi);const Ki=xt.extend("--ft-checkbox-text-color",gt.colorOnSurfaceHigh),Vi=xt.external(gt.colorPrimary,"Design system"),Zi=xt.external(gt.colorOnPrimary,"Design system"),Ji=xt.extend("--ft-checkbox-border-color",gt.colorOnSurfaceMedium),qi=xt.external(gt.colorOnSurfaceDisabled,"Design system"),Xi=y`
|
|
662
662
|
* {
|
|
663
663
|
box-sizing: border-box;
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
.ft-checkbox {
|
|
667
667
|
box-sizing: border-box;
|
|
668
|
-
color: ${
|
|
668
|
+
color: ${Ki};
|
|
669
669
|
|
|
670
670
|
display: inline-flex;
|
|
671
671
|
align-items: center;
|
|
@@ -673,7 +673,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
.ft-checkbox--disabled {
|
|
676
|
-
color: ${
|
|
676
|
+
color: ${qi};
|
|
677
677
|
}
|
|
678
678
|
|
|
679
679
|
input {
|
|
@@ -697,26 +697,26 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
697
697
|
|
|
698
698
|
.ft-checkbox--box {
|
|
699
699
|
display: flex;
|
|
700
|
-
border: 2px solid ${
|
|
700
|
+
border: 2px solid ${Ji};
|
|
701
701
|
border-radius: 2px;
|
|
702
702
|
|
|
703
703
|
width: 18px;
|
|
704
704
|
height: 18px;
|
|
705
705
|
|
|
706
|
-
color: ${
|
|
706
|
+
color: ${Zi};
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
|
|
710
710
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
711
711
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
712
|
-
border-color: ${
|
|
713
|
-
background-color: ${
|
|
712
|
+
border-color: ${Vi};
|
|
713
|
+
background-color: ${Vi};
|
|
714
714
|
}
|
|
715
715
|
|
|
716
716
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
717
|
-
border-color: ${
|
|
717
|
+
border-color: ${qi};
|
|
718
718
|
background-color: transparent;
|
|
719
|
-
color: ${
|
|
719
|
+
color: ${qi};
|
|
720
720
|
}
|
|
721
721
|
|
|
722
722
|
.ft-checkbox--checkmark {
|
|
@@ -735,8 +735,8 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
735
735
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
736
736
|
opacity: 1;
|
|
737
737
|
}
|
|
738
|
-
`;var
|
|
739
|
-
<label class="${
|
|
738
|
+
`;var Yi=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 Gi extends $t{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 q`
|
|
739
|
+
<label class="${si(t)}" for="checkbox-input">
|
|
740
740
|
<div class="ft-checkbox--box-container">
|
|
741
741
|
<ft-ripple
|
|
742
742
|
?disabled=${this.disabled}
|
|
@@ -761,14 +761,14 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
761
761
|
<slot></slot>
|
|
762
762
|
</ft-typography>
|
|
763
763
|
</label>
|
|
764
|
-
`}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)}}
|
|
764
|
+
`}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)}}Gi.elementDefinitions={"ft-ripple":vi,"ft-typography":He},Gi.styles=Xi,Yi([o()],Gi.prototype,"name",void 0),Yi([o({type:Boolean,reflect:!0})],Gi.prototype,"checked",void 0),Yi([o({type:Boolean})],Gi.prototype,"indeterminate",void 0),Yi([o({type:Boolean})],Gi.prototype,"disabled",void 0),Yi([n(".ft-checkbox")],Gi.prototype,"container",void 0),Yi([n("ft-ripple")],Gi.prototype,"ripple",void 0),c("ft-checkbox")(Gi);const Qi=xt.extend("--ft-radio-text-color",gt.colorOnSurfaceHigh),to=xt.external(gt.colorPrimary,"Design system"),eo=(xt.external(gt.colorOnPrimary,"Design system"),xt.extend("--ft-radio-border-color",gt.colorOnSurfaceMedium)),io=xt.external(gt.colorOnSurfaceDisabled,"Design system"),oo=y`
|
|
765
765
|
* {
|
|
766
766
|
box-sizing: border-box;
|
|
767
767
|
}
|
|
768
768
|
|
|
769
769
|
.ft-radio {
|
|
770
770
|
box-sizing: border-box;
|
|
771
|
-
color: ${
|
|
771
|
+
color: ${Qi};
|
|
772
772
|
|
|
773
773
|
display: inline-flex;
|
|
774
774
|
align-items: center;
|
|
@@ -776,7 +776,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
776
776
|
}
|
|
777
777
|
|
|
778
778
|
.ft-radio--disabled {
|
|
779
|
-
color: ${
|
|
779
|
+
color: ${io};
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
input {
|
|
@@ -799,7 +799,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
799
799
|
}
|
|
800
800
|
|
|
801
801
|
.ft-radio--box {
|
|
802
|
-
border: 2px solid ${
|
|
802
|
+
border: 2px solid ${eo};
|
|
803
803
|
border-radius: 50%;
|
|
804
804
|
|
|
805
805
|
display: flex;
|
|
@@ -812,7 +812,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
812
812
|
|
|
813
813
|
.ft-radio--box:after {
|
|
814
814
|
content: " ";
|
|
815
|
-
background-color: ${
|
|
815
|
+
background-color: ${to};
|
|
816
816
|
|
|
817
817
|
border-radius: 50%;
|
|
818
818
|
|
|
@@ -824,7 +824,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
824
824
|
}
|
|
825
825
|
|
|
826
826
|
.ft-radio--checked .ft-radio--box {
|
|
827
|
-
border-color: ${
|
|
827
|
+
border-color: ${to};
|
|
828
828
|
}
|
|
829
829
|
|
|
830
830
|
|
|
@@ -833,15 +833,15 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
833
833
|
}
|
|
834
834
|
|
|
835
835
|
.ft-radio--disabled .ft-radio--box {
|
|
836
|
-
border-color: ${
|
|
836
|
+
border-color: ${io};
|
|
837
837
|
background-color: transparent;
|
|
838
838
|
}
|
|
839
839
|
|
|
840
840
|
.ft-radio--disabled .ft-radio--box:after {
|
|
841
|
-
background-color: ${
|
|
841
|
+
background-color: ${io};
|
|
842
842
|
}
|
|
843
|
-
`;var
|
|
844
|
-
<div class="${
|
|
843
|
+
`;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 ro extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class no extends $t{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 q`
|
|
844
|
+
<div class="${si(t)}">
|
|
845
845
|
<div class="ft-radio--box-container">
|
|
846
846
|
<ft-ripple
|
|
847
847
|
?disabled=${this.disabled}
|
|
@@ -865,17 +865,17 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
865
865
|
</ft-typography>
|
|
866
866
|
</label>
|
|
867
867
|
</div>
|
|
868
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new
|
|
868
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new ro(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 ro(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}no.elementDefinitions={"ft-ripple":vi,"ft-typography":He},no.styles=oo,so([o()],no.prototype,"value",void 0),so([o()],no.prototype,"name",void 0),so([o({type:Boolean,reflect:!0})],no.prototype,"checked",void 0),so([o({type:Boolean})],no.prototype,"disabled",void 0),so([n(".ft-radio")],no.prototype,"container",void 0),so([n("ft-ripple")],no.prototype,"ripple",void 0),so([n("input")],no.prototype,"input",void 0);const lo=y`
|
|
869
869
|
:host {
|
|
870
870
|
display: contents;
|
|
871
871
|
}
|
|
872
|
-
`;var
|
|
872
|
+
`;var ao=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 ho extends $t{constructor(){super(...arguments),this.name=""}render(){return q`
|
|
873
873
|
<slot @slotchange=${this.onSlotChange}
|
|
874
874
|
@change=${this.onChange}
|
|
875
875
|
@keydown=${this.onKeyDown}
|
|
876
876
|
@focusin=${this.focusCurrentValue}
|
|
877
877
|
></slot>
|
|
878
|
-
`}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)}}
|
|
878
|
+
`}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)}}ho.elementDefinitions={},ho.styles=lo,ao([o()],ho.prototype,"name",void 0),ao([h()],ho.prototype,"radioButtons",void 0),c("ft-radio")(no),c("ft-radio-group")(ho);const co={borderRadiusM:xt.external(gt.borderRadiusM,"Design system"),colorOutline:xt.external(gt.colorOutline,"Design system"),colorOnSurface:xt.external(gt.colorOnSurface,"Design system"),colorOnSurfaceMedium:xt.external(gt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:xt.external(gt.colorOnSurfaceDisabled,"Design system"),colorPrimary:xt.external(gt.colorPrimary,"Design system"),colorOnPrimary:xt.external(gt.colorOnPrimary,"Design system"),fontFamily:xt.external(de.fontFamily,"Body2 typography"),fontSize:xt.external(de.fontSize,"Body2 typography"),fontWeight:xt.external(de.fontWeight,"Body2 typography"),letterSpacing:xt.external(de.letterSpacing,"Body2 typography"),lineHeight:xt.external(de.lineHeight,"Body2 typography"),textTransform:xt.external(de.textTransform,"Body2 typography")},po=y`
|
|
879
879
|
.ft-filter-level--container {
|
|
880
880
|
display: flex;
|
|
881
881
|
flex-direction: column;
|
|
@@ -889,14 +889,14 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
889
889
|
flex-shrink: 0;
|
|
890
890
|
text-decoration: none;
|
|
891
891
|
position: relative;
|
|
892
|
-
border-radius: ${
|
|
892
|
+
border-radius: ${co.borderRadiusM};
|
|
893
893
|
overflow: hidden;
|
|
894
894
|
display: flex;
|
|
895
895
|
align-items: center;
|
|
896
896
|
padding: 4px 4px;
|
|
897
897
|
gap: 4px;
|
|
898
898
|
cursor: pointer;
|
|
899
|
-
color: ${
|
|
899
|
+
color: ${co.colorOnSurface};
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
.ft-filter-level--go-back:focus {
|
|
@@ -925,7 +925,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
925
925
|
}
|
|
926
926
|
|
|
927
927
|
ft-button {
|
|
928
|
-
${
|
|
928
|
+
${yt(Ai.color,co.colorOnSurface)};
|
|
929
929
|
}
|
|
930
930
|
|
|
931
931
|
ft-radio, ft-checkbox {
|
|
@@ -939,11 +939,11 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
939
939
|
|
|
940
940
|
.ft-filter-level--no-values {
|
|
941
941
|
margin: 10px 0;
|
|
942
|
-
color: ${
|
|
942
|
+
color: ${co.colorOnSurfaceMedium};
|
|
943
943
|
}
|
|
944
|
-
`;var
|
|
944
|
+
`;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 $t{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 q`
|
|
945
945
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
946
|
-
${null==this.parent?null:
|
|
946
|
+
${null==this.parent?null:q`
|
|
947
947
|
<div tabindex="0"
|
|
948
948
|
part="controls go-back"
|
|
949
949
|
class="ft-filter-level--go-back"
|
|
@@ -955,15 +955,15 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
955
955
|
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
956
956
|
</div>
|
|
957
957
|
`}
|
|
958
|
-
${0===this.options.length&&this.noValuesLabel?
|
|
958
|
+
${0===this.options.length&&this.noValuesLabel?q`
|
|
959
959
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
960
960
|
${this.noValuesLabel}
|
|
961
961
|
</ft-typography>
|
|
962
|
-
`:
|
|
963
|
-
${
|
|
962
|
+
`:Y}
|
|
963
|
+
${oi(e,(t=>t.value),(t=>{var e;return q`
|
|
964
964
|
<div class="ft-filter-level--option" part="options">
|
|
965
965
|
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
966
|
-
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?
|
|
966
|
+
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?Y:q`
|
|
967
967
|
<ft-button icon="chevron_right"
|
|
968
968
|
part="controls navigate-hierarchy"
|
|
969
969
|
label="${t.label}"
|
|
@@ -973,7 +973,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
973
973
|
`}
|
|
974
974
|
</div>
|
|
975
975
|
`}))}
|
|
976
|
-
${e.length<t.length?
|
|
976
|
+
${e.length<t.length?q`
|
|
977
977
|
<ft-button
|
|
978
978
|
class="ft-filter-level--display-more"
|
|
979
979
|
icon="expand_more"
|
|
@@ -982,19 +982,19 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
982
982
|
@click=${this.displayMore}>
|
|
983
983
|
${this.moreValuesButtonLabel}
|
|
984
984
|
</ft-button>
|
|
985
|
-
`:
|
|
985
|
+
`:Y}
|
|
986
986
|
</div>
|
|
987
|
-
`}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
|
|
987
|
+
`}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 q`
|
|
988
988
|
<ft-checkbox name="${this.id}"
|
|
989
989
|
part="multivalued-option"
|
|
990
990
|
data-value="${t.value}"
|
|
991
991
|
.checked=${t.selected}
|
|
992
992
|
.disabled=${this.disabled}
|
|
993
|
-
.indeterminate=${
|
|
993
|
+
.indeterminate=${Ke(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
|
|
994
994
|
@change=${e=>this.optionsChanged(e,t)}>
|
|
995
995
|
${t.label}
|
|
996
996
|
</ft-checkbox>
|
|
997
|
-
`}buildMonoValuedOption(t){return
|
|
997
|
+
`}buildMonoValuedOption(t){return q`
|
|
998
998
|
<ft-radio name="${this.id+Math.round(1e6*Math.random())}"
|
|
999
999
|
part="monovalued-option"
|
|
1000
1000
|
data-value="${t.value}"
|
|
@@ -1005,7 +1005,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1005
1005
|
@change=${t=>t.stopPropagation()}>
|
|
1006
1006
|
${t.label}
|
|
1007
1007
|
</ft-radio>
|
|
1008
|
-
`}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}))}}
|
|
1008
|
+
`}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}))}}uo.elementDefinitions={"ft-button":Hi,"ft-ripple":vi,"ft-typography":He,"ft-checkbox":Gi,"ft-icon":Li,"ft-radio":no},uo.styles=po,fo([o({type:String})],uo.prototype,"id",void 0),fo([o({type:Object})],uo.prototype,"parent",void 0),fo([o({type:Array})],uo.prototype,"options",void 0),fo([o({type:Boolean})],uo.prototype,"multivalued",void 0),fo([o({type:Boolean})],uo.prototype,"disabled",void 0),fo([o({type:Boolean})],uo.prototype,"hideSelectedOptions",void 0),fo([o({type:Boolean})],uo.prototype,"preventNavigation",void 0),fo([o({type:String})],uo.prototype,"filter",void 0),fo([o({type:String})],uo.prototype,"moreValuesButtonLabel",void 0),fo([o({type:String})],uo.prototype,"noValuesLabel",void 0),fo([o({type:Number})],uo.prototype,"displayedValuesLimit",void 0),fo([n(".ft-filter-level--container")],uo.prototype,"container",void 0),fo([s()],uo.prototype,"displayedPages",void 0);const vo={buttonsColor:xt.extend("--ft-snap-scroll-buttons-color",gt.colorPrimary),buttonsZIndex:xt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:xt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:xt.external(gt.colorSurface,"Design system")},bo=y`
|
|
1009
1009
|
.ft-snap-scroll {
|
|
1010
1010
|
box-sizing: border-box;
|
|
1011
1011
|
position: relative;
|
|
@@ -1040,7 +1040,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1040
1040
|
flex-wrap: nowrap;
|
|
1041
1041
|
align-items: flex-start;
|
|
1042
1042
|
justify-content: flex-start;
|
|
1043
|
-
gap: ${
|
|
1043
|
+
gap: ${vo.gap};
|
|
1044
1044
|
}
|
|
1045
1045
|
|
|
1046
1046
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1083,11 +1083,11 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1083
1083
|
.ft-snap-scroll--next {
|
|
1084
1084
|
position: absolute;
|
|
1085
1085
|
display: flex;
|
|
1086
|
-
z-index: ${
|
|
1086
|
+
z-index: ${vo.buttonsZIndex};
|
|
1087
1087
|
opacity: 1;
|
|
1088
1088
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1089
|
-
${
|
|
1090
|
-
${
|
|
1089
|
+
${yt(Ai.backgroundColor,"transparent")};
|
|
1090
|
+
${yt(Ai.color,vo.buttonsColor)};
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
1093
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1100,37 +1100,37 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1100
1100
|
top: 0;
|
|
1101
1101
|
left: -1px;
|
|
1102
1102
|
bottom: 0;
|
|
1103
|
-
background: linear-gradient(to right, ${
|
|
1103
|
+
background: linear-gradient(to right, ${vo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
1106
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1107
1107
|
top: -1px;
|
|
1108
1108
|
left: 0;
|
|
1109
1109
|
right: 0;
|
|
1110
|
-
background: linear-gradient(to bottom, ${
|
|
1110
|
+
background: linear-gradient(to bottom, ${vo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
1113
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1114
1114
|
top: 0;
|
|
1115
1115
|
right: -1px;
|
|
1116
1116
|
bottom: 0;
|
|
1117
|
-
background: linear-gradient(to left, ${
|
|
1117
|
+
background: linear-gradient(to left, ${vo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
1120
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1121
1121
|
left: 0;
|
|
1122
1122
|
right: 0;
|
|
1123
1123
|
bottom: -1px;
|
|
1124
|
-
background: linear-gradient(to top, ${
|
|
1124
|
+
background: linear-gradient(to top, ${vo.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
1127
1127
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1128
1128
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1129
1129
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1130
1130
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1131
|
-
background-color: ${
|
|
1131
|
+
background-color: ${vo.colorSurface};
|
|
1132
1132
|
}
|
|
1133
|
-
`;var
|
|
1133
|
+
`;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("current-element-change",{detail:{index:t,element:e}})}}class go extends $t{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=si({"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":Ct}),e=this.controls&&this.withScroll;return q`
|
|
1134
1134
|
<div part="container" class="${t}">
|
|
1135
1135
|
<ft-button
|
|
1136
1136
|
class="ft-snap-scroll--previous"
|
|
@@ -1154,7 +1154,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1154
1154
|
@click=${this.next}
|
|
1155
1155
|
></ft-button>
|
|
1156
1156
|
</div>
|
|
1157
|
-
`}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
|
|
1157
|
+
`}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 yo(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)}}go.elementDefinitions={"ft-button":Hi},go.styles=bo,xo([o({type:Boolean})],go.prototype,"horizontal",void 0),xo([o({type:Boolean})],go.prototype,"hideScrollbar",void 0),xo([o({type:Boolean})],go.prototype,"controls",void 0),xo([o({type:Boolean})],go.prototype,"limitSize",void 0),xo([s()],go.prototype,"elements",void 0),xo([s()],go.prototype,"currentElement",void 0),xo([s()],go.prototype,"withScroll",void 0),xo([s()],go.prototype,"startReached",void 0),xo([s()],go.prototype,"endReached",void 0),xo([n(".ft-snap-scroll--content")],go.prototype,"contentSlot",void 0),c("ft-snap-scroll")(go);const mo={colorOutline:xt.external(gt.colorOutline,"Design system"),colorOnSurface:xt.external(gt.colorOnSurface,"Design system"),colorOnSurfaceMedium:xt.external(gt.colorOnSurfaceMedium,"Design system"),colorPrimary:xt.external(gt.colorPrimary,"Design system"),colorSurface:xt.external(gt.colorSurface,"Design system"),transitionDuration:xt.external(gt.transitionDuration,"Design system"),transitionTimingFunction:xt.external(gt.transitionTimingFunction,"Design system")},$o=[Ae,y`
|
|
1158
1158
|
:host {
|
|
1159
1159
|
display: flex;
|
|
1160
1160
|
max-height: 100%;
|
|
@@ -1167,7 +1167,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1167
1167
|
flex-direction: column;
|
|
1168
1168
|
max-height: 100%;
|
|
1169
1169
|
max-width: 100%;
|
|
1170
|
-
color: ${
|
|
1170
|
+
color: ${mo.colorOnSurface};
|
|
1171
1171
|
}
|
|
1172
1172
|
|
|
1173
1173
|
.ft-filter--header {
|
|
@@ -1177,13 +1177,13 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1177
1177
|
flex-shrink: 0;
|
|
1178
1178
|
padding: 0 10px;
|
|
1179
1179
|
margin-bottom: 8px;
|
|
1180
|
-
${
|
|
1180
|
+
${yt(Ut.fontSize,"14px")};
|
|
1181
1181
|
}
|
|
1182
1182
|
|
|
1183
1183
|
.ft-filter--header ft-button {
|
|
1184
1184
|
flex-shrink: 0;
|
|
1185
1185
|
margin-left: auto;
|
|
1186
|
-
${
|
|
1186
|
+
${yt(Ai.iconSize,"18px")};
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
1189
|
.ft-filter--label {
|
|
@@ -1191,8 +1191,8 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1191
1191
|
flex-shrink: 1;
|
|
1192
1192
|
flex-grow: 1;
|
|
1193
1193
|
word-break: break-word;
|
|
1194
|
-
${
|
|
1195
|
-
${
|
|
1194
|
+
${yt(Ut.lineHeight,"22px")};
|
|
1195
|
+
${yt(Ut.fontWeight,"bold")};
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
1198
|
.ft-filter--filter {
|
|
@@ -1203,8 +1203,8 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1203
1203
|
padding: 0 10px;
|
|
1204
1204
|
overflow: hidden;
|
|
1205
1205
|
height: 32px;
|
|
1206
|
-
transition: height ${
|
|
1207
|
-
margin ${
|
|
1206
|
+
transition: height ${mo.transitionDuration} ${mo.transitionTimingFunction},
|
|
1207
|
+
margin ${mo.transitionDuration} ${mo.transitionTimingFunction};
|
|
1208
1208
|
transition-delay: 500ms;
|
|
1209
1209
|
}
|
|
1210
1210
|
|
|
@@ -1217,15 +1217,15 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1217
1217
|
display: block;
|
|
1218
1218
|
width: 100%;
|
|
1219
1219
|
border-radius: 4px;
|
|
1220
|
-
border: 1px solid ${
|
|
1220
|
+
border: 1px solid ${mo.colorOutline};
|
|
1221
1221
|
padding: 4px;
|
|
1222
|
-
background-color: ${
|
|
1223
|
-
color: ${
|
|
1224
|
-
outline-color: ${
|
|
1222
|
+
background-color: ${mo.colorSurface};
|
|
1223
|
+
color: ${mo.colorOnSurface};
|
|
1224
|
+
outline-color: ${mo.colorPrimary};
|
|
1225
1225
|
}
|
|
1226
1226
|
|
|
1227
1227
|
input::placeholder {
|
|
1228
|
-
color: ${
|
|
1228
|
+
color: ${mo.colorOnSurfaceMedium};
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
1231
|
.ft-filter--values {
|
|
@@ -1237,7 +1237,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
1239
|
.ft-filter--separator {
|
|
1240
|
-
border-top: 1px solid ${
|
|
1240
|
+
border-top: 1px solid ${mo.colorOutline};
|
|
1241
1241
|
margin: 4px 10px;
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
@@ -1262,14 +1262,14 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1262
1262
|
slot {
|
|
1263
1263
|
display: none;
|
|
1264
1264
|
}
|
|
1265
|
-
`];var
|
|
1265
|
+
`];var wo=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 ko extends CustomEvent{constructor(t){super("change",{detail:t})}}class Oo extends $t{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.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 Ke(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}render(){var t,e;const i=this.flatOptions.some((t=>t.selected));let o=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e;return q`
|
|
1266
1266
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1267
1267
|
part="container">
|
|
1268
|
-
${this.label||i?
|
|
1268
|
+
${this.label||i?q`
|
|
1269
1269
|
<div class="ft-filter--header" part="header">
|
|
1270
1270
|
<ft-typography class="ft-filter--label" variant="overline" part="label">${this.label}
|
|
1271
1271
|
</ft-typography>
|
|
1272
|
-
${i?
|
|
1272
|
+
${i?q`
|
|
1273
1273
|
<ft-button icon="close" dense @click=${this.clear} part="clear-button">
|
|
1274
1274
|
${this.clearButtonLabel}
|
|
1275
1275
|
</ft-button>
|
|
@@ -1292,8 +1292,8 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1292
1292
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1293
1293
|
@option-change=${this.optionsChanged}></slot>
|
|
1294
1294
|
</div>
|
|
1295
|
-
`}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
|
|
1296
|
-
${this.raiseSelectedOptions&&e.length>0?
|
|
1295
|
+
`}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 q`
|
|
1296
|
+
${this.raiseSelectedOptions&&e.length>0?q`
|
|
1297
1297
|
<ft-filter-level
|
|
1298
1298
|
id="${this.id}"
|
|
1299
1299
|
?multivalued=${this.multivalued}
|
|
@@ -1312,7 +1312,7 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1312
1312
|
${this.renderLevel(o,this.options)}
|
|
1313
1313
|
${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)}))}
|
|
1314
1314
|
</ft-snap-scroll>
|
|
1315
|
-
`}renderLevel(t,e,i){return
|
|
1315
|
+
`}renderLevel(t,e,i){return q`
|
|
1316
1316
|
<ft-filter-level
|
|
1317
1317
|
class="${t}"
|
|
1318
1318
|
id="${this.id}"
|
|
@@ -1331,6 +1331,6 @@ class Si extends Ve{constructor(t){if(super(t),this.it=J,t.type!==He)throw Error
|
|
|
1331
1331
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1332
1332
|
noValuesLabel="${this.noValuesLabel}"
|
|
1333
1333
|
></ft-filter-level>
|
|
1334
|
-
`}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;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new
|
|
1334
|
+
`}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;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new ko(e)),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)}}Oo.elementDefinitions={"ft-button":Hi,"ft-filter-level":uo,"ft-snap-scroll":go,"ft-typography":He},Oo.styles=$o,wo([o({type:String})],Oo.prototype,"id",void 0),wo([o({type:String})],Oo.prototype,"label",void 0),wo([o({type:String})],Oo.prototype,"filterPlaceHolder",void 0),wo([o({type:String})],Oo.prototype,"clearButtonLabel",void 0),wo([o({type:String})],Oo.prototype,"moreValuesButtonLabel",void 0),wo([o({type:String})],Oo.prototype,"noValuesLabel",void 0),wo([p([])],Oo.prototype,"options",void 0),wo([o({type:Boolean})],Oo.prototype,"multivalued",void 0),wo([o({type:Boolean})],Oo.prototype,"disabled",void 0),wo([o({type:Boolean})],Oo.prototype,"raiseSelectedOptions",void 0),wo([o({type:Number})],Oo.prototype,"displayedValuesLimit",void 0),wo([n(".ft-filter--slot")],Oo.prototype,"slotElement",void 0),wo([n(".ft-filter--container")],Oo.prototype,"container",void 0),wo([n(".ft-filter--values")],Oo.prototype,"valuesContainer",void 0),wo([n(".ft-filter--levels")],Oo.prototype,"levelsContainer",void 0),wo([n(".ft-filter--levels ft-filter-level:last-child")],Oo.prototype,"lastLevel",void 0),wo([n(".ft-filter--filter input")],Oo.prototype,"filterInput",void 0),wo([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")],Oo.prototype,"levels",void 0),wo([s()],Oo.prototype,"withScroll",void 0),wo([s()],Oo.prototype,"filter",void 0),wo([s()],Oo.prototype,"slideIn",void 0),wo([s()],Oo.prototype,"slideOut",void 0);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 $t{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return q`
|
|
1335
1335
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1336
|
-
`}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}))}}
|
|
1336
|
+
`}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}))}}Co.elementDefinitions={},So([o({type:String})],Co.prototype,"label",void 0),So([o({type:Object,converter:t=>t})],Co.prototype,"value",void 0),So([o({type:Boolean,reflect:!0})],Co.prototype,"selected",void 0),So([o({type:Object})],Co.prototype,"subOptions",void 0),So([n(".ft-filter-option--slot")],Co.prototype,"slotElement",void 0),c("ft-filter")(Oo),c("ft-filter-option")(Co),t.FtFilter=Oo,t.FtFilterChangeEvent=ko,t.FtFilterCssVariables=mo,t.FtFilterOption=Co,t.styles=$o,Object.defineProperty(t,"i",{value:!0})}({});
|