@fluid-topics/ft-filterable-table 0.3.14 → 0.3.16
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.
|
@@ -210,7 +210,6 @@ export class FtFilterableTable extends FtLitElement {
|
|
|
210
210
|
return typeof column.stringify === "function" ? column.stringify(value, index) : DEFAULT_STRINGIFY(value);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
//language=css
|
|
214
213
|
FtFilterableTable.styles = styles;
|
|
215
214
|
__decorate([
|
|
216
215
|
property({ attribute: false })
|
|
@@ -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,n=new WeakMap,s=new WeakMap,r=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);f(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,p),p.standInClass=c);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)s.delete(t),u(t,p,!0)}const
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);f(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,p),p.standInClass=c);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)s.delete(t),u(t,p,!0)}const b=this._whenDefinedPromises.get(t);return void 0!==b&&(b.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.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=r.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),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},d=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,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},h=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):h(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),a=t;try{new e.elementClass}catch(t){h(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)},b=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=b.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),v.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){v.push(this),i.set.call(this,t),v.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!==n.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 s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),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 r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(At){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
|
|
@@ -45,34 +45,34 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),f=new WeakMap;class h{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)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(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&f.set(e,t))}return t}toString(){return this.cssText}}const u=t=>new h("string"==typeof t?t:t+"",void 0,d),
|
|
48
|
+
const c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),f=new WeakMap;class h{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)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(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&f.set(e,t))}return t}toString(){return this.cssText}}const u=t=>new h("string"==typeof t?t:t+"",void 0,d),b=(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 h(i,t,d)},v=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return u(e)})(t):t
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/;var y;const g=window.trustedTypes,m=g?g.emptyScript:"",$=window.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?m: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}},O=(t,e)=>e!==t&&(e==e||t==t),
|
|
53
|
+
*/;var y;const g=window.trustedTypes,m=g?g.emptyScript:"",$=window.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?m: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}},O=(t,e)=>e!==t&&(e==e||t==t),k={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:O};class S 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=k){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 n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||k}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(x(t))}else void 0!==t&&e.push(x(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 v(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=k){var o,n;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:w.toAttribute)(e,i.type);this._$El=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$El=null}}_$AK(t,e){var i,o;const n=this.constructor,s=n._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=n.getPropertyOptions(s),r=t.converter,l=null!==(o=null!==(i=null==r?void 0:r.fromAttribute)&&void 0!==i?i:"function"==typeof r?r:null)&&void 0!==o?o:w.fromAttribute;this._$El=s,this[s]=l(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||O)(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){}}
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var C;
|
|
59
|
+
var C;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:S}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.4");const E=globalThis.trustedTypes,N=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,z="?"+R,M=`<${z}>`,F=document,U=(t="")=>F.createComment(t),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,j=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,L=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),P=/'/g,_=/"/g,H=/^(?:script|style|textarea|title)$/i,W=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Z=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),V=new WeakMap,J=F.createTreeWalker(F,129,null,!1),q=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=A;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===A?"!--"===a[1]?r=T:void 0!==a[1]?r=L:void 0!==a[2]?(H.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=I):void 0!==a[3]&&(r=I):r===I?">"===a[0]?(r=null!=n?n:A,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?I:'"'===a[3]?_:P):r===_||r===P?r=I:r===T||r===L?r=A:(r=I,n=void 0);const d=r===I&&t[e+1].startsWith("/>")?" ":"";s+=r===A?i+M:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+R+d):i+R+(-2===p?(o.push(void 0),e):d)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(l):l,o]};class X{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=q(t,e);if(this.el=X.createElement(a,i),J.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=J.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(R)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(R),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?ot:"@"===e[1]?nt:tt})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(H.test(o.tagName)){const t=o.textContent.split(R),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),J.nextNode(),l.push({type:2,index:++n});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)l.push({type:7,index:n}),t+=R.length-1}n++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,o){var n,s,r,l;if(e===Z)return e;let a=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const p=B(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=Y(t,a._$AS(t,e.values),a,o)),e}class G{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:F).importNode(i,!0);J.currentNode=n;let s=J.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new Q(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new st(s,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=J.nextNode(),r++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,o){var n;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}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=Y(this,t,e),B(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==Z&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):j(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==K&&B(this._$AH)?this._$AA.nextSibling.data=t:this.k(F.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=X.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new G(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new X(t)),e}S(t){D(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new Q(this.j(U()),this.j(U()),this,this.options)):i=e[o],i._$AI(n),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._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,i,o,n){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=Y(this,t,e,0),s=!B(t)||t!==this._$AH&&t!==Z,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=Y(this,o[i+r],e,r),l===Z&&(l=this._$AH[r]),s||(s=!B(l)||l!==this._$AH[r]),l===K?t=K:t!==K&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.P(t)}P(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===K?void 0:t}}const it=E?E.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}P(t){t&&t!==K?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class nt extends tt{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Y(this,t,e,0))&&void 0!==i?i:K)===Z)return;const o=this._$AH,n=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==K&&(o===K||n);n&&this.element.removeEventListener(this.name,this,o),s&&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 st{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){Y(this,t)}}const rt={A:"$lit$",C:R,M:z,L:1,R:q,V:G,D:j,I:Y,H:Q,N:tt,U:ot,B:nt,F:et,W:st},lt=window.litHtmlPolyfillSupport;
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var at,pt;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.2.7");class ct extends
|
|
65
|
+
var at,pt;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.2.7");class ct extends S{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,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new Q(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(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 Z}}ct.finalized=!0,ct._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:ct});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ct}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.2.2");class ft{static create(t,e,i){let o=t=>u(null!=t?t:i),n=b`var(${u(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${u(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=b`var(${u(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${u(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):u(null!=e?e:t.defaultValue),o=b`var(${u(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=>b`var(${u(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 ht(t,e){return u(`${t.name}: ${e}`)}const ut={colorPrimary:ft.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ft.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ft.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ft.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ft.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ft.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ft.create("--ft-color-error","COLOR","#B00020"),colorOutline:ft.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ft.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ft.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ft.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ft.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ft.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ft.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ft.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ft.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ft.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ft.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ft.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ft.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ft.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ft.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ft.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ft.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ft.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ft.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ft.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ft.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ft.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ft.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ft.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ft.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ft.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ft.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ft.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ft.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ft.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ft.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ft.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ft.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ft.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ft.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ft.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ft.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ft.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ft.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ft.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ft.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ft.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ft.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ft.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
69
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/var
|
|
70
|
+
*/var bt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class vt 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 n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return v(n,this.constructor.elementStyles),n}}}(ct)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),W`
|
|
71
71
|
${t.map((t=>W`
|
|
72
72
|
<style>${t}</style>
|
|
73
73
|
`))}
|
|
74
74
|
${this.getTemplate()}
|
|
75
|
-
`}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,n,s,r;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 p=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!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}
|
|
75
|
+
`}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,n,s,r;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 p=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!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}bt([o()],vt.prototype,"exportpartsPrefix",void 0),bt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],vt.prototype,"exportpartsPrefixes",void 0);const xt=b`
|
|
76
76
|
.ft-no-text-select {
|
|
77
77
|
-webkit-touch-callout: none;
|
|
78
78
|
-webkit-user-select: none;
|
|
@@ -81,17 +81,29 @@ var at,pt;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
81
81
|
-ms-user-select: none;
|
|
82
82
|
user-select: none;
|
|
83
83
|
}
|
|
84
|
-
`;var yt,gt,mt;
|
|
84
|
+
`;var yt,gt,mt;b`
|
|
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
|
+
`;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(mt=null===(gt=null===(yt=window.safari)||void 0===yt?void 0:yt.pushNotification)||void 0===gt?void 0:gt.toString())&&void 0!==mt?mt:""),wt=1,Ot=2,kt=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
85
97
|
/**
|
|
86
98
|
* @license
|
|
87
99
|
* Copyright 2017 Google LLC
|
|
88
100
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
|
-
*/class
|
|
101
|
+
*/class St{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)}}
|
|
90
102
|
/**
|
|
91
103
|
* @license
|
|
92
104
|
* Copyright 2020 Google LLC
|
|
93
105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
94
|
-
*/const{H:Ct}=rt,Et=()=>document.createComment(""),Nt=(t,e,i)=>{var o;const n=t._$AA.parentNode,s=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Et(),s),o=n.insertBefore(Et(),s);i=new Ct(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==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)!==r._$AU&&i._$AP(e)}if(e!==s||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,s),t=e}}}return i},Rt=(t,e,i=t)=>(t._$AI(e,i),t),zt={},Mt=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}},Ft=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Ut=
|
|
106
|
+
*/const{H:Ct}=rt,Et=()=>document.createComment(""),Nt=(t,e,i)=>{var o;const n=t._$AA.parentNode,s=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Et(),s),o=n.insertBefore(Et(),s);i=new Ct(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==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)!==r._$AU&&i._$AP(e)}if(e!==s||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,s),t=e}}}return i},Rt=(t,e,i=t)=>(t._$AI(e,i),t),zt={},Mt=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}},Ft=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Ut=kt(class extends St{constructor(t){if(super(t),t.type!==Ot)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 n=[],s=[];let r=0;for(const e of t)n[r]=o?o(e,r):r,s[r]=i(e,r),r++;return{values:s,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const s=(t=>t._$AH)(t),{values:r,keys:l}=this.ht(e,i,o);if(!Array.isArray(s))return this.ut=l,r;const a=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],p=[];let c,d,f=0,h=s.length-1,u=0,b=r.length-1;for(;f<=h&&u<=b;)if(null===s[f])f++;else if(null===s[h])h--;else if(a[f]===l[u])p[u]=Rt(s[f],r[u]),f++,u++;else if(a[h]===l[b])p[b]=Rt(s[h],r[b]),h--,b--;else if(a[f]===l[b])p[b]=Rt(s[f],r[b]),Nt(t,p[b+1],s[f]),f++,b--;else if(a[h]===l[u])p[u]=Rt(s[h],r[u]),Nt(t,s[f],s[h]),h--,u++;else if(void 0===c&&(c=Ft(l,u,b),d=Ft(a,f,h)),c.has(a[f]))if(c.has(a[h])){const e=d.get(l[u]),i=void 0!==e?s[e]:null;if(null===i){const e=Nt(t,s[f]);Rt(e,r[u]),p[u]=e}else p[u]=Rt(i,r[u]),Nt(t,s[f],i),s[e]=null;u++}else Mt(s[h]),h--;else Mt(s[f]),f++;for(;u<=b;){const e=Nt(t,p[b+1]);Rt(e,r[u]),p[u++]=e}for(;f<=h;){const t=s[f++];null!==t&&Mt(t)}return this.ut=l,((t,e=zt)=>{t._$AH=e})(t,p),Z}});
|
|
95
107
|
/**
|
|
96
108
|
* @license
|
|
97
109
|
* Copyright 2017 Google LLC
|
|
@@ -102,12 +114,12 @@ var at,pt;null==lt||lt(X,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C
|
|
|
102
114
|
* Copyright 2017 Google LLC
|
|
103
115
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
104
116
|
*/
|
|
105
|
-
class Bt extends
|
|
117
|
+
class Bt extends St{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this._t=void 0,this.it=t;if(t===Z)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:[]}}}Bt.directiveName="unsafeHTML",Bt.resultType=1;const Dt=kt(Bt),jt=kt(class extends St{constructor(t){var e;if(super(t),t.type!==wt||"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 n=t.element.classList;this.nt.forEach((t=>{t in e||(n.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?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return Z}}),At=Symbol.for(""),Tt=t=>{if((null==t?void 0:t.r)===At)return null==t?void 0:t._$litStatic$},Lt=t=>({_$litStatic$:t,r:At}),It=new Map,Pt=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(s=i[p],n=Tt(s));)a+=n+e[++p],c=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=It.get(t))&&(r.raw=r,It.set(t,e=r)),i=l}return t(e,...i)})(W);
|
|
106
118
|
/**
|
|
107
119
|
* @license
|
|
108
120
|
* Copyright 2018 Google LLC
|
|
109
121
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
-
*/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=ft.extend("--ft-typography-font-family",ut.titleFont),Wt=ft.extend("--ft-typography-font-family",ut.contentFont),Zt={fontFamily:Wt,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Kt=ft.extend("--ft-typography-title-font-family",Ht),Vt=ft.extend("--ft-typography-title-font-size",Zt.fontSize,"20px"),Jt=ft.extend("--ft-typography-title-font-weight",Zt.fontWeight,"normal"),qt=ft.extend("--ft-typography-title-letter-spacing",Zt.letterSpacing,"0.15px"),Xt=ft.extend("--ft-typography-title-line-height",Zt.lineHeight,"1.2"),Yt=ft.extend("--ft-typography-title-text-transform",Zt.textTransform,"inherit"),Gt=ft.extend("--ft-typography-title-dense-font-family",Ht),Qt=ft.extend("--ft-typography-title-dense-font-size",Zt.fontSize,"14px"),te=ft.extend("--ft-typography-title-dense-font-weight",Zt.fontWeight,"normal"),ee=ft.extend("--ft-typography-title-dense-letter-spacing",Zt.letterSpacing,"0.105px"),ie=ft.extend("--ft-typography-title-dense-line-height",Zt.lineHeight,"1.7"),oe=ft.extend("--ft-typography-title-dense-text-transform",Zt.textTransform,"inherit"),ne=ft.extend("--ft-typography-subtitle1-font-family",Wt),se=ft.extend("--ft-typography-subtitle1-font-size",Zt.fontSize,"16px"),re=ft.extend("--ft-typography-subtitle1-font-weight",Zt.fontWeight,"600"),le=ft.extend("--ft-typography-subtitle1-letter-spacing",Zt.letterSpacing,"0.144px"),ae=ft.extend("--ft-typography-subtitle1-line-height",Zt.lineHeight,"1.5"),pe=ft.extend("--ft-typography-subtitle1-text-transform",Zt.textTransform,"inherit"),ce=ft.extend("--ft-typography-subtitle2-font-family",Wt),de=ft.extend("--ft-typography-subtitle2-font-size",Zt.fontSize,"14px"),fe=ft.extend("--ft-typography-subtitle2-font-weight",Zt.fontWeight,"normal"),he=ft.extend("--ft-typography-subtitle2-letter-spacing",Zt.letterSpacing,"0.098px"),ue=ft.extend("--ft-typography-subtitle2-line-height",Zt.lineHeight,"1.7"),
|
|
122
|
+
*/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=ft.extend("--ft-typography-font-family",ut.titleFont),Wt=ft.extend("--ft-typography-font-family",ut.contentFont),Zt={fontFamily:Wt,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Kt=ft.extend("--ft-typography-title-font-family",Ht),Vt=ft.extend("--ft-typography-title-font-size",Zt.fontSize,"20px"),Jt=ft.extend("--ft-typography-title-font-weight",Zt.fontWeight,"normal"),qt=ft.extend("--ft-typography-title-letter-spacing",Zt.letterSpacing,"0.15px"),Xt=ft.extend("--ft-typography-title-line-height",Zt.lineHeight,"1.2"),Yt=ft.extend("--ft-typography-title-text-transform",Zt.textTransform,"inherit"),Gt=ft.extend("--ft-typography-title-dense-font-family",Ht),Qt=ft.extend("--ft-typography-title-dense-font-size",Zt.fontSize,"14px"),te=ft.extend("--ft-typography-title-dense-font-weight",Zt.fontWeight,"normal"),ee=ft.extend("--ft-typography-title-dense-letter-spacing",Zt.letterSpacing,"0.105px"),ie=ft.extend("--ft-typography-title-dense-line-height",Zt.lineHeight,"1.7"),oe=ft.extend("--ft-typography-title-dense-text-transform",Zt.textTransform,"inherit"),ne=ft.extend("--ft-typography-subtitle1-font-family",Wt),se=ft.extend("--ft-typography-subtitle1-font-size",Zt.fontSize,"16px"),re=ft.extend("--ft-typography-subtitle1-font-weight",Zt.fontWeight,"600"),le=ft.extend("--ft-typography-subtitle1-letter-spacing",Zt.letterSpacing,"0.144px"),ae=ft.extend("--ft-typography-subtitle1-line-height",Zt.lineHeight,"1.5"),pe=ft.extend("--ft-typography-subtitle1-text-transform",Zt.textTransform,"inherit"),ce=ft.extend("--ft-typography-subtitle2-font-family",Wt),de=ft.extend("--ft-typography-subtitle2-font-size",Zt.fontSize,"14px"),fe=ft.extend("--ft-typography-subtitle2-font-weight",Zt.fontWeight,"normal"),he=ft.extend("--ft-typography-subtitle2-letter-spacing",Zt.letterSpacing,"0.098px"),ue=ft.extend("--ft-typography-subtitle2-line-height",Zt.lineHeight,"1.7"),be=ft.extend("--ft-typography-subtitle2-text-transform",Zt.textTransform,"inherit"),ve={fontFamily:ft.extend("--ft-typography-body1-font-family",Wt),fontSize:ft.extend("--ft-typography-body1-font-size",Zt.fontSize,"16px"),fontWeight:ft.extend("--ft-typography-body1-font-weight",Zt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-body1-letter-spacing",Zt.letterSpacing,"0.496px"),lineHeight:ft.extend("--ft-typography-body1-line-height",Zt.lineHeight,"1.5"),textTransform:ft.extend("--ft-typography-body1-text-transform",Zt.textTransform,"inherit")},xe=ft.extend("--ft-typography-body2-font-family",Wt),ye=ft.extend("--ft-typography-body2-font-size",Zt.fontSize,"14px"),ge=ft.extend("--ft-typography-body2-font-weight",Zt.fontWeight,"normal"),me=ft.extend("--ft-typography-body2-letter-spacing",Zt.letterSpacing,"0.252px"),$e=ft.extend("--ft-typography-body2-line-height",Zt.lineHeight,"1.4"),we=ft.extend("--ft-typography-body2-text-transform",Zt.textTransform,"inherit"),Oe={fontFamily:ft.extend("--ft-typography-caption-font-family",Wt),fontSize:ft.extend("--ft-typography-caption-font-size",Zt.fontSize,"12px"),fontWeight:ft.extend("--ft-typography-caption-font-weight",Zt.fontWeight,"normal"),letterSpacing:ft.extend("--ft-typography-caption-letter-spacing",Zt.letterSpacing,"0.396px"),lineHeight:ft.extend("--ft-typography-caption-line-height",Zt.lineHeight,"1.33"),textTransform:ft.extend("--ft-typography-caption-text-transform",Zt.textTransform,"inherit")},ke=ft.extend("--ft-typography-breadcrumb-font-family",Wt),Se=ft.extend("--ft-typography-breadcrumb-font-size",Zt.fontSize,"10px"),Ce=ft.extend("--ft-typography-breadcrumb-font-weight",Zt.fontWeight,"normal"),Ee=ft.extend("--ft-typography-breadcrumb-letter-spacing",Zt.letterSpacing,"0.33px"),Ne=ft.extend("--ft-typography-breadcrumb-line-height",Zt.lineHeight,"1.6"),Re=ft.extend("--ft-typography-breadcrumb-text-transform",Zt.textTransform,"inherit"),ze=ft.extend("--ft-typography-overline-font-family",Wt),Me=ft.extend("--ft-typography-overline-font-size",Zt.fontSize,"10px"),Fe=ft.extend("--ft-typography-overline-font-weight",Zt.fontWeight,"normal"),Ue=ft.extend("--ft-typography-overline-letter-spacing",Zt.letterSpacing,"1.5px"),Be=ft.extend("--ft-typography-overline-line-height",Zt.lineHeight,"1.6"),De=ft.extend("--ft-typography-overline-text-transform",Zt.textTransform,"uppercase"),je={fontFamily:ft.extend("--ft-typography-button-font-family",Wt),fontSize:ft.extend("--ft-typography-button-font-size",Zt.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-button-font-weight",Zt.fontWeight,"600"),letterSpacing:ft.extend("--ft-typography-button-letter-spacing",Zt.letterSpacing,"1.246px"),lineHeight:ft.extend("--ft-typography-button-line-height",Zt.lineHeight,"1.15"),textTransform:ft.extend("--ft-typography-button-text-transform",Zt.textTransform,"uppercase")},Ae=b`
|
|
111
123
|
.ft-typography--title {
|
|
112
124
|
font-family: ${Kt};
|
|
113
125
|
font-size: ${Vt};
|
|
@@ -116,7 +128,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
116
128
|
line-height: ${Xt};
|
|
117
129
|
text-transform: ${Yt};
|
|
118
130
|
}
|
|
119
|
-
`,Te=
|
|
131
|
+
`,Te=b`
|
|
120
132
|
.ft-typography--title-dense {
|
|
121
133
|
font-family: ${Gt};
|
|
122
134
|
font-size: ${Qt};
|
|
@@ -125,7 +137,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
125
137
|
line-height: ${ie};
|
|
126
138
|
text-transform: ${oe};
|
|
127
139
|
}
|
|
128
|
-
`,Le=
|
|
140
|
+
`,Le=b`
|
|
129
141
|
.ft-typography--subtitle1 {
|
|
130
142
|
font-family: ${ne};
|
|
131
143
|
font-size: ${se};
|
|
@@ -134,26 +146,26 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
134
146
|
line-height: ${ae};
|
|
135
147
|
text-transform: ${pe};
|
|
136
148
|
}
|
|
137
|
-
`,Ie=
|
|
149
|
+
`,Ie=b`
|
|
138
150
|
.ft-typography--subtitle2 {
|
|
139
151
|
font-family: ${ce};
|
|
140
152
|
font-size: ${de};
|
|
141
153
|
font-weight: ${fe};
|
|
142
154
|
letter-spacing: ${he};
|
|
143
155
|
line-height: ${ue};
|
|
144
|
-
text-transform: ${
|
|
156
|
+
text-transform: ${be};
|
|
145
157
|
}
|
|
146
158
|
|
|
147
|
-
`,Pe=
|
|
159
|
+
`,Pe=b`
|
|
148
160
|
.ft-typography--body1 {
|
|
149
|
-
font-family: ${
|
|
150
|
-
font-size: ${
|
|
151
|
-
font-weight: ${
|
|
152
|
-
letter-spacing: ${
|
|
153
|
-
line-height: ${
|
|
154
|
-
text-transform: ${
|
|
155
|
-
}
|
|
156
|
-
`,_e=
|
|
161
|
+
font-family: ${ve.fontFamily};
|
|
162
|
+
font-size: ${ve.fontSize};
|
|
163
|
+
font-weight: ${ve.fontWeight};
|
|
164
|
+
letter-spacing: ${ve.letterSpacing};
|
|
165
|
+
line-height: ${ve.lineHeight};
|
|
166
|
+
text-transform: ${ve.textTransform};
|
|
167
|
+
}
|
|
168
|
+
`,_e=b`
|
|
157
169
|
.ft-typography--body2 {
|
|
158
170
|
font-family: ${xe};
|
|
159
171
|
font-size: ${ye};
|
|
@@ -162,7 +174,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
162
174
|
line-height: ${$e};
|
|
163
175
|
text-transform: ${we};
|
|
164
176
|
}
|
|
165
|
-
`,He=
|
|
177
|
+
`,He=b`
|
|
166
178
|
.ft-typography--caption {
|
|
167
179
|
font-family: ${Oe.fontFamily};
|
|
168
180
|
font-size: ${Oe.fontSize};
|
|
@@ -171,16 +183,16 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
171
183
|
line-height: ${Oe.lineHeight};
|
|
172
184
|
text-transform: ${Oe.textTransform};
|
|
173
185
|
}
|
|
174
|
-
`,We=
|
|
186
|
+
`,We=b`
|
|
175
187
|
.ft-typography--breadcrumb {
|
|
176
|
-
font-family: ${
|
|
177
|
-
font-size: ${
|
|
188
|
+
font-family: ${ke};
|
|
189
|
+
font-size: ${Se};
|
|
178
190
|
font-weight: ${Ce};
|
|
179
191
|
letter-spacing: ${Ee};
|
|
180
192
|
line-height: ${Ne};
|
|
181
193
|
text-transform: ${Re};
|
|
182
194
|
}
|
|
183
|
-
`,Ze=
|
|
195
|
+
`,Ze=b`
|
|
184
196
|
.ft-typography--overline {
|
|
185
197
|
font-family: ${ze};
|
|
186
198
|
font-size: ${Me};
|
|
@@ -189,7 +201,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
189
201
|
line-height: ${Be};
|
|
190
202
|
text-transform: ${De};
|
|
191
203
|
}
|
|
192
|
-
`,Ke=
|
|
204
|
+
`,Ke=b`
|
|
193
205
|
.ft-typography--button {
|
|
194
206
|
font-family: ${je.fontFamily};
|
|
195
207
|
font-size: ${je.fontSize};
|
|
@@ -198,18 +210,18 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
198
210
|
line-height: ${je.lineHeight};
|
|
199
211
|
text-transform: ${je.textTransform};
|
|
200
212
|
}
|
|
201
|
-
`,Ve=
|
|
213
|
+
`,Ve=b`
|
|
202
214
|
.ft-typography {
|
|
203
215
|
vertical-align: inherit;
|
|
204
216
|
}
|
|
205
|
-
`;var Je=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class qe extends
|
|
217
|
+
`;var Je=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class qe extends vt{constructor(){super(...arguments),this.variant=_t.body1}render(){return this.element?Pt`
|
|
206
218
|
<${Lt(this.element)}
|
|
207
219
|
class="ft-typography ft-typography--${this.variant}">
|
|
208
220
|
<slot></slot>
|
|
209
221
|
</${Lt(this.element)}>
|
|
210
222
|
`:Pt`
|
|
211
223
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
212
|
-
`}}qe.styles=[Ae,Te,Le,Ie,Pe,_e,He,We,Ze,Ke,Ve],Je([o()],qe.prototype,"element",void 0),Je([o()],qe.prototype,"variant",void 0),p("ft-typography")(qe);const Xe={fontSize:ft.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ft.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ft.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ft.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ft.extend("--ft-input-label-border-color",ut.colorOutline),textColor:ft.extend("--ft-input-label-text-color",ut.colorOnSurfaceMedium),disabledTextColor:ft.extend("--ft-input-label-disabled-text-color",ut.colorOnSurfaceDisabled),colorSurface:ft.external(ut.colorSurface,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system")},Ye=
|
|
224
|
+
`}}qe.styles=[Ae,Te,Le,Ie,Pe,_e,He,We,Ze,Ke,Ve],Je([o()],qe.prototype,"element",void 0),Je([o()],qe.prototype,"variant",void 0),p("ft-typography")(qe);const Xe={fontSize:ft.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ft.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ft.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ft.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ft.extend("--ft-input-label-border-color",ut.colorOutline),textColor:ft.extend("--ft-input-label-text-color",ut.colorOnSurfaceMedium),disabledTextColor:ft.extend("--ft-input-label-disabled-text-color",ut.colorOnSurfaceDisabled),colorSurface:ft.external(ut.colorSurface,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system")},Ye=b`
|
|
213
225
|
.ft-input-label {
|
|
214
226
|
position: absolute;
|
|
215
227
|
inset: 0;
|
|
@@ -325,7 +337,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
325
337
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
326
338
|
border-top: none;
|
|
327
339
|
}
|
|
328
|
-
`;var Ge=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Qe extends
|
|
340
|
+
`;var Ge=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Qe extends vt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return W`
|
|
329
341
|
<div class="${jt(t)}">
|
|
330
342
|
${this.text?W`
|
|
331
343
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -334,7 +346,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
334
346
|
</div>
|
|
335
347
|
`:null}
|
|
336
348
|
</div>
|
|
337
|
-
`}}Qe.elementDefinitions={},Qe.styles=[He,Ye],Ge([o({type:String})],Qe.prototype,"text",void 0),Ge([o({type:Boolean})],Qe.prototype,"raised",void 0),Ge([o({type:Boolean})],Qe.prototype,"outlined",void 0),Ge([o({type:Boolean})],Qe.prototype,"disabled",void 0),Ge([o({type:Boolean})],Qe.prototype,"error",void 0),p("ft-input-label")(Qe);const ti=ft.extend("--ft-ripple-color",ut.colorContent),ei={color:ti,backgroundColor:ft.extend("--ft-ripple-background-color",ti),opacityContentOnSurfacePressed:ft.external(ut.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(ut.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(ut.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(ut.opacityContentOnSurfaceSelected,"Design system")},ii=ft.extend("--ft-ripple-color",ut.colorPrimary),oi=ii,ni=ft.extend("--ft-ripple-background-color",ii),si=ft.extend("--ft-ripple-color",ut.colorSecondary),ri=si,li=ft.extend("--ft-ripple-background-color",si),ai=
|
|
349
|
+
`}}Qe.elementDefinitions={},Qe.styles=[He,Ye],Ge([o({type:String})],Qe.prototype,"text",void 0),Ge([o({type:Boolean})],Qe.prototype,"raised",void 0),Ge([o({type:Boolean})],Qe.prototype,"outlined",void 0),Ge([o({type:Boolean})],Qe.prototype,"disabled",void 0),Ge([o({type:Boolean})],Qe.prototype,"error",void 0),p("ft-input-label")(Qe);const ti=ft.extend("--ft-ripple-color",ut.colorContent),ei={color:ti,backgroundColor:ft.extend("--ft-ripple-background-color",ti),opacityContentOnSurfacePressed:ft.external(ut.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(ut.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(ut.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(ut.opacityContentOnSurfaceSelected,"Design system")},ii=ft.extend("--ft-ripple-color",ut.colorPrimary),oi=ii,ni=ft.extend("--ft-ripple-background-color",ii),si=ft.extend("--ft-ripple-color",ut.colorSecondary),ri=si,li=ft.extend("--ft-ripple-background-color",si),ai=b`
|
|
338
350
|
:host {
|
|
339
351
|
display: contents;
|
|
340
352
|
}
|
|
@@ -423,7 +435,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
423
435
|
opacity: ${ei.opacityContentOnSurfacePressed};
|
|
424
436
|
transform: translate(-50%, -50%) scale(1);
|
|
425
437
|
}
|
|
426
|
-
`;var pi,ci,di=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class fi extends
|
|
438
|
+
`;var pi,ci,di=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class fi extends vt{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:n}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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 W`
|
|
427
439
|
<style>
|
|
428
440
|
.ft-ripple .ft-ripple--effect,
|
|
429
441
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -440,7 +452,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
440
452
|
<div class="ft-ripple--background"></div>
|
|
441
453
|
<div class="ft-ripple--effect"></div>
|
|
442
454
|
</div>
|
|
443
|
-
`}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"),n=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",n),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",n),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,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}fi.elementDefinitions={},fi.styles=ai,di([o({type:Boolean})],fi.prototype,"primary",void 0),di([o({type:Boolean})],fi.prototype,"secondary",void 0),di([o({type:Boolean})],fi.prototype,"unbounded",void 0),di([o({type:Boolean})],fi.prototype,"activated",void 0),di([o({type:Boolean})],fi.prototype,"selected",void 0),di([o({type:Boolean})],fi.prototype,"disabled",void 0),di([n()],fi.prototype,"hovered",void 0),di([n()],fi.prototype,"focused",void 0),di([n()],fi.prototype,"pressed",void 0),di([n()],fi.prototype,"rippling",void 0),di([n()],fi.prototype,"rippleSize",void 0),di([n()],fi.prototype,"originX",void 0),di([n()],fi.prototype,"originY",void 0),di([r(".ft-ripple")],fi.prototype,"ripple",void 0),di([r(".ft-ripple--effect")],fi.prototype,"rippleEffect",void 0),p("ft-ripple")(fi),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=""}(pi||(pi={})),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=""}(ci||(ci={})),new Map([...["abw"].map((t=>[t,ci.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,ci.AUDIO])),...["avi"].map((t=>[t,ci.AVI])),...["chm","xhs"].map((t=>[t,ci.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,ci.CODE])),...["csv"].map((t=>[t,ci.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ci.DITA])),...["epub"].map((t=>[t,ci.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ci.EXCEL])),...["flac"].map((t=>[t,ci.FLAC])),...["gif"].map((t=>[t,ci.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ci.GZIP])),...["html","htm","xhtml"].map((t=>[t,ci.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,ci.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ci.JPEG])),...["json"].map((t=>[t,ci.JSON])),...["m4a","m4p"].map((t=>[t,ci.M4A])),...["mov","qt"].map((t=>[t,ci.MOV])),...["mp3"].map((t=>[t,ci.MP3])),...["mp4","m4v"].map((t=>[t,ci.MP4])),...["ogg","oga"].map((t=>[t,ci.OGG])),...["pdf","ps"].map((t=>[t,ci.PDF])),...["png"].map((t=>[t,ci.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ci.POWERPOINT])),...["rar"].map((t=>[t,ci.RAR])),...["stp"].map((t=>[t,ci.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ci.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,ci.VIDEO])),...["wav"].map((t=>[t,ci.WAV])),...["wma"].map((t=>[t,ci.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ci.WORD])),...["xml","xsl","rdf"].map((t=>[t,ci.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ci.YAML])),...["zip"].map((t=>[t,ci.ZIP]))]);const hi={size:ft.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ft.extend("--ft-icon-fluid-topics-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ft.extend("--ft-icon-file-format-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ft.extend("--ft-icon-material-font-family",ft.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ft.create("--ft-icon-vertical-align","UNKNOWN","unset")},ui=
|
|
455
|
+
`}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"),n=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",n),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",n),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,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}fi.elementDefinitions={},fi.styles=ai,di([o({type:Boolean})],fi.prototype,"primary",void 0),di([o({type:Boolean})],fi.prototype,"secondary",void 0),di([o({type:Boolean})],fi.prototype,"unbounded",void 0),di([o({type:Boolean})],fi.prototype,"activated",void 0),di([o({type:Boolean})],fi.prototype,"selected",void 0),di([o({type:Boolean})],fi.prototype,"disabled",void 0),di([n()],fi.prototype,"hovered",void 0),di([n()],fi.prototype,"focused",void 0),di([n()],fi.prototype,"pressed",void 0),di([n()],fi.prototype,"rippling",void 0),di([n()],fi.prototype,"rippleSize",void 0),di([n()],fi.prototype,"originX",void 0),di([n()],fi.prototype,"originY",void 0),di([r(".ft-ripple")],fi.prototype,"ripple",void 0),di([r(".ft-ripple--effect")],fi.prototype,"rippleEffect",void 0),p("ft-ripple")(fi),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=""}(pi||(pi={})),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=""}(ci||(ci={})),new Map([...["abw"].map((t=>[t,ci.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,ci.AUDIO])),...["avi"].map((t=>[t,ci.AVI])),...["chm","xhs"].map((t=>[t,ci.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,ci.CODE])),...["csv"].map((t=>[t,ci.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ci.DITA])),...["epub"].map((t=>[t,ci.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ci.EXCEL])),...["flac"].map((t=>[t,ci.FLAC])),...["gif"].map((t=>[t,ci.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ci.GZIP])),...["html","htm","xhtml"].map((t=>[t,ci.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,ci.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ci.JPEG])),...["json"].map((t=>[t,ci.JSON])),...["m4a","m4p"].map((t=>[t,ci.M4A])),...["mov","qt"].map((t=>[t,ci.MOV])),...["mp3"].map((t=>[t,ci.MP3])),...["mp4","m4v"].map((t=>[t,ci.MP4])),...["ogg","oga"].map((t=>[t,ci.OGG])),...["pdf","ps"].map((t=>[t,ci.PDF])),...["png"].map((t=>[t,ci.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ci.POWERPOINT])),...["rar"].map((t=>[t,ci.RAR])),...["stp"].map((t=>[t,ci.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ci.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,ci.VIDEO])),...["wav"].map((t=>[t,ci.WAV])),...["wma"].map((t=>[t,ci.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ci.WORD])),...["xml","xsl","rdf"].map((t=>[t,ci.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ci.YAML])),...["zip"].map((t=>[t,ci.ZIP]))]);const hi={size:ft.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ft.extend("--ft-icon-fluid-topics-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ft.extend("--ft-icon-file-format-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ft.extend("--ft-icon-material-font-family",ft.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ft.create("--ft-icon-vertical-align","UNKNOWN","unset")},ui=b`
|
|
444
456
|
:host {
|
|
445
457
|
display: inline-block;
|
|
446
458
|
}
|
|
@@ -477,12 +489,12 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
477
489
|
.ft-icon--material {
|
|
478
490
|
font-family: ${hi.materialFontFamily}, "Material Icons", sans-serif;
|
|
479
491
|
}
|
|
480
|
-
`;var
|
|
492
|
+
`;var bi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(bi||(bi={}));var vi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class xi extends vt{constructor(){super(...arguments),this.variant=bi.fluid_topics,this.resolvedIcon=K}render(){const t="material"!==this.variant||this.value;return W`
|
|
481
493
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
482
494
|
${Dt(this.resolvedIcon)}
|
|
483
495
|
<slot ?hidden=${t}></slot>
|
|
484
496
|
</i>
|
|
485
|
-
`}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
|
|
497
|
+
`}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 bi.file_format:this.resolvedIcon=null!==(t=ci[i.toUpperCase()])&&void 0!==t?t:i;break;case bi.fluid_topics:this.resolvedIcon=null!==(e=pi[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||K}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}xi.elementDefinitions={},xi.styles=ui,vi([o()],xi.prototype,"variant",void 0),vi([o()],xi.prototype,"value",void 0),vi([n()],xi.prototype,"resolvedIcon",void 0),vi([r("slot")],xi.prototype,"slottedContent",void 0),p("ft-icon")(xi);const yi={labelSize:ft.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ft.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ft.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:ft.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:ft.extend("--ft-select-selected-option-color",ut.colorOnSurface),helperColor:ft.extend("--ft-select-helper-color",ut.colorOnSurfaceMedium),optionsColor:ft.extend("--ft-select-options-color",ut.colorOnSurface),optionsZIndex:ft.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ft.external(ut.colorSurface,"Design system"),colorOnSurfaceDisabled:ft.external(ut.colorOnSurfaceDisabled,"Design system"),colorPrimary:ft.external(ut.colorPrimary,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),elevation02:ft.external(ut.elevation02,"Design system"),colorError:ft.external(ut.colorError,"Design system")},gi=b`
|
|
486
498
|
*:focus {
|
|
487
499
|
outline: none;
|
|
488
500
|
}
|
|
@@ -555,8 +567,8 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
555
567
|
overflow: hidden;
|
|
556
568
|
white-space: nowrap;
|
|
557
569
|
text-overflow: ellipsis;
|
|
558
|
-
${ht(
|
|
559
|
-
${ht(
|
|
570
|
+
${ht(ve.fontSize,yi.selectedOptionSize)};
|
|
571
|
+
${ht(ve.lineHeight,yi.selectedOptionSize)};
|
|
560
572
|
}
|
|
561
573
|
|
|
562
574
|
.ft-select--in-error .ft-select--selected-option {
|
|
@@ -629,7 +641,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
629
641
|
.ft-select--in-error .ft-select--helper-text {
|
|
630
642
|
color: ${yi.colorError};
|
|
631
643
|
}
|
|
632
|
-
`;var mi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class $i extends
|
|
644
|
+
`;var mi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class $i extends vt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return W``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}$i.elementDefinitions={},mi([o({type:String})],$i.prototype,"label",void 0),mi([o({type:Object,converter:t=>t})],$i.prototype,"value",void 0),mi([o({type:Boolean,reflect:!0})],$i.prototype,"selected",void 0);class wi extends vt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,n;let s=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return W`
|
|
633
645
|
<div class="${jt(a)}" part="container">
|
|
634
646
|
<div class="ft-select--main-panel" part="main-panel">
|
|
635
647
|
<ft-input-label text="${this.label}"
|
|
@@ -677,7 +689,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
677
689
|
<ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
|
|
678
690
|
<span>${t.label}</span>
|
|
679
691
|
</div>
|
|
680
|
-
`}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,n,s;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(s=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}wi.elementDefinitions={"ft-input-label":Qe,"ft-typography":qe,"ft-ripple":fi,"ft-icon":xi},wi.styles=[_e,He,gi],mi([o({type:String})],wi.prototype,"label",void 0),mi([o({type:String})],wi.prototype,"helper",void 0),mi([o({type:Boolean})],wi.prototype,"outlined",void 0),mi([o({type:Boolean})],wi.prototype,"disabled",void 0),mi([o({type:Boolean})],wi.prototype,"error",void 0),mi([o({type:Boolean})],wi.prototype,"fixedMenuPosition",void 0),mi([o({type:Array})],wi.prototype,"options",void 0),mi([n()],wi.prototype,"selectedOption",void 0),mi([n()],wi.prototype,"optionsDisplayed",void 0),mi([n()],wi.prototype,"focusOptions",void 0),mi([r(".ft-select")],wi.prototype,"container",void 0),mi([r(".ft-select--options")],wi.prototype,"optionsMenu",void 0),mi([r(".ft-select--input-panel")],wi.prototype,"mainPanel",void 0),mi([r(".ft-select--option:first-child")],wi.prototype,"firstOption",void 0),mi([r(".ft-select--option:focus")],wi.prototype,"focusedOption",void 0),mi([r(".ft-select--option.ft-select--option-selected")],wi.prototype,"selectedOptionElement",void 0),mi([r(".ft-select--option:last-child")],wi.prototype,"lastOption",void 0),mi([r("slot")],wi.prototype,"optionsSlot",void 0),p("ft-select")(wi),p("ft-select-option")($i);const Oi={fontSize:ft.create("--ft-text-field-font-size","SIZE","14px"),labelSize:ft.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:ft.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:ft.extend("--ft-text-field-helper-color",ut.colorOnSurfaceMedium),colorPrimary:ft.external(ut.colorPrimary,"Design system"),colorOnSurface:ft.external(ut.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ft.external(ut.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system"),prefixColor:ft.extend("--ft-text-field-prefix-color",ut.colorOnSurfaceMedium),iconColor:ft.extend("--ft-text-field-icon-color",ut.colorOnSurfaceMedium)},
|
|
692
|
+
`}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,n,s;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(s=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}wi.elementDefinitions={"ft-input-label":Qe,"ft-typography":qe,"ft-ripple":fi,"ft-icon":xi},wi.styles=[_e,He,gi],mi([o({type:String})],wi.prototype,"label",void 0),mi([o({type:String})],wi.prototype,"helper",void 0),mi([o({type:Boolean})],wi.prototype,"outlined",void 0),mi([o({type:Boolean})],wi.prototype,"disabled",void 0),mi([o({type:Boolean})],wi.prototype,"error",void 0),mi([o({type:Boolean})],wi.prototype,"fixedMenuPosition",void 0),mi([o({type:Array})],wi.prototype,"options",void 0),mi([n()],wi.prototype,"selectedOption",void 0),mi([n()],wi.prototype,"optionsDisplayed",void 0),mi([n()],wi.prototype,"focusOptions",void 0),mi([r(".ft-select")],wi.prototype,"container",void 0),mi([r(".ft-select--options")],wi.prototype,"optionsMenu",void 0),mi([r(".ft-select--input-panel")],wi.prototype,"mainPanel",void 0),mi([r(".ft-select--option:first-child")],wi.prototype,"firstOption",void 0),mi([r(".ft-select--option:focus")],wi.prototype,"focusedOption",void 0),mi([r(".ft-select--option.ft-select--option-selected")],wi.prototype,"selectedOptionElement",void 0),mi([r(".ft-select--option:last-child")],wi.prototype,"lastOption",void 0),mi([r("slot")],wi.prototype,"optionsSlot",void 0),p("ft-select")(wi),p("ft-select-option")($i);const Oi={fontSize:ft.create("--ft-text-field-font-size","SIZE","14px"),labelSize:ft.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:ft.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:ft.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:ft.extend("--ft-text-field-helper-color",ut.colorOnSurfaceMedium),colorPrimary:ft.external(ut.colorPrimary,"Design system"),colorOnSurface:ft.external(ut.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ft.external(ut.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ft.external(ut.borderRadiusS,"Design system"),colorError:ft.external(ut.colorError,"Design system"),prefixColor:ft.extend("--ft-text-field-prefix-color",ut.colorOnSurfaceMedium),iconColor:ft.extend("--ft-text-field-icon-color",ut.colorOnSurfaceMedium)},ki=b`
|
|
681
693
|
*:focus {
|
|
682
694
|
outline: none;
|
|
683
695
|
}
|
|
@@ -692,7 +704,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
692
704
|
${ht(Xe.fontSize,Oi.fontSize)};
|
|
693
705
|
${ht(Xe.raisedFontSize,Oi.labelSize)};
|
|
694
706
|
${ht(Xe.verticalSpacing,Oi.verticalSpacing)};
|
|
695
|
-
${ht(Xe.horizontalSpacing,
|
|
707
|
+
${ht(Xe.horizontalSpacing,b`calc(${Oi.horizontalSpacing} - 4px)`)};
|
|
696
708
|
}
|
|
697
709
|
|
|
698
710
|
.ft-text-field--main-panel {
|
|
@@ -721,8 +733,8 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
721
733
|
display: flex;
|
|
722
734
|
align-items: center;
|
|
723
735
|
|
|
724
|
-
${ht(
|
|
725
|
-
${ht(
|
|
736
|
+
${ht(ve.fontSize,Oi.fontSize)};
|
|
737
|
+
${ht(ve.lineHeight,Oi.fontSize)};
|
|
726
738
|
|
|
727
739
|
padding: 0 ${Oi.horizontalSpacing};
|
|
728
740
|
}
|
|
@@ -800,7 +812,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
800
812
|
padding-right: ${Oi.horizontalSpacing};
|
|
801
813
|
color: ${Oi.iconColor};
|
|
802
814
|
}
|
|
803
|
-
`;var
|
|
815
|
+
`;var Si=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ci extends vt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return W`
|
|
804
816
|
<div class="${jt(t)}">
|
|
805
817
|
<div class="ft-text-field--main-panel">
|
|
806
818
|
<ft-input-label text="${this.label}"
|
|
@@ -835,7 +847,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
835
847
|
<ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
|
|
836
848
|
</ft-typography>`:void 0}
|
|
837
849
|
</div>
|
|
838
|
-
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}Ci.elementDefinitions={"ft-input-label":Qe,"ft-ripple":fi,"ft-typography":qe,"ft-icon":xi},Ci.styles=[Pe,
|
|
850
|
+
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}Ci.elementDefinitions={"ft-input-label":Qe,"ft-ripple":fi,"ft-typography":qe,"ft-icon":xi},Ci.styles=[Pe,ki],Si([o({type:String})],Ci.prototype,"label",void 0),Si([o({reflect:!0})],Ci.prototype,"value",void 0),Si([o({type:String})],Ci.prototype,"helper",void 0),Si([o({type:Boolean})],Ci.prototype,"outlined",void 0),Si([o({type:Boolean})],Ci.prototype,"disabled",void 0),Si([o({type:Boolean})],Ci.prototype,"error",void 0),Si([r(".ft-text-field--input")],Ci.prototype,"input",void 0),Si([o({type:String})],Ci.prototype,"prefix",void 0),Si([o({type:String})],Ci.prototype,"icon",void 0),Si([o({type:String})],Ci.prototype,"iconVariant",void 0),Si([n()],Ci.prototype,"focused",void 0),p("ft-text-field")(Ci);const Ei=ft.create("--ft-tooltip-distance","SIZE","4px"),Ni=ft.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ri=ft.create("--ft-tooltip-background-color","COLOR","#666666"),zi=ft.create("--ft-tooltip-z-index","NUMBER","1"),Mi=ft.external(ut.borderRadiusS,"Design system"),Fi=ft.create("--ft-tooltip-max-width","SIZE","150px"),Ui=b`
|
|
839
851
|
.ft-tooltip--container {
|
|
840
852
|
display: block;
|
|
841
853
|
position: relative;
|
|
@@ -867,7 +879,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
867
879
|
position: relative;
|
|
868
880
|
word-break: break-word;
|
|
869
881
|
}
|
|
870
|
-
`;var Bi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Di extends
|
|
882
|
+
`;var Bi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Di extends vt{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 W`
|
|
871
883
|
<div part="container"
|
|
872
884
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
873
885
|
@mouseenter=${this.onHover}
|
|
@@ -889,7 +901,7 @@ class Bt extends kt{constructor(t){if(super(t),this.it=K,t.type!==Ot)throw Error
|
|
|
889
901
|
* Copyright 2017 Google LLC
|
|
890
902
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
891
903
|
*/
|
|
892
|
-
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Di.prototype,"slotNodes",void 0),Bi([r(".ft-tooltip--container")],Di.prototype,"container",void 0),Bi([r("slot")],Di.prototype,"target",void 0),Bi([r(".ft-tooltip")],Di.prototype,"tooltip",void 0),Bi([r(".ft-tooltip--content")],Di.prototype,"tooltipContent",void 0),Bi([n()],Di.prototype,"visible",void 0),p("ft-tooltip")(Di);const ji={color:ft.extend("--ft-loader-color",ut.colorPrimary),size:ft.create("--ft-loader-size","SIZE","80px")},Ai=
|
|
904
|
+
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Di.prototype,"slotNodes",void 0),Bi([r(".ft-tooltip--container")],Di.prototype,"container",void 0),Bi([r("slot")],Di.prototype,"target",void 0),Bi([r(".ft-tooltip")],Di.prototype,"tooltip",void 0),Bi([r(".ft-tooltip--content")],Di.prototype,"tooltipContent",void 0),Bi([n()],Di.prototype,"visible",void 0),p("ft-tooltip")(Di);const ji={color:ft.extend("--ft-loader-color",ut.colorPrimary),size:ft.create("--ft-loader-size","SIZE","80px")},Ai=b`
|
|
893
905
|
:host {
|
|
894
906
|
line-height: 0;
|
|
895
907
|
}
|
|
@@ -958,14 +970,14 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
958
970
|
transform: translate(calc(0.35 * ${ji.size}), 0);
|
|
959
971
|
}
|
|
960
972
|
}
|
|
961
|
-
`;class Ti extends
|
|
973
|
+
`;class Ti extends vt{render(){return W`
|
|
962
974
|
<div class="ft-loader">
|
|
963
975
|
<div></div>
|
|
964
976
|
<div></div>
|
|
965
977
|
<div></div>
|
|
966
978
|
<div></div>
|
|
967
979
|
</div>
|
|
968
|
-
`}}Ti.styles=Ai,p("ft-loader")(Ti);const Li=ft.extend("--ft-button-color",ut.colorPrimary),Ii={backgroundColor:ft.extend("--ft-button-background-color",ut.colorSurface),borderRadius:ft.extend("--ft-button-border-radius",ut.borderRadiusL),color:Li,fontSize:ft.extend("--ft-button-font-size",je.fontSize),iconSize:ft.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ft.extend("--ft-button-ripple-color",Li),opacityDisabled:ft.external(ut.colorOpacityDisabled,"Design system")},Pi=ft.extend("--ft-button-primary-color",ft.extend("--ft-button-color",ut.colorOnPrimary)),_i={backgroundColor:ft.extend("--ft-button-primary-background-color",ft.extend("--ft-button-background-color",ut.colorPrimary)),color:Pi,rippleColor:ft.extend("--ft-button-primary-ripple-color",Pi)},Hi=ft.extend("--ft-button-dense-border-radius",ft.extend("--ft-button-border-radius",ut.borderRadiusM)),Wi=[xt,
|
|
980
|
+
`}}Ti.styles=Ai,p("ft-loader")(Ti);const Li=ft.extend("--ft-button-color",ut.colorPrimary),Ii={backgroundColor:ft.extend("--ft-button-background-color",ut.colorSurface),borderRadius:ft.extend("--ft-button-border-radius",ut.borderRadiusL),color:Li,fontSize:ft.extend("--ft-button-font-size",je.fontSize),iconSize:ft.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ft.extend("--ft-button-ripple-color",Li),opacityDisabled:ft.external(ut.colorOpacityDisabled,"Design system")},Pi=ft.extend("--ft-button-primary-color",ft.extend("--ft-button-color",ut.colorOnPrimary)),_i={backgroundColor:ft.extend("--ft-button-primary-background-color",ft.extend("--ft-button-background-color",ut.colorPrimary)),color:Pi,rippleColor:ft.extend("--ft-button-primary-ripple-color",Pi)},Hi=ft.extend("--ft-button-dense-border-radius",ft.extend("--ft-button-border-radius",ut.borderRadiusM)),Wi=[xt,b`
|
|
969
981
|
:host {
|
|
970
982
|
display: inline-block;
|
|
971
983
|
max-width: 100%;
|
|
@@ -1098,7 +1110,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
1098
1110
|
${ht(ji.size,Ii.iconSize)};
|
|
1099
1111
|
${ht(ji.color,"var(--ft-button-internal-color)")};
|
|
1100
1112
|
}
|
|
1101
|
-
`];var Zi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ki extends
|
|
1113
|
+
`];var Zi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ki extends vt{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=bi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!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":$t,"ft-no-text-select":!0};return this.addTooltipIfNeeded(W`
|
|
1102
1114
|
<button part="button"
|
|
1103
1115
|
class="${jt(t)}"
|
|
1104
1116
|
aria-label="${this.getLabel()}"
|
|
@@ -1120,7 +1132,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
1120
1132
|
</ft-tooltip>
|
|
1121
1133
|
`}resolveIcon(){return this.loading?W`
|
|
1122
1134
|
<ft-loader></ft-loader> `:this.icon?W`
|
|
1123
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:K}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}}Ki.elementDefinitions={"ft-ripple":fi,"ft-tooltip":Di,"ft-typography":qe,"ft-icon":xi,"ft-loader":Ti},Ki.styles=Wi,Zi([o({type:Boolean})],Ki.prototype,"primary",void 0),Zi([o({type:Boolean})],Ki.prototype,"outlined",void 0),Zi([o({type:Boolean})],Ki.prototype,"disabled",void 0),Zi([o({type:Boolean})],Ki.prototype,"dense",void 0),Zi([o({type:Boolean})],Ki.prototype,"round",void 0),Zi([o({type:String})],Ki.prototype,"label",void 0),Zi([o({type:String})],Ki.prototype,"icon",void 0),Zi([o({type:String})],Ki.prototype,"iconVariant",void 0),Zi([o({type:Boolean})],Ki.prototype,"trailingIcon",void 0),Zi([o({type:Boolean})],Ki.prototype,"loading",void 0),Zi([o({type:String})],Ki.prototype,"tooltipPosition",void 0),Zi([o({type:Boolean})],Ki.prototype,"hideTooltip",void 0),Zi([r(".ft-button")],Ki.prototype,"button",void 0),Zi([r(".ft-button--label slot")],Ki.prototype,"slottedContent",void 0),p("ft-button")(Ki);class Vi extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Ji={headerBackground:ft.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:ft.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:ft.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:ft.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:ft.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:ft.external(ut.colorOnSurfaceHigh,"Design system"),titleFont:ft.external(ut.titleFont,"Design system"),contentFont:ft.external(ut.contentFont,"Design system")},qi=
|
|
1135
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:K}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}}Ki.elementDefinitions={"ft-ripple":fi,"ft-tooltip":Di,"ft-typography":qe,"ft-icon":xi,"ft-loader":Ti},Ki.styles=Wi,Zi([o({type:Boolean})],Ki.prototype,"primary",void 0),Zi([o({type:Boolean})],Ki.prototype,"outlined",void 0),Zi([o({type:Boolean})],Ki.prototype,"disabled",void 0),Zi([o({type:Boolean})],Ki.prototype,"dense",void 0),Zi([o({type:Boolean})],Ki.prototype,"round",void 0),Zi([o({type:String})],Ki.prototype,"label",void 0),Zi([o({type:String})],Ki.prototype,"icon",void 0),Zi([o({type:String})],Ki.prototype,"iconVariant",void 0),Zi([o({type:Boolean})],Ki.prototype,"trailingIcon",void 0),Zi([o({type:Boolean})],Ki.prototype,"loading",void 0),Zi([o({type:String})],Ki.prototype,"tooltipPosition",void 0),Zi([o({type:Boolean})],Ki.prototype,"hideTooltip",void 0),Zi([r(".ft-button")],Ki.prototype,"button",void 0),Zi([r(".ft-button--label slot")],Ki.prototype,"slottedContent",void 0),p("ft-button")(Ki);class Vi extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Ji={headerBackground:ft.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:ft.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:ft.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:ft.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:ft.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:ft.external(ut.colorOnSurfaceHigh,"Design system"),titleFont:ft.external(ut.titleFont,"Design system"),contentFont:ft.external(ut.contentFont,"Design system")},qi=b`
|
|
1124
1136
|
:host {
|
|
1125
1137
|
display: block;
|
|
1126
1138
|
}
|
|
@@ -1228,7 +1240,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
1228
1240
|
.hidden {
|
|
1229
1241
|
visibility: hidden;
|
|
1230
1242
|
}
|
|
1231
|
-
`;var Xi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Yi=t=>W`${t}`,Gi=(t,e)=>t-e;class Qi extends
|
|
1243
|
+
`;var Xi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Yi=t=>W`${t}`,Gi=(t,e)=>t-e;class Qi extends vt{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return W`
|
|
1232
1244
|
<style>
|
|
1233
1245
|
.table {
|
|
1234
1246
|
grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-filterable-table",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"description": "A dynamic table with filters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@fluid-topics/ft-button": "0.3.
|
|
26
|
-
"@fluid-topics/ft-select": "0.3.
|
|
27
|
-
"@fluid-topics/ft-text-field": "0.3.
|
|
28
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
25
|
+
"@fluid-topics/ft-button": "0.3.16",
|
|
26
|
+
"@fluid-topics/ft-select": "0.3.16",
|
|
27
|
+
"@fluid-topics/ft-text-field": "0.3.16",
|
|
28
|
+
"@fluid-topics/ft-wc-utils": "0.3.16",
|
|
29
29
|
"lit": "2.2.8"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "0d05a101f09cb5819ee10930772a873e7e0cc87b"
|
|
32
32
|
}
|