@fluid-topics/ft-filterable-table 0.3.54 → 0.3.56
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.
|
@@ -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,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=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,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,p),p.standInClass=c);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)n.delete(t),u(t,p,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.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),s.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=x[x.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,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},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),s.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)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const 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=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ht){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -24,27 +24,27 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/}function
|
|
27
|
+
*/}function s(t){return o({...t,state:!0})}
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const
|
|
32
|
+
*/const n=({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(n.finisher=function(e){t(e,o)}),n}{const s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,o)}}
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function r(t,e){return
|
|
37
|
+
*/;function r(t,e){return n({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function p(t){const{slot:e,selector:i}=null!=t?t:{};return
|
|
42
|
+
*/var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function p(t){const{slot:e,selector:i}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/function c(t,e,i){let o,
|
|
47
|
+
*/function c(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?p({slot:s,flatten:e,selector:i}):n({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}const d=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function f(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,s;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!f(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!f(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(s=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,s[o]))return!1;for(o=i;0!=o--;){var n=s[o];if(!f(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}
|
|
48
48
|
/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2019 Google LLC
|
|
@@ -54,29 +54,29 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/;var w;const O=window,S=O.trustedTypes,k=S?S.emptyScript:"",C=O.reactiveElementPolyfillSupport,E={toAttribute(t,e){switch(e){case Boolean:t=t?k:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},N=(t,e)=>e!==t&&(e==e||t==t),z={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:N};class R 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=z){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
|
|
57
|
+
*/;var w;const O=window,S=O.trustedTypes,k=S?S.emptyScript:"",C=O.reactiveElementPolyfillSupport,E={toAttribute(t,e){switch(e){case Boolean:t=t?k:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},N=(t,e)=>e!==t&&(e==e||t==t),z={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:N};class R 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=z){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||z}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($(t))}else void 0!==t&&e.push($(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return m(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=z){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:E).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:E;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||N)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
58
58
|
/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2017 Google LLC
|
|
61
61
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
62
|
*/
|
|
63
|
-
var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:R}),(null!==(w=O.reactiveElementVersions)&&void 0!==w?w:O.reactiveElementVersions=[]).push("1.4.1");const F=window,U=F.trustedTypes,j=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,B=`lit$${(Math.random()+"").slice(9)}$`,D="?"+B,A=`<${D}>`,I=document,T=(t="")=>I.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_=t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,Z=/>/g,K=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),V=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,X=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Q=new WeakMap,tt=I.createTreeWalker(I,129,null,!1),et=(t,e)=>{const i=t.length-1,o=[];let n
|
|
63
|
+
var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:R}),(null!==(w=O.reactiveElementVersions)&&void 0!==w?w:O.reactiveElementVersions=[]).push("1.4.1");const F=window,U=F.trustedTypes,j=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,B=`lit$${(Math.random()+"").slice(9)}$`,D="?"+B,A=`<${D}>`,I=document,T=(t="")=>I.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_=t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,Z=/>/g,K=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),V=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,X=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Q=new WeakMap,tt=I.createTreeWalker(I,129,null,!1),et=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=W;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===W?"!--"===a[1]?r=H:void 0!==a[1]?r=Z:void 0!==a[2]?(q.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=K):void 0!==a[3]&&(r=K):r===K?">"===a[0]?(r=null!=s?s:W,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?K:'"'===a[3]?J:V):r===J||r===V?r=K:r===H||r===Z?r=W:(r=K,s=void 0);const d=r===K&&t[e+1].startsWith("/>")?" ":"";n+=r===W?i+A:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+B+d):i+B+(-2===p?(o.push(void 0),e):d)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(l):l,o]};class it{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=et(t,e);if(this.el=it.createElement(a,i),tt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=tt.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(B)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(B),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?pt:"@"===e[1]?ct:rt})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(q.test(o.tagName)){const t=o.textContent.split(B),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],T()),tt.nextNode(),l.push({type:2,index:++s});o.append(t[e],T())}}}else if(8===o.nodeType)if(o.data===D)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(B,t+1));)l.push({type:7,index:s}),t+=B.length-1}s++}}static createElement(t,e){const i=I.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,o){var s,n,r,l;if(e===Y)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=L(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.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)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=ot(t,a._$AS(t,e.values),a,o)),e}class st{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:I).importNode(i,!0);tt.currentNode=s;let n=tt.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new nt(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new dt(n,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=tt.nextNode(),r++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nt{constructor(t,e,i,o){var s;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),L(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==Y&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):_(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==G&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(I.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new st(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new it(t)),e}k(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new nt(this.O(T()),this.O(T()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class rt{constructor(t,e,i,o,s){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=ot(this,t,e,0),n=!L(t)||t!==this._$AH&&t!==Y,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=ot(this,o[i+r],e,r),l===Y&&(l=this._$AH[r]),n||(n=!L(l)||l!==this._$AH[r]),l===G?t=G:t!==G&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const at=U?U.emptyScript:"";class pt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ct extends rt{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ot(this,t,e,0))&&void 0!==i?i:G)===Y)return;const o=this._$AH,s=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==G&&(o===G||s);s&&this.element.removeEventListener(this.name,this,o),n&&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 dt{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){ot(this,t)}}const ft={P:"$lit$",A:B,M:D,C:1,L:et,R:st,D:_,V:ot,I:nt,H:rt,N:pt,U:ct,B:lt,F:dt},ht=F.litHtmlPolyfillSupport;null==ht||ht(it,nt),(null!==(M=F.litHtmlVersions)&&void 0!==M?M:F.litHtmlVersions=[]).push("2.4.0");
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var ut,vt;class xt extends R{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,
|
|
69
|
+
var ut,vt;class xt extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new nt(e.insertBefore(T(),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 Y}}xt.finalized=!0,xt._$litElement$=!0,null===(ut=globalThis.litElementHydrateSupport)||void 0===ut||ut.call(globalThis,{LitElement:xt});const bt=globalThis.litElementPolyfillSupport;null==bt||bt({LitElement:xt}),(null!==(vt=globalThis.litElementVersions)&&void 0!==vt?vt:globalThis.litElementVersions=[]).push("3.2.2");class gt{static create(t,e,i){let o=t=>g(null!=t?t:i),s=y`var(${g(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${g(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=y`var(${g(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${g(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):g(null!=e?e:t.defaultValue),o=y`var(${g(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${g(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function yt(t,e){return g(`${t.name}: ${e}`)}const mt={colorPrimary:gt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:gt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:gt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:gt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:gt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:gt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:gt.create("--ft-color-error","COLOR","#B00020"),colorOutline:gt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:gt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:gt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:gt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:gt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:gt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:gt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:gt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:gt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:gt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:gt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:gt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:gt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:gt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:gt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:gt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:gt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:gt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:gt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:gt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:gt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:gt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:gt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:gt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:gt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:gt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:gt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:gt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:gt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:gt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:gt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:gt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:gt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:gt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:gt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:gt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:gt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:gt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:gt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:gt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:gt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:gt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:gt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:gt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2021 Google LLC
|
|
73
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
-
*/var $t=function(t,e,i,o){for(var n
|
|
74
|
+
*/var $t=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class wt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return m(s,this.constructor.elementStyles),s}}}(xt)){constructor(){super(),this.exportpartsDebouncer=new e(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),X`
|
|
75
75
|
${t.map((t=>X`
|
|
76
76
|
<style>${t}</style>
|
|
77
77
|
`))}
|
|
78
78
|
${this.getTemplate()}
|
|
79
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,
|
|
79
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,n,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!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.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(", "))}}$t([o()],wt.prototype,"exportpartsPrefix",void 0),$t([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:{}})}([])],wt.prototype,"exportpartsPrefixes",void 0),$t([o()],wt.prototype,"customStylesheet",void 0);const Ot=y`
|
|
80
80
|
.ft-no-text-select {
|
|
81
81
|
-webkit-touch-callout: none;
|
|
82
82
|
-webkit-user-select: none;
|
|
@@ -85,7 +85,7 @@ var ut,vt;class xt extends R{constructor(){super(...arguments),this.renderOption
|
|
|
85
85
|
-ms-user-select: none;
|
|
86
86
|
user-select: none;
|
|
87
87
|
}
|
|
88
|
-
`;
|
|
88
|
+
`;y`
|
|
89
89
|
.ft-word-wrap {
|
|
90
90
|
white-space: normal;
|
|
91
91
|
word-wrap: break-word;
|
|
@@ -97,17 +97,28 @@ var ut,vt;class xt extends R{constructor(){super(...arguments),this.renderOption
|
|
|
97
97
|
-webkit-hyphens: auto;
|
|
98
98
|
hyphens: auto
|
|
99
99
|
}
|
|
100
|
-
`;const
|
|
100
|
+
`;const St=y`
|
|
101
|
+
.ft-safari-ellipsis-fix {
|
|
102
|
+
margin-right: 0;
|
|
103
|
+
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ft-safari-ellipsis-fix:after {
|
|
107
|
+
content: "\\0000a0";
|
|
108
|
+
display: inline-block;
|
|
109
|
+
width: 0;
|
|
110
|
+
}
|
|
111
|
+
`;var kt,Ct,Et;const Nt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Et=null===(Ct=null===(kt=window.safari)||void 0===kt?void 0:kt.pushNotification)||void 0===Ct?void 0:Ct.toString())&&void 0!==Et?Et:""),zt=1,Rt=2,Mt=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
101
112
|
/**
|
|
102
113
|
* @license
|
|
103
114
|
* Copyright 2017 Google LLC
|
|
104
115
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
105
|
-
*/class
|
|
116
|
+
*/class Ft{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)}}
|
|
106
117
|
/**
|
|
107
118
|
* @license
|
|
108
119
|
* Copyright 2020 Google LLC
|
|
109
120
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
-
*/const{I:
|
|
121
|
+
*/const{I:Ut}=ft,jt=()=>document.createComment(""),Bt=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(jt(),n),o=s.insertBefore(jt(),n);i=new Ut(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!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Dt=(t,e,i=t)=>(t._$AI(e,i),t),At={},It=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}},Tt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Lt=Mt(class extends Ft{constructor(t){if(super(t),t.type!==Rt)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.ht(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],p=[];let c,d,f=0,h=n.length-1,u=0,v=r.length-1;for(;f<=h&&u<=v;)if(null===n[f])f++;else if(null===n[h])h--;else if(a[f]===l[u])p[u]=Dt(n[f],r[u]),f++,u++;else if(a[h]===l[v])p[v]=Dt(n[h],r[v]),h--,v--;else if(a[f]===l[v])p[v]=Dt(n[f],r[v]),Bt(t,p[v+1],n[f]),f++,v--;else if(a[h]===l[u])p[u]=Dt(n[h],r[u]),Bt(t,n[f],n[h]),h--,u++;else if(void 0===c&&(c=Tt(l,u,v),d=Tt(a,f,h)),c.has(a[f]))if(c.has(a[h])){const e=d.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Bt(t,n[f]);Dt(e,r[u]),p[u]=e}else p[u]=Dt(i,r[u]),Bt(t,n[f],i),n[e]=null;u++}else It(n[h]),h--;else It(n[f]),f++;for(;u<=v;){const e=Bt(t,p[v+1]);Dt(e,r[u]),p[u++]=e}for(;f<=h;){const t=n[f++];null!==t&&It(t)}return this.ut=l,((t,e=At)=>{t._$AH=e})(t,p),Y}});
|
|
111
122
|
/**
|
|
112
123
|
* @license
|
|
113
124
|
* Copyright 2017 Google LLC
|
|
@@ -118,132 +129,132 @@ var ut,vt;class xt extends R{constructor(){super(...arguments),this.renderOption
|
|
|
118
129
|
* Copyright 2017 Google LLC
|
|
119
130
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
120
131
|
*/
|
|
121
|
-
class
|
|
132
|
+
class Pt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==Rt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this._t=void 0,this.it=t;if(t===Y)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:[]}}}Pt.directiveName="unsafeHTML",Pt.resultType=1;const _t=Mt(Pt),Wt=Mt(class extends Ft{constructor(t){var e;if(super(t),t.type!==zt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return Y}}),Ht=Symbol.for(""),Zt=t=>{if((null==t?void 0:t.r)===Ht)return null==t?void 0:t._$litStatic$},Kt=t=>({_$litStatic$:t,r:Ht}),Vt=new Map,Jt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=Zt(n));)a+=s+e[++p],c=!0;l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Vt.get(t))&&(r.raw=r,Vt.set(t,e=r)),i=l}return t(e,...i)})(X);
|
|
122
133
|
/**
|
|
123
134
|
* @license
|
|
124
135
|
* Copyright 2018 Google LLC
|
|
125
136
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
126
|
-
*/var
|
|
137
|
+
*/var qt;!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"}(qt||(qt={}));const Xt=gt.extend("--ft-typography-font-family",mt.titleFont),Yt=gt.extend("--ft-typography-font-family",mt.contentFont),Gt={fontFamily:Yt,fontSize:gt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:gt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:gt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:gt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:gt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Qt=gt.extend("--ft-typography-title-font-family",Xt),te=gt.extend("--ft-typography-title-font-size",Gt.fontSize,"20px"),ee=gt.extend("--ft-typography-title-font-weight",Gt.fontWeight,"normal"),ie=gt.extend("--ft-typography-title-letter-spacing",Gt.letterSpacing,"0.15px"),oe=gt.extend("--ft-typography-title-line-height",Gt.lineHeight,"1.2"),se=gt.extend("--ft-typography-title-text-transform",Gt.textTransform,"inherit"),ne=gt.extend("--ft-typography-title-dense-font-family",Xt),re=gt.extend("--ft-typography-title-dense-font-size",Gt.fontSize,"14px"),le=gt.extend("--ft-typography-title-dense-font-weight",Gt.fontWeight,"normal"),ae=gt.extend("--ft-typography-title-dense-letter-spacing",Gt.letterSpacing,"0.105px"),pe=gt.extend("--ft-typography-title-dense-line-height",Gt.lineHeight,"1.7"),ce=gt.extend("--ft-typography-title-dense-text-transform",Gt.textTransform,"inherit"),de=gt.extend("--ft-typography-subtitle1-font-family",Yt),fe=gt.extend("--ft-typography-subtitle1-font-size",Gt.fontSize,"16px"),he=gt.extend("--ft-typography-subtitle1-font-weight",Gt.fontWeight,"600"),ue=gt.extend("--ft-typography-subtitle1-letter-spacing",Gt.letterSpacing,"0.144px"),ve=gt.extend("--ft-typography-subtitle1-line-height",Gt.lineHeight,"1.5"),xe=gt.extend("--ft-typography-subtitle1-text-transform",Gt.textTransform,"inherit"),be=gt.extend("--ft-typography-subtitle2-font-family",Yt),ge=gt.extend("--ft-typography-subtitle2-font-size",Gt.fontSize,"14px"),ye=gt.extend("--ft-typography-subtitle2-font-weight",Gt.fontWeight,"normal"),me=gt.extend("--ft-typography-subtitle2-letter-spacing",Gt.letterSpacing,"0.098px"),$e=gt.extend("--ft-typography-subtitle2-line-height",Gt.lineHeight,"1.7"),we=gt.extend("--ft-typography-subtitle2-text-transform",Gt.textTransform,"inherit"),Oe={fontFamily:gt.extend("--ft-typography-body1-font-family",Yt),fontSize:gt.extend("--ft-typography-body1-font-size",Gt.fontSize,"16px"),fontWeight:gt.extend("--ft-typography-body1-font-weight",Gt.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-body1-letter-spacing",Gt.letterSpacing,"0.496px"),lineHeight:gt.extend("--ft-typography-body1-line-height",Gt.lineHeight,"1.5"),textTransform:gt.extend("--ft-typography-body1-text-transform",Gt.textTransform,"inherit")},Se=gt.extend("--ft-typography-body2-font-family",Yt),ke=gt.extend("--ft-typography-body2-font-size",Gt.fontSize,"14px"),Ce=gt.extend("--ft-typography-body2-font-weight",Gt.fontWeight,"normal"),Ee=gt.extend("--ft-typography-body2-letter-spacing",Gt.letterSpacing,"0.252px"),Ne=gt.extend("--ft-typography-body2-line-height",Gt.lineHeight,"1.4"),ze=gt.extend("--ft-typography-body2-text-transform",Gt.textTransform,"inherit"),Re={fontFamily:gt.extend("--ft-typography-caption-font-family",Yt),fontSize:gt.extend("--ft-typography-caption-font-size",Gt.fontSize,"12px"),fontWeight:gt.extend("--ft-typography-caption-font-weight",Gt.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-caption-letter-spacing",Gt.letterSpacing,"0.396px"),lineHeight:gt.extend("--ft-typography-caption-line-height",Gt.lineHeight,"1.33"),textTransform:gt.extend("--ft-typography-caption-text-transform",Gt.textTransform,"inherit")},Me=gt.extend("--ft-typography-breadcrumb-font-family",Yt),Fe=gt.extend("--ft-typography-breadcrumb-font-size",Gt.fontSize,"10px"),Ue=gt.extend("--ft-typography-breadcrumb-font-weight",Gt.fontWeight,"normal"),je=gt.extend("--ft-typography-breadcrumb-letter-spacing",Gt.letterSpacing,"0.33px"),Be=gt.extend("--ft-typography-breadcrumb-line-height",Gt.lineHeight,"1.6"),De=gt.extend("--ft-typography-breadcrumb-text-transform",Gt.textTransform,"inherit"),Ae=gt.extend("--ft-typography-overline-font-family",Yt),Ie=gt.extend("--ft-typography-overline-font-size",Gt.fontSize,"10px"),Te=gt.extend("--ft-typography-overline-font-weight",Gt.fontWeight,"normal"),Le=gt.extend("--ft-typography-overline-letter-spacing",Gt.letterSpacing,"1.5px"),Pe=gt.extend("--ft-typography-overline-line-height",Gt.lineHeight,"1.6"),_e=gt.extend("--ft-typography-overline-text-transform",Gt.textTransform,"uppercase"),We={fontFamily:gt.extend("--ft-typography-button-font-family",Yt),fontSize:gt.extend("--ft-typography-button-font-size",Gt.fontSize,"14px"),fontWeight:gt.extend("--ft-typography-button-font-weight",Gt.fontWeight,"600"),letterSpacing:gt.extend("--ft-typography-button-letter-spacing",Gt.letterSpacing,"1.246px"),lineHeight:gt.extend("--ft-typography-button-line-height",Gt.lineHeight,"1.15"),textTransform:gt.extend("--ft-typography-button-text-transform",Gt.textTransform,"uppercase")},He=y`
|
|
127
138
|
.ft-typography--title {
|
|
128
|
-
font-family: ${
|
|
129
|
-
font-size: ${
|
|
130
|
-
font-weight: ${
|
|
131
|
-
letter-spacing: ${
|
|
132
|
-
line-height: ${
|
|
133
|
-
text-transform: ${
|
|
134
|
-
}
|
|
135
|
-
`,
|
|
139
|
+
font-family: ${Qt};
|
|
140
|
+
font-size: ${te};
|
|
141
|
+
font-weight: ${ee};
|
|
142
|
+
letter-spacing: ${ie};
|
|
143
|
+
line-height: ${oe};
|
|
144
|
+
text-transform: ${se};
|
|
145
|
+
}
|
|
146
|
+
`,Ze=y`
|
|
136
147
|
.ft-typography--title-dense {
|
|
137
148
|
font-family: ${ne};
|
|
138
|
-
font-size: ${
|
|
139
|
-
font-weight: ${
|
|
140
|
-
letter-spacing: ${
|
|
141
|
-
line-height: ${
|
|
142
|
-
text-transform: ${
|
|
149
|
+
font-size: ${re};
|
|
150
|
+
font-weight: ${le};
|
|
151
|
+
letter-spacing: ${ae};
|
|
152
|
+
line-height: ${pe};
|
|
153
|
+
text-transform: ${ce};
|
|
143
154
|
}
|
|
144
|
-
`,
|
|
155
|
+
`,Ke=y`
|
|
145
156
|
.ft-typography--subtitle1 {
|
|
146
|
-
font-family: ${
|
|
147
|
-
font-size: ${
|
|
148
|
-
font-weight: ${
|
|
149
|
-
letter-spacing: ${
|
|
150
|
-
line-height: ${
|
|
151
|
-
text-transform: ${
|
|
157
|
+
font-family: ${de};
|
|
158
|
+
font-size: ${fe};
|
|
159
|
+
font-weight: ${he};
|
|
160
|
+
letter-spacing: ${ue};
|
|
161
|
+
line-height: ${ve};
|
|
162
|
+
text-transform: ${xe};
|
|
152
163
|
}
|
|
153
|
-
`,
|
|
164
|
+
`,Ve=y`
|
|
154
165
|
.ft-typography--subtitle2 {
|
|
155
|
-
font-family: ${
|
|
156
|
-
font-size: ${
|
|
157
|
-
font-weight: ${
|
|
158
|
-
letter-spacing: ${
|
|
159
|
-
line-height: ${
|
|
160
|
-
text-transform: ${
|
|
166
|
+
font-family: ${be};
|
|
167
|
+
font-size: ${ge};
|
|
168
|
+
font-weight: ${ye};
|
|
169
|
+
letter-spacing: ${me};
|
|
170
|
+
line-height: ${$e};
|
|
171
|
+
text-transform: ${we};
|
|
161
172
|
}
|
|
162
173
|
|
|
163
|
-
`,Ve=y`
|
|
164
|
-
.ft-typography--body1 {
|
|
165
|
-
font-family: ${we.fontFamily};
|
|
166
|
-
font-size: ${we.fontSize};
|
|
167
|
-
font-weight: ${we.fontWeight};
|
|
168
|
-
letter-spacing: ${we.letterSpacing};
|
|
169
|
-
line-height: ${we.lineHeight};
|
|
170
|
-
text-transform: ${we.textTransform};
|
|
171
|
-
}
|
|
172
174
|
`,Je=y`
|
|
173
|
-
.ft-typography--
|
|
174
|
-
font-family: ${Oe};
|
|
175
|
-
font-size: ${
|
|
176
|
-
font-weight: ${
|
|
177
|
-
letter-spacing: ${
|
|
178
|
-
line-height: ${
|
|
179
|
-
text-transform: ${
|
|
175
|
+
.ft-typography--body1 {
|
|
176
|
+
font-family: ${Oe.fontFamily};
|
|
177
|
+
font-size: ${Oe.fontSize};
|
|
178
|
+
font-weight: ${Oe.fontWeight};
|
|
179
|
+
letter-spacing: ${Oe.letterSpacing};
|
|
180
|
+
line-height: ${Oe.lineHeight};
|
|
181
|
+
text-transform: ${Oe.textTransform};
|
|
180
182
|
}
|
|
181
183
|
`,qe=y`
|
|
182
|
-
.ft-typography--
|
|
183
|
-
font-family: ${
|
|
184
|
-
font-size: ${
|
|
185
|
-
font-weight: ${
|
|
186
|
-
letter-spacing: ${
|
|
187
|
-
line-height: ${
|
|
188
|
-
text-transform: ${ze
|
|
184
|
+
.ft-typography--body2 {
|
|
185
|
+
font-family: ${Se};
|
|
186
|
+
font-size: ${ke};
|
|
187
|
+
font-weight: ${Ce};
|
|
188
|
+
letter-spacing: ${Ee};
|
|
189
|
+
line-height: ${Ne};
|
|
190
|
+
text-transform: ${ze};
|
|
189
191
|
}
|
|
190
192
|
`,Xe=y`
|
|
191
|
-
.ft-typography--
|
|
192
|
-
font-family: ${Re};
|
|
193
|
-
font-size: ${
|
|
194
|
-
font-weight: ${
|
|
195
|
-
letter-spacing: ${
|
|
196
|
-
line-height: ${
|
|
197
|
-
text-transform: ${
|
|
193
|
+
.ft-typography--caption {
|
|
194
|
+
font-family: ${Re.fontFamily};
|
|
195
|
+
font-size: ${Re.fontSize};
|
|
196
|
+
font-weight: ${Re.fontWeight};
|
|
197
|
+
letter-spacing: ${Re.letterSpacing};
|
|
198
|
+
line-height: ${Re.lineHeight};
|
|
199
|
+
text-transform: ${Re.textTransform};
|
|
198
200
|
}
|
|
199
201
|
`,Ye=y`
|
|
200
|
-
.ft-typography--
|
|
201
|
-
font-family: ${
|
|
202
|
-
font-size: ${
|
|
203
|
-
font-weight: ${
|
|
204
|
-
letter-spacing: ${
|
|
205
|
-
line-height: ${
|
|
206
|
-
text-transform: ${
|
|
202
|
+
.ft-typography--breadcrumb {
|
|
203
|
+
font-family: ${Me};
|
|
204
|
+
font-size: ${Fe};
|
|
205
|
+
font-weight: ${Ue};
|
|
206
|
+
letter-spacing: ${je};
|
|
207
|
+
line-height: ${Be};
|
|
208
|
+
text-transform: ${De};
|
|
207
209
|
}
|
|
208
210
|
`,Ge=y`
|
|
209
|
-
.ft-typography--
|
|
210
|
-
font-family: ${
|
|
211
|
-
font-size: ${
|
|
212
|
-
font-weight: ${
|
|
213
|
-
letter-spacing: ${
|
|
214
|
-
line-height: ${
|
|
215
|
-
text-transform: ${_e
|
|
211
|
+
.ft-typography--overline {
|
|
212
|
+
font-family: ${Ae};
|
|
213
|
+
font-size: ${Ie};
|
|
214
|
+
font-weight: ${Te};
|
|
215
|
+
letter-spacing: ${Le};
|
|
216
|
+
line-height: ${Pe};
|
|
217
|
+
text-transform: ${_e};
|
|
216
218
|
}
|
|
217
219
|
`,Qe=y`
|
|
220
|
+
.ft-typography--button {
|
|
221
|
+
font-family: ${We.fontFamily};
|
|
222
|
+
font-size: ${We.fontSize};
|
|
223
|
+
font-weight: ${We.fontWeight};
|
|
224
|
+
letter-spacing: ${We.letterSpacing};
|
|
225
|
+
line-height: ${We.lineHeight};
|
|
226
|
+
text-transform: ${We.textTransform};
|
|
227
|
+
}
|
|
228
|
+
`,ti=y`
|
|
218
229
|
.ft-typography {
|
|
219
230
|
vertical-align: inherit;
|
|
220
231
|
}
|
|
221
|
-
`;var
|
|
222
|
-
<${
|
|
232
|
+
`;var ei=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ii extends wt{constructor(){super(...arguments),this.variant=qt.body1}render(){return this.element?Jt`
|
|
233
|
+
<${Kt(this.element)}
|
|
223
234
|
class="ft-typography ft-typography--${this.variant}">
|
|
224
235
|
<slot></slot>
|
|
225
|
-
</${
|
|
226
|
-
`:
|
|
236
|
+
</${Kt(this.element)}>
|
|
237
|
+
`:Jt`
|
|
227
238
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
228
|
-
`}}
|
|
239
|
+
`}}ii.styles=[He,Ze,Ke,Ve,Je,qe,Xe,Ye,Ge,Qe,ti],ei([o()],ii.prototype,"element",void 0),ei([o()],ii.prototype,"variant",void 0),d("ft-typography")(ii);const oi={fontSize:gt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:gt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:gt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:gt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:gt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:gt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:gt.extend("--ft-input-label-border-color",mt.colorOutline),textColor:gt.extend("--ft-input-label-text-color",mt.colorOnSurfaceMedium),disabledTextColor:gt.extend("--ft-input-label-disabled-text-color",mt.colorOnSurfaceDisabled),colorSurface:gt.external(mt.colorSurface,"Design system"),borderRadiusS:gt.external(mt.borderRadiusS,"Design system"),colorError:gt.external(mt.colorError,"Design system")},si=y`
|
|
229
240
|
.ft-input-label {
|
|
230
241
|
position: absolute;
|
|
231
242
|
inset: 0;
|
|
232
243
|
display: flex;
|
|
233
|
-
background-color: ${
|
|
234
|
-
border-radius: ${
|
|
244
|
+
background-color: ${oi.colorSurface};
|
|
245
|
+
border-radius: ${oi.borderRadiusS} ${oi.borderRadiusS} 0 0;
|
|
235
246
|
}
|
|
236
247
|
|
|
237
248
|
.ft-input-label--outlined {
|
|
238
|
-
border-radius: ${
|
|
249
|
+
border-radius: ${oi.borderRadiusS};
|
|
239
250
|
}
|
|
240
251
|
|
|
241
252
|
.ft-input-label {
|
|
242
|
-
border-color: ${
|
|
253
|
+
border-color: ${oi.borderColor};
|
|
243
254
|
}
|
|
244
255
|
|
|
245
256
|
.ft-input-label.ft-input-label--in-error {
|
|
246
|
-
border-color: ${
|
|
257
|
+
border-color: ${oi.colorError}
|
|
247
258
|
}
|
|
248
259
|
|
|
249
260
|
.ft-input-label:before,
|
|
@@ -256,7 +267,7 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
256
267
|
}
|
|
257
268
|
|
|
258
269
|
.ft-input-label:before {
|
|
259
|
-
width: calc(${
|
|
270
|
+
width: calc(${oi.horizontalSpacing} - 4px);
|
|
260
271
|
flex-shrink: 0;
|
|
261
272
|
}
|
|
262
273
|
|
|
@@ -272,20 +283,20 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
272
283
|
border-bottom-width: 1px;
|
|
273
284
|
border-bottom-style: solid;
|
|
274
285
|
border-color: inherit;
|
|
275
|
-
color: ${
|
|
286
|
+
color: ${oi.textColor};
|
|
276
287
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
277
|
-
max-width: calc(${
|
|
288
|
+
max-width: calc(${oi.labelMaxWidth} - 2 * (${oi.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
278
289
|
text-overflow: ellipsis;
|
|
279
|
-
${yt(
|
|
280
|
-
${yt(
|
|
290
|
+
${yt(Re.fontSize,oi.fontSize)};
|
|
291
|
+
${yt(Re.lineHeight,oi.fontSize)};
|
|
281
292
|
}
|
|
282
293
|
|
|
283
294
|
.ft-input-label--in-error .ft-input-label--text {
|
|
284
|
-
color: ${
|
|
295
|
+
color: ${oi.colorError}
|
|
285
296
|
}
|
|
286
297
|
|
|
287
298
|
.ft-input-label--disabled .ft-input-label--text {
|
|
288
|
-
color: ${
|
|
299
|
+
color: ${oi.disabledTextColor};
|
|
289
300
|
}
|
|
290
301
|
|
|
291
302
|
.ft-input-label--hidden-text {
|
|
@@ -302,19 +313,19 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
302
313
|
overflow: hidden;
|
|
303
314
|
white-space: nowrap;
|
|
304
315
|
text-overflow: ellipsis;
|
|
305
|
-
padding: ${
|
|
306
|
-
margin: calc(${
|
|
316
|
+
padding: ${oi.verticalSpacing} 4px;
|
|
317
|
+
margin: calc(${oi.verticalSpacing} * -1) 0;
|
|
307
318
|
max-width: 100%;
|
|
308
319
|
box-sizing: border-box;
|
|
309
320
|
}
|
|
310
321
|
|
|
311
322
|
.ft-input-label--raised .ft-input-label--text {
|
|
312
|
-
${yt(
|
|
313
|
-
${yt(
|
|
323
|
+
${yt(Re.fontSize,oi.raisedFontSize)};
|
|
324
|
+
${yt(Re.lineHeight,oi.raisedFontSize)};
|
|
314
325
|
}
|
|
315
326
|
|
|
316
327
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
317
|
-
top: ${
|
|
328
|
+
top: ${oi.verticalSpacing};
|
|
318
329
|
}
|
|
319
330
|
|
|
320
331
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -327,28 +338,28 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
327
338
|
.ft-input-label--outlined:before {
|
|
328
339
|
border-left-width: 1px;
|
|
329
340
|
border-left-style: solid;
|
|
330
|
-
border-radius: ${
|
|
341
|
+
border-radius: ${oi.borderRadiusS} 0 0 ${oi.borderRadiusS};
|
|
331
342
|
}
|
|
332
343
|
|
|
333
344
|
.ft-input-label--outlined:after {
|
|
334
345
|
border-right-width: 1px;
|
|
335
346
|
border-right-style: solid;
|
|
336
|
-
border-radius: 0 ${
|
|
347
|
+
border-radius: 0 ${oi.borderRadiusS} ${oi.borderRadiusS} 0;
|
|
337
348
|
}
|
|
338
349
|
|
|
339
350
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
340
351
|
padding: 2px 4px;
|
|
341
|
-
z-index: ${
|
|
342
|
-
background-color: ${
|
|
343
|
-
border-radius: ${
|
|
352
|
+
z-index: ${oi.raisedZIndex};
|
|
353
|
+
background-color: ${oi.colorSurface};
|
|
354
|
+
border-radius: ${oi.borderRadiusS};
|
|
344
355
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
345
356
|
}
|
|
346
357
|
|
|
347
358
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
348
359
|
border-top: none;
|
|
349
360
|
}
|
|
350
|
-
`;var ni=function(t,e,i,o){for(var n
|
|
351
|
-
<div class="${
|
|
361
|
+
`;var ni=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ri extends wt{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 X`
|
|
362
|
+
<div class="${Wt(t)}">
|
|
352
363
|
${this.text?X`
|
|
353
364
|
<div class="ft-input-label--text ft-typography--caption">
|
|
354
365
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -356,7 +367,7 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
356
367
|
</div>
|
|
357
368
|
`:null}
|
|
358
369
|
</div>
|
|
359
|
-
`}}
|
|
370
|
+
`}}ri.elementDefinitions={},ri.styles=[Xe,si],ni([o({type:String})],ri.prototype,"text",void 0),ni([o({type:Boolean})],ri.prototype,"raised",void 0),ni([o({type:Boolean})],ri.prototype,"outlined",void 0),ni([o({type:Boolean})],ri.prototype,"disabled",void 0),ni([o({type:Boolean})],ri.prototype,"error",void 0),d("ft-input-label")(ri);const li=gt.extend("--ft-ripple-color",mt.colorContent),ai={color:li,backgroundColor:gt.extend("--ft-ripple-background-color",li),opacityContentOnSurfacePressed:gt.external(mt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:gt.external(mt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:gt.external(mt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:gt.external(mt.opacityContentOnSurfaceSelected,"Design system")},pi=gt.extend("--ft-ripple-color",mt.colorPrimary),ci=pi,di=gt.extend("--ft-ripple-background-color",pi),fi=gt.extend("--ft-ripple-color",mt.colorSecondary),hi=fi,ui=gt.extend("--ft-ripple-background-color",fi),vi=y`
|
|
360
371
|
:host {
|
|
361
372
|
display: contents;
|
|
362
373
|
}
|
|
@@ -378,27 +389,27 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
378
389
|
}
|
|
379
390
|
|
|
380
391
|
.ft-ripple .ft-ripple--background {
|
|
381
|
-
background-color: ${
|
|
392
|
+
background-color: ${ai.backgroundColor};
|
|
382
393
|
}
|
|
383
394
|
|
|
384
395
|
.ft-ripple .ft-ripple--effect {
|
|
385
|
-
background-color: ${
|
|
396
|
+
background-color: ${ai.color};
|
|
386
397
|
}
|
|
387
398
|
|
|
388
399
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
389
|
-
background-color: ${
|
|
400
|
+
background-color: ${ui};
|
|
390
401
|
}
|
|
391
402
|
|
|
392
403
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
393
|
-
background-color: ${
|
|
404
|
+
background-color: ${hi};
|
|
394
405
|
}
|
|
395
406
|
|
|
396
407
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
397
|
-
background-color: ${
|
|
408
|
+
background-color: ${di};
|
|
398
409
|
}
|
|
399
410
|
|
|
400
411
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
401
|
-
background-color: ${
|
|
412
|
+
background-color: ${ci};
|
|
402
413
|
}
|
|
403
414
|
|
|
404
415
|
.ft-ripple .ft-ripple--background {
|
|
@@ -430,22 +441,22 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
430
441
|
}
|
|
431
442
|
|
|
432
443
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
433
|
-
opacity: ${
|
|
444
|
+
opacity: ${ai.opacityContentOnSurfaceHover};
|
|
434
445
|
}
|
|
435
446
|
|
|
436
447
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
437
|
-
opacity: ${
|
|
448
|
+
opacity: ${ai.opacityContentOnSurfaceSelected};
|
|
438
449
|
}
|
|
439
450
|
|
|
440
451
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
441
|
-
opacity: ${
|
|
452
|
+
opacity: ${ai.opacityContentOnSurfaceFocused};
|
|
442
453
|
}
|
|
443
454
|
|
|
444
455
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
445
|
-
opacity: ${
|
|
456
|
+
opacity: ${ai.opacityContentOnSurfacePressed};
|
|
446
457
|
transform: translate(-50%, -50%) scale(1);
|
|
447
458
|
}
|
|
448
|
-
`;var
|
|
459
|
+
`;var xi,bi,gi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class yi extends wt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.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 X`
|
|
449
460
|
<style>
|
|
450
461
|
.ft-ripple .ft-ripple--effect,
|
|
451
462
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -458,11 +469,11 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
458
469
|
top: ${this.originY}px;
|
|
459
470
|
}
|
|
460
471
|
</style>
|
|
461
|
-
<div class="${
|
|
472
|
+
<div class="${Wt(t)}">
|
|
462
473
|
<div class="ft-ripple--background"></div>
|
|
463
474
|
<div class="ft-ripple--effect"></div>
|
|
464
475
|
</div>
|
|
465
|
-
`}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()}}gi.elementDefinitions={},gi.styles=ui,bi([o({type:Boolean})],gi.prototype,"primary",void 0),bi([o({type:Boolean})],gi.prototype,"secondary",void 0),bi([o({type:Boolean})],gi.prototype,"unbounded",void 0),bi([o({type:Boolean})],gi.prototype,"activated",void 0),bi([o({type:Boolean})],gi.prototype,"selected",void 0),bi([o({type:Boolean})],gi.prototype,"disabled",void 0),bi([n()],gi.prototype,"hovered",void 0),bi([n()],gi.prototype,"focused",void 0),bi([n()],gi.prototype,"pressed",void 0),bi([n()],gi.prototype,"rippling",void 0),bi([n()],gi.prototype,"rippleSize",void 0),bi([n()],gi.prototype,"originX",void 0),bi([n()],gi.prototype,"originY",void 0),bi([r(".ft-ripple")],gi.prototype,"ripple",void 0),bi([r(".ft-ripple--effect")],gi.prototype,"rippleEffect",void 0),d("ft-ripple")(gi),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(vi||(vi={})),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=""}(xi||(xi={})),new Map([...["abw"].map((t=>[t,xi.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,xi.AUDIO])),...["avi"].map((t=>[t,xi.AVI])),...["chm","xhs"].map((t=>[t,xi.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,xi.CODE])),...["csv"].map((t=>[t,xi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xi.DITA])),...["epub"].map((t=>[t,xi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xi.EXCEL])),...["flac"].map((t=>[t,xi.FLAC])),...["gif"].map((t=>[t,xi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xi.GZIP])),...["html","htm","xhtml"].map((t=>[t,xi.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,xi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xi.JPEG])),...["json"].map((t=>[t,xi.JSON])),...["m4a","m4p"].map((t=>[t,xi.M4A])),...["mov","qt"].map((t=>[t,xi.MOV])),...["mp3"].map((t=>[t,xi.MP3])),...["mp4","m4v"].map((t=>[t,xi.MP4])),...["ogg","oga"].map((t=>[t,xi.OGG])),...["pdf","ps"].map((t=>[t,xi.PDF])),...["png"].map((t=>[t,xi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xi.POWERPOINT])),...["rar"].map((t=>[t,xi.RAR])),...["stp"].map((t=>[t,xi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xi.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,xi.VIDEO])),...["wav"].map((t=>[t,xi.WAV])),...["wma"].map((t=>[t,xi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xi.WORD])),...["xml","xsl","rdf"].map((t=>[t,xi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xi.YAML])),...["zip"].map((t=>[t,xi.ZIP]))]);const yi={size:gt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:gt.extend("--ft-icon-fluid-topics-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:gt.extend("--ft-icon-file-format-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:gt.extend("--ft-icon-material-font-family",gt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:gt.create("--ft-icon-vertical-align","UNKNOWN","unset")},mi=y`
|
|
476
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}yi.elementDefinitions={},yi.styles=vi,gi([o({type:Boolean})],yi.prototype,"primary",void 0),gi([o({type:Boolean})],yi.prototype,"secondary",void 0),gi([o({type:Boolean})],yi.prototype,"unbounded",void 0),gi([o({type:Boolean})],yi.prototype,"activated",void 0),gi([o({type:Boolean})],yi.prototype,"selected",void 0),gi([o({type:Boolean})],yi.prototype,"disabled",void 0),gi([s()],yi.prototype,"hovered",void 0),gi([s()],yi.prototype,"focused",void 0),gi([s()],yi.prototype,"pressed",void 0),gi([s()],yi.prototype,"rippling",void 0),gi([s()],yi.prototype,"rippleSize",void 0),gi([s()],yi.prototype,"originX",void 0),gi([s()],yi.prototype,"originY",void 0),gi([r(".ft-ripple")],yi.prototype,"ripple",void 0),gi([r(".ft-ripple--effect")],yi.prototype,"rippleEffect",void 0),d("ft-ripple")(yi),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(xi||(xi={})),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=""}(bi||(bi={})),new Map([...["abw"].map((t=>[t,bi.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,bi.AUDIO])),...["avi"].map((t=>[t,bi.AVI])),...["chm","xhs"].map((t=>[t,bi.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,bi.CODE])),...["csv"].map((t=>[t,bi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,bi.DITA])),...["epub"].map((t=>[t,bi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,bi.EXCEL])),...["flac"].map((t=>[t,bi.FLAC])),...["gif"].map((t=>[t,bi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,bi.GZIP])),...["html","htm","xhtml"].map((t=>[t,bi.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,bi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,bi.JPEG])),...["json"].map((t=>[t,bi.JSON])),...["m4a","m4p"].map((t=>[t,bi.M4A])),...["mov","qt"].map((t=>[t,bi.MOV])),...["mp3"].map((t=>[t,bi.MP3])),...["mp4","m4v"].map((t=>[t,bi.MP4])),...["ogg","oga"].map((t=>[t,bi.OGG])),...["pdf","ps"].map((t=>[t,bi.PDF])),...["png"].map((t=>[t,bi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,bi.POWERPOINT])),...["rar"].map((t=>[t,bi.RAR])),...["stp"].map((t=>[t,bi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,bi.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,bi.VIDEO])),...["wav"].map((t=>[t,bi.WAV])),...["wma"].map((t=>[t,bi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,bi.WORD])),...["xml","xsl","rdf"].map((t=>[t,bi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,bi.YAML])),...["zip"].map((t=>[t,bi.ZIP]))]);const mi={size:gt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:gt.extend("--ft-icon-fluid-topics-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:gt.extend("--ft-icon-file-format-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:gt.extend("--ft-icon-material-font-family",gt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:gt.create("--ft-icon-vertical-align","UNKNOWN","unset")},$i=y`
|
|
466
477
|
:host, i.ft-icon {
|
|
467
478
|
display: inline-flex;
|
|
468
479
|
align-items: center;
|
|
@@ -471,14 +482,14 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
471
482
|
}
|
|
472
483
|
|
|
473
484
|
:host {
|
|
474
|
-
width: ${
|
|
475
|
-
height: ${
|
|
485
|
+
width: ${mi.size};
|
|
486
|
+
height: ${mi.size};
|
|
476
487
|
}
|
|
477
488
|
|
|
478
489
|
i.ft-icon {
|
|
479
490
|
width: 100%;
|
|
480
491
|
height: 100%;
|
|
481
|
-
font-size: ${
|
|
492
|
+
font-size: ${mi.size};
|
|
482
493
|
line-height: 1;
|
|
483
494
|
font-weight: normal;
|
|
484
495
|
text-transform: none;
|
|
@@ -489,32 +500,32 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
489
500
|
text-rendering: auto;
|
|
490
501
|
-webkit-font-smoothing: antialiased;
|
|
491
502
|
-moz-osx-font-smoothing: grayscale;
|
|
492
|
-
vertical-align: ${
|
|
503
|
+
vertical-align: ${mi.verticalAlign};
|
|
493
504
|
}
|
|
494
505
|
|
|
495
506
|
i.ft-icon.ft-icon--fluid-topics {
|
|
496
|
-
font-family: ${
|
|
507
|
+
font-family: ${mi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
497
508
|
|
|
498
509
|
/* Ugly fix because font is broken */
|
|
499
|
-
font-size: calc(0.9 * ${
|
|
510
|
+
font-size: calc(0.9 * ${mi.size});
|
|
500
511
|
position: relative;
|
|
501
512
|
top: -5%;
|
|
502
513
|
justify-content: center;
|
|
503
514
|
}
|
|
504
515
|
|
|
505
516
|
.ft-icon--file-format {
|
|
506
|
-
font-family: ${
|
|
517
|
+
font-family: ${mi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
507
518
|
}
|
|
508
519
|
|
|
509
520
|
.ft-icon--material {
|
|
510
|
-
font-family: ${
|
|
521
|
+
font-family: ${mi.materialFontFamily}, "Material Icons", sans-serif;
|
|
511
522
|
}
|
|
512
|
-
`;var
|
|
523
|
+
`;var wi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(wi||(wi={}));var Oi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Si extends wt{constructor(){super(...arguments),this.variant=wi.fluid_topics,this.resolvedIcon=G}render(){const t="material"!==this.variant||this.value;return X`
|
|
513
524
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
514
|
-
${
|
|
525
|
+
${_t(this.resolvedIcon)}
|
|
515
526
|
<slot ?hidden=${t}></slot>
|
|
516
527
|
</i>
|
|
517
|
-
`}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
|
|
528
|
+
`}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 wi.file_format:this.resolvedIcon=null!==(t=bi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case wi.fluid_topics:this.resolvedIcon=null!==(e=xi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||G}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Si.elementDefinitions={},Si.styles=$i,Oi([o()],Si.prototype,"variant",void 0),Oi([o()],Si.prototype,"value",void 0),Oi([s()],Si.prototype,"resolvedIcon",void 0),Oi([r("slot")],Si.prototype,"slottedContent",void 0),d("ft-icon")(Si);const ki={labelSize:gt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:gt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:gt.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:gt.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:gt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:gt.extend("--ft-select-selected-option-color",mt.colorOnSurface),helperColor:gt.extend("--ft-select-helper-color",mt.colorOnSurfaceMedium),optionsColor:gt.extend("--ft-select-options-color",mt.colorOnSurface),optionsZIndex:gt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:gt.external(mt.colorSurface,"Design system"),colorOnSurfaceDisabled:gt.external(mt.colorOnSurfaceDisabled,"Design system"),colorPrimary:gt.external(mt.colorPrimary,"Design system"),borderRadiusS:gt.external(mt.borderRadiusS,"Design system"),elevation02:gt.external(mt.elevation02,"Design system"),colorError:gt.external(mt.colorError,"Design system")},Ci=y`
|
|
518
529
|
*:focus {
|
|
519
530
|
outline: none;
|
|
520
531
|
}
|
|
@@ -528,7 +539,7 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
528
539
|
.ft-select--main-panel {
|
|
529
540
|
position: relative;
|
|
530
541
|
display: flex;
|
|
531
|
-
height: calc(4 * ${
|
|
542
|
+
height: calc(4 * ${ki.verticalSpacing} + ${ki.labelSize} + ${ki.selectedOptionSize});
|
|
532
543
|
}
|
|
533
544
|
|
|
534
545
|
.ft-select--input-panel {
|
|
@@ -537,17 +548,17 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
537
548
|
display: flex;
|
|
538
549
|
align-items: center;
|
|
539
550
|
overflow: hidden;
|
|
540
|
-
padding-left: ${
|
|
541
|
-
padding-right: ${
|
|
551
|
+
padding-left: ${ki.horizontalSpacing};
|
|
552
|
+
padding-right: ${ki.horizontalSpacing};
|
|
542
553
|
gap: 8px;
|
|
543
|
-
color: ${
|
|
544
|
-
${yt(
|
|
554
|
+
color: ${ki.selectedOptionColor};
|
|
555
|
+
${yt(ai.color,ki.selectedOptionColor)};
|
|
545
556
|
}
|
|
546
557
|
|
|
547
558
|
.ft-select--input-panel,
|
|
548
559
|
.ft-select--option {
|
|
549
|
-
${yt(
|
|
550
|
-
${yt(
|
|
560
|
+
${yt(ai.opacityContentOnSurfaceHover,"0.08")};
|
|
561
|
+
${yt(ai.opacityContentOnSurfacePressed,"0.04")};
|
|
551
562
|
}
|
|
552
563
|
|
|
553
564
|
.ft-select--input-panel > *:not(ft-ripple),
|
|
@@ -557,7 +568,7 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
557
568
|
|
|
558
569
|
.ft-select--disabled .ft-select--input-panel,
|
|
559
570
|
.ft-select--disabled .ft-select--option {
|
|
560
|
-
color: ${
|
|
571
|
+
color: ${ki.colorOnSurfaceDisabled};
|
|
561
572
|
}
|
|
562
573
|
|
|
563
574
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -566,20 +577,20 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
566
577
|
}
|
|
567
578
|
|
|
568
579
|
ft-input-label {
|
|
569
|
-
${yt(
|
|
570
|
-
${yt(
|
|
571
|
-
${yt(
|
|
572
|
-
${yt(
|
|
573
|
-
${yt(
|
|
580
|
+
${yt(oi.fontSize,ki.selectedOptionSize)};
|
|
581
|
+
${yt(oi.raisedFontSize,ki.labelSize)};
|
|
582
|
+
${yt(oi.verticalSpacing,ki.verticalSpacing)};
|
|
583
|
+
${yt(oi.horizontalSpacing,ki.horizontalSpacing)};
|
|
584
|
+
${yt(oi.labelMaxWidth,`calc(100% - ${mi.size} - 8px)`)};
|
|
574
585
|
}
|
|
575
586
|
|
|
576
587
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
577
|
-
color: ${
|
|
588
|
+
color: ${ki.colorPrimary};
|
|
578
589
|
}
|
|
579
590
|
|
|
580
591
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
581
|
-
${yt(
|
|
582
|
-
${yt(
|
|
592
|
+
${yt(oi.borderColor,ki.colorPrimary)};
|
|
593
|
+
${yt(oi.textColor,ki.colorPrimary)};
|
|
583
594
|
}
|
|
584
595
|
|
|
585
596
|
.ft-select--selected-option {
|
|
@@ -589,12 +600,12 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
589
600
|
overflow: hidden;
|
|
590
601
|
white-space: nowrap;
|
|
591
602
|
text-overflow: ellipsis;
|
|
592
|
-
${yt(
|
|
593
|
-
${yt(
|
|
603
|
+
${yt(Oe.fontSize,ki.selectedOptionSize)};
|
|
604
|
+
${yt(Oe.lineHeight,ki.selectedOptionSize)};
|
|
594
605
|
}
|
|
595
606
|
|
|
596
607
|
.ft-select--in-error .ft-select--selected-option {
|
|
597
|
-
color: ${
|
|
608
|
+
color: ${ki.colorError};
|
|
598
609
|
}
|
|
599
610
|
|
|
600
611
|
ft-icon {
|
|
@@ -606,16 +617,16 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
606
617
|
}
|
|
607
618
|
|
|
608
619
|
.ft-select--filled .ft-select--input-panel {
|
|
609
|
-
border-radius: ${
|
|
620
|
+
border-radius: ${ki.borderRadiusS} ${ki.borderRadiusS} 0 0;
|
|
610
621
|
}
|
|
611
622
|
|
|
612
623
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
613
624
|
align-self: stretch;
|
|
614
|
-
padding-top: calc(${
|
|
625
|
+
padding-top: calc(${ki.labelSize} + 2 * ${ki.verticalSpacing});
|
|
615
626
|
}
|
|
616
627
|
|
|
617
628
|
.ft-select--outlined .ft-select--input-panel {
|
|
618
|
-
border-radius: ${
|
|
629
|
+
border-radius: ${ki.borderRadiusS};
|
|
619
630
|
}
|
|
620
631
|
|
|
621
632
|
.ft-select--options {
|
|
@@ -624,10 +635,10 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
624
635
|
top: 100%;
|
|
625
636
|
left: 0;
|
|
626
637
|
right: 0;
|
|
627
|
-
color: ${
|
|
628
|
-
background: ${
|
|
629
|
-
z-index: ${
|
|
630
|
-
box-shadow: ${
|
|
638
|
+
color: ${ki.optionsColor};
|
|
639
|
+
background: ${ki.colorSurface};
|
|
640
|
+
z-index: ${ki.optionsZIndex};
|
|
641
|
+
box-shadow: ${ki.elevation02};
|
|
631
642
|
}
|
|
632
643
|
|
|
633
644
|
.ft-select--fixed .ft-select--options {
|
|
@@ -638,13 +649,13 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
638
649
|
|
|
639
650
|
.ft-select--options-displayed .ft-select--options {
|
|
640
651
|
display: block;
|
|
641
|
-
max-height: ${
|
|
652
|
+
max-height: ${ki.optionsHeight};
|
|
642
653
|
overflow-y: auto;
|
|
643
654
|
}
|
|
644
655
|
|
|
645
656
|
.ft-select--option {
|
|
646
657
|
position: relative;
|
|
647
|
-
padding: 4px ${
|
|
658
|
+
padding: 4px ${ki.horizontalSpacing};
|
|
648
659
|
min-height: 32px;
|
|
649
660
|
display: flex;
|
|
650
661
|
align-items: center;
|
|
@@ -656,21 +667,21 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
656
667
|
}
|
|
657
668
|
|
|
658
669
|
.ft-select--helper-text {
|
|
659
|
-
padding: 0 ${
|
|
660
|
-
color: ${
|
|
670
|
+
padding: 0 ${ki.horizontalSpacing};
|
|
671
|
+
color: ${ki.helperColor};
|
|
661
672
|
}
|
|
662
673
|
|
|
663
674
|
.ft-select--in-error .ft-select--helper-text {
|
|
664
|
-
color: ${
|
|
675
|
+
color: ${ki.colorError};
|
|
665
676
|
}
|
|
666
|
-
`;var
|
|
667
|
-
<div class="${
|
|
677
|
+
`;var Ei=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ni extends wt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return X``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ni.elementDefinitions={},Ei([o({type:String})],Ni.prototype,"label",void 0),Ei([o({type:Object,converter:t=>t})],Ni.prototype,"value",void 0),Ei([o({type:Boolean,reflect:!0})],Ni.prototype,"selected",void 0);class zi extends wt{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,s;let n=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":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return X`
|
|
678
|
+
<div class="${Wt(a)}" part="container">
|
|
668
679
|
<div class="ft-select--main-panel" part="main-panel">
|
|
669
680
|
<ft-input-label text="${this.label}"
|
|
670
681
|
part="label"
|
|
671
682
|
?disabled=${r}
|
|
672
683
|
?outlined=${this.outlined}
|
|
673
|
-
?raised=${l||
|
|
684
|
+
?raised=${l||n}
|
|
674
685
|
?error=${this.error}
|
|
675
686
|
></ft-input-label>
|
|
676
687
|
<div class="ft-select--input-panel"
|
|
@@ -680,18 +691,18 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
680
691
|
@keydown=${this.onMainPanelKeyDown}
|
|
681
692
|
aria-label="${this.label}"
|
|
682
693
|
aria-haspopup="listbox"
|
|
683
|
-
aria-expanded="${
|
|
694
|
+
aria-expanded="${n}">
|
|
684
695
|
<ft-ripple ?disabled=${r} ?activated=${!this.outlined}></ft-ripple>
|
|
685
696
|
<ft-typography variant="body1" class="ft-select--selected-option">
|
|
686
|
-
${null!==(
|
|
697
|
+
${null!==(s=null===(o=this.selectedOption)||void 0===o?void 0:o.label)&&void 0!==s?s:""}
|
|
687
698
|
</ft-typography>
|
|
688
|
-
<ft-icon variant="material">${
|
|
699
|
+
<ft-icon variant="material">${n?"expand_less":"expand_more"}</ft-icon>
|
|
689
700
|
</div>
|
|
690
701
|
<div class="ft-select--options"
|
|
691
702
|
part="options"
|
|
692
703
|
@keydown=${this.onOptionsKeyDown}
|
|
693
704
|
innerrole="listbox">
|
|
694
|
-
${
|
|
705
|
+
${Lt(this.options,(t=>t.value),(t=>this.renderOption(t)))}
|
|
695
706
|
</div>
|
|
696
707
|
</div>
|
|
697
708
|
${this.helper?X`
|
|
@@ -702,7 +713,7 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
702
713
|
@option-change=${this.updateOptionsFromSlot}
|
|
703
714
|
></slot>
|
|
704
715
|
`}renderOption(t){let e=this.selectedOption===t;return X`
|
|
705
|
-
<div class="${
|
|
716
|
+
<div class="${Wt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
|
|
706
717
|
part="option"
|
|
707
718
|
tabindex="0"
|
|
708
719
|
data-value="${t.value}"
|
|
@@ -711,13 +722,13 @@ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
711
722
|
<ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
|
|
712
723
|
<span>${t.label}</span>
|
|
713
724
|
</div>
|
|
714
|
-
`}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),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
|
|
725
|
+
`}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),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,s,n;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!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n: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){var e,i;if(!f(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}zi.elementDefinitions={"ft-input-label":ri,"ft-typography":ii,"ft-ripple":yi,"ft-icon":Si},zi.styles=[qe,Xe,Ci],Ei([o({type:String})],zi.prototype,"label",void 0),Ei([o({type:String})],zi.prototype,"helper",void 0),Ei([o({type:Boolean})],zi.prototype,"outlined",void 0),Ei([o({type:Boolean})],zi.prototype,"disabled",void 0),Ei([o({type:Boolean})],zi.prototype,"error",void 0),Ei([o({type:Boolean})],zi.prototype,"fixedMenuPosition",void 0),Ei([o({type:Array})],zi.prototype,"options",void 0),Ei([s()],zi.prototype,"selectedOption",void 0),Ei([s()],zi.prototype,"optionsDisplayed",void 0),Ei([s()],zi.prototype,"focusOptions",void 0),Ei([r(".ft-select")],zi.prototype,"container",void 0),Ei([r(".ft-select--options")],zi.prototype,"optionsMenu",void 0),Ei([r(".ft-select--input-panel")],zi.prototype,"mainPanel",void 0),Ei([r(".ft-select--option:first-child")],zi.prototype,"firstOption",void 0),Ei([r(".ft-select--option:focus")],zi.prototype,"focusedOption",void 0),Ei([r(".ft-select--option.ft-select--option-selected")],zi.prototype,"selectedOptionElement",void 0),Ei([r(".ft-select--option:last-child")],zi.prototype,"lastOption",void 0),Ei([r("slot")],zi.prototype,"optionsSlot",void 0),d("ft-select")(zi),d("ft-select-option")(Ni);
|
|
715
726
|
/**
|
|
716
727
|
* @license
|
|
717
728
|
* Copyright 2018 Google LLC
|
|
718
729
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
719
730
|
*/
|
|
720
|
-
const
|
|
731
|
+
const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:gt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:gt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:gt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:gt.extend("--ft-text-field-helper-color",mt.colorOnSurfaceMedium),colorPrimary:gt.external(mt.colorPrimary,"Design system"),colorOnSurface:gt.external(mt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:gt.external(mt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:gt.external(mt.borderRadiusS,"Design system"),colorError:gt.external(mt.colorError,"Design system"),prefixColor:gt.extend("--ft-text-field-prefix-color",mt.colorOnSurfaceMedium),iconColor:gt.extend("--ft-text-field-icon-color",mt.colorOnSurfaceMedium),floatingZIndex:gt.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:gt.external(mt.colorSurface,"Design system"),colorOutline:gt.external(mt.colorOutline,"Design system"),elevation02:gt.external(mt.elevation02,"Design system"),suggestSize:gt.create("--ft-text-field-suggest-size","SIZE","300px")},Mi=y`
|
|
721
732
|
*:focus {
|
|
722
733
|
outline: none;
|
|
723
734
|
}
|
|
@@ -730,16 +741,16 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
730
741
|
}
|
|
731
742
|
|
|
732
743
|
ft-input-label {
|
|
733
|
-
${yt(
|
|
734
|
-
${yt(
|
|
735
|
-
${yt(
|
|
736
|
-
${yt(
|
|
744
|
+
${yt(oi.fontSize,Ri.fontSize)};
|
|
745
|
+
${yt(oi.raisedFontSize,Ri.labelSize)};
|
|
746
|
+
${yt(oi.verticalSpacing,Ri.verticalSpacing)};
|
|
747
|
+
${yt(oi.horizontalSpacing,Ri.horizontalSpacing)};
|
|
737
748
|
}
|
|
738
749
|
|
|
739
750
|
.ft-text-field--main-panel {
|
|
740
751
|
position: relative;
|
|
741
752
|
display: flex;
|
|
742
|
-
height: calc(4 * ${
|
|
753
|
+
height: calc(4 * ${Ri.verticalSpacing} + ${Ri.labelSize} + ${Ri.fontSize});
|
|
743
754
|
}
|
|
744
755
|
|
|
745
756
|
.ft-text-field--input-panel {
|
|
@@ -748,24 +759,24 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
748
759
|
display: flex;
|
|
749
760
|
align-items: center;
|
|
750
761
|
overflow: hidden;
|
|
751
|
-
padding: 0 ${
|
|
762
|
+
padding: 0 ${Ri.horizontalSpacing};
|
|
752
763
|
|
|
753
|
-
${yt(
|
|
754
|
-
${yt(
|
|
764
|
+
${yt(Oe.fontSize,Ri.fontSize)};
|
|
765
|
+
${yt(Oe.lineHeight,Ri.fontSize)};
|
|
755
766
|
}
|
|
756
767
|
|
|
757
768
|
.ft-text-field--input-panel ft-ripple {
|
|
758
|
-
${yt(
|
|
759
|
-
${yt(
|
|
769
|
+
${yt(ai.opacityContentOnSurfaceHover,"0.08")};
|
|
770
|
+
${yt(ai.opacityContentOnSurfacePressed,"0.04")};
|
|
760
771
|
}
|
|
761
772
|
|
|
762
773
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
763
774
|
align-items: flex-end;
|
|
764
|
-
padding: 0 ${
|
|
775
|
+
padding: 0 ${Ri.horizontalSpacing} ${Ri.verticalSpacing} ${Ri.horizontalSpacing};
|
|
765
776
|
}
|
|
766
777
|
|
|
767
778
|
.ft-text-field--prefix {
|
|
768
|
-
color: ${
|
|
779
|
+
color: ${Ri.prefixColor};
|
|
769
780
|
margin-right: 2px;
|
|
770
781
|
flex-shrink: 1;
|
|
771
782
|
overflow: hidden;
|
|
@@ -784,15 +795,15 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
784
795
|
flex-shrink: 1;
|
|
785
796
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
786
797
|
|
|
787
|
-
color: ${
|
|
788
|
-
padding: calc(2 * ${
|
|
798
|
+
color: ${Ri.colorOnSurface};
|
|
799
|
+
padding: calc(2 * ${Ri.verticalSpacing}) 0;
|
|
789
800
|
border: none;
|
|
790
801
|
background: none;
|
|
791
802
|
}
|
|
792
803
|
|
|
793
804
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
794
805
|
padding-bottom: 0;
|
|
795
|
-
padding-top: calc(${
|
|
806
|
+
padding-top: calc(${Ri.labelSize} + 2 * ${Ri.verticalSpacing});
|
|
796
807
|
}
|
|
797
808
|
|
|
798
809
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -801,37 +812,37 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
801
812
|
}
|
|
802
813
|
|
|
803
814
|
.ft-text-field--disabled .ft-text-field--input {
|
|
804
|
-
color: ${
|
|
815
|
+
color: ${Ri.colorOnSurfaceDisabled};
|
|
805
816
|
}
|
|
806
817
|
|
|
807
818
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
808
|
-
${yt(
|
|
809
|
-
${yt(
|
|
819
|
+
${yt(oi.borderColor,Ri.colorPrimary)};
|
|
820
|
+
${yt(oi.textColor,Ri.colorPrimary)};
|
|
810
821
|
}
|
|
811
822
|
|
|
812
823
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
813
|
-
border-radius: ${
|
|
824
|
+
border-radius: ${Ri.borderRadiusS} ${Ri.borderRadiusS} 0 0;
|
|
814
825
|
}
|
|
815
826
|
|
|
816
827
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
817
|
-
border-radius: ${
|
|
828
|
+
border-radius: ${Ri.borderRadiusS};
|
|
818
829
|
}
|
|
819
830
|
|
|
820
831
|
.ft-text-field--helper-text {
|
|
821
|
-
padding: 0 12px 0 ${
|
|
822
|
-
color: ${
|
|
832
|
+
padding: 0 12px 0 ${Ri.horizontalSpacing};
|
|
833
|
+
color: ${Ri.helperColor};
|
|
823
834
|
}
|
|
824
835
|
|
|
825
836
|
.ft-text-field--in-error .ft-text-field--input,
|
|
826
837
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
827
838
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
828
|
-
color: ${
|
|
839
|
+
color: ${Ri.colorError};
|
|
829
840
|
}
|
|
830
841
|
|
|
831
842
|
.ft-text-field--icon {
|
|
832
843
|
align-self: center;
|
|
833
844
|
margin-left: 8px;
|
|
834
|
-
color: ${
|
|
845
|
+
color: ${Ri.iconColor};
|
|
835
846
|
}
|
|
836
847
|
|
|
837
848
|
.ft-text-field--container {
|
|
@@ -844,13 +855,13 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
844
855
|
position: absolute;
|
|
845
856
|
left: 0;
|
|
846
857
|
right: 0;
|
|
847
|
-
z-index: ${
|
|
848
|
-
background: ${
|
|
849
|
-
border: 1px solid ${
|
|
850
|
-
border-radius: 0 0 ${
|
|
851
|
-
box-shadow: ${
|
|
858
|
+
z-index: ${Ri.floatingZIndex};
|
|
859
|
+
background: ${Ri.colorSurface};
|
|
860
|
+
border: 1px solid ${Ri.colorOutline};
|
|
861
|
+
border-radius: 0 0 ${Ri.borderRadiusS} ${Ri.borderRadiusS};
|
|
862
|
+
box-shadow: ${Ri.elevation02};
|
|
852
863
|
outline: none;
|
|
853
|
-
max-height: ${
|
|
864
|
+
max-height: ${Ri.suggestSize};
|
|
854
865
|
overflow-y: auto;
|
|
855
866
|
}
|
|
856
867
|
|
|
@@ -867,10 +878,10 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
867
878
|
}
|
|
868
879
|
|
|
869
880
|
.ft-text-field--with-icon {
|
|
870
|
-
${yt(
|
|
881
|
+
${yt(oi.labelMaxWidth,`calc(100% - ${mi.size} - ${oi.horizontalSpacing})`)};
|
|
871
882
|
}
|
|
872
|
-
`;var
|
|
873
|
-
<div class="${
|
|
883
|
+
`;var Fi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ui extends wt{constructor(){super(...arguments),this.value="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.filterSuggestions=!1,this.focused=!1,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}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--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon};return X`
|
|
884
|
+
<div class="${Wt(t)}">
|
|
874
885
|
<div class="ft-text-field--main-panel"
|
|
875
886
|
@keydown=${this.handleKeyboardNavigation}>
|
|
876
887
|
<ft-input-label text="${this.label}"
|
|
@@ -912,7 +923,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
912
923
|
</ft-typography>
|
|
913
924
|
`:G}
|
|
914
925
|
</div>
|
|
915
|
-
`}updated(t){super.updated(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}updateValueFromInputField(){var t;this.setValue((null===(t=this.input)||void 0===t?void 0:t.value)||"",!0)}handleInput(){var t;const e=(null===(t=this.input)||void 0===t?void 0:t.value)||"";this.value!==e&&(this.hideSuggestions=!1,this.value=e,this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})))}handleClick(){this.hideSuggestions=!1}setValue(t,e){this.value=t,e&&this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onInputBlur(){this.focused=!1}}
|
|
926
|
+
`}updated(t){super.updated(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}updateValueFromInputField(){var t;this.setValue((null===(t=this.input)||void 0===t?void 0:t.value)||"",!0)}handleInput(){var t;const e=(null===(t=this.input)||void 0===t?void 0:t.value)||"";this.value!==e&&(this.hideSuggestions=!1,this.value=e,this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})))}handleClick(){this.hideSuggestions=!1}setValue(t,e){this.value=t,e&&this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onInputBlur(){this.focused=!1}}Ui.elementDefinitions={"ft-input-label":ri,"ft-ripple":yi,"ft-typography":ii,"ft-icon":Si},Ui.styles=[Je,Mi],Fi([o()],Ui.prototype,"label",void 0),Fi([o()],Ui.prototype,"value",void 0),Fi([o()],Ui.prototype,"helper",void 0),Fi([o({type:Boolean})],Ui.prototype,"outlined",void 0),Fi([o({type:Boolean})],Ui.prototype,"disabled",void 0),Fi([o({type:Boolean})],Ui.prototype,"error",void 0),Fi([o()],Ui.prototype,"prefix",void 0),Fi([o()],Ui.prototype,"icon",void 0),Fi([o()],Ui.prototype,"iconVariant",void 0),Fi([o({type:Boolean})],Ui.prototype,"filterSuggestions",void 0),Fi([o({type:Number})],Ui.prototype,"maxLength",void 0),Fi([s()],Ui.prototype,"focused",void 0),Fi([s()],Ui.prototype,"suggestionsOnTop",void 0),Fi([s()],Ui.prototype,"hideSuggestions",void 0),Fi([s()],Ui.prototype,"visibleSuggestions",void 0),Fi([r(".ft-text-field--input")],Ui.prototype,"input",void 0),Fi([r(".ft-text-field--suggestions")],Ui.prototype,"suggestionsContainer",void 0),Fi([p({selector:"ft-text-field-suggestion"})],Ui.prototype,"suggestions",void 0);const ji=y`
|
|
916
927
|
.ft-text-field-suggestion {
|
|
917
928
|
position: relative;
|
|
918
929
|
padding: 8px 16px;
|
|
@@ -937,7 +948,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
937
948
|
slot {
|
|
938
949
|
pointer-events: none;
|
|
939
950
|
}
|
|
940
|
-
`;var
|
|
951
|
+
`;var Bi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Di extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Ai extends wt{render(){return X`
|
|
941
952
|
<div class="ft-text-field-suggestion"
|
|
942
953
|
tabindex="-1"
|
|
943
954
|
@keydown=${this.onKeyDown}
|
|
@@ -949,7 +960,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
949
960
|
<slot></slot>
|
|
950
961
|
</ft-typography>
|
|
951
962
|
</div>
|
|
952
|
-
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new
|
|
963
|
+
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Di(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Ai.elementDefinitions={"ft-ripple":yi,"ft-typography":ii,"ft-icon":Si},Ai.styles=ji,Bi([o()],Ai.prototype,"value",void 0),Bi([r(".ft-text-field-suggestion")],Ai.prototype,"container",void 0),Bi([c()],Ai.prototype,"assignedNodes",void 0),d("ft-text-field")(Ui),d("ft-text-field-suggestion")(Ai);const Ii=gt.create("--ft-tooltip-distance","SIZE","4px"),Ti=gt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Li=gt.create("--ft-tooltip-background-color","COLOR","#666666"),Pi=gt.create("--ft-tooltip-z-index","NUMBER","1"),_i=gt.external(mt.borderRadiusS,"Design system"),Wi=gt.create("--ft-tooltip-max-width","SIZE","150px"),Hi=y`
|
|
953
964
|
.ft-tooltip--container {
|
|
954
965
|
display: block;
|
|
955
966
|
position: relative;
|
|
@@ -965,23 +976,23 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
965
976
|
box-sizing: border-box;
|
|
966
977
|
overflow: hidden;
|
|
967
978
|
width: max-content;
|
|
968
|
-
max-width: ${
|
|
979
|
+
max-width: ${Wi};
|
|
969
980
|
text-align: center;
|
|
970
|
-
padding: ${
|
|
971
|
-
z-index: ${
|
|
981
|
+
padding: ${Ii};
|
|
982
|
+
z-index: ${Pi};
|
|
972
983
|
}
|
|
973
984
|
|
|
974
985
|
.ft-tooltip--content {
|
|
975
986
|
padding: 4px 8px;
|
|
976
|
-
border-radius: ${
|
|
977
|
-
background-color: ${
|
|
978
|
-
color: ${
|
|
987
|
+
border-radius: ${_i};
|
|
988
|
+
background-color: ${Li};
|
|
989
|
+
color: ${Ti};
|
|
979
990
|
top: -500px;
|
|
980
991
|
left: -500px;
|
|
981
992
|
position: relative;
|
|
982
993
|
word-break: break-word;
|
|
983
994
|
}
|
|
984
|
-
`;var
|
|
995
|
+
`;var Zi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ki extends wt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return X`
|
|
985
996
|
<div part="container"
|
|
986
997
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
987
998
|
@mouseenter=${this.onHover}
|
|
@@ -999,7 +1010,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
999
1010
|
</div>
|
|
1000
1011
|
</div>
|
|
1001
1012
|
</div>
|
|
1002
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let
|
|
1013
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=e.height,s=o;break;case"left":n=i,s=-this.tooltip.clientWidth;break;case"right":n=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${e.width}px, ${Wi})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ki.elementDefinitions={"ft-typography":ii},Ki.styles=Hi,Zi([o()],Ki.prototype,"text",void 0),Zi([o({type:Boolean})],Ki.prototype,"manual",void 0),Zi([o({type:Boolean})],Ki.prototype,"inline",void 0),Zi([o({type:Number})],Ki.prototype,"delay",void 0),Zi([o()],Ki.prototype,"position",void 0),Zi([c("",!0)],Ki.prototype,"slotNodes",void 0),Zi([r(".ft-tooltip--container")],Ki.prototype,"container",void 0),Zi([r("slot")],Ki.prototype,"target",void 0),Zi([r(".ft-tooltip")],Ki.prototype,"tooltip",void 0),Zi([r(".ft-tooltip--content")],Ki.prototype,"tooltipContent",void 0),Zi([s()],Ki.prototype,"visible",void 0),d("ft-tooltip")(Ki);const Vi={color:gt.extend("--ft-loader-color",mt.colorPrimary),size:gt.create("--ft-loader-size","SIZE","80px")},Ji=y`
|
|
1003
1014
|
:host {
|
|
1004
1015
|
line-height: 0;
|
|
1005
1016
|
}
|
|
@@ -1008,8 +1019,8 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1008
1019
|
display: inline-block;
|
|
1009
1020
|
position: relative;
|
|
1010
1021
|
|
|
1011
|
-
width: ${
|
|
1012
|
-
height: ${
|
|
1022
|
+
width: ${Vi.size};
|
|
1023
|
+
height: ${Vi.size};
|
|
1013
1024
|
}
|
|
1014
1025
|
|
|
1015
1026
|
.ft-loader div {
|
|
@@ -1018,7 +1029,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1018
1029
|
width: 25%;
|
|
1019
1030
|
height: 25%;
|
|
1020
1031
|
border-radius: 50%;
|
|
1021
|
-
background: ${
|
|
1032
|
+
background: ${Vi.color};
|
|
1022
1033
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
1023
1034
|
}
|
|
1024
1035
|
|
|
@@ -1065,17 +1076,17 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1065
1076
|
transform: translate(0, 0);
|
|
1066
1077
|
}
|
|
1067
1078
|
100% {
|
|
1068
|
-
transform: translate(calc(0.35 * ${
|
|
1079
|
+
transform: translate(calc(0.35 * ${Vi.size}), 0);
|
|
1069
1080
|
}
|
|
1070
1081
|
}
|
|
1071
|
-
`;class
|
|
1082
|
+
`;class qi extends wt{render(){return X`
|
|
1072
1083
|
<div class="ft-loader">
|
|
1073
1084
|
<div></div>
|
|
1074
1085
|
<div></div>
|
|
1075
1086
|
<div></div>
|
|
1076
1087
|
<div></div>
|
|
1077
1088
|
</div>
|
|
1078
|
-
`}}
|
|
1089
|
+
`}}qi.styles=Ji,d("ft-loader")(qi);const Xi=gt.extend("--ft-button-color",mt.colorPrimary),Yi={backgroundColor:gt.extend("--ft-button-background-color",mt.colorSurface),borderRadius:gt.extend("--ft-button-border-radius",mt.borderRadiusL),color:Xi,fontSize:gt.extend("--ft-button-font-size",We.fontSize),iconSize:gt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:gt.extend("--ft-button-ripple-color",Xi),opacityDisabled:gt.external(mt.colorOpacityDisabled,"Design system")},Gi=gt.extend("--ft-button-primary-color",gt.extend("--ft-button-color",mt.colorOnPrimary)),Qi={backgroundColor:gt.extend("--ft-button-primary-background-color",gt.extend("--ft-button-background-color",mt.colorPrimary)),color:Gi,rippleColor:gt.extend("--ft-button-primary-ripple-color",Gi)},to=gt.extend("--ft-button-dense-border-radius",gt.extend("--ft-button-border-radius",mt.borderRadiusM)),eo=[Ot,y`
|
|
1079
1090
|
:host {
|
|
1080
1091
|
display: inline-block;
|
|
1081
1092
|
max-width: 100%;
|
|
@@ -1086,7 +1097,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1086
1097
|
box-shadow: 0px 0px 0px transparent;
|
|
1087
1098
|
border: 0px solid transparent;
|
|
1088
1099
|
text-shadow: 0px 0px 0px transparent;
|
|
1089
|
-
font-size: ${
|
|
1100
|
+
font-size: ${Yi.fontSize};
|
|
1090
1101
|
}
|
|
1091
1102
|
|
|
1092
1103
|
button:hover {
|
|
@@ -1115,17 +1126,17 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1115
1126
|
border: none;
|
|
1116
1127
|
pointer-events: auto;
|
|
1117
1128
|
|
|
1118
|
-
--ft-button-internal-line-height: calc(${
|
|
1119
|
-
--ft-button-internal-color: ${
|
|
1120
|
-
${yt(
|
|
1129
|
+
--ft-button-internal-line-height: calc(${Yi.fontSize} + 2px);
|
|
1130
|
+
--ft-button-internal-color: ${Yi.color};
|
|
1131
|
+
${yt(mi.size,Yi.iconSize)};
|
|
1121
1132
|
--ft-button-internal-vertical-padding: 6px;
|
|
1122
1133
|
--ft-button-internal-horizontal-padding: 8px;
|
|
1123
|
-
${yt(
|
|
1124
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
1134
|
+
${yt(ai.color,Yi.rippleColor)};
|
|
1135
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Yi.iconSize});
|
|
1125
1136
|
|
|
1126
|
-
border-radius: ${
|
|
1137
|
+
border-radius: ${Yi.borderRadius};
|
|
1127
1138
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
1128
|
-
background-color: ${
|
|
1139
|
+
background-color: ${Yi.backgroundColor};
|
|
1129
1140
|
color: var(--ft-button-internal-color);
|
|
1130
1141
|
-webkit-mask-image: radial-gradient(white, black);
|
|
1131
1142
|
}
|
|
@@ -1137,7 +1148,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1137
1148
|
.ft-button--dense {
|
|
1138
1149
|
--ft-button-internal-vertical-padding: 2px;
|
|
1139
1150
|
--ft-button-internal-horizontal-padding: 4px;
|
|
1140
|
-
border-radius: ${
|
|
1151
|
+
border-radius: ${to};
|
|
1141
1152
|
}
|
|
1142
1153
|
|
|
1143
1154
|
.ft-button--round {
|
|
@@ -1146,13 +1157,13 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1146
1157
|
|
|
1147
1158
|
.ft-button[disabled] {
|
|
1148
1159
|
filter: grayscale(1);
|
|
1149
|
-
opacity: ${
|
|
1160
|
+
opacity: ${Yi.opacityDisabled};
|
|
1150
1161
|
}
|
|
1151
1162
|
|
|
1152
1163
|
.ft-button.ft-button--primary {
|
|
1153
|
-
background-color: ${
|
|
1154
|
-
--ft-button-internal-color: ${
|
|
1155
|
-
${yt(
|
|
1164
|
+
background-color: ${Qi.backgroundColor};
|
|
1165
|
+
--ft-button-internal-color: ${Qi.color};
|
|
1166
|
+
${yt(ai.color,Qi.rippleColor)};
|
|
1156
1167
|
}
|
|
1157
1168
|
|
|
1158
1169
|
.ft-button.ft-button--outlined {
|
|
@@ -1171,20 +1182,10 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1171
1182
|
text-overflow: ellipsis;
|
|
1172
1183
|
display: block;
|
|
1173
1184
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
1174
|
-
${yt(
|
|
1175
|
-
${yt(
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
.ft-button--safari-fix .ft-button--label {
|
|
1179
|
-
margin-right: 0;
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
.ft-button--safari-fix .ft-button--label:after {
|
|
1183
|
-
content: "\\0000a0";
|
|
1184
|
-
display: inline-block;
|
|
1185
|
-
width: 0;
|
|
1185
|
+
${yt(We.fontSize,"1em")};
|
|
1186
|
+
${yt(We.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
1186
1187
|
}
|
|
1187
|
-
|
|
1188
|
+
|
|
1188
1189
|
.ft-button--label[hidden] {
|
|
1189
1190
|
display: none;
|
|
1190
1191
|
}
|
|
@@ -1205,19 +1206,19 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1205
1206
|
}
|
|
1206
1207
|
|
|
1207
1208
|
ft-loader {
|
|
1208
|
-
${yt(
|
|
1209
|
-
${yt(
|
|
1209
|
+
${yt(Vi.size,Yi.iconSize)};
|
|
1210
|
+
${yt(Vi.color,"var(--ft-button-internal-color)")};
|
|
1210
1211
|
}
|
|
1211
|
-
`];var
|
|
1212
|
+
`];var io=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class oo extends wt{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=wi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(X`
|
|
1212
1213
|
<button part="button"
|
|
1213
|
-
class="${
|
|
1214
|
+
class="${Wt(t)}"
|
|
1214
1215
|
aria-label="${this.getLabel()}"
|
|
1215
1216
|
?disabled=${this.isDisabled()}>
|
|
1216
1217
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1217
1218
|
<ft-typography part="label"
|
|
1218
1219
|
variant="button"
|
|
1219
1220
|
element="span"
|
|
1220
|
-
class="ft-button--label"
|
|
1221
|
+
class="ft-button--label ${Nt?"ft-safari-ellipsis-fix":""}"
|
|
1221
1222
|
?hidden=${!this.hasTextContent()}>
|
|
1222
1223
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1223
1224
|
</ft-typography>
|
|
@@ -1231,7 +1232,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1231
1232
|
</ft-tooltip>
|
|
1232
1233
|
`:t}resolveIcon(){return this.loading?X`
|
|
1233
1234
|
<ft-loader></ft-loader> `:this.icon?X`
|
|
1234
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:G}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}}
|
|
1235
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:G}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}}oo.elementDefinitions={"ft-ripple":yi,"ft-tooltip":Ki,"ft-typography":ii,"ft-icon":Si,"ft-loader":qi},oo.styles=[St,eo],io([o({type:Boolean})],oo.prototype,"primary",void 0),io([o({type:Boolean})],oo.prototype,"outlined",void 0),io([o({type:Boolean})],oo.prototype,"disabled",void 0),io([o({type:Boolean})],oo.prototype,"dense",void 0),io([o({type:Boolean})],oo.prototype,"round",void 0),io([o({type:String})],oo.prototype,"label",void 0),io([o({type:String})],oo.prototype,"icon",void 0),io([o({type:String})],oo.prototype,"iconVariant",void 0),io([o({type:Boolean})],oo.prototype,"trailingIcon",void 0),io([o({type:Boolean})],oo.prototype,"loading",void 0),io([o({type:String})],oo.prototype,"tooltipPosition",void 0),io([o({type:Boolean})],oo.prototype,"hideTooltip",void 0),io([o({type:Boolean})],oo.prototype,"forceTooltip",void 0),io([r(".ft-button")],oo.prototype,"button",void 0),io([r(".ft-button--label slot")],oo.prototype,"slottedContent",void 0),d("ft-button")(oo);class so extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const no={headerBackground:gt.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:gt.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:gt.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:gt.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:gt.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),cellVerticalBorderWidth:gt.create("--ft-filterable-table-cell-vertical-border-width","SIZE","1px"),colorOnSurfaceHigh:gt.external(mt.colorOnSurfaceHigh,"Design system"),titleFont:gt.external(mt.titleFont,"Design system"),contentFont:gt.external(mt.contentFont,"Design system")},ro=y`
|
|
1235
1236
|
:host {
|
|
1236
1237
|
display: block;
|
|
1237
1238
|
}
|
|
@@ -1273,8 +1274,8 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1273
1274
|
}
|
|
1274
1275
|
|
|
1275
1276
|
.column-title-container ft-button {
|
|
1276
|
-
${yt(
|
|
1277
|
-
${yt(
|
|
1277
|
+
${yt(Yi.backgroundColor,no.headerBackground)};
|
|
1278
|
+
${yt(Yi.color,no.colorOnSurfaceHigh)};
|
|
1278
1279
|
}
|
|
1279
1280
|
|
|
1280
1281
|
.column-title {
|
|
@@ -1341,7 +1342,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1341
1342
|
.hidden {
|
|
1342
1343
|
visibility: hidden;
|
|
1343
1344
|
}
|
|
1344
|
-
`;var
|
|
1345
|
+
`;var lo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const ao=t=>X`${t}`,po=(t,e)=>t-e;class co extends wt{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 X`
|
|
1345
1346
|
<style>
|
|
1346
1347
|
.table {
|
|
1347
1348
|
grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
|
|
@@ -1349,17 +1350,17 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1349
1350
|
</style>
|
|
1350
1351
|
<div class="table">
|
|
1351
1352
|
<div class="header">
|
|
1352
|
-
${
|
|
1353
|
+
${Lt(this.columns,((t,e)=>"header-cell-"+e),((t,e)=>this.renderHeader(t,e)))}
|
|
1353
1354
|
</div>
|
|
1354
|
-
${
|
|
1355
|
+
${Lt(t,((t,e)=>"row-"+e),((t,e)=>X`
|
|
1355
1356
|
<div class="row"
|
|
1356
|
-
@click=${()=>this.dispatchEvent(new
|
|
1357
|
-
${
|
|
1357
|
+
@click=${()=>this.dispatchEvent(new so(t))}>
|
|
1358
|
+
${Lt(this.columns,((t,i)=>"cell-"+i+"-"+e),((i,o)=>this.renderCell(i,o,t,e)))}
|
|
1358
1359
|
</div>
|
|
1359
1360
|
`))}
|
|
1360
1361
|
</div>
|
|
1361
|
-
`}filterData(){return this.filters.reduce(((t,e,i)=>{var o;const
|
|
1362
|
-
<div class="${
|
|
1362
|
+
`}filterData(){return this.filters.reduce(((t,e,i)=>{var o;const s=this.columns[i];if(e&&e.value)switch(null!==(o=s.filter)&&void 0!==o?o:"text"){case"text":return t.filter((t=>this.getValueAsString(s,t,i).toLowerCase().includes(e.value.toLowerCase())));case"select":return t.filter((t=>this.getValueAsString(s,t,i)===e.value))}return t}),this.data)}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:po,s="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return[...t].sort(((t,e)=>s(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){const i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return X`
|
|
1363
|
+
<div class="${Wt(i)}"
|
|
1363
1364
|
part="${this.columnPart("header-cell",e)}">
|
|
1364
1365
|
<div class="column-title-container">
|
|
1365
1366
|
<span class="column-title"
|
|
@@ -1370,28 +1371,28 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1370
1371
|
</div>
|
|
1371
1372
|
${this.renderColumnFilter(t,e)}
|
|
1372
1373
|
</div>
|
|
1373
|
-
`}renderColumnSort(t,e){var i;const o=this.currentSort&&this.currentSort.column===e,
|
|
1374
|
+
`}renderColumnSort(t,e){var i;const o=this.currentSort&&this.currentSort.column===e,s=o?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return X`
|
|
1374
1375
|
<ft-button
|
|
1375
1376
|
round
|
|
1376
1377
|
dense
|
|
1377
1378
|
class="${null===(i=t.sortable)||void 0===i||i?"":"hidden"}"
|
|
1378
|
-
icon="${
|
|
1379
|
+
icon="${s}"
|
|
1379
1380
|
label="Sort ${t.title}"
|
|
1380
1381
|
@click=${()=>{var t;o?"asc"===(null===(t=this.currentSort)||void 0===t?void 0:t.order)?this.currentSort={column:e,order:"desc"}:this.currentSort=void 0:this.currentSort={column:e,order:"asc"}}}
|
|
1381
1382
|
part="${this.columnPart("sort-button",e)}"
|
|
1382
1383
|
></ft-button>
|
|
1383
|
-
`}renderColumnFilter(t,e){var i,o;const
|
|
1384
|
+
`}renderColumnFilter(t,e){var i,o;const s=t=>{this.filters[e]={value:t.detail},this.requestUpdate()};switch(null!==(i=t.filter)&&void 0!==i?i:"text"){case"text":return X`
|
|
1384
1385
|
<div class="column-filter" part="${this.columnPart("filter-container",e)}">
|
|
1385
1386
|
<ft-text-field
|
|
1386
1387
|
label="Search ${t.title}"
|
|
1387
|
-
@live-change="${
|
|
1388
|
+
@live-change="${s}"
|
|
1388
1389
|
part="${this.columnPart("filter",e)}"
|
|
1389
1390
|
></ft-text-field>
|
|
1390
1391
|
</div>
|
|
1391
1392
|
`;case"select":const i=null!==(o=this.selectData[e])&&void 0!==o?o:[];return i.length?X`
|
|
1392
1393
|
<div class="column-filter" part="${this.columnPart("filter-container",e)}">
|
|
1393
1394
|
<ft-select label="Filter ${t.title}"
|
|
1394
|
-
@change=${
|
|
1395
|
+
@change=${s}
|
|
1395
1396
|
part="${this.columnPart("filter",e)}">
|
|
1396
1397
|
<ft-select-option></ft-select-option>
|
|
1397
1398
|
${i.map((t=>X`
|
|
@@ -1399,9 +1400,9 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1399
1400
|
`))}
|
|
1400
1401
|
</ft-select>
|
|
1401
1402
|
</div>
|
|
1402
|
-
`:G}return G}columnPart(t,e){return`${t} ${t}-column-${e}`}renderCell(t,e,i,o){var
|
|
1403
|
+
`:G}return G}columnPart(t,e){return`${t} ${t}-column-${e}`}renderCell(t,e,i,o){var s;const n=null!==(s=t.render)&&void 0!==s?s:ao;return X`
|
|
1403
1404
|
<div class="cell"
|
|
1404
1405
|
part="${this.columnPart("cell",e)} cell-row-${o} cell-column-${e}-row-${o}">
|
|
1405
|
-
${(t=>{const e=
|
|
1406
|
+
${(t=>{const e=n(t,o);return"string"==typeof e?_t(e):e})(this.getValue(t,i))}
|
|
1406
1407
|
</div>
|
|
1407
|
-
`}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}
|
|
1408
|
+
`}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}co.styles=ro,lo([o({attribute:!1})],co.prototype,"data",void 0),lo([o({attribute:!1})],co.prototype,"columns",void 0),lo([o({attribute:!1})],co.prototype,"sort",void 0),lo([o()],co.prototype,"stickyHeaders",void 0),lo([s()],co.prototype,"currentSort",void 0),d("ft-filterable-table")(co),t.FtFilterableTable=co,t.FtFilterableTableCssVariables=no,t.RowClickEvent=so,t.styles=ro,Object.defineProperty(t,"i",{value:!0})}({});
|