@fluid-topics/ft-filterable-table 0.3.71 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-filterable-table.css.d.ts +0 -1
- package/build/ft-filterable-table.css.js +0 -1
- package/build/ft-filterable-table.d.ts +0 -1
- package/build/ft-filterable-table.js +3 -2
- package/build/ft-filterable-table.light.js +267 -266
- package/build/ft-filterable-table.min.js +297 -306
- package/build/ft-filterable-table.properties.d.ts +1 -2
- package/build/ft-filterable-table.properties.js +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/package.json +7 -7
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,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
|
|
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 c={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,c),this._definitionsByClass.set(s,c);let p=i.call(o,t);p||(p=d(t),e.call(o,t,p)),this===window.customElements&&(r.set(s,c),c.standInClass=p);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)n.delete(t),u(t,c,!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){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=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 c=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!c(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(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=p(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(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},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=void 0)=>{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(Yt){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
|
|
@@ -39,45 +39,35 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
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
|
|
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 c(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
|
|
47
|
+
*/function p(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?c({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})})}function d(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(!d(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(!d(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(!d(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const f=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
|
|
48
48
|
/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2019 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
52
|
*/
|
|
53
|
-
const h=window,u=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,v=Symbol(),x=new WeakMap;
|
|
53
|
+
const h=window,u=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,v=Symbol(),x=new WeakMap;let b=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==v)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(u&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=x.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&x.set(e,t))}return t}toString(){return this.cssText}};const g=t=>new b("string"==typeof t?t:t+"",void 0,v),y=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new b(i,t,v)},m=(t,e)=>{u?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=h.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},$=u?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return g(e)})(t):t
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/;var w;const O=window,S=O.trustedTypes,k=S?S.emptyScript:"",E=O.reactiveElementPolyfillSupport,C={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),R={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:N};
|
|
58
|
+
*/;var w;const O=window,S=O.trustedTypes,k=S?S.emptyScript:"",E=O.reactiveElementPolyfillSupport,C={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),R={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:N};let z=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=R){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||R}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift($(t))}else void 0!==t&&e.push($(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return m(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=R){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:C).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:C;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){}};
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var M;z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==E||E({ReactiveElement:z}),(null!==(w=O.reactiveElementVersions)&&void 0!==w?w:O.reactiveElementVersions=[]).push("1.
|
|
64
|
+
var M;z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==E||E({ReactiveElement:z}),(null!==(w=O.reactiveElementVersions)&&void 0!==w?w:O.reactiveElementVersions=[]).push("1.6.1");const F=window,U=F.trustedTypes,j=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",D=`lit$${(Math.random()+"").slice(9)}$`,A="?"+D,I=`<${A}>`,P=document,L=()=>P.createComment(""),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,Z=t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),W="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,V=/>/g,J=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),q=/'/g,X=/"/g,Y=/^(?:script|style|textarea|title)$/i,G=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Q=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),et=new WeakMap,it=P.createTreeWalker(P,129,null,!1),ot=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=H;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,p=0;for(;p<i.length&&(r.lastIndex=p,a=r.exec(i),null!==a);)p=r.lastIndex,r===H?"!--"===a[1]?r=K:void 0!==a[1]?r=V:void 0!==a[2]?(Y.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=J):void 0!==a[3]&&(r=J):r===J?">"===a[0]?(r=null!=s?s:H,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?J:'"'===a[3]?X:q):r===X||r===q?r=J:r===K||r===V?r=H:(r=J,s=void 0);const d=r===J&&t[e+1].startsWith("/>")?" ":"";n+=r===H?i+I:c>=0?(o.push(l),i.slice(0,c)+B+i.slice(c)+D+d):i+D+(-2===c?(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 st{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,c]=ot(t,e);if(this.el=st.createElement(a,i),it.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=it.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(B)||e.startsWith(D)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+B).split(D),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ct:"?"===e[1]?dt:"@"===e[1]?ft:at})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(Y.test(o.tagName)){const t=o.textContent.split(D),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],L()),it.nextNode(),l.push({type:2,index:++s});o.append(t[e],L())}}}else if(8===o.nodeType)if(o.data===A)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(D,t+1));)l.push({type:7,index:s}),t+=D.length-1}s++}}static createElement(t,e){const i=P.createElement("template");return i.innerHTML=t,i}}function nt(t,e,i=t,o){var s,n,r,l;if(e===Q)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const c=T(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===c?a=void 0:(a=new c(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=nt(t,a._$AS(t,e.values),a,o)),e}class rt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:P).importNode(i,!0);it.currentNode=s;let n=it.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new lt(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new ht(n,this,t)),this._$AV.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=it.nextNode(),r++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class lt{constructor(t,e,i,o){var s;this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=nt(this,t,e),T(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==Q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Z(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==tt&&T(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=st.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new rt(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=et.get(t.strings);return void 0===e&&et.set(t.strings,e=new st(t)),e}T(t){_(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new lt(this.k(L()),this.k(L()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class at{constructor(t,e,i,o,s){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=tt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=nt(this,t,e,0),n=!T(t)||t!==this._$AH&&t!==Q,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=nt(this,o[i+r],e,r),l===Q&&(l=this._$AH[r]),n||(n=!T(l)||l!==this._$AH[r]),l===tt?t=tt:t!==tt&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ct extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}}const pt=U?U.emptyScript:"";class dt extends at{constructor(){super(...arguments),this.type=4}j(t){t&&t!==tt?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}}class ft extends at{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=nt(this,t,e,0))&&void 0!==i?i:tt)===Q)return;const o=this._$AH,s=t===tt&&o!==tt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==tt&&(o===tt||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 ht{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}}const ut={O:B,P:D,A,C:1,M:ot,L:rt,D:Z,R:nt,I:lt,V:at,H:dt,N:ft,U:ct,F:ht},vt=F.litHtmlPolyfillSupport;null==vt||vt(st,lt),(null!==(M=F.litHtmlVersions)&&void 0!==M?M:F.litHtmlVersions=[]).push("2.7.3");
|
|
65
65
|
/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2017 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
69
|
*/
|
|
70
|
-
var ut,vt;class xt extends z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const 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(P(),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")};
|
|
71
|
-
/**
|
|
72
|
-
* @license
|
|
73
|
-
* Copyright 2021 Google LLC
|
|
74
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
75
|
-
*/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`
|
|
76
|
-
${t.map((t=>X`
|
|
77
|
-
<style>${t}</style>
|
|
78
|
-
`))}
|
|
79
|
-
${this.getTemplate()}
|
|
80
|
-
`}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)},hasChanged:(t,e)=>!d(t,e),...null!=e?e:{}})}([])],wt.prototype,"exportpartsPrefixes",void 0),$t([o()],wt.prototype,"customStylesheet",void 0);const Ot=y`
|
|
70
|
+
var xt,bt;let gt=class extends z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const 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 lt(e.insertBefore(L(),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 Q}};gt.finalized=!0,gt._$litElement$=!0,null===(xt=globalThis.litElementHydrateSupport)||void 0===xt||xt.call(globalThis,{LitElement:gt});const yt=globalThis.litElementPolyfillSupport;null==yt||yt({LitElement:gt}),(null!==(bt=globalThis.litElementVersions)&&void 0!==bt?bt:globalThis.litElementVersions=[]).push("3.3.2");class mt{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 $t(t,e){return g(`${t.name}: ${e}`)}const wt={colorPrimary:mt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:mt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:mt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:mt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:mt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:mt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:mt.create("--ft-color-error","COLOR","#B00020"),colorOutline:mt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:mt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:mt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:mt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:mt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:mt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:mt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:mt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:mt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:mt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:mt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:mt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:mt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:mt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:mt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:mt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:mt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:mt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:mt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:mt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:mt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:mt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:mt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:mt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:mt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:mt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:mt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:mt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:mt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:mt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:mt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:mt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:mt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:mt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:mt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:mt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:mt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:mt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:mt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:mt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:mt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:mt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:mt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:mt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:mt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:mt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:mt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:mt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:mt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:mt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:mt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:mt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:mt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:mt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:mt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Ot extends gt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return m(i,t.elementStyles),i}}var St,kt=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 Et=Symbol("constructorPrototype"),Ct=Symbol("constructorName"),Nt=Symbol("exportpartsDebouncer");class Rt extends Ot{constructor(){super(),this[St]=new e(5),this[Ct]=this.constructor.name,this[Et]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ct]&&Object.setPrototypeOf(this,this[Et])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Nt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,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 c=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=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}St=Nt,kt([o()],Rt.prototype,"exportpartsPrefix",void 0),kt([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)},hasChanged:(t,e)=>!d(t,e),...null!=e?e:{}})}([])],Rt.prototype,"exportpartsPrefixes",void 0),kt([o()],Rt.prototype,"customStylesheet",void 0);const zt=y`
|
|
81
71
|
.ft-no-text-select {
|
|
82
72
|
-webkit-touch-callout: none;
|
|
83
73
|
-webkit-user-select: none;
|
|
@@ -98,7 +88,7 @@ var ut,vt;class xt extends z{constructor(){super(...arguments),this.renderOption
|
|
|
98
88
|
-webkit-hyphens: auto;
|
|
99
89
|
hyphens: auto
|
|
100
90
|
}
|
|
101
|
-
`;const
|
|
91
|
+
`;const Mt=y`
|
|
102
92
|
.ft-safari-ellipsis-fix {
|
|
103
93
|
margin-right: 0;
|
|
104
94
|
|
|
@@ -109,17 +99,17 @@ var ut,vt;class xt extends z{constructor(){super(...arguments),this.renderOption
|
|
|
109
99
|
display: inline-block;
|
|
110
100
|
width: 0;
|
|
111
101
|
}
|
|
112
|
-
`;var
|
|
102
|
+
`;var Ft,Ut,jt;const Bt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(jt=null===(Ut=null===(Ft=window.safari)||void 0===Ft?void 0:Ft.pushNotification)||void 0===Ut?void 0:Ut.toString())&&void 0!==jt?jt:""),Dt=1,At=2,It=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
113
103
|
/**
|
|
114
104
|
* @license
|
|
115
105
|
* Copyright 2017 Google LLC
|
|
116
106
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
-
*/class
|
|
107
|
+
*/class Pt{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)}}
|
|
118
108
|
/**
|
|
119
109
|
* @license
|
|
120
110
|
* Copyright 2020 Google LLC
|
|
121
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
122
|
-
*/const{I:
|
|
112
|
+
*/const{I:Lt}=ut,Tt=()=>document.createComment(""),_t=(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(Tt(),n),o=s.insertBefore(Tt(),n);i=new Lt(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},Zt=(t,e,i=t)=>(t._$AI(e,i),t),Wt={},Ht=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}},Kt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Vt=It(class extends Pt{constructor(t){if(super(t),t.type!==At)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],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.dt(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(n))return this.ht=l,r;const a=null!==(s=this.ht)&&void 0!==s?s:this.ht=[],c=[];let p,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])c[u]=Zt(n[f],r[u]),f++,u++;else if(a[h]===l[v])c[v]=Zt(n[h],r[v]),h--,v--;else if(a[f]===l[v])c[v]=Zt(n[f],r[v]),_t(t,c[v+1],n[f]),f++,v--;else if(a[h]===l[u])c[u]=Zt(n[h],r[u]),_t(t,n[f],n[h]),h--,u++;else if(void 0===p&&(p=Kt(l,u,v),d=Kt(a,f,h)),p.has(a[f]))if(p.has(a[h])){const e=d.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=_t(t,n[f]);Zt(e,r[u]),c[u]=e}else c[u]=Zt(i,r[u]),_t(t,n[f],i),n[e]=null;u++}else Ht(n[h]),h--;else Ht(n[f]),f++;for(;u<=v;){const e=_t(t,c[v+1]);Zt(e,r[u]),c[u++]=e}for(;f<=h;){const t=n[f++];null!==t&&Ht(t)}return this.ht=l,((t,e=Wt)=>{t._$AH=e})(t,c),Q}});
|
|
123
113
|
/**
|
|
124
114
|
* @license
|
|
125
115
|
* Copyright 2017 Google LLC
|
|
@@ -130,59 +120,40 @@ var ut,vt;class xt extends z{constructor(){super(...arguments),this.renderOption
|
|
|
130
120
|
* Copyright 2017 Google LLC
|
|
131
121
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
132
122
|
*/
|
|
133
|
-
class
|
|
123
|
+
let Jt=class extends Pt{constructor(t){if(super(t),this.et=tt,t.type!==At)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this.ft=void 0,this.et=t;if(t===Q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Jt.directiveName="unsafeHTML",Jt.resultType=1;const qt=It(Jt),Xt=It(class extends Pt{constructor(t){var e;if(super(t),t.type!==Dt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return Q}}),Yt=Symbol.for(""),Gt=t=>{if((null==t?void 0:t.r)===Yt)return null==t?void 0:t._$litStatic$},Qt=t=>({_$litStatic$:t,r:Yt}),te=new Map,ee=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,c=0,p=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(n=i[c],s=Gt(n));)a+=s+e[++c],p=!0;c!==o&&l.push(n),r.push(a),c++}if(c===o&&r.push(e[o]),p){const t=r.join("$$lit$$");void 0===(e=te.get(t))&&(r.raw=r,te.set(t,e=r)),i=l}return t(e,...i)})(G);
|
|
134
124
|
/**
|
|
135
125
|
* @license
|
|
136
126
|
* Copyright 2018 Google LLC
|
|
137
127
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
138
|
-
*/var
|
|
128
|
+
*/var ie;!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"}(ie||(ie={}));const oe=mt.extend("--ft-typography-font-family",wt.titleFont),se=mt.extend("--ft-typography-font-family",wt.contentFont),ne={fontFamily:se,fontSize:mt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:mt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:mt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:mt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:mt.create("--ft-typography-text-transform","UNKNOWN","inherit")},re=mt.extend("--ft-typography-title-font-family",oe),le=mt.extend("--ft-typography-title-font-size",ne.fontSize,"20px"),ae=mt.extend("--ft-typography-title-font-weight",ne.fontWeight,"normal"),ce=mt.extend("--ft-typography-title-letter-spacing",ne.letterSpacing,"0.15px"),pe=mt.extend("--ft-typography-title-line-height",ne.lineHeight,"1.2"),de=mt.extend("--ft-typography-title-text-transform",ne.textTransform,"inherit"),fe=mt.extend("--ft-typography-title-dense-font-family",oe),he=mt.extend("--ft-typography-title-dense-font-size",ne.fontSize,"14px"),ue=mt.extend("--ft-typography-title-dense-font-weight",ne.fontWeight,"normal"),ve=mt.extend("--ft-typography-title-dense-letter-spacing",ne.letterSpacing,"0.105px"),xe=mt.extend("--ft-typography-title-dense-line-height",ne.lineHeight,"1.7"),be=mt.extend("--ft-typography-title-dense-text-transform",ne.textTransform,"inherit"),ge=mt.extend("--ft-typography-subtitle1-font-family",se),ye=mt.extend("--ft-typography-subtitle1-font-size",ne.fontSize,"16px"),me=mt.extend("--ft-typography-subtitle1-font-weight",ne.fontWeight,"600"),$e=mt.extend("--ft-typography-subtitle1-letter-spacing",ne.letterSpacing,"0.144px"),we=mt.extend("--ft-typography-subtitle1-line-height",ne.lineHeight,"1.5"),Oe=mt.extend("--ft-typography-subtitle1-text-transform",ne.textTransform,"inherit"),Se=mt.extend("--ft-typography-subtitle2-font-family",se),ke=mt.extend("--ft-typography-subtitle2-font-size",ne.fontSize,"14px"),Ee=mt.extend("--ft-typography-subtitle2-font-weight",ne.fontWeight,"normal"),Ce=mt.extend("--ft-typography-subtitle2-letter-spacing",ne.letterSpacing,"0.098px"),Ne=mt.extend("--ft-typography-subtitle2-line-height",ne.lineHeight,"1.7"),Re=mt.extend("--ft-typography-subtitle2-text-transform",ne.textTransform,"inherit"),ze={fontFamily:mt.extend("--ft-typography-body1-font-family",se),fontSize:mt.extend("--ft-typography-body1-font-size",ne.fontSize,"16px"),fontWeight:mt.extend("--ft-typography-body1-font-weight",ne.fontWeight,"normal"),letterSpacing:mt.extend("--ft-typography-body1-letter-spacing",ne.letterSpacing,"0.496px"),lineHeight:mt.extend("--ft-typography-body1-line-height",ne.lineHeight,"1.5"),textTransform:mt.extend("--ft-typography-body1-text-transform",ne.textTransform,"inherit")},Me=mt.extend("--ft-typography-body2-font-family",se),Fe=mt.extend("--ft-typography-body2-font-size",ne.fontSize,"14px"),Ue=mt.extend("--ft-typography-body2-font-weight",ne.fontWeight,"normal"),je=mt.extend("--ft-typography-body2-letter-spacing",ne.letterSpacing,"0.252px"),Be=mt.extend("--ft-typography-body2-line-height",ne.lineHeight,"1.4"),De=mt.extend("--ft-typography-body2-text-transform",ne.textTransform,"inherit"),Ae={fontFamily:mt.extend("--ft-typography-caption-font-family",se),fontSize:mt.extend("--ft-typography-caption-font-size",ne.fontSize,"12px"),fontWeight:mt.extend("--ft-typography-caption-font-weight",ne.fontWeight,"normal"),letterSpacing:mt.extend("--ft-typography-caption-letter-spacing",ne.letterSpacing,"0.396px"),lineHeight:mt.extend("--ft-typography-caption-line-height",ne.lineHeight,"1.33"),textTransform:mt.extend("--ft-typography-caption-text-transform",ne.textTransform,"inherit")},Ie=mt.extend("--ft-typography-breadcrumb-font-family",se),Pe=mt.extend("--ft-typography-breadcrumb-font-size",ne.fontSize,"10px"),Le=mt.extend("--ft-typography-breadcrumb-font-weight",ne.fontWeight,"normal"),Te=mt.extend("--ft-typography-breadcrumb-letter-spacing",ne.letterSpacing,"0.33px"),_e=mt.extend("--ft-typography-breadcrumb-line-height",ne.lineHeight,"1.6"),Ze=mt.extend("--ft-typography-breadcrumb-text-transform",ne.textTransform,"inherit"),We=mt.extend("--ft-typography-overline-font-family",se),He=mt.extend("--ft-typography-overline-font-size",ne.fontSize,"10px"),Ke=mt.extend("--ft-typography-overline-font-weight",ne.fontWeight,"normal"),Ve=mt.extend("--ft-typography-overline-letter-spacing",ne.letterSpacing,"1.5px"),Je=mt.extend("--ft-typography-overline-line-height",ne.lineHeight,"1.6"),qe=mt.extend("--ft-typography-overline-text-transform",ne.textTransform,"uppercase"),Xe={fontFamily:mt.extend("--ft-typography-button-font-family",se),fontSize:mt.extend("--ft-typography-button-font-size",ne.fontSize,"14px"),fontWeight:mt.extend("--ft-typography-button-font-weight",ne.fontWeight,"600"),letterSpacing:mt.extend("--ft-typography-button-letter-spacing",ne.letterSpacing,"1.246px"),lineHeight:mt.extend("--ft-typography-button-line-height",ne.lineHeight,"1.15"),textTransform:mt.extend("--ft-typography-button-text-transform",ne.textTransform,"uppercase")},Ye=y`
|
|
139
129
|
.ft-typography--title {
|
|
140
|
-
font-family: ${
|
|
141
|
-
font-size: ${
|
|
142
|
-
font-weight: ${
|
|
143
|
-
letter-spacing: ${
|
|
144
|
-
line-height: ${oe};
|
|
145
|
-
text-transform: ${se};
|
|
146
|
-
}
|
|
147
|
-
`,He=y`
|
|
148
|
-
.ft-typography--title-dense {
|
|
149
|
-
font-family: ${ne};
|
|
150
|
-
font-size: ${re};
|
|
151
|
-
font-weight: ${le};
|
|
152
|
-
letter-spacing: ${ae};
|
|
130
|
+
font-family: ${re};
|
|
131
|
+
font-size: ${le};
|
|
132
|
+
font-weight: ${ae};
|
|
133
|
+
letter-spacing: ${ce};
|
|
153
134
|
line-height: ${pe};
|
|
154
|
-
text-transform: ${
|
|
135
|
+
text-transform: ${de};
|
|
136
|
+
}
|
|
137
|
+
`,Ge=y`
|
|
138
|
+
.ft-typography--title-dense {
|
|
139
|
+
font-family: ${fe};
|
|
140
|
+
font-size: ${he};
|
|
141
|
+
font-weight: ${ue};
|
|
142
|
+
letter-spacing: ${ve};
|
|
143
|
+
line-height: ${xe};
|
|
144
|
+
text-transform: ${be};
|
|
155
145
|
}
|
|
156
|
-
`,
|
|
146
|
+
`,Qe=y`
|
|
157
147
|
.ft-typography--subtitle1 {
|
|
158
|
-
font-family: ${
|
|
159
|
-
font-size: ${
|
|
160
|
-
font-weight: ${
|
|
161
|
-
letter-spacing: ${
|
|
162
|
-
line-height: ${
|
|
163
|
-
text-transform: ${
|
|
164
|
-
}
|
|
165
|
-
`,Ve=y`
|
|
166
|
-
.ft-typography--subtitle2 {
|
|
167
|
-
font-family: ${be};
|
|
168
|
-
font-size: ${ge};
|
|
169
|
-
font-weight: ${ye};
|
|
170
|
-
letter-spacing: ${me};
|
|
171
|
-
line-height: ${$e};
|
|
172
|
-
text-transform: ${we};
|
|
148
|
+
font-family: ${ge};
|
|
149
|
+
font-size: ${ye};
|
|
150
|
+
font-weight: ${me};
|
|
151
|
+
letter-spacing: ${$e};
|
|
152
|
+
line-height: ${we};
|
|
153
|
+
text-transform: ${Oe};
|
|
173
154
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
.ft-typography--body1 {
|
|
177
|
-
font-family: ${Oe.fontFamily};
|
|
178
|
-
font-size: ${Oe.fontSize};
|
|
179
|
-
font-weight: ${Oe.fontWeight};
|
|
180
|
-
letter-spacing: ${Oe.letterSpacing};
|
|
181
|
-
line-height: ${Oe.lineHeight};
|
|
182
|
-
text-transform: ${Oe.textTransform};
|
|
183
|
-
}
|
|
184
|
-
`,qe=y`
|
|
185
|
-
.ft-typography--body2 {
|
|
155
|
+
`,ti=y`
|
|
156
|
+
.ft-typography--subtitle2 {
|
|
186
157
|
font-family: ${Se};
|
|
187
158
|
font-size: ${ke};
|
|
188
159
|
font-weight: ${Ee};
|
|
@@ -190,8 +161,9 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
190
161
|
line-height: ${Ne};
|
|
191
162
|
text-transform: ${Re};
|
|
192
163
|
}
|
|
193
|
-
|
|
194
|
-
|
|
164
|
+
|
|
165
|
+
`,ei=y`
|
|
166
|
+
.ft-typography--body1 {
|
|
195
167
|
font-family: ${ze.fontFamily};
|
|
196
168
|
font-size: ${ze.fontSize};
|
|
197
169
|
font-weight: ${ze.fontWeight};
|
|
@@ -199,8 +171,8 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
199
171
|
line-height: ${ze.lineHeight};
|
|
200
172
|
text-transform: ${ze.textTransform};
|
|
201
173
|
}
|
|
202
|
-
`,
|
|
203
|
-
.ft-typography--
|
|
174
|
+
`,ii=y`
|
|
175
|
+
.ft-typography--body2 {
|
|
204
176
|
font-family: ${Me};
|
|
205
177
|
font-size: ${Fe};
|
|
206
178
|
font-weight: ${Ue};
|
|
@@ -208,54 +180,72 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
208
180
|
line-height: ${Be};
|
|
209
181
|
text-transform: ${De};
|
|
210
182
|
}
|
|
211
|
-
`,
|
|
212
|
-
.ft-typography--
|
|
213
|
-
font-family: ${Ae};
|
|
214
|
-
font-size: ${
|
|
215
|
-
font-weight: ${
|
|
183
|
+
`,oi=y`
|
|
184
|
+
.ft-typography--caption {
|
|
185
|
+
font-family: ${Ae.fontFamily};
|
|
186
|
+
font-size: ${Ae.fontSize};
|
|
187
|
+
font-weight: ${Ae.fontWeight};
|
|
188
|
+
letter-spacing: ${Ae.letterSpacing};
|
|
189
|
+
line-height: ${Ae.lineHeight};
|
|
190
|
+
text-transform: ${Ae.textTransform};
|
|
191
|
+
}
|
|
192
|
+
`,si=y`
|
|
193
|
+
.ft-typography--breadcrumb {
|
|
194
|
+
font-family: ${Ie};
|
|
195
|
+
font-size: ${Pe};
|
|
196
|
+
font-weight: ${Le};
|
|
216
197
|
letter-spacing: ${Te};
|
|
217
|
-
line-height: ${
|
|
218
|
-
text-transform: ${
|
|
198
|
+
line-height: ${_e};
|
|
199
|
+
text-transform: ${Ze};
|
|
219
200
|
}
|
|
220
|
-
`,
|
|
201
|
+
`,ni=y`
|
|
202
|
+
.ft-typography--overline {
|
|
203
|
+
font-family: ${We};
|
|
204
|
+
font-size: ${He};
|
|
205
|
+
font-weight: ${Ke};
|
|
206
|
+
letter-spacing: ${Ve};
|
|
207
|
+
line-height: ${Je};
|
|
208
|
+
text-transform: ${qe};
|
|
209
|
+
}
|
|
210
|
+
`,ri=y`
|
|
221
211
|
.ft-typography--button {
|
|
222
|
-
font-family: ${
|
|
223
|
-
font-size: ${
|
|
224
|
-
font-weight: ${
|
|
225
|
-
letter-spacing: ${
|
|
226
|
-
line-height: ${
|
|
227
|
-
text-transform: ${
|
|
228
|
-
}
|
|
229
|
-
`,
|
|
212
|
+
font-family: ${Xe.fontFamily};
|
|
213
|
+
font-size: ${Xe.fontSize};
|
|
214
|
+
font-weight: ${Xe.fontWeight};
|
|
215
|
+
letter-spacing: ${Xe.letterSpacing};
|
|
216
|
+
line-height: ${Xe.lineHeight};
|
|
217
|
+
text-transform: ${Xe.textTransform};
|
|
218
|
+
}
|
|
219
|
+
`,li=y`
|
|
230
220
|
.ft-typography {
|
|
231
221
|
vertical-align: inherit;
|
|
232
222
|
}
|
|
233
|
-
`;var
|
|
234
|
-
<${
|
|
223
|
+
`;var ai=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 ci extends Rt{constructor(){super(...arguments),this.variant=ie.body1}render(){return this.element?ee`
|
|
224
|
+
<${Qt(this.element)}
|
|
235
225
|
class="ft-typography ft-typography--${this.variant}">
|
|
236
226
|
<slot></slot>
|
|
237
|
-
</${
|
|
238
|
-
`:
|
|
227
|
+
</${Qt(this.element)}>
|
|
228
|
+
`:ee`
|
|
239
229
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
240
|
-
`}}
|
|
230
|
+
`}}ci.styles=[Ye,Ge,Qe,ti,ei,ii,oi,si,ni,ri,li],ai([o()],ci.prototype,"element",void 0),ai([o()],ci.prototype,"variant",void 0),f("ft-typography")(ci);const pi={fontSize:mt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:mt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:mt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:mt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:mt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:mt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:mt.extend("--ft-input-label-border-color",wt.colorOutline),textColor:mt.extend("--ft-input-label-text-color",wt.colorOnSurfaceMedium),disabledTextColor:mt.extend("--ft-input-label-disabled-text-color",wt.colorOnSurfaceDisabled),colorSurface:mt.external(wt.colorSurface,"Design system"),borderRadiusS:mt.external(wt.borderRadiusS,"Design system"),colorError:mt.external(wt.colorError,"Design system")},di=y`
|
|
241
231
|
.ft-input-label {
|
|
242
232
|
position: absolute;
|
|
243
233
|
inset: 0;
|
|
244
234
|
display: flex;
|
|
245
|
-
background-color: ${
|
|
246
|
-
border-radius: ${
|
|
235
|
+
background-color: ${pi.colorSurface};
|
|
236
|
+
border-radius: ${pi.borderRadiusS} ${pi.borderRadiusS} 0 0;
|
|
247
237
|
}
|
|
248
238
|
|
|
249
239
|
.ft-input-label--outlined {
|
|
250
|
-
border-radius: ${
|
|
240
|
+
border-radius: ${pi.borderRadiusS};
|
|
251
241
|
}
|
|
252
242
|
|
|
253
243
|
.ft-input-label {
|
|
254
|
-
border-color: ${
|
|
244
|
+
border-color: ${pi.borderColor};
|
|
255
245
|
}
|
|
256
246
|
|
|
257
247
|
.ft-input-label.ft-input-label--in-error {
|
|
258
|
-
border-color: ${
|
|
248
|
+
border-color: ${pi.colorError}
|
|
259
249
|
}
|
|
260
250
|
|
|
261
251
|
.ft-input-label:before,
|
|
@@ -268,7 +258,7 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
268
258
|
}
|
|
269
259
|
|
|
270
260
|
.ft-input-label:before {
|
|
271
|
-
width: calc(${
|
|
261
|
+
width: calc(${pi.horizontalSpacing} - 4px);
|
|
272
262
|
flex-shrink: 0;
|
|
273
263
|
}
|
|
274
264
|
|
|
@@ -284,20 +274,20 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
284
274
|
border-bottom-width: 1px;
|
|
285
275
|
border-bottom-style: solid;
|
|
286
276
|
border-color: inherit;
|
|
287
|
-
color: ${
|
|
277
|
+
color: ${pi.textColor};
|
|
288
278
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
289
|
-
max-width: calc(${
|
|
279
|
+
max-width: calc(${pi.labelMaxWidth} - 2 * (${pi.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
290
280
|
text-overflow: ellipsis;
|
|
291
|
-
${
|
|
292
|
-
${
|
|
281
|
+
${$t(Ae.fontSize,pi.fontSize)};
|
|
282
|
+
${$t(Ae.lineHeight,pi.fontSize)};
|
|
293
283
|
}
|
|
294
284
|
|
|
295
285
|
.ft-input-label--in-error .ft-input-label--text {
|
|
296
|
-
color: ${
|
|
286
|
+
color: ${pi.colorError}
|
|
297
287
|
}
|
|
298
288
|
|
|
299
289
|
.ft-input-label--disabled .ft-input-label--text {
|
|
300
|
-
color: ${
|
|
290
|
+
color: ${pi.disabledTextColor};
|
|
301
291
|
}
|
|
302
292
|
|
|
303
293
|
.ft-input-label--hidden-text {
|
|
@@ -314,19 +304,19 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
314
304
|
overflow: hidden;
|
|
315
305
|
white-space: nowrap;
|
|
316
306
|
text-overflow: ellipsis;
|
|
317
|
-
padding: ${
|
|
318
|
-
margin: calc(${
|
|
307
|
+
padding: ${pi.verticalSpacing} 4px;
|
|
308
|
+
margin: calc(${pi.verticalSpacing} * -1) 0;
|
|
319
309
|
max-width: 100%;
|
|
320
310
|
box-sizing: border-box;
|
|
321
311
|
}
|
|
322
312
|
|
|
323
313
|
.ft-input-label--raised .ft-input-label--text {
|
|
324
|
-
${
|
|
325
|
-
${
|
|
314
|
+
${$t(Ae.fontSize,pi.raisedFontSize)};
|
|
315
|
+
${$t(Ae.lineHeight,pi.raisedFontSize)};
|
|
326
316
|
}
|
|
327
317
|
|
|
328
318
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
329
|
-
top: ${
|
|
319
|
+
top: ${pi.verticalSpacing};
|
|
330
320
|
}
|
|
331
321
|
|
|
332
322
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -339,36 +329,36 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
339
329
|
.ft-input-label--outlined:before {
|
|
340
330
|
border-left-width: 1px;
|
|
341
331
|
border-left-style: solid;
|
|
342
|
-
border-radius: ${
|
|
332
|
+
border-radius: ${pi.borderRadiusS} 0 0 ${pi.borderRadiusS};
|
|
343
333
|
}
|
|
344
334
|
|
|
345
335
|
.ft-input-label--outlined:after {
|
|
346
336
|
border-right-width: 1px;
|
|
347
337
|
border-right-style: solid;
|
|
348
|
-
border-radius: 0 ${
|
|
338
|
+
border-radius: 0 ${pi.borderRadiusS} ${pi.borderRadiusS} 0;
|
|
349
339
|
}
|
|
350
340
|
|
|
351
341
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
352
342
|
padding: 2px 4px;
|
|
353
|
-
z-index: ${
|
|
354
|
-
background-color: ${
|
|
355
|
-
border-radius: ${
|
|
343
|
+
z-index: ${pi.raisedZIndex};
|
|
344
|
+
background-color: ${pi.colorSurface};
|
|
345
|
+
border-radius: ${pi.borderRadiusS};
|
|
356
346
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
357
347
|
}
|
|
358
348
|
|
|
359
349
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
360
350
|
border-top: none;
|
|
361
351
|
}
|
|
362
|
-
`;var
|
|
363
|
-
<div class="${
|
|
364
|
-
${this.text?
|
|
352
|
+
`;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 hi extends Rt{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 G`
|
|
353
|
+
<div class="${Xt(t)}">
|
|
354
|
+
${this.text?G`
|
|
365
355
|
<div class="ft-input-label--text ft-typography--caption">
|
|
366
356
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
367
357
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
368
358
|
</div>
|
|
369
359
|
`:null}
|
|
370
360
|
</div>
|
|
371
|
-
`}}
|
|
361
|
+
`}}hi.elementDefinitions={},hi.styles=[oi,di],fi([o({type:String})],hi.prototype,"text",void 0),fi([o({type:Boolean})],hi.prototype,"raised",void 0),fi([o({type:Boolean})],hi.prototype,"outlined",void 0),fi([o({type:Boolean})],hi.prototype,"disabled",void 0),fi([o({type:Boolean})],hi.prototype,"error",void 0),f("ft-input-label")(hi);const ui=mt.extend("--ft-ripple-color",wt.colorContent),vi={color:ui,backgroundColor:mt.extend("--ft-ripple-background-color",ui),opacityContentOnSurfacePressed:mt.external(wt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:mt.external(wt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:mt.external(wt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:mt.external(wt.opacityContentOnSurfaceSelected,"Design system")},xi=mt.extend("--ft-ripple-color",wt.colorPrimary),bi=xi,gi=mt.extend("--ft-ripple-background-color",xi),yi=mt.extend("--ft-ripple-color",wt.colorSecondary),mi=yi,$i=mt.extend("--ft-ripple-background-color",yi),wi=y`
|
|
372
362
|
:host {
|
|
373
363
|
display: contents;
|
|
374
364
|
}
|
|
@@ -390,27 +380,27 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
390
380
|
}
|
|
391
381
|
|
|
392
382
|
.ft-ripple .ft-ripple--background {
|
|
393
|
-
background-color: ${
|
|
383
|
+
background-color: ${vi.backgroundColor};
|
|
394
384
|
}
|
|
395
385
|
|
|
396
386
|
.ft-ripple .ft-ripple--effect {
|
|
397
|
-
background-color: ${
|
|
387
|
+
background-color: ${vi.color};
|
|
398
388
|
}
|
|
399
389
|
|
|
400
390
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
401
|
-
background-color: ${
|
|
391
|
+
background-color: ${$i};
|
|
402
392
|
}
|
|
403
393
|
|
|
404
394
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
405
|
-
background-color: ${
|
|
395
|
+
background-color: ${mi};
|
|
406
396
|
}
|
|
407
397
|
|
|
408
398
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
409
|
-
background-color: ${
|
|
399
|
+
background-color: ${gi};
|
|
410
400
|
}
|
|
411
401
|
|
|
412
402
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
413
|
-
background-color: ${
|
|
403
|
+
background-color: ${bi};
|
|
414
404
|
}
|
|
415
405
|
|
|
416
406
|
.ft-ripple .ft-ripple--background {
|
|
@@ -442,22 +432,22 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
442
432
|
}
|
|
443
433
|
|
|
444
434
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
445
|
-
opacity: ${
|
|
435
|
+
opacity: ${vi.opacityContentOnSurfaceHover};
|
|
446
436
|
}
|
|
447
437
|
|
|
448
438
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
449
|
-
opacity: ${
|
|
439
|
+
opacity: ${vi.opacityContentOnSurfaceSelected};
|
|
450
440
|
}
|
|
451
441
|
|
|
452
442
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
453
|
-
opacity: ${
|
|
443
|
+
opacity: ${vi.opacityContentOnSurfaceFocused};
|
|
454
444
|
}
|
|
455
445
|
|
|
456
446
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
457
|
-
opacity: ${
|
|
447
|
+
opacity: ${vi.opacityContentOnSurfacePressed};
|
|
458
448
|
transform: translate(-50%, -50%) scale(1);
|
|
459
449
|
}
|
|
460
|
-
`;var
|
|
450
|
+
`;var Oi,Si,ki=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 Ei extends Rt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),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 G`
|
|
461
451
|
<style>
|
|
462
452
|
.ft-ripple .ft-ripple--effect,
|
|
463
453
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -470,11 +460,11 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
470
460
|
top: ${this.originY}px;
|
|
471
461
|
}
|
|
472
462
|
</style>
|
|
473
|
-
<div class="${
|
|
463
|
+
<div class="${Xt(t)}">
|
|
474
464
|
<div class="ft-ripple--background"></div>
|
|
475
465
|
<div class="ft-ripple--effect"></div>
|
|
476
466
|
</div>
|
|
477
|
-
`}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),f("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`
|
|
467
|
+
`}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()}}Ei.elementDefinitions={},Ei.styles=wi,ki([o({type:Boolean})],Ei.prototype,"primary",void 0),ki([o({type:Boolean})],Ei.prototype,"secondary",void 0),ki([o({type:Boolean})],Ei.prototype,"unbounded",void 0),ki([o({type:Boolean})],Ei.prototype,"activated",void 0),ki([o({type:Boolean})],Ei.prototype,"selected",void 0),ki([o({type:Boolean})],Ei.prototype,"disabled",void 0),ki([s()],Ei.prototype,"hovered",void 0),ki([s()],Ei.prototype,"focused",void 0),ki([s()],Ei.prototype,"pressed",void 0),ki([s()],Ei.prototype,"rippling",void 0),ki([s()],Ei.prototype,"rippleSize",void 0),ki([s()],Ei.prototype,"originX",void 0),ki([s()],Ei.prototype,"originY",void 0),ki([r(".ft-ripple")],Ei.prototype,"ripple",void 0),ki([r(".ft-ripple--effect")],Ei.prototype,"rippleEffect",void 0),f("ft-ripple")(Ei),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=""}(Oi||(Oi={})),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=""}(Si||(Si={})),new Map([...["abw"].map((t=>[t,Si.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,Si.AUDIO])),...["avi"].map((t=>[t,Si.AVI])),...["chm","xhs"].map((t=>[t,Si.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,Si.CODE])),...["csv"].map((t=>[t,Si.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Si.DITA])),...["epub"].map((t=>[t,Si.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Si.EXCEL])),...["flac"].map((t=>[t,Si.FLAC])),...["gif"].map((t=>[t,Si.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Si.GZIP])),...["html","htm","xhtml"].map((t=>[t,Si.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,Si.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Si.JPEG])),...["json"].map((t=>[t,Si.JSON])),...["m4a","m4p"].map((t=>[t,Si.M4A])),...["mov","qt"].map((t=>[t,Si.MOV])),...["mp3"].map((t=>[t,Si.MP3])),...["mp4","m4v"].map((t=>[t,Si.MP4])),...["ogg","oga"].map((t=>[t,Si.OGG])),...["pdf","ps"].map((t=>[t,Si.PDF])),...["png"].map((t=>[t,Si.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Si.POWERPOINT])),...["rar"].map((t=>[t,Si.RAR])),...["stp"].map((t=>[t,Si.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Si.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,Si.VIDEO])),...["wav"].map((t=>[t,Si.WAV])),...["wma"].map((t=>[t,Si.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Si.WORD])),...["xml","xsl","rdf"].map((t=>[t,Si.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Si.YAML])),...["zip"].map((t=>[t,Si.ZIP]))]);const Ci={size:mt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:mt.extend("--ft-icon-fluid-topics-font-family",mt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:mt.extend("--ft-icon-file-format-font-family",mt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:mt.extend("--ft-icon-material-font-family",mt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:mt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ni=y`
|
|
478
468
|
:host, i.ft-icon {
|
|
479
469
|
display: inline-flex;
|
|
480
470
|
align-items: center;
|
|
@@ -483,14 +473,14 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
483
473
|
}
|
|
484
474
|
|
|
485
475
|
:host {
|
|
486
|
-
width: ${
|
|
487
|
-
height: ${
|
|
476
|
+
width: ${Ci.size};
|
|
477
|
+
height: ${Ci.size};
|
|
488
478
|
}
|
|
489
479
|
|
|
490
480
|
i.ft-icon {
|
|
491
481
|
width: 100%;
|
|
492
482
|
height: 100%;
|
|
493
|
-
font-size: ${
|
|
483
|
+
font-size: ${Ci.size};
|
|
494
484
|
line-height: 1;
|
|
495
485
|
font-weight: normal;
|
|
496
486
|
text-transform: none;
|
|
@@ -501,32 +491,32 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
501
491
|
text-rendering: auto;
|
|
502
492
|
-webkit-font-smoothing: antialiased;
|
|
503
493
|
-moz-osx-font-smoothing: grayscale;
|
|
504
|
-
vertical-align: ${
|
|
494
|
+
vertical-align: ${Ci.verticalAlign};
|
|
505
495
|
}
|
|
506
496
|
|
|
507
497
|
i.ft-icon.ft-icon--fluid-topics {
|
|
508
|
-
font-family: ${
|
|
498
|
+
font-family: ${Ci.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
509
499
|
|
|
510
500
|
/* Ugly fix because font is broken */
|
|
511
|
-
font-size: calc(0.
|
|
501
|
+
font-size: calc(0.75 * ${Ci.size});
|
|
512
502
|
position: relative;
|
|
513
|
-
top: -
|
|
503
|
+
top: -4%;
|
|
514
504
|
justify-content: center;
|
|
515
505
|
}
|
|
516
506
|
|
|
517
507
|
.ft-icon--file-format {
|
|
518
|
-
font-family: ${
|
|
508
|
+
font-family: ${Ci.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
519
509
|
}
|
|
520
510
|
|
|
521
511
|
.ft-icon--material {
|
|
522
|
-
font-family: ${
|
|
512
|
+
font-family: ${Ci.materialFontFamily}, "Material Icons", sans-serif;
|
|
523
513
|
}
|
|
524
|
-
`;var
|
|
525
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
526
|
-
${
|
|
527
|
-
<slot ?hidden=${
|
|
514
|
+
`;var Ri;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ri||(Ri={}));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 Mi extends Rt{constructor(){super(...arguments),this.resolvedIcon=tt}render(){const t=this.variant&&Object.values(Ri).includes(this.variant)?this.variant:Ri.fluid_topics,e=t!==Ri.material||!!this.value;return G`
|
|
515
|
+
<i class="ft-icon ${"ft-icon--"+t}">
|
|
516
|
+
${qt(this.resolvedIcon)}
|
|
517
|
+
<slot ?hidden=${e}></slot>
|
|
528
518
|
</i>
|
|
529
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
519
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ri.file_format:this.resolvedIcon=null!==(t=Si[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ri.material:this.resolvedIcon=this.value||tt;break;default:this.resolvedIcon=null!==(e=Oi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Mi.elementDefinitions={},Mi.styles=Ni,zi([o()],Mi.prototype,"variant",void 0),zi([o()],Mi.prototype,"value",void 0),zi([s()],Mi.prototype,"resolvedIcon",void 0),zi([r("slot")],Mi.prototype,"slottedContent",void 0),f("ft-icon")(Mi);const Fi={labelSize:mt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:mt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:mt.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:mt.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:mt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:mt.extend("--ft-select-selected-option-color",wt.colorOnSurface),helperColor:mt.extend("--ft-select-helper-color",wt.colorOnSurfaceMedium),optionsColor:mt.extend("--ft-select-options-color",wt.colorOnSurface),optionsZIndex:mt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:mt.external(wt.colorSurface,"Design system"),colorOnSurfaceDisabled:mt.external(wt.colorOnSurfaceDisabled,"Design system"),colorPrimary:mt.external(wt.colorPrimary,"Design system"),borderRadiusS:mt.external(wt.borderRadiusS,"Design system"),elevation02:mt.external(wt.elevation02,"Design system"),colorError:mt.external(wt.colorError,"Design system")},Ui=y`
|
|
530
520
|
*:focus {
|
|
531
521
|
outline: none;
|
|
532
522
|
}
|
|
@@ -540,7 +530,7 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
540
530
|
.ft-select--main-panel {
|
|
541
531
|
position: relative;
|
|
542
532
|
display: flex;
|
|
543
|
-
height: calc(4 * ${
|
|
533
|
+
height: calc(4 * ${Fi.verticalSpacing} + ${Fi.labelSize} + ${Fi.selectedOptionSize});
|
|
544
534
|
}
|
|
545
535
|
|
|
546
536
|
.ft-select--input-panel {
|
|
@@ -549,17 +539,17 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
549
539
|
display: flex;
|
|
550
540
|
align-items: center;
|
|
551
541
|
overflow: hidden;
|
|
552
|
-
padding-left: ${
|
|
553
|
-
padding-right: ${
|
|
542
|
+
padding-left: ${Fi.horizontalSpacing};
|
|
543
|
+
padding-right: ${Fi.horizontalSpacing};
|
|
554
544
|
gap: 8px;
|
|
555
|
-
color: ${
|
|
556
|
-
${
|
|
545
|
+
color: ${Fi.selectedOptionColor};
|
|
546
|
+
${$t(vi.color,Fi.selectedOptionColor)};
|
|
557
547
|
}
|
|
558
548
|
|
|
559
549
|
.ft-select--input-panel,
|
|
560
550
|
.ft-select--option {
|
|
561
|
-
${
|
|
562
|
-
${
|
|
551
|
+
${$t(vi.opacityContentOnSurfaceHover,"0.08")};
|
|
552
|
+
${$t(vi.opacityContentOnSurfacePressed,"0.04")};
|
|
563
553
|
}
|
|
564
554
|
|
|
565
555
|
.ft-select--input-panel > *:not(ft-ripple),
|
|
@@ -569,7 +559,7 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
569
559
|
|
|
570
560
|
.ft-select--disabled .ft-select--input-panel,
|
|
571
561
|
.ft-select--disabled .ft-select--option {
|
|
572
|
-
color: ${
|
|
562
|
+
color: ${Fi.colorOnSurfaceDisabled};
|
|
573
563
|
}
|
|
574
564
|
|
|
575
565
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -578,20 +568,20 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
578
568
|
}
|
|
579
569
|
|
|
580
570
|
ft-input-label {
|
|
581
|
-
${
|
|
582
|
-
${
|
|
583
|
-
${
|
|
584
|
-
${
|
|
585
|
-
${
|
|
571
|
+
${$t(pi.fontSize,Fi.selectedOptionSize)};
|
|
572
|
+
${$t(pi.raisedFontSize,Fi.labelSize)};
|
|
573
|
+
${$t(pi.verticalSpacing,Fi.verticalSpacing)};
|
|
574
|
+
${$t(pi.horizontalSpacing,Fi.horizontalSpacing)};
|
|
575
|
+
${$t(pi.labelMaxWidth,`calc(100% - ${Ci.size} - 8px)`)};
|
|
586
576
|
}
|
|
587
577
|
|
|
588
578
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
589
|
-
color: ${
|
|
579
|
+
color: ${Fi.colorPrimary};
|
|
590
580
|
}
|
|
591
581
|
|
|
592
582
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
593
|
-
${
|
|
594
|
-
${
|
|
583
|
+
${$t(pi.borderColor,Fi.colorPrimary)};
|
|
584
|
+
${$t(pi.textColor,Fi.colorPrimary)};
|
|
595
585
|
}
|
|
596
586
|
|
|
597
587
|
.ft-select--selected-option {
|
|
@@ -601,12 +591,12 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
601
591
|
overflow: hidden;
|
|
602
592
|
white-space: nowrap;
|
|
603
593
|
text-overflow: ellipsis;
|
|
604
|
-
${
|
|
605
|
-
${
|
|
594
|
+
${$t(ze.fontSize,Fi.selectedOptionSize)};
|
|
595
|
+
${$t(ze.lineHeight,Fi.selectedOptionSize)};
|
|
606
596
|
}
|
|
607
597
|
|
|
608
598
|
.ft-select--in-error .ft-select--selected-option {
|
|
609
|
-
color: ${
|
|
599
|
+
color: ${Fi.colorError};
|
|
610
600
|
}
|
|
611
601
|
|
|
612
602
|
ft-icon {
|
|
@@ -618,16 +608,16 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
618
608
|
}
|
|
619
609
|
|
|
620
610
|
.ft-select--filled .ft-select--input-panel {
|
|
621
|
-
border-radius: ${
|
|
611
|
+
border-radius: ${Fi.borderRadiusS} ${Fi.borderRadiusS} 0 0;
|
|
622
612
|
}
|
|
623
613
|
|
|
624
614
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
625
615
|
align-self: stretch;
|
|
626
|
-
padding-top: calc(${
|
|
616
|
+
padding-top: calc(${Fi.labelSize} + 2 * ${Fi.verticalSpacing});
|
|
627
617
|
}
|
|
628
618
|
|
|
629
619
|
.ft-select--outlined .ft-select--input-panel {
|
|
630
|
-
border-radius: ${
|
|
620
|
+
border-radius: ${Fi.borderRadiusS};
|
|
631
621
|
}
|
|
632
622
|
|
|
633
623
|
.ft-select--options {
|
|
@@ -636,10 +626,10 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
636
626
|
top: 100%;
|
|
637
627
|
left: 0;
|
|
638
628
|
right: 0;
|
|
639
|
-
color: ${
|
|
640
|
-
background: ${
|
|
641
|
-
z-index: ${
|
|
642
|
-
box-shadow: ${
|
|
629
|
+
color: ${Fi.optionsColor};
|
|
630
|
+
background: ${Fi.colorSurface};
|
|
631
|
+
z-index: ${Fi.optionsZIndex};
|
|
632
|
+
box-shadow: ${Fi.elevation02};
|
|
643
633
|
}
|
|
644
634
|
|
|
645
635
|
.ft-select--fixed .ft-select--options {
|
|
@@ -650,13 +640,13 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
650
640
|
|
|
651
641
|
.ft-select--options-displayed .ft-select--options {
|
|
652
642
|
display: block;
|
|
653
|
-
max-height: ${
|
|
643
|
+
max-height: ${Fi.optionsHeight};
|
|
654
644
|
overflow-y: auto;
|
|
655
645
|
}
|
|
656
646
|
|
|
657
647
|
.ft-select--option {
|
|
658
648
|
position: relative;
|
|
659
|
-
padding: 4px ${
|
|
649
|
+
padding: 4px ${Fi.horizontalSpacing};
|
|
660
650
|
min-height: 32px;
|
|
661
651
|
display: flex;
|
|
662
652
|
align-items: center;
|
|
@@ -668,15 +658,15 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
668
658
|
}
|
|
669
659
|
|
|
670
660
|
.ft-select--helper-text {
|
|
671
|
-
padding: 0 ${
|
|
672
|
-
color: ${
|
|
661
|
+
padding: 0 ${Fi.horizontalSpacing};
|
|
662
|
+
color: ${Fi.helperColor};
|
|
673
663
|
}
|
|
674
664
|
|
|
675
665
|
.ft-select--in-error .ft-select--helper-text {
|
|
676
|
-
color: ${
|
|
666
|
+
color: ${Fi.colorError};
|
|
677
667
|
}
|
|
678
|
-
`;var
|
|
679
|
-
<div class="${
|
|
668
|
+
`;var ji=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 Bi extends Rt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return G``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Bi.elementDefinitions={},ji([o({type:String})],Bi.prototype,"label",void 0),ji([o({type:Object,converter:t=>t})],Bi.prototype,"value",void 0),ji([o({type:Boolean,reflect:!0})],Bi.prototype,"selected",void 0);class Di extends Rt{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 G`
|
|
669
|
+
<div class="${Xt(a)}" part="container">
|
|
680
670
|
<div class="ft-select--main-panel" part="main-panel">
|
|
681
671
|
<ft-input-label text="${this.label}"
|
|
682
672
|
part="label"
|
|
@@ -697,24 +687,24 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
697
687
|
<ft-typography variant="body1" class="ft-select--selected-option">
|
|
698
688
|
${null!==(s=null===(o=this.selectedOption)||void 0===o?void 0:o.label)&&void 0!==s?s:""}
|
|
699
689
|
</ft-typography>
|
|
700
|
-
<ft-icon
|
|
690
|
+
<ft-icon>${n?"thin_arrow_up":"thin_arrow"}</ft-icon>
|
|
701
691
|
</div>
|
|
702
692
|
<div class="ft-select--options"
|
|
703
693
|
part="options"
|
|
704
694
|
@keydown=${this.onOptionsKeyDown}
|
|
705
695
|
innerrole="listbox">
|
|
706
|
-
${
|
|
696
|
+
${Vt(this.options,(t=>t.value),(t=>this.renderOption(t)))}
|
|
707
697
|
</div>
|
|
708
698
|
</div>
|
|
709
|
-
${this.helper?
|
|
699
|
+
${this.helper?G`
|
|
710
700
|
<ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
|
|
711
701
|
</ft-typography>`:void 0}
|
|
712
702
|
</div>
|
|
713
703
|
<slot @slotchange=${this.updateOptionsFromSlot}
|
|
714
704
|
@option-change=${this.updateOptionsFromSlot}
|
|
715
705
|
></slot>
|
|
716
|
-
`}renderOption(t){let e=this.selectedOption===t;return
|
|
717
|
-
<div class="${
|
|
706
|
+
`}renderOption(t){let e=this.selectedOption===t;return G`
|
|
707
|
+
<div class="${Xt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
|
|
718
708
|
part="option"
|
|
719
709
|
tabindex="0"
|
|
720
710
|
data-value="${t.value}"
|
|
@@ -723,13 +713,13 @@ class Lt extends Ft{constructor(t){if(super(t),this.it=G,t.type!==zt)throw Error
|
|
|
723
713
|
<ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
|
|
724
714
|
<span>${t.label}</span>
|
|
725
715
|
</div>
|
|
726
|
-
`}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(!d(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)}}
|
|
716
|
+
`}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(!d(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)}}Di.elementDefinitions={"ft-input-label":hi,"ft-typography":ci,"ft-ripple":Ei,"ft-icon":Mi},Di.styles=[ii,oi,Ui],ji([o({type:String})],Di.prototype,"label",void 0),ji([o({type:String})],Di.prototype,"helper",void 0),ji([o({type:Boolean})],Di.prototype,"outlined",void 0),ji([o({type:Boolean})],Di.prototype,"disabled",void 0),ji([o({type:Boolean})],Di.prototype,"error",void 0),ji([o({type:Boolean})],Di.prototype,"fixedMenuPosition",void 0),ji([o({type:Array})],Di.prototype,"options",void 0),ji([s()],Di.prototype,"selectedOption",void 0),ji([s()],Di.prototype,"optionsDisplayed",void 0),ji([s()],Di.prototype,"focusOptions",void 0),ji([r(".ft-select")],Di.prototype,"container",void 0),ji([r(".ft-select--options")],Di.prototype,"optionsMenu",void 0),ji([r(".ft-select--input-panel")],Di.prototype,"mainPanel",void 0),ji([r(".ft-select--option:first-child")],Di.prototype,"firstOption",void 0),ji([r(".ft-select--option:focus")],Di.prototype,"focusedOption",void 0),ji([r(".ft-select--option.ft-select--option-selected")],Di.prototype,"selectedOptionElement",void 0),ji([r(".ft-select--option:last-child")],Di.prototype,"lastOption",void 0),ji([r("slot")],Di.prototype,"optionsSlot",void 0),f("ft-select")(Di),f("ft-select-option")(Bi);
|
|
727
717
|
/**
|
|
728
718
|
* @license
|
|
729
719
|
* Copyright 2018 Google LLC
|
|
730
720
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
731
721
|
*/
|
|
732
|
-
const
|
|
722
|
+
const Ai={fontSize:mt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:mt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:mt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:mt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:mt.extend("--ft-text-field-helper-color",wt.colorOnSurfaceMedium),colorPrimary:mt.external(wt.colorPrimary,"Design system"),colorOnSurface:mt.external(wt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:mt.external(wt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:mt.external(wt.borderRadiusS,"Design system"),colorError:mt.external(wt.colorError,"Design system"),prefixColor:mt.extend("--ft-text-field-prefix-color",wt.colorOnSurfaceMedium),iconColor:mt.extend("--ft-text-field-icon-color",wt.colorOnSurfaceMedium),floatingZIndex:mt.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:mt.external(wt.colorSurface,"Design system"),colorOutline:mt.external(wt.colorOutline,"Design system"),elevation02:mt.external(wt.elevation02,"Design system"),suggestSize:mt.create("--ft-text-field-suggest-size","SIZE","300px")},Ii=y`
|
|
733
723
|
*:focus {
|
|
734
724
|
outline: none;
|
|
735
725
|
}
|
|
@@ -742,16 +732,16 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
742
732
|
}
|
|
743
733
|
|
|
744
734
|
ft-input-label {
|
|
745
|
-
${
|
|
746
|
-
${
|
|
747
|
-
${
|
|
748
|
-
${
|
|
735
|
+
${$t(pi.fontSize,Ai.fontSize)};
|
|
736
|
+
${$t(pi.raisedFontSize,Ai.labelSize)};
|
|
737
|
+
${$t(pi.verticalSpacing,Ai.verticalSpacing)};
|
|
738
|
+
${$t(pi.horizontalSpacing,Ai.horizontalSpacing)};
|
|
749
739
|
}
|
|
750
740
|
|
|
751
741
|
.ft-text-field--main-panel {
|
|
752
742
|
position: relative;
|
|
753
743
|
display: flex;
|
|
754
|
-
height: calc(4 * ${
|
|
744
|
+
height: calc(4 * ${Ai.verticalSpacing} + ${Ai.labelSize} + ${Ai.fontSize});
|
|
755
745
|
}
|
|
756
746
|
|
|
757
747
|
.ft-text-field--input-panel {
|
|
@@ -760,24 +750,24 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
760
750
|
display: flex;
|
|
761
751
|
align-items: center;
|
|
762
752
|
overflow: hidden;
|
|
763
|
-
padding: 0 ${
|
|
753
|
+
padding: 0 ${Ai.horizontalSpacing};
|
|
764
754
|
|
|
765
|
-
${
|
|
766
|
-
${
|
|
755
|
+
${$t(ze.fontSize,Ai.fontSize)};
|
|
756
|
+
${$t(ze.lineHeight,Ai.fontSize)};
|
|
767
757
|
}
|
|
768
758
|
|
|
769
759
|
.ft-text-field--input-panel ft-ripple {
|
|
770
|
-
${
|
|
771
|
-
${
|
|
760
|
+
${$t(vi.opacityContentOnSurfaceHover,"0.08")};
|
|
761
|
+
${$t(vi.opacityContentOnSurfacePressed,"0.04")};
|
|
772
762
|
}
|
|
773
763
|
|
|
774
764
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
775
765
|
align-items: flex-end;
|
|
776
|
-
padding: 0 ${
|
|
766
|
+
padding: 0 ${Ai.horizontalSpacing} ${Ai.verticalSpacing} ${Ai.horizontalSpacing};
|
|
777
767
|
}
|
|
778
768
|
|
|
779
769
|
.ft-text-field--prefix {
|
|
780
|
-
color: ${
|
|
770
|
+
color: ${Ai.prefixColor};
|
|
781
771
|
margin-right: 2px;
|
|
782
772
|
flex-shrink: 1;
|
|
783
773
|
overflow: hidden;
|
|
@@ -796,15 +786,15 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
796
786
|
flex-shrink: 1;
|
|
797
787
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
798
788
|
|
|
799
|
-
color: ${
|
|
800
|
-
padding: calc(2 * ${
|
|
789
|
+
color: ${Ai.colorOnSurface};
|
|
790
|
+
padding: calc(2 * ${Ai.verticalSpacing}) 0;
|
|
801
791
|
border: none;
|
|
802
792
|
background: none;
|
|
803
793
|
}
|
|
804
794
|
|
|
805
795
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
806
796
|
padding-bottom: 0;
|
|
807
|
-
padding-top: calc(${
|
|
797
|
+
padding-top: calc(${Ai.labelSize} + 2 * ${Ai.verticalSpacing});
|
|
808
798
|
}
|
|
809
799
|
|
|
810
800
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -813,37 +803,37 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
813
803
|
}
|
|
814
804
|
|
|
815
805
|
.ft-text-field--disabled .ft-text-field--input {
|
|
816
|
-
color: ${
|
|
806
|
+
color: ${Ai.colorOnSurfaceDisabled};
|
|
817
807
|
}
|
|
818
808
|
|
|
819
809
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
820
|
-
${
|
|
821
|
-
${
|
|
810
|
+
${$t(pi.borderColor,Ai.colorPrimary)};
|
|
811
|
+
${$t(pi.textColor,Ai.colorPrimary)};
|
|
822
812
|
}
|
|
823
813
|
|
|
824
814
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
825
|
-
border-radius: ${
|
|
815
|
+
border-radius: ${Ai.borderRadiusS} ${Ai.borderRadiusS} 0 0;
|
|
826
816
|
}
|
|
827
817
|
|
|
828
818
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
829
|
-
border-radius: ${
|
|
819
|
+
border-radius: ${Ai.borderRadiusS};
|
|
830
820
|
}
|
|
831
821
|
|
|
832
822
|
.ft-text-field--helper-text {
|
|
833
|
-
padding: 0 12px 0 ${
|
|
834
|
-
color: ${
|
|
823
|
+
padding: 0 12px 0 ${Ai.horizontalSpacing};
|
|
824
|
+
color: ${Ai.helperColor};
|
|
835
825
|
}
|
|
836
826
|
|
|
837
827
|
.ft-text-field--in-error .ft-text-field--input,
|
|
838
828
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
839
829
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
840
|
-
color: ${
|
|
830
|
+
color: ${Ai.colorError};
|
|
841
831
|
}
|
|
842
832
|
|
|
843
833
|
.ft-text-field--icon {
|
|
844
834
|
align-self: center;
|
|
845
835
|
margin-left: 8px;
|
|
846
|
-
color: ${
|
|
836
|
+
color: ${Ai.iconColor};
|
|
847
837
|
}
|
|
848
838
|
|
|
849
839
|
.ft-text-field--container {
|
|
@@ -856,13 +846,13 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
856
846
|
position: absolute;
|
|
857
847
|
left: 0;
|
|
858
848
|
right: 0;
|
|
859
|
-
z-index: ${
|
|
860
|
-
background: ${
|
|
861
|
-
border: 1px solid ${
|
|
862
|
-
border-radius: 0 0 ${
|
|
863
|
-
box-shadow: ${
|
|
849
|
+
z-index: ${Ai.floatingZIndex};
|
|
850
|
+
background: ${Ai.colorSurface};
|
|
851
|
+
border: 1px solid ${Ai.colorOutline};
|
|
852
|
+
border-radius: 0 0 ${Ai.borderRadiusS} ${Ai.borderRadiusS};
|
|
853
|
+
box-shadow: ${Ai.elevation02};
|
|
864
854
|
outline: none;
|
|
865
|
-
max-height: ${
|
|
855
|
+
max-height: ${Ai.suggestSize};
|
|
866
856
|
overflow-y: auto;
|
|
867
857
|
}
|
|
868
858
|
|
|
@@ -879,10 +869,10 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
879
869
|
}
|
|
880
870
|
|
|
881
871
|
.ft-text-field--with-icon {
|
|
882
|
-
${
|
|
872
|
+
${$t(pi.labelMaxWidth,`calc(100% - ${Ci.size} - ${pi.horizontalSpacing})`)};
|
|
883
873
|
}
|
|
884
|
-
`;var
|
|
885
|
-
<div class="${
|
|
874
|
+
`;var Pi=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 Li extends Rt{constructor(){super(...arguments),this._value="",this.dispatchedValue="",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=[]}get value(){return this._value}set value(t){this.setInternalValue(t),this.dispatchedValue=t}setInternalValue(t){const e=this._value;this._value=t,this.requestUpdate("value",e)}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 G`
|
|
875
|
+
<div class="${Xt(t)}">
|
|
886
876
|
<div class="ft-text-field--main-panel"
|
|
887
877
|
@keydown=${this.handleKeyboardNavigation}
|
|
888
878
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -892,16 +882,16 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
892
882
|
?raised=${this.focused||""!=this.value}
|
|
893
883
|
?error=${this.error}></ft-input-label>
|
|
894
884
|
<div class="ft-text-field--input-panel">
|
|
895
|
-
${this.outlined?G
|
|
885
|
+
${this.outlined?tt:G`
|
|
896
886
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
897
887
|
`}
|
|
898
|
-
${this.prefix?
|
|
888
|
+
${this.prefix?G`
|
|
899
889
|
<ft-typography class="ft-text-field--prefix" vaiant="body1">
|
|
900
890
|
${this.prefix}
|
|
901
891
|
</ft-typography>
|
|
902
|
-
`:
|
|
892
|
+
`:tt}
|
|
903
893
|
<input type="text"
|
|
904
|
-
maxlength=${(t=>null!=t?t:
|
|
894
|
+
maxlength=${(t=>null!=t?t:tt)(this.maxLength||void 0)}
|
|
905
895
|
aria-label="${this.label}"
|
|
906
896
|
class="ft-typography--body1 ft-text-field--input"
|
|
907
897
|
?disabled=${this.disabled}
|
|
@@ -909,25 +899,25 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
909
899
|
@click=${this.handleClick}
|
|
910
900
|
@keyup=${this.handleInput}
|
|
911
901
|
@focus=${this.onFocus}/>
|
|
912
|
-
${this.icon?
|
|
902
|
+
${this.icon?G`
|
|
913
903
|
<ft-icon class="ft-text-field--icon"
|
|
914
904
|
.variant=${this.iconVariant}
|
|
915
905
|
.value=${this.icon}
|
|
916
906
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
917
|
-
`:
|
|
907
|
+
`:tt}
|
|
918
908
|
</div>
|
|
919
909
|
<div class="ft-text-field--suggestions ${this.suggestionsOnTop?"ft-text-field--suggestions-on-top":""}"
|
|
920
910
|
@suggestion-selected=${this.onSuggestionSelected}>
|
|
921
911
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
922
912
|
</div>
|
|
923
913
|
</div>
|
|
924
|
-
${this.helper?
|
|
914
|
+
${this.helper?G`
|
|
925
915
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
926
916
|
${this.helper}
|
|
927
917
|
</ft-typography>
|
|
928
|
-
`:
|
|
918
|
+
`:tt}
|
|
929
919
|
</div>
|
|
930
|
-
`}updated(t){super.updated(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}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)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}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}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}}
|
|
920
|
+
`}updated(t){super.updated(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}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)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}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}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}}Li.elementDefinitions={"ft-input-label":hi,"ft-ripple":Ei,"ft-typography":ci,"ft-icon":Mi},Li.styles=[ei,Ii],Pi([o()],Li.prototype,"label",void 0),Pi([o({noAccessor:!0})],Li.prototype,"value",null),Pi([s()],Li.prototype,"dispatchedValue",void 0),Pi([o()],Li.prototype,"helper",void 0),Pi([o({type:Boolean})],Li.prototype,"outlined",void 0),Pi([o({type:Boolean})],Li.prototype,"disabled",void 0),Pi([o({type:Boolean})],Li.prototype,"error",void 0),Pi([o()],Li.prototype,"prefix",void 0),Pi([o()],Li.prototype,"icon",void 0),Pi([o()],Li.prototype,"iconVariant",void 0),Pi([o({type:Boolean})],Li.prototype,"filterSuggestions",void 0),Pi([o({type:Number})],Li.prototype,"maxLength",void 0),Pi([s()],Li.prototype,"focused",void 0),Pi([s()],Li.prototype,"suggestionsOnTop",void 0),Pi([s()],Li.prototype,"hideSuggestions",void 0),Pi([s()],Li.prototype,"visibleSuggestions",void 0),Pi([r(".ft-text-field--main-panel")],Li.prototype,"mainPanel",void 0),Pi([r(".ft-text-field--input")],Li.prototype,"input",void 0),Pi([r(".ft-text-field--suggestions")],Li.prototype,"suggestionsContainer",void 0),Pi([c({selector:"ft-text-field-suggestion"})],Li.prototype,"suggestions",void 0);const Ti=y`
|
|
931
921
|
.ft-text-field-suggestion {
|
|
932
922
|
position: relative;
|
|
933
923
|
padding: 8px 16px;
|
|
@@ -952,7 +942,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
952
942
|
slot {
|
|
953
943
|
pointer-events: none;
|
|
954
944
|
}
|
|
955
|
-
`;var
|
|
945
|
+
`;var _i=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 Zi extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Wi extends Rt{render(){return G`
|
|
956
946
|
<div class="ft-text-field-suggestion"
|
|
957
947
|
tabindex="-1"
|
|
958
948
|
@keydown=${this.onKeyDown}
|
|
@@ -964,7 +954,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
964
954
|
<slot></slot>
|
|
965
955
|
</ft-typography>
|
|
966
956
|
</div>
|
|
967
|
-
`}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
|
|
957
|
+
`}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 Zi(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())}}Wi.elementDefinitions={"ft-ripple":Ei,"ft-typography":ci,"ft-icon":Mi},Wi.styles=Ti,_i([o()],Wi.prototype,"value",void 0),_i([r(".ft-text-field-suggestion")],Wi.prototype,"container",void 0),_i([p()],Wi.prototype,"assignedNodes",void 0),f("ft-text-field")(Li),f("ft-text-field-suggestion")(Wi);const Hi=mt.create("--ft-tooltip-distance","SIZE","4px"),Ki=mt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Vi=mt.create("--ft-tooltip-background-color","COLOR","#666666"),Ji=mt.create("--ft-tooltip-z-index","NUMBER","1"),qi=mt.external(wt.borderRadiusS,"Design system"),Xi=mt.create("--ft-tooltip-max-width","SIZE","150px"),Yi=y`
|
|
968
958
|
.ft-tooltip--container {
|
|
969
959
|
display: block;
|
|
970
960
|
position: relative;
|
|
@@ -980,23 +970,23 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
980
970
|
box-sizing: border-box;
|
|
981
971
|
overflow: hidden;
|
|
982
972
|
width: max-content;
|
|
983
|
-
max-width: ${
|
|
973
|
+
max-width: ${Xi};
|
|
984
974
|
text-align: center;
|
|
985
|
-
padding: ${
|
|
986
|
-
z-index: ${
|
|
975
|
+
padding: ${Hi};
|
|
976
|
+
z-index: ${Ji};
|
|
987
977
|
}
|
|
988
978
|
|
|
989
979
|
.ft-tooltip--content {
|
|
990
980
|
padding: 4px 8px;
|
|
991
|
-
border-radius: ${
|
|
992
|
-
background-color: ${
|
|
993
|
-
color: ${
|
|
981
|
+
border-radius: ${qi};
|
|
982
|
+
background-color: ${Vi};
|
|
983
|
+
color: ${Ki};
|
|
994
984
|
top: -500px;
|
|
995
985
|
left: -500px;
|
|
996
986
|
position: relative;
|
|
997
987
|
word-break: break-word;
|
|
998
988
|
}
|
|
999
|
-
`;var
|
|
989
|
+
`;var 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 Qi extends Rt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return G`
|
|
1000
990
|
<div part="container"
|
|
1001
991
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
1002
992
|
@mouseenter=${this.onHover}
|
|
@@ -1014,7 +1004,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1014
1004
|
</div>
|
|
1015
1005
|
</div>
|
|
1016
1006
|
</div>
|
|
1017
|
-
`}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, ${
|
|
1007
|
+
`}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, ${Xi})`}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())}}Qi.elementDefinitions={"ft-typography":ci},Qi.styles=Yi,Gi([o()],Qi.prototype,"text",void 0),Gi([o({type:Boolean})],Qi.prototype,"manual",void 0),Gi([o({type:Boolean})],Qi.prototype,"inline",void 0),Gi([o({type:Number})],Qi.prototype,"delay",void 0),Gi([o()],Qi.prototype,"position",void 0),Gi([p("",!0)],Qi.prototype,"slotNodes",void 0),Gi([r(".ft-tooltip--container")],Qi.prototype,"container",void 0),Gi([r("slot")],Qi.prototype,"target",void 0),Gi([r(".ft-tooltip")],Qi.prototype,"tooltip",void 0),Gi([r(".ft-tooltip--content")],Qi.prototype,"tooltipContent",void 0),Gi([s()],Qi.prototype,"visible",void 0),f("ft-tooltip")(Qi);const to={color:mt.extend("--ft-loader-color",wt.colorPrimary),size:mt.create("--ft-loader-size","SIZE","80px")},eo=y`
|
|
1018
1008
|
:host {
|
|
1019
1009
|
line-height: 0;
|
|
1020
1010
|
}
|
|
@@ -1023,8 +1013,8 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1023
1013
|
display: inline-block;
|
|
1024
1014
|
position: relative;
|
|
1025
1015
|
|
|
1026
|
-
width: ${
|
|
1027
|
-
height: ${
|
|
1016
|
+
width: ${to.size};
|
|
1017
|
+
height: ${to.size};
|
|
1028
1018
|
}
|
|
1029
1019
|
|
|
1030
1020
|
.ft-loader div {
|
|
@@ -1033,7 +1023,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1033
1023
|
width: 25%;
|
|
1034
1024
|
height: 25%;
|
|
1035
1025
|
border-radius: 50%;
|
|
1036
|
-
background: ${
|
|
1026
|
+
background: ${to.color};
|
|
1037
1027
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
1038
1028
|
}
|
|
1039
1029
|
|
|
@@ -1080,17 +1070,17 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1080
1070
|
transform: translate(0, 0);
|
|
1081
1071
|
}
|
|
1082
1072
|
100% {
|
|
1083
|
-
transform: translate(calc(0.35 * ${
|
|
1073
|
+
transform: translate(calc(0.35 * ${to.size}), 0);
|
|
1084
1074
|
}
|
|
1085
1075
|
}
|
|
1086
|
-
`;class
|
|
1076
|
+
`;class io extends Rt{render(){return G`
|
|
1087
1077
|
<div class="ft-loader">
|
|
1088
1078
|
<div></div>
|
|
1089
1079
|
<div></div>
|
|
1090
1080
|
<div></div>
|
|
1091
1081
|
<div></div>
|
|
1092
1082
|
</div>
|
|
1093
|
-
`}}
|
|
1083
|
+
`}}io.styles=eo,f("ft-loader")(io);const oo=mt.extend("--ft-button-color",wt.colorPrimary),so={backgroundColor:mt.extend("--ft-button-background-color",wt.colorSurface),borderRadius:mt.extend("--ft-button-border-radius",wt.borderRadiusL),color:oo,fontSize:mt.extend("--ft-button-font-size",Xe.fontSize),iconSize:mt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:mt.extend("--ft-button-ripple-color",oo),verticalPadding:mt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:mt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:mt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:mt.external(wt.colorOpacityDisabled,"Design system")},no=mt.extend("--ft-button-primary-color",mt.extend("--ft-button-color",wt.colorOnPrimary)),ro={backgroundColor:mt.extend("--ft-button-primary-background-color",mt.extend("--ft-button-background-color",wt.colorPrimary)),color:no,rippleColor:mt.extend("--ft-button-primary-ripple-color",no)},lo=mt.extend("--ft-button-dense-border-radius",mt.extend("--ft-button-border-radius",wt.borderRadiusM)),ao=mt.create("--ft-button-dense-vertical-padding","SIZE","2px"),co=mt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),po=mt.create("--ft-button-dense-icon-padding","SIZE","4px"),fo=[zt,y`
|
|
1094
1084
|
:host {
|
|
1095
1085
|
display: inline-block;
|
|
1096
1086
|
max-width: 100%;
|
|
@@ -1101,7 +1091,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1101
1091
|
box-shadow: 0px 0px 0px transparent;
|
|
1102
1092
|
border: 0px solid transparent;
|
|
1103
1093
|
text-shadow: 0px 0px 0px transparent;
|
|
1104
|
-
font-size: ${
|
|
1094
|
+
font-size: ${so.fontSize};
|
|
1105
1095
|
}
|
|
1106
1096
|
|
|
1107
1097
|
button:hover {
|
|
@@ -1130,32 +1120,32 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1130
1120
|
border: none;
|
|
1131
1121
|
pointer-events: auto;
|
|
1132
1122
|
|
|
1133
|
-
--ft-button-internal-line-height: calc(${
|
|
1134
|
-
--ft-button-internal-color: ${
|
|
1135
|
-
${
|
|
1136
|
-
${
|
|
1137
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
1123
|
+
--ft-button-internal-line-height: calc(${so.fontSize} + 2px);
|
|
1124
|
+
--ft-button-internal-color: ${so.color};
|
|
1125
|
+
${$t(Ci.size,so.iconSize)};
|
|
1126
|
+
${$t(vi.color,so.rippleColor)};
|
|
1127
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${so.iconSize});
|
|
1138
1128
|
|
|
1139
|
-
border-radius: ${
|
|
1140
|
-
padding: ${
|
|
1141
|
-
background-color: ${
|
|
1129
|
+
border-radius: ${so.borderRadius};
|
|
1130
|
+
padding: ${so.verticalPadding} ${so.horizontalPadding};
|
|
1131
|
+
background-color: ${so.backgroundColor};
|
|
1142
1132
|
color: var(--ft-button-internal-color);
|
|
1143
1133
|
-webkit-mask-image: radial-gradient(white, black);
|
|
1144
1134
|
}
|
|
1145
1135
|
|
|
1146
1136
|
.ft-button.ft-button--outlined {
|
|
1147
1137
|
border: 1px solid var(--ft-button-internal-color);
|
|
1148
|
-
padding: calc(${
|
|
1138
|
+
padding: calc(${so.verticalPadding} - 1px) calc(${so.horizontalPadding} - 1px);
|
|
1149
1139
|
}
|
|
1150
1140
|
|
|
1151
1141
|
.ft-button.ft-button--dense {
|
|
1152
|
-
padding: ${
|
|
1153
|
-
border-radius: ${
|
|
1154
|
-
gap: ${
|
|
1142
|
+
padding: ${ao} ${co};
|
|
1143
|
+
border-radius: ${lo};
|
|
1144
|
+
gap: ${po};
|
|
1155
1145
|
}
|
|
1156
1146
|
|
|
1157
1147
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
1158
|
-
padding: calc(${
|
|
1148
|
+
padding: calc(${ao} - 1px) calc(${co} - 1px);
|
|
1159
1149
|
}
|
|
1160
1150
|
|
|
1161
1151
|
.ft-button:not([disabled]):hover {
|
|
@@ -1163,22 +1153,22 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1163
1153
|
}
|
|
1164
1154
|
|
|
1165
1155
|
.ft-button--round {
|
|
1166
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
1156
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${so.verticalPadding});
|
|
1167
1157
|
}
|
|
1168
1158
|
|
|
1169
1159
|
.ft-button--round.ft-button--dense {
|
|
1170
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
1160
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${ao});
|
|
1171
1161
|
}
|
|
1172
1162
|
|
|
1173
1163
|
.ft-button[disabled] {
|
|
1174
1164
|
filter: grayscale(1);
|
|
1175
|
-
opacity: ${
|
|
1165
|
+
opacity: ${so.opacityDisabled};
|
|
1176
1166
|
}
|
|
1177
1167
|
|
|
1178
1168
|
.ft-button.ft-button--primary {
|
|
1179
|
-
background-color: ${
|
|
1180
|
-
--ft-button-internal-color: ${
|
|
1181
|
-
${
|
|
1169
|
+
background-color: ${ro.backgroundColor};
|
|
1170
|
+
--ft-button-internal-color: ${ro.color};
|
|
1171
|
+
${$t(vi.color,ro.rippleColor)};
|
|
1182
1172
|
}
|
|
1183
1173
|
|
|
1184
1174
|
.ft-button:focus {
|
|
@@ -1191,13 +1181,13 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1191
1181
|
white-space: nowrap;
|
|
1192
1182
|
text-overflow: ellipsis;
|
|
1193
1183
|
display: block;
|
|
1194
|
-
margin: 0 ${
|
|
1195
|
-
${
|
|
1196
|
-
${
|
|
1184
|
+
margin: 0 ${so.iconPadding};
|
|
1185
|
+
${$t(Xe.fontSize,"1em")};
|
|
1186
|
+
${$t(Xe.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
1197
1187
|
}
|
|
1198
1188
|
|
|
1199
1189
|
.ft-button--dense .ft-button--label {
|
|
1200
|
-
margin: 0 ${
|
|
1190
|
+
margin: 0 ${po};
|
|
1201
1191
|
}
|
|
1202
1192
|
|
|
1203
1193
|
.ft-button--label[hidden] {
|
|
@@ -1210,13 +1200,13 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1210
1200
|
}
|
|
1211
1201
|
|
|
1212
1202
|
.ft-button--label[hidden] + ft-icon {
|
|
1213
|
-
margin: 0 calc(${
|
|
1214
|
-
padding: 0 ${
|
|
1203
|
+
margin: 0 calc(${so.horizontalPadding} * -1);
|
|
1204
|
+
padding: 0 ${so.verticalPadding};
|
|
1215
1205
|
}
|
|
1216
1206
|
|
|
1217
1207
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
1218
|
-
margin: 0 calc(${
|
|
1219
|
-
padding: 0 ${
|
|
1208
|
+
margin: 0 calc(${co} * -1);
|
|
1209
|
+
padding: 0 ${ao};
|
|
1220
1210
|
}
|
|
1221
1211
|
|
|
1222
1212
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -1225,33 +1215,33 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1225
1215
|
}
|
|
1226
1216
|
|
|
1227
1217
|
ft-loader {
|
|
1228
|
-
${
|
|
1229
|
-
${
|
|
1218
|
+
${$t(to.size,so.iconSize)};
|
|
1219
|
+
${$t(to.color,"var(--ft-button-internal-color)")};
|
|
1230
1220
|
}
|
|
1231
|
-
`];var
|
|
1221
|
+
`];var ho=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 uo extends Rt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(G`
|
|
1232
1222
|
<button part="button"
|
|
1233
|
-
class="${
|
|
1223
|
+
class="${Xt(t)}"
|
|
1234
1224
|
aria-label="${this.getLabel()}"
|
|
1235
1225
|
?disabled=${this.isDisabled()}>
|
|
1236
1226
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1237
1227
|
<ft-typography part="label"
|
|
1238
1228
|
variant="button"
|
|
1239
1229
|
element="span"
|
|
1240
|
-
class="ft-button--label ${
|
|
1230
|
+
class="ft-button--label ${Bt?"ft-safari-ellipsis-fix":""}"
|
|
1241
1231
|
?hidden=${!this.hasTextContent()}>
|
|
1242
1232
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1243
1233
|
</ft-typography>
|
|
1244
1234
|
${this.resolveIcon()}
|
|
1245
1235
|
</button>
|
|
1246
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
1236
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?G`
|
|
1247
1237
|
<ft-tooltip part="tooltip"
|
|
1248
1238
|
text="${this.getLabel()}"
|
|
1249
1239
|
position="${this.tooltipPosition}">
|
|
1250
1240
|
${t}
|
|
1251
1241
|
</ft-tooltip>
|
|
1252
|
-
`:t}resolveIcon(){return this.loading?
|
|
1253
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
1254
|
-
<ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:
|
|
1242
|
+
`:t}resolveIcon(){return this.loading?G`
|
|
1243
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?G`
|
|
1244
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:tt}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}uo.elementDefinitions={"ft-ripple":Ei,"ft-tooltip":Qi,"ft-typography":ci,"ft-icon":Mi,"ft-loader":io},uo.styles=[Mt,fo],ho([o({type:String,reflect:!0})],uo.prototype,"role",void 0),ho([o({type:Boolean})],uo.prototype,"primary",void 0),ho([o({type:Boolean})],uo.prototype,"outlined",void 0),ho([o({type:Boolean})],uo.prototype,"disabled",void 0),ho([o({type:Boolean})],uo.prototype,"dense",void 0),ho([o({type:Boolean})],uo.prototype,"round",void 0),ho([o()],uo.prototype,"label",void 0),ho([o()],uo.prototype,"icon",void 0),ho([o()],uo.prototype,"iconVariant",void 0),ho([o({type:Boolean})],uo.prototype,"trailingIcon",void 0),ho([o({type:Boolean})],uo.prototype,"loading",void 0),ho([o()],uo.prototype,"tooltipPosition",void 0),ho([o({type:Boolean})],uo.prototype,"hideTooltip",void 0),ho([o({type:Boolean})],uo.prototype,"forceTooltip",void 0),ho([r(".ft-button")],uo.prototype,"button",void 0),ho([r(".ft-button--label slot")],uo.prototype,"slottedContent",void 0),f("ft-button")(uo);class vo extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const xo={headerBackground:mt.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:mt.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:mt.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:mt.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:mt.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),cellVerticalBorderWidth:mt.create("--ft-filterable-table-cell-vertical-border-width","SIZE","1px"),colorOnSurfaceHigh:mt.external(wt.colorOnSurfaceHigh,"Design system"),titleFont:mt.external(wt.titleFont,"Design system"),contentFont:mt.external(wt.contentFont,"Design system")},bo=y`
|
|
1255
1245
|
:host {
|
|
1256
1246
|
display: block;
|
|
1257
1247
|
}
|
|
@@ -1267,15 +1257,15 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1267
1257
|
.header-cell {
|
|
1268
1258
|
display: flex;
|
|
1269
1259
|
flex-direction: column;
|
|
1270
|
-
background: ${
|
|
1271
|
-
color: ${
|
|
1260
|
+
background: ${xo.headerBackground};
|
|
1261
|
+
color: ${xo.colorOnSurfaceHigh};
|
|
1272
1262
|
padding: .5rem 1rem;
|
|
1273
|
-
font-family: ${
|
|
1263
|
+
font-family: ${xo.titleFont};
|
|
1274
1264
|
}
|
|
1275
1265
|
|
|
1276
1266
|
.header-cell--sticky {
|
|
1277
1267
|
top: 0;
|
|
1278
|
-
z-index: ${
|
|
1268
|
+
z-index: ${xo.stickyHeaderZIndex};
|
|
1279
1269
|
position: sticky;
|
|
1280
1270
|
}
|
|
1281
1271
|
|
|
@@ -1293,8 +1283,8 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1293
1283
|
}
|
|
1294
1284
|
|
|
1295
1285
|
.column-title-container ft-button {
|
|
1296
|
-
${
|
|
1297
|
-
${
|
|
1286
|
+
${$t(so.backgroundColor,xo.headerBackground)};
|
|
1287
|
+
${$t(so.color,xo.colorOnSurfaceHigh)};
|
|
1298
1288
|
}
|
|
1299
1289
|
|
|
1300
1290
|
.column-title {
|
|
@@ -1323,31 +1313,31 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1323
1313
|
|
|
1324
1314
|
.cell {
|
|
1325
1315
|
padding: 1rem;
|
|
1326
|
-
border-left-color: ${
|
|
1316
|
+
border-left-color: ${xo.headerBackground};
|
|
1327
1317
|
border-left-style: solid;
|
|
1328
|
-
border-left-width: ${
|
|
1329
|
-
border-bottom: 1px solid ${
|
|
1318
|
+
border-left-width: ${xo.cellVerticalBorderWidth};
|
|
1319
|
+
border-bottom: 1px solid ${xo.headerBackground};
|
|
1330
1320
|
overflow-x: auto;
|
|
1331
1321
|
display: flex;
|
|
1332
1322
|
align-items: center;
|
|
1333
|
-
font-family: ${
|
|
1323
|
+
font-family: ${xo.contentFont};
|
|
1334
1324
|
}
|
|
1335
1325
|
|
|
1336
1326
|
/* Even is 2n+1 and odd is 2n because of the header */
|
|
1337
1327
|
.row:nth-child(2n) > .cell {
|
|
1338
|
-
background: ${
|
|
1328
|
+
background: ${xo.oddRowBackground};
|
|
1339
1329
|
}
|
|
1340
1330
|
|
|
1341
1331
|
.row:nth-child(2n + 1) > .cell {
|
|
1342
|
-
background: ${
|
|
1332
|
+
background: ${xo.evenRowBackground};
|
|
1343
1333
|
}
|
|
1344
1334
|
|
|
1345
1335
|
.row:hover > .cell {
|
|
1346
|
-
background: ${
|
|
1336
|
+
background: ${xo.rowHoverBackground};
|
|
1347
1337
|
}
|
|
1348
1338
|
|
|
1349
1339
|
.cell:last-of-type {
|
|
1350
|
-
border-right: 1px solid ${
|
|
1340
|
+
border-right: 1px solid ${xo.headerBackground};
|
|
1351
1341
|
}
|
|
1352
1342
|
|
|
1353
1343
|
.row:last-of-type .cell:first-of-type {
|
|
@@ -1361,7 +1351,7 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1361
1351
|
.hidden {
|
|
1362
1352
|
visibility: hidden;
|
|
1363
1353
|
}
|
|
1364
|
-
`;var
|
|
1354
|
+
`;var go=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 yo=t=>G`${t}`,mo=(t,e)=>t-e;class $o extends Rt{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 G`
|
|
1365
1355
|
<style>
|
|
1366
1356
|
.table {
|
|
1367
1357
|
grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
|
|
@@ -1369,17 +1359,17 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1369
1359
|
</style>
|
|
1370
1360
|
<div class="table">
|
|
1371
1361
|
<div class="header">
|
|
1372
|
-
${
|
|
1362
|
+
${Vt(this.columns,((t,e)=>"header-cell-"+e),((t,e)=>this.renderHeader(t,e)))}
|
|
1373
1363
|
</div>
|
|
1374
|
-
${
|
|
1364
|
+
${Vt(t,((t,e)=>"row-"+e),((t,e)=>G`
|
|
1375
1365
|
<div class="row"
|
|
1376
|
-
@click=${()=>this.dispatchEvent(new
|
|
1377
|
-
${
|
|
1366
|
+
@click=${()=>this.dispatchEvent(new vo(t))}>
|
|
1367
|
+
${Vt(this.columns,((t,i)=>"cell-"+i+"-"+e),((i,o)=>this.renderCell(i,o,t,e)))}
|
|
1378
1368
|
</div>
|
|
1379
1369
|
`))}
|
|
1380
1370
|
</div>
|
|
1381
|
-
`}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:
|
|
1382
|
-
<div class="${
|
|
1371
|
+
`}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:mo,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 G`
|
|
1372
|
+
<div class="${Xt(i)}"
|
|
1383
1373
|
part="${this.columnPart("header-cell",e)}">
|
|
1384
1374
|
<div class="column-title-container">
|
|
1385
1375
|
<span class="column-title"
|
|
@@ -1390,17 +1380,18 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1390
1380
|
</div>
|
|
1391
1381
|
${this.renderColumnFilter(t,e)}
|
|
1392
1382
|
</div>
|
|
1393
|
-
`}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
|
|
1383
|
+
`}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 G`
|
|
1394
1384
|
<ft-button
|
|
1395
1385
|
round
|
|
1396
1386
|
dense
|
|
1397
1387
|
class="${null===(i=t.sortable)||void 0===i||i?"":"hidden"}"
|
|
1388
|
+
iconVariant="material"
|
|
1398
1389
|
icon="${s}"
|
|
1399
1390
|
label="Sort ${t.title}"
|
|
1400
1391
|
@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"}}}
|
|
1401
1392
|
part="${this.columnPart("sort-button",e)}"
|
|
1402
1393
|
></ft-button>
|
|
1403
|
-
`}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
|
|
1394
|
+
`}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 G`
|
|
1404
1395
|
<div class="column-filter" part="${this.columnPart("filter-container",e)}">
|
|
1405
1396
|
<ft-text-field
|
|
1406
1397
|
label="Search ${t.title}"
|
|
@@ -1408,20 +1399,20 @@ const zi={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSiz
|
|
|
1408
1399
|
part="${this.columnPart("filter",e)}"
|
|
1409
1400
|
></ft-text-field>
|
|
1410
1401
|
</div>
|
|
1411
|
-
`;case"select":const i=null!==(o=this.selectData[e])&&void 0!==o?o:[];return i.length?
|
|
1402
|
+
`;case"select":const i=null!==(o=this.selectData[e])&&void 0!==o?o:[];return i.length?G`
|
|
1412
1403
|
<div class="column-filter" part="${this.columnPart("filter-container",e)}">
|
|
1413
1404
|
<ft-select label="Filter ${t.title}"
|
|
1414
1405
|
@change=${s}
|
|
1415
1406
|
part="${this.columnPart("filter",e)}">
|
|
1416
1407
|
<ft-select-option></ft-select-option>
|
|
1417
|
-
${i.map((t=>
|
|
1408
|
+
${i.map((t=>G`
|
|
1418
1409
|
<ft-select-option value="${t}" label="${t}"></ft-select-option>
|
|
1419
1410
|
`))}
|
|
1420
1411
|
</ft-select>
|
|
1421
1412
|
</div>
|
|
1422
|
-
`:
|
|
1413
|
+
`:tt}return tt}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:yo;return G`
|
|
1423
1414
|
<div class="cell"
|
|
1424
1415
|
part="${this.columnPart("cell",e)} cell-row-${o} cell-column-${e}-row-${o}">
|
|
1425
|
-
${(t=>{const e=n(t,o);return"string"==typeof e?
|
|
1416
|
+
${(t=>{const e=n(t,o);return"string"==typeof e?qt(e):e})(this.getValue(t,i))}
|
|
1426
1417
|
</div>
|
|
1427
|
-
`}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)}}
|
|
1418
|
+
`}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)}}$o.styles=bo,go([o({attribute:!1})],$o.prototype,"data",void 0),go([o({attribute:!1})],$o.prototype,"columns",void 0),go([o({attribute:!1})],$o.prototype,"sort",void 0),go([o()],$o.prototype,"stickyHeaders",void 0),go([s()],$o.prototype,"currentSort",void 0),f("ft-filterable-table")($o),t.FtFilterableTable=$o,t.FtFilterableTableCssVariables=xo,t.RowClickEvent=vo,t.styles=bo}({});
|