@fluid-topics/ft-filter 1.0.35 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-filter-level.js +40 -36
- package/build/ft-filter.js +15 -13
- package/build/ft-filter.light.js +110 -110
- package/build/ft-filter.min.js +96 -96
- 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,r=new WeakMap,n=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);d(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(n.set(s,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const x=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);d(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(n.set(s,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const x=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ti){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -66,37 +66,37 @@ var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prot
|
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var j;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==E||E({ReactiveElement:M}),(null!==(k=O.reactiveElementVersions)&&void 0!==k?k:O.reactiveElementVersions=[]).push("1.6.1");const B=window,F=B.trustedTypes,U=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",
|
|
69
|
+
var j;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==E||E({ReactiveElement:M}),(null!==(k=O.reactiveElementVersions)&&void 0!==k?k:O.reactiveElementVersions=[]).push("1.6.1");const B=window,F=B.trustedTypes,U=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",T=`lit$${(Math.random()+"").slice(9)}$`,D="?"+T,A=`<${D}>`,I=document,P=()=>I.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,W=t=>H(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),V="[ \t\n\f\r]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,J=/>/g,q=RegExp(`>|${V}(?:([^\\s"'>=/]+)(${V}*=${V}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,G=/"/g,Y=/^(?:script|style|textarea|title)$/i,Q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),tt=Symbol.for("lit-noChange"),et=Symbol.for("lit-nothing"),it=new WeakMap,ot=I.createTreeWalker(I,129,null,!1),st=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=K;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,a=n.exec(i),null!==a);)c=n.lastIndex,n===K?"!--"===a[1]?n=Z:void 0!==a[1]?n=J:void 0!==a[2]?(Y.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=q):void 0!==a[3]&&(n=q):n===q?">"===a[0]?(n=null!=s?s:K,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?q:'"'===a[3]?G:X):n===G||n===X?n=q:n===Z||n===J?n=K:(n=q,s=void 0);const p=n===q&&t[e+1].startsWith("/>")?" ":"";r+=n===K?i+A:h>=0?(o.push(l),i.slice(0,h)+L+i.slice(h)+T+p):i+T+(-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!==U?U.createHTML(l):l,o]};class rt{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]=st(t,e);if(this.el=rt.createElement(a,i),ot.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=ot.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(L)||e.startsWith(T)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+L).split(T),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ct:"?"===e[1]?dt:"@"===e[1]?ft:ht})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(Y.test(o.tagName)){const t=o.textContent.split(T),e=t.length-1;if(e>0){o.textContent=F?F.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],P()),ot.nextNode(),l.push({type:2,index:++s});o.append(t[e],P())}}}else if(8===o.nodeType)if(o.data===D)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(T,t+1));)l.push({type:7,index:s}),t+=T.length-1}s++}}static createElement(t,e){const i=I.createElement("template");return i.innerHTML=t,i}}function nt(t,e,i=t,o){var s,r,n,l;if(e===tt)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=_(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=nt(t,a._$AS(t,e.values),a,o)),e}class lt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:I).importNode(i,!0);ot.currentNode=s;let r=ot.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new at(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new ut(r,this,t)),this._$AV.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=ot.nextNode(),n++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class at{constructor(t,e,i,o){var s;this.type=2,this._$AH=et,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=nt(this,t,e),_(t)?t===et||null==t||""===t?(this._$AH!==et&&this._$AR(),this._$AH=et):t!==this._$AH&&t!==tt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):W(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==et&&_(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=rt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new lt(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=it.get(t.strings);return void 0===e&&it.set(t.strings,e=new rt(t)),e}T(t){H(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 at(this.k(P()),this.k(P()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ht{constructor(t,e,i,o,s){this.type=1,this._$AH=et,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=et}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=nt(this,t,e,0),r=!_(t)||t!==this._$AH&&t!==tt,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=nt(this,o[i+n],e,n),l===tt&&(l=this._$AH[n]),r||(r=!_(l)||l!==this._$AH[n]),l===et?t=et:t!==et&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ct extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===et?void 0:t}}const pt=F?F.emptyScript:"";class dt extends ht{constructor(){super(...arguments),this.type=4}j(t){t&&t!==et?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}}class ft extends ht{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=nt(this,t,e,0))&&void 0!==i?i:et)===tt)return;const o=this._$AH,s=t===et&&o!==et||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==et&&(o===et||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 ut{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){nt(this,t)}}const vt={O:L,P:T,A:D,C:1,M:st,L:lt,D:W,R:nt,I:at,V:ht,H:dt,N:ft,U:ct,F:ut},bt=B.litHtmlPolyfillSupport;null==bt||bt(rt,at),(null!==(j=B.litHtmlVersions)&&void 0!==j?j:B.litHtmlVersions=[]).push("2.7.3");
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2017 Google LLC
|
|
73
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
74
|
*/
|
|
75
75
|
var xt,yt;let gt=class extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new at(e.insertBefore(P(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return tt}};gt.finalized=!0,gt._$litElement$=!0,null===(xt=globalThis.litElementHydrateSupport)||void 0===xt||xt.call(globalThis,{LitElement:gt});const mt=globalThis.litElementPolyfillSupport;null==mt||mt({LitElement:gt}),(null!==(yt=globalThis.litElementVersions)&&void 0!==yt?yt:globalThis.litElementVersions=[]).push("3.3.2");class $t{static create(t,e,i){let o=t=>g(null!=t?t:i),s=m`var(${g(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>m`var(${g(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=m`var(${g(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>m`var(${g(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):g(null!=e?e:t.defaultValue),o=m`var(${g(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=>m`var(${g(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 wt(t,e){return g(`${t.name}: ${e}`)}const kt={colorPrimary:$t.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:$t.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:$t.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:$t.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:$t.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:$t.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:$t.create("--ft-color-error","COLOR","#B00020"),colorOutline:$t.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:$t.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:$t.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:$t.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:$t.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:$t.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:$t.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:$t.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:$t.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:$t.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:$t.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:$t.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:$t.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:$t.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:$t.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:$t.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:$t.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:$t.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:$t.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:$t.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:$t.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:$t.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:$t.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:$t.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:$t.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:$t.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:$t.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:$t.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:$t.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:$t.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:$t.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:$t.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:$t.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:$t.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:$t.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:$t.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:$t.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:$t.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:$t.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:$t.create("--ft-border-radius-XL","SIZE","16px"),titleFont:$t.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:$t.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:$t.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:$t.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Ot extends gt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return $(i,t.elementStyles),i}}var St,Ct=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Et=Symbol("constructorPrototype"),Nt=Symbol("constructorName"),Rt=Symbol("exportpartsDebouncer");class zt extends Ot{constructor(){super(),this[St]=new e(5),this[Nt]=this.constructor.name,this[Et]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Nt]&&Object.setPrototypeOf(this,this[Et])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Rt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,r,n;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}St=Rt,Ct([o()],zt.prototype,"exportpartsPrefix",void 0),Ct([f([])],zt.prototype,"exportpartsPrefixes",void 0),Ct([o()],zt.prototype,"customStylesheet",void 0);const Mt=m`
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
76
|
+
.ft-no-text-select {
|
|
77
|
+
-webkit-touch-callout: none;
|
|
78
|
+
-webkit-user-select: none;
|
|
79
|
+
-khtml-user-select: none;
|
|
80
|
+
-moz-user-select: none;
|
|
81
|
+
-ms-user-select: none;
|
|
82
|
+
user-select: none;
|
|
83
|
+
}
|
|
84
84
|
`;m`
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
.ft-word-wrap {
|
|
86
|
+
white-space: normal;
|
|
87
|
+
word-wrap: break-word;
|
|
88
|
+
-ms-word-break: break-all;
|
|
89
|
+
word-break: break-all;
|
|
90
|
+
word-break: break-word;
|
|
91
|
+
-ms-hyphens: auto;
|
|
92
|
+
-moz-hyphens: auto;
|
|
93
|
+
-webkit-hyphens: auto;
|
|
94
|
+
hyphens: auto
|
|
95
|
+
}
|
|
96
96
|
`;const jt=m`
|
|
97
97
|
.ft-safari-ellipsis-fix {
|
|
98
98
|
margin-right: 0;
|
|
99
|
-
|
|
99
|
+
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.ft-safari-ellipsis-fix:after {
|
|
@@ -104,14 +104,14 @@ var xt,yt;let gt=class extends M{constructor(){super(...arguments),this.renderOp
|
|
|
104
104
|
display: inline-block;
|
|
105
105
|
width: 0;
|
|
106
106
|
}
|
|
107
|
-
`;var Bt,Ft,Ut;const Lt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ut=null===(Ft=null===(Bt=window.safari)||void 0===Bt?void 0:Bt.pushNotification)||void 0===Ft?void 0:Ft.toString())&&void 0!==Ut?Ut:""),
|
|
107
|
+
`;var Bt,Ft,Ut;const Lt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ut=null===(Ft=null===(Bt=window.safari)||void 0===Bt?void 0:Bt.pushNotification)||void 0===Ft?void 0:Ft.toString())&&void 0!==Ut?Ut:""),Tt=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===Tt)return null==t?void 0:t._$litStatic$},At=t=>({_$litStatic$:t,r:Tt}),It=new Map,Pt=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=e[h];h<o&&void 0!==(r=i[h],s=Dt(r));)a+=s+e[++h],c=!0;h!==o&&l.push(r),n.push(a),h++}if(h===o&&n.push(e[o]),c){const t=n.join("$$lit$$");void 0===(e=It.get(t))&&(n.raw=n,It.set(t,e=n)),i=l}return t(e,...i)})(Q);
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright 2020 Google LLC
|
|
111
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
|
-
*/var _t;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(_t||(_t={}));const Ht=$t.extend("--ft-typography-font-family",kt.titleFont),Wt=$t.extend("--ft-typography-font-family",kt.contentFont),
|
|
112
|
+
*/var _t;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(_t||(_t={}));const Ht=$t.extend("--ft-typography-font-family",kt.titleFont),Wt=$t.extend("--ft-typography-font-family",kt.contentFont),Vt={fontFamily:Wt,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},Kt=$t.extend("--ft-typography-title-font-family",Ht),Zt=$t.extend("--ft-typography-title-font-size",Vt.fontSize,"20px"),Jt=$t.extend("--ft-typography-title-font-weight",Vt.fontWeight,"normal"),qt=$t.extend("--ft-typography-title-letter-spacing",Vt.letterSpacing,"0.15px"),Xt=$t.extend("--ft-typography-title-line-height",Vt.lineHeight,"1.2"),Gt=$t.extend("--ft-typography-title-text-transform",Vt.textTransform,"inherit"),Yt=$t.extend("--ft-typography-title-dense-font-family",Ht),Qt=$t.extend("--ft-typography-title-dense-font-size",Vt.fontSize,"14px"),te=$t.extend("--ft-typography-title-dense-font-weight",Vt.fontWeight,"normal"),ee=$t.extend("--ft-typography-title-dense-letter-spacing",Vt.letterSpacing,"0.105px"),ie=$t.extend("--ft-typography-title-dense-line-height",Vt.lineHeight,"1.7"),oe=$t.extend("--ft-typography-title-dense-text-transform",Vt.textTransform,"inherit"),se=$t.extend("--ft-typography-subtitle1-font-family",Wt),re=$t.extend("--ft-typography-subtitle1-font-size",Vt.fontSize,"16px"),ne=$t.extend("--ft-typography-subtitle1-font-weight",Vt.fontWeight,"600"),le=$t.extend("--ft-typography-subtitle1-letter-spacing",Vt.letterSpacing,"0.144px"),ae=$t.extend("--ft-typography-subtitle1-line-height",Vt.lineHeight,"1.5"),he=$t.extend("--ft-typography-subtitle1-text-transform",Vt.textTransform,"inherit"),ce=$t.extend("--ft-typography-subtitle2-font-family",Wt),pe=$t.extend("--ft-typography-subtitle2-font-size",Vt.fontSize,"14px"),de=$t.extend("--ft-typography-subtitle2-font-weight",Vt.fontWeight,"normal"),fe=$t.extend("--ft-typography-subtitle2-letter-spacing",Vt.letterSpacing,"0.098px"),ue=$t.extend("--ft-typography-subtitle2-line-height",Vt.lineHeight,"1.7"),ve=$t.extend("--ft-typography-subtitle2-text-transform",Vt.textTransform,"inherit"),be=$t.extend("--ft-typography-body1-font-family",Wt),xe=$t.extend("--ft-typography-body1-font-size",Vt.fontSize,"16px"),ye=$t.extend("--ft-typography-body1-font-weight",Vt.fontWeight,"normal"),ge=$t.extend("--ft-typography-body1-letter-spacing",Vt.letterSpacing,"0.496px"),me=$t.extend("--ft-typography-body1-line-height",Vt.lineHeight,"1.5"),$e=$t.extend("--ft-typography-body1-text-transform",Vt.textTransform,"inherit"),we={fontFamily:$t.extend("--ft-typography-body2-font-family",Wt),fontSize:$t.extend("--ft-typography-body2-font-size",Vt.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-body2-font-weight",Vt.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-body2-letter-spacing",Vt.letterSpacing,"0.252px"),lineHeight:$t.extend("--ft-typography-body2-line-height",Vt.lineHeight,"1.4"),textTransform:$t.extend("--ft-typography-body2-text-transform",Vt.textTransform,"inherit")},ke=$t.extend("--ft-typography-caption-font-family",Wt),Oe=$t.extend("--ft-typography-caption-font-size",Vt.fontSize,"12px"),Se=$t.extend("--ft-typography-caption-font-weight",Vt.fontWeight,"normal"),Ce=$t.extend("--ft-typography-caption-letter-spacing",Vt.letterSpacing,"0.396px"),Ee=$t.extend("--ft-typography-caption-line-height",Vt.lineHeight,"1.33"),Ne=$t.extend("--ft-typography-caption-text-transform",Vt.textTransform,"inherit"),Re=$t.extend("--ft-typography-breadcrumb-font-family",Wt),ze=$t.extend("--ft-typography-breadcrumb-font-size",Vt.fontSize,"10px"),Me=$t.extend("--ft-typography-breadcrumb-font-weight",Vt.fontWeight,"normal"),je=$t.extend("--ft-typography-breadcrumb-letter-spacing",Vt.letterSpacing,"0.33px"),Be=$t.extend("--ft-typography-breadcrumb-line-height",Vt.lineHeight,"1.6"),Fe=$t.extend("--ft-typography-breadcrumb-text-transform",Vt.textTransform,"inherit"),Ue=$t.extend("--ft-typography-overline-font-family",Wt),Le=$t.extend("--ft-typography-overline-font-size",Vt.fontSize,"10px"),Te=$t.extend("--ft-typography-overline-font-weight",Vt.fontWeight,"normal"),De=$t.extend("--ft-typography-overline-letter-spacing",Vt.letterSpacing,"1.5px"),Ae=$t.extend("--ft-typography-overline-line-height",Vt.lineHeight,"1.6"),Ie=$t.extend("--ft-typography-overline-text-transform",Vt.textTransform,"uppercase"),Pe={fontFamily:$t.extend("--ft-typography-button-font-family",Wt),fontSize:$t.extend("--ft-typography-button-font-size",Vt.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",Vt.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",Vt.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",Vt.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",Vt.textTransform,"uppercase")},_e=m`
|
|
113
113
|
.ft-typography--title {
|
|
114
|
-
font-family: ${
|
|
114
|
+
font-family: ${Kt};
|
|
115
115
|
font-size: ${Zt};
|
|
116
116
|
font-weight: ${Jt};
|
|
117
117
|
letter-spacing: ${qt};
|
|
@@ -136,7 +136,7 @@ var xt,yt;let gt=class extends M{constructor(){super(...arguments),this.renderOp
|
|
|
136
136
|
line-height: ${ae};
|
|
137
137
|
text-transform: ${he};
|
|
138
138
|
}
|
|
139
|
-
`,
|
|
139
|
+
`,Ve=m`
|
|
140
140
|
.ft-typography--subtitle2 {
|
|
141
141
|
font-family: ${ce};
|
|
142
142
|
font-size: ${pe};
|
|
@@ -146,7 +146,7 @@ var xt,yt;let gt=class extends M{constructor(){super(...arguments),this.renderOp
|
|
|
146
146
|
text-transform: ${ve};
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
`,
|
|
149
|
+
`,Ke=m`
|
|
150
150
|
.ft-typography--body1 {
|
|
151
151
|
font-family: ${be};
|
|
152
152
|
font-size: ${xe};
|
|
@@ -186,8 +186,8 @@ var xt,yt;let gt=class extends M{constructor(){super(...arguments),this.renderOp
|
|
|
186
186
|
.ft-typography--overline {
|
|
187
187
|
font-family: ${Ue};
|
|
188
188
|
font-size: ${Le};
|
|
189
|
-
font-weight: ${
|
|
190
|
-
letter-spacing: ${
|
|
189
|
+
font-weight: ${Te};
|
|
190
|
+
letter-spacing: ${De};
|
|
191
191
|
line-height: ${Ae};
|
|
192
192
|
text-transform: ${Ie};
|
|
193
193
|
}
|
|
@@ -211,7 +211,7 @@ var xt,yt;let gt=class extends M{constructor(){super(...arguments),this.renderOp
|
|
|
211
211
|
</${At(this.element)}>
|
|
212
212
|
`:Pt`
|
|
213
213
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
214
|
-
`}}ti.styles=[_e,He,We,Ke,
|
|
214
|
+
`}}ti.styles=[_e,He,We,Ve,Ke,Ze,Je,qe,Xe,Ge,Ye],Qe([o()],ti.prototype,"element",void 0),Qe([o()],ti.prototype,"variant",void 0),d("ft-typography")(ti);
|
|
215
215
|
/**
|
|
216
216
|
* @license
|
|
217
217
|
* Copyright 2017 Google LLC
|
|
@@ -317,7 +317,7 @@ const ei=1,ii=2,oi=t=>(...e)=>({_$litDirective$:t,values:e});class si{constructo
|
|
|
317
317
|
* @license
|
|
318
318
|
* Copyright 2017 Google LLC
|
|
319
319
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
320
|
-
*/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 zt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused
|
|
320
|
+
*/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 zt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Q`
|
|
321
321
|
<style>
|
|
322
322
|
.ft-ripple .ft-ripple--effect,
|
|
323
323
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -334,7 +334,7 @@ const ei=1,ii=2,oi=t=>(...e)=>({_$litDirective$:t,values:e});class si{constructo
|
|
|
334
334
|
<div class="ft-ripple--background"></div>
|
|
335
335
|
<div class="ft-ripple--effect"></div>
|
|
336
336
|
</div>
|
|
337
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Oi.elementDefinitions={},Oi.styles=wi,ki([o({type:Boolean})],Oi.prototype,"primary",void 0),ki([o({type:Boolean})],Oi.prototype,"secondary",void 0),ki([o({type:Boolean})],Oi.prototype,"unbounded",void 0),ki([o({type:Boolean})],Oi.prototype,"activated",void 0),ki([o({type:Boolean})],Oi.prototype,"selected",void 0),ki([o({type:Boolean})],Oi.prototype,"disabled",void 0),ki([s()],Oi.prototype,"hovered",void 0),ki([s()],Oi.prototype,"focused",void 0),ki([s()],Oi.prototype,"pressed",void 0),ki([s()],Oi.prototype,"rippling",void 0),ki([s()],Oi.prototype,"rippleSize",void 0),ki([s()],Oi.prototype,"originX",void 0),ki([s()],Oi.prototype,"originY",void 0),ki([n(".ft-ripple")],Oi.prototype,"ripple",void 0),ki([n(".ft-ripple--effect")],Oi.prototype,"rippleEffect",void 0),d("ft-ripple")(Oi);const Si=$t.create("--ft-tooltip-distance","SIZE","4px"),Ci=$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ei=$t.create("--ft-tooltip-background-color","COLOR","#666666"),Ni=$t.create("--ft-tooltip-z-index","NUMBER","1"),Ri=$t.external(kt.borderRadiusS,"Design system"),zi=$t.create("--ft-tooltip-max-width","SIZE","150px"),Mi=m`
|
|
337
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Oi.elementDefinitions={},Oi.styles=wi,ki([o({type:Boolean})],Oi.prototype,"primary",void 0),ki([o({type:Boolean})],Oi.prototype,"secondary",void 0),ki([o({type:Boolean})],Oi.prototype,"unbounded",void 0),ki([o({type:Boolean})],Oi.prototype,"activated",void 0),ki([o({type:Boolean})],Oi.prototype,"selected",void 0),ki([o({type:Boolean})],Oi.prototype,"disabled",void 0),ki([s()],Oi.prototype,"hovered",void 0),ki([s()],Oi.prototype,"focused",void 0),ki([s()],Oi.prototype,"pressed",void 0),ki([s()],Oi.prototype,"rippling",void 0),ki([s()],Oi.prototype,"rippleSize",void 0),ki([s()],Oi.prototype,"originX",void 0),ki([s()],Oi.prototype,"originY",void 0),ki([n(".ft-ripple")],Oi.prototype,"ripple",void 0),ki([n(".ft-ripple--effect")],Oi.prototype,"rippleEffect",void 0),d("ft-ripple")(Oi);const Si=$t.create("--ft-tooltip-distance","SIZE","4px"),Ci=$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ei=$t.create("--ft-tooltip-background-color","COLOR","#666666"),Ni=$t.create("--ft-tooltip-z-index","NUMBER","1"),Ri=$t.external(kt.borderRadiusS,"Design system"),zi=$t.create("--ft-tooltip-max-width","SIZE","150px"),Mi=m`
|
|
338
338
|
.ft-tooltip--container {
|
|
339
339
|
display: block;
|
|
340
340
|
position: relative;
|
|
@@ -376,7 +376,7 @@ const ei=1,ii=2,oi=t=>(...e)=>({_$litDirective$:t,values:e});class si{constructo
|
|
|
376
376
|
@touchstart=${this.onTouch}>
|
|
377
377
|
<slot></slot>
|
|
378
378
|
<div part="tooltip" role="tooltip" inert
|
|
379
|
-
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
379
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
380
380
|
?hidden=${!this.visible}>
|
|
381
381
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
382
382
|
<slot name="text"></slot>
|
|
@@ -466,7 +466,7 @@ const ei=1,ii=2,oi=t=>(...e)=>({_$litDirective$:t,values:e});class si{constructo
|
|
|
466
466
|
* Copyright 2017 Google LLC
|
|
467
467
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
468
468
|
*/
|
|
469
|
-
class
|
|
469
|
+
class Ti extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===et||null==t)return this.ft=void 0,this.et=t;if(t===tt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ti.directiveName="unsafeHTML",Ti.resultType=1;const Di=oi(Ti);var Ai,Ii;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Ai||(Ai={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Ii||(Ii={})),new Map([...["abw"].map((t=>[t,Ii.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,Ii.AUDIO])),...["avi"].map((t=>[t,Ii.AVI])),...["chm","xhs"].map((t=>[t,Ii.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,Ii.CODE])),...["csv"].map((t=>[t,Ii.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ii.DITA])),...["epub"].map((t=>[t,Ii.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ii.EXCEL])),...["flac"].map((t=>[t,Ii.FLAC])),...["gif"].map((t=>[t,Ii.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ii.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ii.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,Ii.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ii.JPEG])),...["json"].map((t=>[t,Ii.JSON])),...["m4a","m4p"].map((t=>[t,Ii.M4A])),...["mov","qt"].map((t=>[t,Ii.MOV])),...["mp3"].map((t=>[t,Ii.MP3])),...["mp4","m4v"].map((t=>[t,Ii.MP4])),...["ogg","oga"].map((t=>[t,Ii.OGG])),...["pdf","ps"].map((t=>[t,Ii.PDF])),...["png"].map((t=>[t,Ii.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ii.POWERPOINT])),...["rar"].map((t=>[t,Ii.RAR])),...["stp"].map((t=>[t,Ii.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ii.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,Ii.VIDEO])),...["wav"].map((t=>[t,Ii.WAV])),...["wma"].map((t=>[t,Ii.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ii.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ii.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ii.YAML])),...["zip"].map((t=>[t,Ii.ZIP]))]);const Pi={size:$t.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:$t.extend("--ft-icon-fluid-topics-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:$t.extend("--ft-icon-file-format-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:$t.extend("--ft-icon-material-font-family",$t.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:$t.create("--ft-icon-vertical-align","UNKNOWN","unset")},_i=m`
|
|
470
470
|
:host, i.ft-icon {
|
|
471
471
|
display: inline-flex;
|
|
472
472
|
align-items: center;
|
|
@@ -498,7 +498,7 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
498
498
|
|
|
499
499
|
i.ft-icon.ft-icon--fluid-topics {
|
|
500
500
|
font-family: ${Pi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
501
|
-
|
|
501
|
+
|
|
502
502
|
/* Ugly fix because font is broken */
|
|
503
503
|
font-size: calc(0.75 * ${Pi.size});
|
|
504
504
|
line-height: ${Pi.size};
|
|
@@ -514,12 +514,12 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
514
514
|
.ft-icon--material {
|
|
515
515
|
font-family: ${Pi.materialFontFamily}, "Material Icons", sans-serif;
|
|
516
516
|
}
|
|
517
|
-
`;var Hi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Hi||(Hi={}));var Wi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class
|
|
517
|
+
`;var Hi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Hi||(Hi={}));var Wi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Vi extends zt{constructor(){super(...arguments),this.resolvedIcon=et}render(){const t=this.variant&&Object.values(Hi).includes(this.variant)?this.variant:Hi.fluid_topics,e=t!==Hi.material||!!this.value;return Q`
|
|
518
518
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
519
|
-
${
|
|
519
|
+
${Di(this.resolvedIcon)}
|
|
520
520
|
<slot ?hidden=${e}></slot>
|
|
521
521
|
</i>
|
|
522
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Hi.file_format:this.resolvedIcon=null!==(t=Ii[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Hi.material:this.resolvedIcon=this.value||et;break;default:this.resolvedIcon=null!==(e=Ai[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}
|
|
522
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Hi.file_format:this.resolvedIcon=null!==(t=Ii[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Hi.material:this.resolvedIcon=this.value||et;break;default:this.resolvedIcon=null!==(e=Ai[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Vi.elementDefinitions={},Vi.styles=_i,Wi([o()],Vi.prototype,"variant",void 0),Wi([o()],Vi.prototype,"value",void 0),Wi([s()],Vi.prototype,"resolvedIcon",void 0),Wi([n("slot")],Vi.prototype,"slottedContent",void 0),d("ft-icon")(Vi);const Ki=$t.extend("--ft-button-color",kt.colorPrimary),Zi={backgroundColor:$t.extend("--ft-button-background-color",kt.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",kt.borderRadiusL),color:Ki,fontSize:$t.extend("--ft-button-font-size",Pe.fontSize),iconSize:$t.create("--ft-button-icon-size","SIZE","24px"),rippleColor:$t.extend("--ft-button-ripple-color",Ki),verticalPadding:$t.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:$t.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:$t.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:$t.external(kt.colorOpacityDisabled,"Design system")},Ji=$t.extend("--ft-button-primary-color",$t.extend("--ft-button-color",kt.colorOnPrimary)),qi={backgroundColor:$t.extend("--ft-button-primary-background-color",$t.extend("--ft-button-background-color",kt.colorPrimary)),color:Ji,rippleColor:$t.extend("--ft-button-primary-ripple-color",Ji)},Xi=$t.extend("--ft-button-dense-border-radius",$t.extend("--ft-button-border-radius",kt.borderRadiusM)),Gi=$t.create("--ft-button-dense-vertical-padding","SIZE","2px"),Yi=$t.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Qi=$t.create("--ft-button-dense-icon-padding","SIZE","4px"),to=[m`
|
|
523
523
|
:host {
|
|
524
524
|
display: inline-block;
|
|
525
525
|
max-width: 100%;
|
|
@@ -575,7 +575,7 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
575
575
|
border: 1px solid var(--ft-button-internal-color);
|
|
576
576
|
padding: calc(${Zi.verticalPadding} - 1px) calc(${Zi.horizontalPadding} - 1px);
|
|
577
577
|
}
|
|
578
|
-
|
|
578
|
+
|
|
579
579
|
.ft-button.ft-button--dense {
|
|
580
580
|
padding: ${Gi} ${Yi};
|
|
581
581
|
border-radius: ${Xi};
|
|
@@ -585,7 +585,7 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
585
585
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
586
586
|
padding: calc(${Gi} - 1px) calc(${Yi} - 1px);
|
|
587
587
|
}
|
|
588
|
-
|
|
588
|
+
|
|
589
589
|
.ft-button:not([disabled]):hover {
|
|
590
590
|
cursor: pointer;
|
|
591
591
|
}
|
|
@@ -677,9 +677,9 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
677
677
|
position="${this.tooltipPosition}">
|
|
678
678
|
${t}
|
|
679
679
|
</ft-tooltip>
|
|
680
|
-
|
|
680
|
+
`:t}resolveIcon(){return this.loading?Q`
|
|
681
681
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?Q`
|
|
682
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:et}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}io.elementDefinitions={"ft-ripple":Oi,"ft-tooltip":Bi,"ft-typography":ti,"ft-icon":
|
|
682
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:et}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}io.elementDefinitions={"ft-ripple":Oi,"ft-tooltip":Bi,"ft-typography":ti,"ft-icon":Vi,"ft-loader":Li},io.styles=[jt,to],eo([o({type:String,reflect:!0})],io.prototype,"role",void 0),eo([o({type:Boolean})],io.prototype,"primary",void 0),eo([o({type:Boolean})],io.prototype,"outlined",void 0),eo([o({type:Boolean})],io.prototype,"disabled",void 0),eo([o({type:Boolean})],io.prototype,"dense",void 0),eo([o({type:Boolean})],io.prototype,"round",void 0),eo([o()],io.prototype,"label",void 0),eo([o()],io.prototype,"icon",void 0),eo([o()],io.prototype,"iconVariant",void 0),eo([o({type:Boolean})],io.prototype,"trailingIcon",void 0),eo([o({type:Boolean})],io.prototype,"loading",void 0),eo([o()],io.prototype,"tooltipPosition",void 0),eo([o({type:Boolean})],io.prototype,"hideTooltip",void 0),eo([o({type:Boolean})],io.prototype,"forceTooltip",void 0),eo([n(".ft-button")],io.prototype,"button",void 0),eo([n(".ft-button--label slot")],io.prototype,"slottedContent",void 0),d("ft-button")(io);const oo=$t.extend("--ft-checkbox-text-color",kt.colorOnSurfaceHigh),so=$t.external(kt.colorPrimary,"Design system"),ro=$t.external(kt.colorOnPrimary,"Design system"),no=$t.extend("--ft-checkbox-border-color",kt.colorOnSurfaceMedium),lo=$t.external(kt.colorOnSurfaceDisabled,"Design system"),ao=m`
|
|
683
683
|
* {
|
|
684
684
|
box-sizing: border-box;
|
|
685
685
|
}
|
|
@@ -964,45 +964,45 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
964
964
|
`;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 zt{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return Q`
|
|
965
965
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
966
966
|
${null==this.parent?null:Q`
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
967
|
+
<div tabindex="0"
|
|
968
|
+
part="controls go-back"
|
|
969
|
+
class="ft-filter-level--go-back"
|
|
970
|
+
?disabled=${this.disabled}
|
|
971
|
+
@keyup=${this.goBackOnKeyPress}
|
|
972
|
+
@click=${this.goBackOnClick}>
|
|
973
|
+
<ft-ripple></ft-ripple>
|
|
974
|
+
<ft-icon>thin_arrow_left</ft-icon>
|
|
975
|
+
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
976
|
+
</div>
|
|
977
|
+
`}
|
|
978
978
|
${0===this.options.length&&this.noValuesLabel?Q`
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
979
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
980
|
+
${this.noValuesLabel}
|
|
981
|
+
</ft-typography>
|
|
982
|
+
`:et}
|
|
983
983
|
${di(e,(t=>t.value),(t=>{var e;return Q`
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
984
|
+
<div class="ft-filter-level--option" part="options">
|
|
985
|
+
${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
|
|
986
|
+
${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?et:Q`
|
|
987
|
+
<ft-button icon="thin_arrow_right"
|
|
988
|
+
part="controls navigate-hierarchy"
|
|
989
|
+
label="${t.label}"
|
|
990
|
+
?disabled=${this.disabled}
|
|
991
|
+
tooltipPosition="left"
|
|
992
|
+
@click=${()=>this.displayLevel(t)}></ft-button>
|
|
993
|
+
`}
|
|
994
|
+
</div>
|
|
995
|
+
`}))}
|
|
996
996
|
${e.length<t.length?Q`
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
997
|
+
<ft-button
|
|
998
|
+
class="ft-filter-level--display-more"
|
|
999
|
+
icon="thin_arrow"
|
|
1000
|
+
dense trailingIcon
|
|
1001
|
+
part="controls display-more"
|
|
1002
|
+
@click=${this.displayMore}>
|
|
1003
|
+
${this.moreValuesButtonLabel}
|
|
1004
|
+
</ft-button>
|
|
1005
|
+
`:et}
|
|
1006
1006
|
</div>
|
|
1007
1007
|
`}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`
|
|
1008
1008
|
<ft-checkbox name="${this.filterId}"
|
|
@@ -1025,7 +1025,7 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
1025
1025
|
@change=${t=>t.stopPropagation()}>
|
|
1026
1026
|
${t.renderOption?t.renderOption:t.label}
|
|
1027
1027
|
</ft-radio>
|
|
1028
|
-
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}Co.elementDefinitions={"ft-button":io,"ft-ripple":Oi,"ft-typography":ti,"ft-checkbox":co,"ft-icon":
|
|
1028
|
+
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}Co.elementDefinitions={"ft-button":io,"ft-ripple":Oi,"ft-typography":ti,"ft-checkbox":co,"ft-icon":Vi,"ft-radio":go},Co.styles=Oo,So([o({type:String})],Co.prototype,"filterId",void 0),So([o({type:Object})],Co.prototype,"parent",void 0),So([o({type:Array})],Co.prototype,"options",void 0),So([o({type:Boolean})],Co.prototype,"multivalued",void 0),So([o({type:Boolean})],Co.prototype,"disabled",void 0),So([o({type:Boolean})],Co.prototype,"hideSelectedOptions",void 0),So([o({type:Boolean})],Co.prototype,"preventNavigation",void 0),So([o({type:String})],Co.prototype,"filter",void 0),So([o({type:String})],Co.prototype,"moreValuesButtonLabel",void 0),So([o({type:String})],Co.prototype,"noValuesLabel",void 0),So([o({type:Number})],Co.prototype,"displayedValuesLimit",void 0),So([n(".ft-filter-level--container")],Co.prototype,"container",void 0),So([s()],Co.prototype,"displayedPages",void 0);const Eo={buttonsColor:$t.extend("--ft-snap-scroll-buttons-color",kt.colorPrimary),buttonsZIndex:$t.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:$t.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:$t.external(kt.colorSurface,"Design system")},No=m`
|
|
1029
1029
|
.ft-snap-scroll {
|
|
1030
1030
|
box-sizing: border-box;
|
|
1031
1031
|
position: relative;
|
|
@@ -1197,7 +1197,7 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
1197
1197
|
flex-shrink: 0;
|
|
1198
1198
|
padding: 0 10px;
|
|
1199
1199
|
margin-bottom: 8px;
|
|
1200
|
-
${wt(
|
|
1200
|
+
${wt(Vt.fontSize,"14px")};
|
|
1201
1201
|
}
|
|
1202
1202
|
|
|
1203
1203
|
.ft-filter--header ft-button {
|
|
@@ -1211,8 +1211,8 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
1211
1211
|
flex-shrink: 1;
|
|
1212
1212
|
flex-grow: 1;
|
|
1213
1213
|
word-break: break-word;
|
|
1214
|
-
${wt(
|
|
1215
|
-
${wt(
|
|
1214
|
+
${wt(Vt.lineHeight,"22px")};
|
|
1215
|
+
${wt(Vt.fontWeight,"bold")};
|
|
1216
1216
|
}
|
|
1217
1217
|
|
|
1218
1218
|
.ft-filter--filter {
|
|
@@ -1321,18 +1321,18 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
1321
1321
|
</div>
|
|
1322
1322
|
`}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))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var e,i,o,s,r;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)),this.lastLevelHasHiddenvalues=null!==(r=null===(s=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===s?void 0:s.hasHiddenValues)&&void 0!==r&&r}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`
|
|
1323
1323
|
${this.raiseSelectedOptions&&e.length>0?Q`
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1324
|
+
<ft-filter-level
|
|
1325
|
+
filterId="${this.id}"
|
|
1326
|
+
?multivalued=${this.multivalued}
|
|
1327
|
+
?disabled=${this.disabled}
|
|
1328
|
+
preventNavigation
|
|
1329
|
+
.options=${e}
|
|
1330
|
+
@change=${this.onChange}
|
|
1331
|
+
part="values selected-values"
|
|
1332
|
+
.exportpartsPrefixes=${["values","selected-values"]}
|
|
1333
|
+
></ft-filter-level>
|
|
1334
|
+
<div class="ft-filter--separator">
|
|
1335
|
+
`:null}
|
|
1336
1336
|
<ft-snap-scroll horizontal hideScrollbar
|
|
1337
1337
|
class="ft-filter--levels"
|
|
1338
1338
|
@current-element-change=${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}>
|
|
@@ -1358,6 +1358,6 @@ class Di extends si{constructor(t){if(super(t),this.et=et,t.type!==ii)throw Erro
|
|
|
1358
1358
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1359
1359
|
noValuesLabel="${this.noValuesLabel}"
|
|
1360
1360
|
></ft-filter-level>
|
|
1361
|
-
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;p(this.lastDispatchedValues,t)||(this.dispatchEvent(new Uo(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}Lo.elementDefinitions={"ft-button":io,"ft-filter-level":Co,"ft-snap-scroll":Mo,"ft-typography":ti},Lo.styles=Bo,Fo([o({type:String})],Lo.prototype,"id",void 0),Fo([o({type:String})],Lo.prototype,"label",void 0),Fo([o({type:String})],Lo.prototype,"filterPlaceHolder",void 0),Fo([o({type:String})],Lo.prototype,"clearButtonLabel",void 0),Fo([o({type:String})],Lo.prototype,"moreValuesButtonLabel",void 0),Fo([o({type:String})],Lo.prototype,"noValuesLabel",void 0),Fo([f([])],Lo.prototype,"options",void 0),Fo([o({type:Boolean})],Lo.prototype,"multivalued",void 0),Fo([o({type:Boolean})],Lo.prototype,"disabled",void 0),Fo([o({type:Boolean})],Lo.prototype,"raiseSelectedOptions",void 0),Fo([o({type:Number})],Lo.prototype,"displayedValuesLimit",void 0),Fo([o({type:Boolean})],Lo.prototype,"hideClearButton",void 0),Fo([n(".ft-filter--slot")],Lo.prototype,"slotElement",void 0),Fo([n(".ft-filter--container")],Lo.prototype,"container",void 0),Fo([n(".ft-filter--values")],Lo.prototype,"valuesContainer",void 0),Fo([n(".ft-filter--levels")],Lo.prototype,"levelsContainer",void 0),Fo([s()],Lo.prototype,"lastLevelHasHiddenvalues",void 0),Fo([n(".ft-filter--filter input")],Lo.prototype,"filterInput",void 0),Fo([function(t){return r({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],Lo.prototype,"levels",void 0),Fo([s()],Lo.prototype,"withScroll",void 0),Fo([s()],Lo.prototype,"filter",void 0),Fo([s()],Lo.prototype,"slideIn",void 0),Fo([s()],Lo.prototype,"slideOut",void 0);var
|
|
1361
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;p(this.lastDispatchedValues,t)||(this.dispatchEvent(new Uo(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}Lo.elementDefinitions={"ft-button":io,"ft-filter-level":Co,"ft-snap-scroll":Mo,"ft-typography":ti},Lo.styles=Bo,Fo([o({type:String})],Lo.prototype,"id",void 0),Fo([o({type:String})],Lo.prototype,"label",void 0),Fo([o({type:String})],Lo.prototype,"filterPlaceHolder",void 0),Fo([o({type:String})],Lo.prototype,"clearButtonLabel",void 0),Fo([o({type:String})],Lo.prototype,"moreValuesButtonLabel",void 0),Fo([o({type:String})],Lo.prototype,"noValuesLabel",void 0),Fo([f([])],Lo.prototype,"options",void 0),Fo([o({type:Boolean})],Lo.prototype,"multivalued",void 0),Fo([o({type:Boolean})],Lo.prototype,"disabled",void 0),Fo([o({type:Boolean})],Lo.prototype,"raiseSelectedOptions",void 0),Fo([o({type:Number})],Lo.prototype,"displayedValuesLimit",void 0),Fo([o({type:Boolean})],Lo.prototype,"hideClearButton",void 0),Fo([n(".ft-filter--slot")],Lo.prototype,"slotElement",void 0),Fo([n(".ft-filter--container")],Lo.prototype,"container",void 0),Fo([n(".ft-filter--values")],Lo.prototype,"valuesContainer",void 0),Fo([n(".ft-filter--levels")],Lo.prototype,"levelsContainer",void 0),Fo([s()],Lo.prototype,"lastLevelHasHiddenvalues",void 0),Fo([n(".ft-filter--filter input")],Lo.prototype,"filterInput",void 0),Fo([function(t){return r({descriptor:e=>({get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}(".ft-filter--levels ft-filter-level")],Lo.prototype,"levels",void 0),Fo([s()],Lo.prototype,"withScroll",void 0),Fo([s()],Lo.prototype,"filter",void 0),Fo([s()],Lo.prototype,"slideIn",void 0),Fo([s()],Lo.prototype,"slideOut",void 0);var To=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 Do extends zt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Q`
|
|
1362
1362
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1363
|
-
`}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}))}}
|
|
1363
|
+
`}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}))}}Do.elementDefinitions={},To([o({type:String})],Do.prototype,"label",void 0),To([o({type:Object,converter:t=>t})],Do.prototype,"value",void 0),To([o({type:Boolean,reflect:!0})],Do.prototype,"selected",void 0),To([o({type:Object})],Do.prototype,"subOptions",void 0),To([f({})],Do.prototype,"renderOption",void 0),To([n(".ft-filter-option--slot")],Do.prototype,"slotElement",void 0),d("ft-filter")(Lo),d("ft-filter-option")(Do),t.FtFilter=Lo,t.FtFilterChangeEvent=Uo,t.FtFilterCssVariables=jo,t.FtFilterLevelCssVariables=ko,t.FtFilterOption=Do,t.levelStyles=Oo,t.styles=Bo}({});
|