@fluid-topics/ft-chip 1.1.0 → 1.1.2
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-chip.min.js +213 -209
- package/package.json +6 -6
package/build/ft-chip.min.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=f(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),y(t,c,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?y(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=u.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=f(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),y(t,c,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?y(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=u.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(wi){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -82,7 +82,11 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
82
82
|
* @license
|
|
83
83
|
* Copyright 2019 Google LLC
|
|
84
84
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
85
|
-
*/class Ro extends go{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=$o.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,ko=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Io=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),Lo=Symbol("exportpartsDebouncer");class zo extends Ro{constructor(){super(),this[Uo]=new o(5),this[Wo]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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[Lo].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 o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Uo=Lo,ko([C()],zo.prototype,"exportpartsPrefix",void 0),ko([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],zo.prototype,"exportpartsPrefixes",void 0),ko([C()],zo.prototype,"customStylesheet",void 0);const Ko=bt`
|
|
85
|
+
*/class Ro extends go{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=$o.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,ko=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Io=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),Lo=Symbol("exportpartsDebouncer");class zo extends Ro{constructor(){super(),this[Uo]=new o(5),this[Wo]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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[Lo].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 o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Uo=Lo,ko([C()],zo.prototype,"exportpartsPrefix",void 0),ko([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],zo.prototype,"exportpartsPrefixes",void 0),ko([C()],zo.prototype,"customStylesheet",void 0);const Ko=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");bt`
|
|
86
|
+
.highlight-html-match {
|
|
87
|
+
background: ${Ko};
|
|
88
|
+
}
|
|
89
|
+
`;const Zo=bt`
|
|
86
90
|
.ft-no-text-select {
|
|
87
91
|
-webkit-touch-callout: none;
|
|
88
92
|
-webkit-user-select: none;
|
|
@@ -103,7 +107,7 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
103
107
|
-webkit-hyphens: auto;
|
|
104
108
|
hyphens: auto
|
|
105
109
|
}
|
|
106
|
-
`;const
|
|
110
|
+
`;const Fo=bt`
|
|
107
111
|
.ft-safari-ellipsis-fix {
|
|
108
112
|
margin-right: 0;
|
|
109
113
|
|
|
@@ -114,17 +118,17 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
114
118
|
display: inline-block;
|
|
115
119
|
width: 0;
|
|
116
120
|
}
|
|
117
|
-
`;window.ftReduxStores||(window.ftReduxStores={});const
|
|
121
|
+
`;window.ftReduxStores||(window.ftReduxStores={});const Bo=Symbol("elementInternals");var Do,Ao,Mo;const Po=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mo=null===(Ao=null===(Do=window.safari)||void 0===Do?void 0:Do.pushNotification)||void 0===Ao?void 0:Ao.toString())&&void 0!==Mo?Mo:""),Ho=1,jo=2,To=t=>(...o)=>({_$litDirective$:t,values:o});
|
|
118
122
|
/**
|
|
119
123
|
* @license
|
|
120
124
|
* Copyright 2017 Google LLC
|
|
121
125
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
122
|
-
*/let
|
|
126
|
+
*/let _o=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
|
|
123
127
|
/**
|
|
124
128
|
* @license
|
|
125
129
|
* Copyright 2018 Google LLC
|
|
126
130
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
127
|
-
*/const
|
|
131
|
+
*/const Go=To(class extends _o{constructor(t){if(super(t),t.type!==Ho||"class"!==t.name||t.strings?.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((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return q}}),Yo=xo.extend("--ft-ripple-color","",Co.colorContent),Vo={color:Yo,backgroundColor:xo.extend("--ft-ripple-background-color","",Yo),opacityContentOnSurfacePressed:xo.external(Co.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(Co.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(Co.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(Co.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},Jo=xo.extend("--ft-ripple-color","",Co.colorPrimary),qo=Jo,Xo=xo.extend("--ft-ripple-background-color","",Jo),Qo=xo.extend("--ft-ripple-color","",Co.colorSecondary),te=Qo,oe=xo.extend("--ft-ripple-background-color","",Qo),ee=bt`
|
|
128
132
|
:host {
|
|
129
133
|
display: contents;
|
|
130
134
|
}
|
|
@@ -137,7 +141,7 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
137
141
|
|
|
138
142
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
139
143
|
overflow: hidden;
|
|
140
|
-
border-radius: ${
|
|
144
|
+
border-radius: ${Vo.borderRadius};
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
.ft-ripple .ft-ripple--background,
|
|
@@ -171,27 +175,27 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
171
175
|
}
|
|
172
176
|
|
|
173
177
|
.ft-ripple .ft-ripple--background {
|
|
174
|
-
background-color: ${
|
|
178
|
+
background-color: ${Vo.backgroundColor};
|
|
175
179
|
}
|
|
176
180
|
|
|
177
181
|
.ft-ripple .ft-ripple--effect {
|
|
178
|
-
background-color: ${
|
|
182
|
+
background-color: ${Vo.color};
|
|
179
183
|
}
|
|
180
184
|
|
|
181
185
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
182
|
-
background-color: ${
|
|
186
|
+
background-color: ${oe};
|
|
183
187
|
}
|
|
184
188
|
|
|
185
189
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
186
|
-
background-color: ${
|
|
190
|
+
background-color: ${te};
|
|
187
191
|
}
|
|
188
192
|
|
|
189
193
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
190
|
-
background-color: ${
|
|
194
|
+
background-color: ${Xo};
|
|
191
195
|
}
|
|
192
196
|
|
|
193
197
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
194
|
-
background-color: ${
|
|
198
|
+
background-color: ${qo};
|
|
195
199
|
}
|
|
196
200
|
|
|
197
201
|
.ft-ripple .ft-ripple--background {
|
|
@@ -221,134 +225,134 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
221
225
|
}
|
|
222
226
|
|
|
223
227
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
224
|
-
opacity: ${
|
|
228
|
+
opacity: ${Vo.opacityContentOnSurfaceHover};
|
|
225
229
|
}
|
|
226
230
|
|
|
227
231
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
228
|
-
opacity: ${
|
|
232
|
+
opacity: ${Vo.opacityContentOnSurfaceSelected};
|
|
229
233
|
}
|
|
230
234
|
|
|
231
235
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
232
|
-
opacity: ${
|
|
236
|
+
opacity: ${Vo.opacityContentOnSurfaceFocused};
|
|
233
237
|
}
|
|
234
238
|
|
|
235
239
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
236
|
-
opacity: ${
|
|
240
|
+
opacity: ${Vo.opacityContentOnSurfacePressed};
|
|
237
241
|
transform: translate(-50%, -50%) scale(1);
|
|
238
242
|
}
|
|
239
|
-
`;var
|
|
243
|
+
`;var ie=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class re extends zo{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.originX=0,this.originY=0,this.debouncer=new o(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 o(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-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.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
|
|
240
244
|
<style>
|
|
241
245
|
.ft-ripple .ft-ripple--effect {
|
|
242
246
|
left: ${this.originX}px;
|
|
243
247
|
top: ${this.originY}px;
|
|
244
248
|
}
|
|
245
249
|
</style>
|
|
246
|
-
<div class="${
|
|
250
|
+
<div class="${Go(t)}">
|
|
247
251
|
<div class="ft-ripple--background"></div>
|
|
248
252
|
<div class="ft-ripple--effect"></div>
|
|
249
253
|
</div>
|
|
250
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),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",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),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 o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
254
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),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",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),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 o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}re.elementDefinitions={},re.styles=ee,ie([C({type:Boolean})],re.prototype,"primary",void 0),ie([C({type:Boolean})],re.prototype,"secondary",void 0),ie([C({type:Boolean})],re.prototype,"unbounded",void 0),ie([C({type:Boolean})],re.prototype,"activated",void 0),ie([C({type:Boolean})],re.prototype,"selected",void 0),ie([C({type:Boolean})],re.prototype,"disabled",void 0),ie([$()],re.prototype,"hovered",void 0),ie([$()],re.prototype,"focused",void 0),ie([$()],re.prototype,"pressed",void 0),ie([$()],re.prototype,"rippling",void 0),ie([$()],re.prototype,"originX",void 0),ie([$()],re.prototype,"originY",void 0),ie([R(".ft-ripple")],re.prototype,"ripple",void 0),ie([R(".ft-ripple--effect")],re.prototype,"rippleEffect",void 0),k("ft-ripple")(re);
|
|
251
255
|
/**
|
|
252
256
|
* @license
|
|
253
257
|
* Copyright 2020 Google LLC
|
|
254
258
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
255
259
|
*/
|
|
256
|
-
const
|
|
260
|
+
const ne=Symbol.for(""),ae=t=>{if(t?.r===ne)return t?._$litStatic$},se=t=>({_$litStatic$:t,r:ne}),le=new Map,ce=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=ae(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=le.get(t))&&(a.raw=a,le.set(t,o=a)),e=s}return t(o,...e)})(J);var pe;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(pe||(pe={}));const fe=xo.extend("--ft-typography-font-family","",Co.titleFont),he=xo.extend("--ft-typography-font-family","",Co.contentFont),de={fontFamily:he,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ye=xo.extend("--ft-typography-title-font-family","",fe),ue=xo.extend("--ft-typography-title-font-size","",de.fontSize,"20px"),ge=xo.extend("--ft-typography-title-font-weight","",de.fontWeight,"normal"),be=xo.extend("--ft-typography-title-letter-spacing","",de.letterSpacing,"0.15px"),me=xo.extend("--ft-typography-title-line-height","",de.lineHeight,"1.2"),xe=xo.extend("--ft-typography-title-text-transform","",de.textTransform,"inherit"),Oe=xo.extend("--ft-typography-title-dense-font-family","",fe),ve=xo.extend("--ft-typography-title-dense-font-size","",de.fontSize,"14px"),Ne=xo.extend("--ft-typography-title-dense-font-weight","",de.fontWeight,"normal"),Se=xo.extend("--ft-typography-title-dense-letter-spacing","",de.letterSpacing,"0.105px"),we=xo.extend("--ft-typography-title-dense-line-height","",de.lineHeight,"1.7"),Ce=xo.extend("--ft-typography-title-dense-text-transform","",de.textTransform,"inherit"),$e=xo.extend("--ft-typography-subtitle1-font-family","",he),Ee=xo.extend("--ft-typography-subtitle1-font-size","",de.fontSize,"16px"),Re=xo.extend("--ft-typography-subtitle1-font-weight","",de.fontWeight,"600"),Ue=xo.extend("--ft-typography-subtitle1-letter-spacing","",de.letterSpacing,"0.144px"),ke=xo.extend("--ft-typography-subtitle1-line-height","",de.lineHeight,"1.5"),Ie=xo.extend("--ft-typography-subtitle1-text-transform","",de.textTransform,"inherit"),We=xo.extend("--ft-typography-subtitle2-font-family","",he),Le=xo.extend("--ft-typography-subtitle2-font-size","",de.fontSize,"14px"),ze=xo.extend("--ft-typography-subtitle2-font-weight","",de.fontWeight,"normal"),Ke=xo.extend("--ft-typography-subtitle2-letter-spacing","",de.letterSpacing,"0.098px"),Ze=xo.extend("--ft-typography-subtitle2-line-height","",de.lineHeight,"1.7"),Fe=xo.extend("--ft-typography-subtitle2-text-transform","",de.textTransform,"inherit"),Be=xo.extend("--ft-typography-body1-font-family","",he),De=xo.extend("--ft-typography-body1-font-size","",de.fontSize,"16px"),Ae=xo.extend("--ft-typography-body1-font-weight","",de.fontWeight,"normal"),Me=xo.extend("--ft-typography-body1-letter-spacing","",de.letterSpacing,"0.496px"),Pe=xo.extend("--ft-typography-body1-line-height","",de.lineHeight,"1.5"),He=xo.extend("--ft-typography-body1-text-transform","",de.textTransform,"inherit"),je={fontFamily:xo.extend("--ft-typography-body2-font-family","",he),fontSize:xo.extend("--ft-typography-body2-font-size","",de.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-body2-font-weight","",de.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-body2-letter-spacing","",de.letterSpacing,"0.252px"),lineHeight:xo.extend("--ft-typography-body2-line-height","",de.lineHeight,"1.4"),textTransform:xo.extend("--ft-typography-body2-text-transform","",de.textTransform,"inherit")},Te=xo.extend("--ft-typography-caption-font-family","",he),_e=xo.extend("--ft-typography-caption-font-size","",de.fontSize,"12px"),Ge=xo.extend("--ft-typography-caption-font-weight","",de.fontWeight,"normal"),Ye=xo.extend("--ft-typography-caption-letter-spacing","",de.letterSpacing,"0.396px"),Ve=xo.extend("--ft-typography-caption-line-height","",de.lineHeight,"1.33"),Je=xo.extend("--ft-typography-caption-text-transform","",de.textTransform,"inherit"),qe=xo.extend("--ft-typography-breadcrumb-font-family","",he),Xe=xo.extend("--ft-typography-breadcrumb-font-size","",de.fontSize,"10px"),Qe=xo.extend("--ft-typography-breadcrumb-font-weight","",de.fontWeight,"normal"),ti=xo.extend("--ft-typography-breadcrumb-letter-spacing","",de.letterSpacing,"0.33px"),oi=xo.extend("--ft-typography-breadcrumb-line-height","",de.lineHeight,"1.6"),ei=xo.extend("--ft-typography-breadcrumb-text-transform","",de.textTransform,"inherit"),ii=xo.extend("--ft-typography-overline-font-family","",he),ri=xo.extend("--ft-typography-overline-font-size","",de.fontSize,"10px"),ni=xo.extend("--ft-typography-overline-font-weight","",de.fontWeight,"normal"),ai=xo.extend("--ft-typography-overline-letter-spacing","",de.letterSpacing,"1.5px"),si=xo.extend("--ft-typography-overline-line-height","",de.lineHeight,"1.6"),li=xo.extend("--ft-typography-overline-text-transform","",de.textTransform,"uppercase"),ci={fontFamily:xo.extend("--ft-typography-button-font-family","",he),fontSize:xo.extend("--ft-typography-button-font-size","",de.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",de.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",de.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",de.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",de.textTransform,"uppercase")},pi=bt`
|
|
257
261
|
.ft-typography--title {
|
|
258
|
-
font-family: ${
|
|
259
|
-
font-size: ${
|
|
260
|
-
font-weight: ${
|
|
261
|
-
letter-spacing: ${
|
|
262
|
-
line-height: ${
|
|
263
|
-
text-transform: ${
|
|
262
|
+
font-family: ${ye};
|
|
263
|
+
font-size: ${ue};
|
|
264
|
+
font-weight: ${ge};
|
|
265
|
+
letter-spacing: ${be};
|
|
266
|
+
line-height: ${me};
|
|
267
|
+
text-transform: ${xe};
|
|
264
268
|
}
|
|
265
|
-
`,
|
|
269
|
+
`,fi=bt`
|
|
266
270
|
.ft-typography--title-dense {
|
|
267
|
-
font-family: ${
|
|
268
|
-
font-size: ${
|
|
269
|
-
font-weight: ${
|
|
270
|
-
letter-spacing: ${
|
|
271
|
-
line-height: ${
|
|
272
|
-
text-transform: ${
|
|
271
|
+
font-family: ${Oe};
|
|
272
|
+
font-size: ${ve};
|
|
273
|
+
font-weight: ${Ne};
|
|
274
|
+
letter-spacing: ${Se};
|
|
275
|
+
line-height: ${we};
|
|
276
|
+
text-transform: ${Ce};
|
|
273
277
|
}
|
|
274
|
-
`,
|
|
278
|
+
`,hi=bt`
|
|
275
279
|
.ft-typography--subtitle1 {
|
|
276
|
-
font-family: ${
|
|
277
|
-
font-size: ${
|
|
278
|
-
font-weight: ${
|
|
279
|
-
letter-spacing: ${
|
|
280
|
-
line-height: ${
|
|
281
|
-
text-transform: ${
|
|
280
|
+
font-family: ${$e};
|
|
281
|
+
font-size: ${Ee};
|
|
282
|
+
font-weight: ${Re};
|
|
283
|
+
letter-spacing: ${Ue};
|
|
284
|
+
line-height: ${ke};
|
|
285
|
+
text-transform: ${Ie};
|
|
282
286
|
}
|
|
283
|
-
`,
|
|
287
|
+
`,di=bt`
|
|
284
288
|
.ft-typography--subtitle2 {
|
|
285
|
-
font-family: ${
|
|
286
|
-
font-size: ${
|
|
287
|
-
font-weight: ${
|
|
288
|
-
letter-spacing: ${
|
|
289
|
-
line-height: ${
|
|
290
|
-
text-transform: ${
|
|
289
|
+
font-family: ${We};
|
|
290
|
+
font-size: ${Le};
|
|
291
|
+
font-weight: ${ze};
|
|
292
|
+
letter-spacing: ${Ke};
|
|
293
|
+
line-height: ${Ze};
|
|
294
|
+
text-transform: ${Fe};
|
|
291
295
|
}
|
|
292
296
|
|
|
293
|
-
`,
|
|
297
|
+
`,yi=bt`
|
|
294
298
|
.ft-typography--body1 {
|
|
295
|
-
font-family: ${
|
|
296
|
-
font-size: ${
|
|
297
|
-
font-weight: ${
|
|
298
|
-
letter-spacing: ${
|
|
299
|
-
line-height: ${
|
|
300
|
-
text-transform: ${
|
|
299
|
+
font-family: ${Be};
|
|
300
|
+
font-size: ${De};
|
|
301
|
+
font-weight: ${Ae};
|
|
302
|
+
letter-spacing: ${Me};
|
|
303
|
+
line-height: ${Pe};
|
|
304
|
+
text-transform: ${He};
|
|
301
305
|
}
|
|
302
|
-
`,
|
|
306
|
+
`,ui=bt`
|
|
303
307
|
.ft-typography--body2 {
|
|
304
|
-
font-family: ${
|
|
305
|
-
font-size: ${
|
|
306
|
-
font-weight: ${
|
|
307
|
-
letter-spacing: ${
|
|
308
|
-
line-height: ${
|
|
309
|
-
text-transform: ${
|
|
308
|
+
font-family: ${je.fontFamily};
|
|
309
|
+
font-size: ${je.fontSize};
|
|
310
|
+
font-weight: ${je.fontWeight};
|
|
311
|
+
letter-spacing: ${je.letterSpacing};
|
|
312
|
+
line-height: ${je.lineHeight};
|
|
313
|
+
text-transform: ${je.textTransform};
|
|
310
314
|
}
|
|
311
|
-
`,
|
|
315
|
+
`,gi=bt`
|
|
312
316
|
.ft-typography--caption {
|
|
313
|
-
font-family: ${
|
|
314
|
-
font-size: ${
|
|
315
|
-
font-weight: ${
|
|
316
|
-
letter-spacing: ${
|
|
317
|
-
line-height: ${
|
|
318
|
-
text-transform: ${
|
|
317
|
+
font-family: ${Te};
|
|
318
|
+
font-size: ${_e};
|
|
319
|
+
font-weight: ${Ge};
|
|
320
|
+
letter-spacing: ${Ye};
|
|
321
|
+
line-height: ${Ve};
|
|
322
|
+
text-transform: ${Je};
|
|
319
323
|
}
|
|
320
|
-
`,
|
|
324
|
+
`,bi=bt`
|
|
321
325
|
.ft-typography--breadcrumb {
|
|
322
|
-
font-family: ${
|
|
323
|
-
font-size: ${
|
|
324
|
-
font-weight: ${
|
|
325
|
-
letter-spacing: ${
|
|
326
|
-
line-height: ${
|
|
327
|
-
text-transform: ${
|
|
326
|
+
font-family: ${qe};
|
|
327
|
+
font-size: ${Xe};
|
|
328
|
+
font-weight: ${Qe};
|
|
329
|
+
letter-spacing: ${ti};
|
|
330
|
+
line-height: ${oi};
|
|
331
|
+
text-transform: ${ei};
|
|
328
332
|
}
|
|
329
|
-
`,
|
|
333
|
+
`,mi=bt`
|
|
330
334
|
.ft-typography--overline {
|
|
331
|
-
font-family: ${
|
|
332
|
-
font-size: ${
|
|
333
|
-
font-weight: ${
|
|
334
|
-
letter-spacing: ${
|
|
335
|
-
line-height: ${
|
|
336
|
-
text-transform: ${
|
|
335
|
+
font-family: ${ii};
|
|
336
|
+
font-size: ${ri};
|
|
337
|
+
font-weight: ${ni};
|
|
338
|
+
letter-spacing: ${ai};
|
|
339
|
+
line-height: ${si};
|
|
340
|
+
text-transform: ${li};
|
|
337
341
|
}
|
|
338
|
-
`,
|
|
342
|
+
`,xi=bt`
|
|
339
343
|
.ft-typography--button {
|
|
340
|
-
font-family: ${
|
|
341
|
-
font-size: ${
|
|
342
|
-
font-weight: ${
|
|
343
|
-
letter-spacing: ${
|
|
344
|
-
line-height: ${
|
|
345
|
-
text-transform: ${
|
|
344
|
+
font-family: ${ci.fontFamily};
|
|
345
|
+
font-size: ${ci.fontSize};
|
|
346
|
+
font-weight: ${ci.fontWeight};
|
|
347
|
+
letter-spacing: ${ci.letterSpacing};
|
|
348
|
+
line-height: ${ci.lineHeight};
|
|
349
|
+
text-transform: ${ci.textTransform};
|
|
346
350
|
}
|
|
347
|
-
`,
|
|
351
|
+
`,Oi=bt`
|
|
348
352
|
.ft-typography {
|
|
349
353
|
vertical-align: inherit;
|
|
350
354
|
}
|
|
351
|
-
`,
|
|
355
|
+
`,vi=[Object.keys(No).map((t=>function(t){const o=No[t];return bt`
|
|
352
356
|
.ft-typography--${gt(t)} {
|
|
353
357
|
font-family: ${o.fontFamily};
|
|
354
358
|
font-size: ${o.fontSize};
|
|
@@ -357,20 +361,20 @@ const re=Symbol.for(""),ne=t=>{if(t?.r===re)return t?._$litStatic$},ae=t=>({_$li
|
|
|
357
361
|
line-height: ${o.lineHeight};
|
|
358
362
|
text-transform: ${o.textCase};
|
|
359
363
|
}
|
|
360
|
-
`}(t)))];var
|
|
361
|
-
<${
|
|
364
|
+
`}(t)))];var Ni=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Si extends zo{constructor(){super(...arguments),this.variant=pe.body1}render(){return this.element?ce`
|
|
365
|
+
<${se(this.element)}
|
|
362
366
|
class="ft-typography ft-typography--${this.variant}">
|
|
363
367
|
<slot></slot>
|
|
364
|
-
</${
|
|
365
|
-
`:
|
|
368
|
+
</${se(this.element)}>
|
|
369
|
+
`:ce`
|
|
366
370
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
367
|
-
`}}
|
|
371
|
+
`}}Si.styles=[pi,fi,hi,di,yi,ui,gi,bi,mi,xi,Oi,...vi],Ni([C()],Si.prototype,"element",void 0),Ni([C()],Si.prototype,"variant",void 0),k("ft-typography")(Si);
|
|
368
372
|
/**
|
|
369
373
|
* @license
|
|
370
374
|
* Copyright 2017 Google LLC
|
|
371
375
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
372
376
|
*/
|
|
373
|
-
class
|
|
377
|
+
class wi extends _o{constructor(t){if(super(t),this.et=X,t.type!==jo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.vt=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.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}wi.directiveName="unsafeHTML",wi.resultType=1;const Ci=To(wi);var $i,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.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}($i||($i={})),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=""}(Ei||(Ei={})),new Map([...["abw"].map((t=>[t,Ei.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,Ei.AUDIO])),...["avi"].map((t=>[t,Ei.AVI])),...["chm","xhs"].map((t=>[t,Ei.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,Ei.CODE])),...["csv"].map((t=>[t,Ei.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ei.DITA])),...["epub"].map((t=>[t,Ei.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ei.EXCEL])),...["flac"].map((t=>[t,Ei.FLAC])),...["gif"].map((t=>[t,Ei.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ei.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ei.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,Ei.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ei.JPEG])),...["json"].map((t=>[t,Ei.JSON])),...["m4a","m4p"].map((t=>[t,Ei.M4A])),...["mov","qt"].map((t=>[t,Ei.MOV])),...["mp3"].map((t=>[t,Ei.MP3])),...["mp4","m4v"].map((t=>[t,Ei.MP4])),...["ogg","oga"].map((t=>[t,Ei.OGG])),...["pdf","ps"].map((t=>[t,Ei.PDF])),...["png"].map((t=>[t,Ei.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ei.POWERPOINT])),...["rar"].map((t=>[t,Ei.RAR])),...["stp"].map((t=>[t,Ei.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ei.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,Ei.VIDEO])),...["wav"].map((t=>[t,Ei.WAV])),...["wma"].map((t=>[t,Ei.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ei.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ei.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ei.YAML])),...["zip"].map((t=>[t,Ei.ZIP]))]);const Ri={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ui=bt`
|
|
374
378
|
:host, i.ft-icon {
|
|
375
379
|
display: inline-flex;
|
|
376
380
|
align-items: center;
|
|
@@ -379,14 +383,14 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
379
383
|
}
|
|
380
384
|
|
|
381
385
|
:host {
|
|
382
|
-
width: ${
|
|
383
|
-
height: ${
|
|
386
|
+
width: ${Ri.size};
|
|
387
|
+
height: ${Ri.size};
|
|
384
388
|
}
|
|
385
389
|
|
|
386
390
|
i.ft-icon {
|
|
387
391
|
width: 100%;
|
|
388
392
|
height: 100%;
|
|
389
|
-
font-size: ${
|
|
393
|
+
font-size: ${Ri.size};
|
|
390
394
|
line-height: 1;
|
|
391
395
|
font-weight: normal;
|
|
392
396
|
text-transform: none;
|
|
@@ -397,33 +401,33 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
397
401
|
text-rendering: auto;
|
|
398
402
|
-webkit-font-smoothing: antialiased;
|
|
399
403
|
-moz-osx-font-smoothing: grayscale;
|
|
400
|
-
vertical-align: ${
|
|
404
|
+
vertical-align: ${Ri.verticalAlign};
|
|
401
405
|
}
|
|
402
406
|
|
|
403
407
|
i.ft-icon.ft-icon--fluid-topics {
|
|
404
|
-
font-family: ${
|
|
408
|
+
font-family: ${Ri.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
405
409
|
|
|
406
410
|
/* Ugly fix because font is broken */
|
|
407
|
-
font-size: calc(0.75 * ${
|
|
408
|
-
line-height: ${
|
|
411
|
+
font-size: calc(0.75 * ${Ri.size});
|
|
412
|
+
line-height: ${Ri.size};
|
|
409
413
|
position: relative;
|
|
410
414
|
top: -4%;
|
|
411
415
|
justify-content: center;
|
|
412
416
|
}
|
|
413
417
|
|
|
414
418
|
.ft-icon--file-format {
|
|
415
|
-
font-family: ${
|
|
419
|
+
font-family: ${Ri.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
416
420
|
}
|
|
417
421
|
|
|
418
422
|
.ft-icon--material {
|
|
419
|
-
font-family: ${
|
|
423
|
+
font-family: ${Ri.materialFontFamily}, "Material Icons", sans-serif;
|
|
420
424
|
}
|
|
421
|
-
`;var
|
|
425
|
+
`;var ki;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ki||(ki={}));var Ii=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Wi extends zo{constructor(){super(...arguments),this.resolvedIcon=oo}render(){const t=this.variant&&Object.values(ki).includes(this.variant)?this.variant:ki.fluid_topics,o=t!==ki.material||!!this.value;return Qt`
|
|
422
426
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
423
|
-
${
|
|
427
|
+
${Ci(this.resolvedIcon)}
|
|
424
428
|
<slot ?hidden=${o}></slot>
|
|
425
429
|
</i>
|
|
426
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case
|
|
430
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case ki.file_format:this.resolvedIcon=null!==(t=Ei[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case ki.material:this.resolvedIcon=this.value||oo;break;default:this.resolvedIcon=null!==(o=$i[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Wi.elementDefinitions={},Wi.styles=Ui,Ii([C()],Wi.prototype,"variant",void 0),Ii([C()],Wi.prototype,"value",void 0),Ii([$()],Wi.prototype,"resolvedIcon",void 0),Ii([R("slot")],Wi.prototype,"slottedContent",void 0),k("ft-icon")(Wi);const Li={color:xo.extend("--ft-loader-color","",Co.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},zi=bt`
|
|
427
431
|
:host {
|
|
428
432
|
line-height: 0;
|
|
429
433
|
}
|
|
@@ -432,8 +436,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
432
436
|
display: inline-block;
|
|
433
437
|
position: relative;
|
|
434
438
|
|
|
435
|
-
width: ${
|
|
436
|
-
height: ${
|
|
439
|
+
width: ${Li.size};
|
|
440
|
+
height: ${Li.size};
|
|
437
441
|
}
|
|
438
442
|
|
|
439
443
|
.ft-loader div {
|
|
@@ -442,7 +446,7 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
442
446
|
width: 25%;
|
|
443
447
|
height: 25%;
|
|
444
448
|
border-radius: 50%;
|
|
445
|
-
background: ${
|
|
449
|
+
background: ${Li.color};
|
|
446
450
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
447
451
|
}
|
|
448
452
|
|
|
@@ -489,10 +493,10 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
489
493
|
transform: translate(0, 0);
|
|
490
494
|
}
|
|
491
495
|
100% {
|
|
492
|
-
transform: translate(calc(0.35 * ${
|
|
496
|
+
transform: translate(calc(0.35 * ${Li.size}), 0);
|
|
493
497
|
}
|
|
494
498
|
}
|
|
495
|
-
`,
|
|
499
|
+
`,Ki=xo.extend("--ft-button-color","",Co.colorPrimary),Zi={backgroundColor:xo.extend("--ft-button-background-color","",Co.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",Co.borderRadiusL),color:Ki,fontSize:xo.extend("--ft-button-font-size","",ci.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",Ki),verticalPadding:xo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:xo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:xo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},Fi=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",Co.colorOnPrimary)),Bi={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",Co.colorPrimary)),color:Fi,rippleColor:xo.extend("--ft-button-primary-ripple-color","",Fi)},Di=xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",Co.borderRadiusM)),Ai=xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Mi=xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Pi=xo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Hi=[bt`
|
|
496
500
|
:host {
|
|
497
501
|
display: inline-block;
|
|
498
502
|
max-width: 100%;
|
|
@@ -503,7 +507,7 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
503
507
|
box-shadow: 0px 0px 0px transparent;
|
|
504
508
|
border: 0px solid transparent;
|
|
505
509
|
text-shadow: 0px 0px 0px transparent;
|
|
506
|
-
font-size: ${
|
|
510
|
+
font-size: ${Zi.fontSize};
|
|
507
511
|
}
|
|
508
512
|
|
|
509
513
|
button:hover {
|
|
@@ -532,31 +536,31 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
532
536
|
border: none;
|
|
533
537
|
pointer-events: auto;
|
|
534
538
|
|
|
535
|
-
--ft-button-internal-line-height: max(calc(${
|
|
536
|
-
--ft-button-internal-color: ${
|
|
537
|
-
${Oo(
|
|
538
|
-
${Oo(
|
|
539
|
+
--ft-button-internal-line-height: max(calc(${Zi.fontSize} + 2px), ${Zi.iconSize});
|
|
540
|
+
--ft-button-internal-color: ${Zi.color};
|
|
541
|
+
${Oo(Ri.size,Zi.iconSize)};
|
|
542
|
+
${Oo(Vo.color,Zi.rippleColor)};
|
|
539
543
|
|
|
540
|
-
border-radius: ${
|
|
541
|
-
padding: ${
|
|
542
|
-
background-color: ${
|
|
544
|
+
border-radius: ${Zi.borderRadius};
|
|
545
|
+
padding: ${Zi.verticalPadding} ${Zi.horizontalPadding};
|
|
546
|
+
background-color: ${Zi.backgroundColor};
|
|
543
547
|
color: var(--ft-button-internal-color);
|
|
544
548
|
-webkit-mask-image: radial-gradient(white, black);
|
|
545
549
|
}
|
|
546
550
|
|
|
547
551
|
.ft-button.ft-button--outlined {
|
|
548
552
|
border: 1px solid var(--ft-button-internal-color);
|
|
549
|
-
padding: calc(${
|
|
553
|
+
padding: calc(${Zi.verticalPadding} - 1px) calc(${Zi.horizontalPadding} - 1px);
|
|
550
554
|
}
|
|
551
555
|
|
|
552
556
|
.ft-button.ft-button--dense {
|
|
553
|
-
padding: ${
|
|
554
|
-
border-radius: ${
|
|
555
|
-
gap: ${
|
|
557
|
+
padding: ${Ai} ${Mi};
|
|
558
|
+
border-radius: ${Di};
|
|
559
|
+
gap: ${Pi};
|
|
556
560
|
}
|
|
557
561
|
|
|
558
562
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
559
|
-
padding: calc(${
|
|
563
|
+
padding: calc(${Ai} - 1px) calc(${Mi} - 1px);
|
|
560
564
|
}
|
|
561
565
|
|
|
562
566
|
.ft-button:not([disabled]):hover {
|
|
@@ -564,22 +568,22 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
564
568
|
}
|
|
565
569
|
|
|
566
570
|
.ft-button--round {
|
|
567
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
571
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Zi.verticalPadding});
|
|
568
572
|
}
|
|
569
573
|
|
|
570
574
|
.ft-button--round.ft-button--dense {
|
|
571
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
575
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ai});
|
|
572
576
|
}
|
|
573
577
|
|
|
574
578
|
.ft-button[disabled] {
|
|
575
579
|
filter: grayscale(1);
|
|
576
|
-
opacity: ${
|
|
580
|
+
opacity: ${Zi.opacityDisabled};
|
|
577
581
|
}
|
|
578
582
|
|
|
579
583
|
.ft-button.ft-button--primary {
|
|
580
|
-
background-color: ${
|
|
581
|
-
--ft-button-internal-color: ${
|
|
582
|
-
${Oo(
|
|
584
|
+
background-color: ${Bi.backgroundColor};
|
|
585
|
+
--ft-button-internal-color: ${Bi.color};
|
|
586
|
+
${Oo(Vo.color,Bi.rippleColor)};
|
|
583
587
|
}
|
|
584
588
|
|
|
585
589
|
.ft-button:focus {
|
|
@@ -592,13 +596,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
592
596
|
white-space: nowrap;
|
|
593
597
|
text-overflow: ellipsis;
|
|
594
598
|
display: block;
|
|
595
|
-
margin: 0 ${
|
|
596
|
-
${Oo(
|
|
597
|
-
${Oo(
|
|
599
|
+
margin: 0 ${Zi.iconPadding};
|
|
600
|
+
${Oo(ci.fontSize,"1em")};
|
|
601
|
+
${Oo(ci.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
598
602
|
}
|
|
599
603
|
|
|
600
604
|
.ft-button--dense .ft-button--label {
|
|
601
|
-
margin: 0 ${
|
|
605
|
+
margin: 0 ${Pi};
|
|
602
606
|
}
|
|
603
607
|
|
|
604
608
|
.ft-button--label[hidden] {
|
|
@@ -611,13 +615,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
611
615
|
}
|
|
612
616
|
|
|
613
617
|
.ft-button--label[hidden] + ft-icon {
|
|
614
|
-
margin: 0 calc(${
|
|
615
|
-
padding: 0 ${
|
|
618
|
+
margin: 0 calc(${Zi.horizontalPadding} * -1);
|
|
619
|
+
padding: 0 ${Zi.verticalPadding};
|
|
616
620
|
}
|
|
617
621
|
|
|
618
622
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
619
|
-
margin: 0 calc(${
|
|
620
|
-
padding: 0 ${
|
|
623
|
+
margin: 0 calc(${Mi} * -1);
|
|
624
|
+
padding: 0 ${Ai};
|
|
621
625
|
}
|
|
622
626
|
|
|
623
627
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -626,10 +630,10 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
626
630
|
}
|
|
627
631
|
|
|
628
632
|
ft-loader {
|
|
629
|
-
${Oo(
|
|
630
|
-
${Oo(
|
|
633
|
+
${Oo(Li.size,Zi.iconSize)};
|
|
634
|
+
${Oo(Li.color,"var(--ft-button-internal-color)")};
|
|
631
635
|
}
|
|
632
|
-
`,
|
|
636
|
+
`,Zo],ji=xo.create("--ft-tooltip-distance","","SIZE","4px"),Ti=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),_i=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),Gi=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Yi=xo.external(Co.borderRadiusS,"Design system"),Vi=xo.create("--ft-tooltip-max-width","","SIZE","150px"),Ji=bt`
|
|
633
637
|
.ft-tooltip--container {
|
|
634
638
|
display: block;
|
|
635
639
|
}
|
|
@@ -644,21 +648,21 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
644
648
|
box-sizing: border-box;
|
|
645
649
|
overflow: hidden;
|
|
646
650
|
width: max-content;
|
|
647
|
-
max-width: ${
|
|
651
|
+
max-width: ${Vi};
|
|
648
652
|
text-align: center;
|
|
649
|
-
padding: ${
|
|
650
|
-
z-index: ${
|
|
653
|
+
padding: ${ji};
|
|
654
|
+
z-index: ${Gi};
|
|
651
655
|
}
|
|
652
656
|
|
|
653
657
|
.ft-tooltip--content {
|
|
654
658
|
padding: 4px 8px;
|
|
655
|
-
border-radius: ${
|
|
656
|
-
background-color: ${
|
|
657
|
-
color: ${
|
|
659
|
+
border-radius: ${Yi};
|
|
660
|
+
background-color: ${_i};
|
|
661
|
+
color: ${Ti};
|
|
658
662
|
position: relative;
|
|
659
663
|
word-break: break-word;
|
|
660
664
|
}
|
|
661
|
-
`;var
|
|
665
|
+
`;var qi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Xi extends zo{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 o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Qt`
|
|
662
666
|
<div part="container"
|
|
663
667
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
664
668
|
@mouseenter=${this.onHover}
|
|
@@ -676,23 +680,23 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
676
680
|
</div>
|
|
677
681
|
</div>
|
|
678
682
|
</div>
|
|
679
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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 o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${
|
|
683
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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 o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Vi})`}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())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Xi.elementDefinitions={"ft-typography":Si},Xi.styles=Ji,qi([C()],Xi.prototype,"text",void 0),qi([C({type:Boolean})],Xi.prototype,"manual",void 0),qi([C({type:Boolean})],Xi.prototype,"inline",void 0),qi([C({type:Number})],Xi.prototype,"delay",void 0),qi([C()],Xi.prototype,"position",void 0),qi([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],Xi.prototype,"slotNodes",void 0),qi([R(".ft-tooltip--container")],Xi.prototype,"container",void 0),qi([R(".ft-tooltip")],Xi.prototype,"tooltip",void 0),qi([R(".ft-tooltip--content")],Xi.prototype,"tooltipContent",void 0),qi([$()],Xi.prototype,"visible",void 0),k("ft-tooltip")(Xi);class Qi extends zo{render(){return Qt`
|
|
680
684
|
<div class="ft-loader">
|
|
681
685
|
<div></div>
|
|
682
686
|
<div></div>
|
|
683
687
|
<div></div>
|
|
684
688
|
<div></div>
|
|
685
689
|
</div>
|
|
686
|
-
`}}
|
|
690
|
+
`}}Qi.styles=zi,k("ft-loader")(Qi);var tr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class or extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Bo].form}constructor(...t){super(t),this[Bo]=this.attachInternals(),this[Bo].role=o}setFormValue(t){this[Bo].setFormValue(t)}}}(zo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!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=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(Qt`
|
|
687
691
|
<button part="button"
|
|
688
|
-
class="${
|
|
692
|
+
class="${Go(this.buttonClasses)}"
|
|
689
693
|
aria-label="${this.getLabel()}"
|
|
690
694
|
?disabled=${this.isDisabled()}>
|
|
691
695
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
692
696
|
<ft-typography part="label"
|
|
693
697
|
variant=${this.typographyVariant}
|
|
694
698
|
element="span"
|
|
695
|
-
class="ft-button--label ${
|
|
699
|
+
class="ft-button--label ${Po?"ft-safari-ellipsis-fix":""}"
|
|
696
700
|
?hidden=${!this.hasTextContent()}>
|
|
697
701
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
698
702
|
</ft-typography>
|
|
@@ -706,7 +710,7 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
706
710
|
</ft-tooltip>
|
|
707
711
|
`:t}resolveIcon(){return this.loading?Qt`
|
|
708
712
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?Qt`
|
|
709
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:oo}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}}
|
|
713
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:oo}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}}or.elementDefinitions={"ft-ripple":re,"ft-tooltip":Xi,"ft-typography":Si,"ft-icon":Wi,"ft-loader":Qi},tr([C({type:String,reflect:!0})],or.prototype,"role",void 0),tr([C()],or.prototype,"type",void 0),tr([C({type:Boolean})],or.prototype,"disabled",void 0),tr([C()],or.prototype,"label",void 0),tr([C()],or.prototype,"icon",void 0),tr([C()],or.prototype,"iconVariant",void 0),tr([C({type:Boolean})],or.prototype,"trailingIcon",void 0),tr([C({type:Boolean})],or.prototype,"loading",void 0),tr([C()],or.prototype,"tooltipPosition",void 0),tr([C({type:Boolean})],or.prototype,"hideTooltip",void 0),tr([C({type:Boolean})],or.prototype,"forceTooltip",void 0),tr([R(".ft-button")],or.prototype,"button",void 0),tr([R(".ft-button--label slot")],or.prototype,"slottedContent",void 0);var er=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ir extends or{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}ir.styles=[Fo,Hi],er([C({type:Boolean})],ir.prototype,"primary",void 0),er([C({type:Boolean})],ir.prototype,"outlined",void 0),er([C({type:Boolean})],ir.prototype,"dense",void 0),er([C({type:Boolean})],ir.prototype,"round",void 0);const rr=[bt`
|
|
710
714
|
:host {
|
|
711
715
|
display: inline-block;
|
|
712
716
|
max-width: 100%;
|
|
@@ -785,13 +789,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
785
789
|
/** Primary styles **/
|
|
786
790
|
|
|
787
791
|
.ft-button--primary {
|
|
788
|
-
${Oo(
|
|
792
|
+
${Oo(Li.color,wo.primaryIconColor)};
|
|
789
793
|
|
|
790
|
-
${Oo(
|
|
791
|
-
${Oo(
|
|
792
|
-
${Oo(
|
|
793
|
-
${Oo(
|
|
794
|
-
${Oo(
|
|
794
|
+
${Oo(Vo.color,wo.primaryStateLayerColor)};
|
|
795
|
+
${Oo(Vo.opacityContentOnSurfaceHover,wo.primaryStateLayerOpacityHover)};
|
|
796
|
+
${Oo(Vo.opacityContentOnSurfaceFocused,wo.primaryStateLayerOpacityFocus)};
|
|
797
|
+
${Oo(Vo.opacityContentOnSurfaceSelected,wo.primaryStateLayerOpacityActive)};
|
|
798
|
+
${Oo(Vo.opacityContentOnSurfacePressed,wo.primaryStateLayerOpacityActive)};
|
|
795
799
|
|
|
796
800
|
background-color: ${wo.primaryBackgroundColor};
|
|
797
801
|
color: ${wo.primaryColor};
|
|
@@ -809,13 +813,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
809
813
|
/** Secondary styles **/
|
|
810
814
|
|
|
811
815
|
.ft-button--secondary {
|
|
812
|
-
${Oo(
|
|
816
|
+
${Oo(Li.color,wo.secondaryIconColor)};
|
|
813
817
|
|
|
814
|
-
${Oo(
|
|
815
|
-
${Oo(
|
|
816
|
-
${Oo(
|
|
817
|
-
${Oo(
|
|
818
|
-
${Oo(
|
|
818
|
+
${Oo(Vo.color,wo.secondaryStateLayerColor)};
|
|
819
|
+
${Oo(Vo.opacityContentOnSurfaceHover,wo.secondaryStateLayerOpacityHover)};
|
|
820
|
+
${Oo(Vo.opacityContentOnSurfaceFocused,wo.secondaryStateLayerOpacityFocus)};
|
|
821
|
+
${Oo(Vo.opacityContentOnSurfaceSelected,wo.secondaryStateLayerOpacityActive)};
|
|
822
|
+
${Oo(Vo.opacityContentOnSurfacePressed,wo.secondaryStateLayerOpacityActive)};
|
|
819
823
|
|
|
820
824
|
background-color: ${wo.secondaryBackgroundColor};
|
|
821
825
|
color: ${wo.secondaryColor};
|
|
@@ -834,13 +838,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
834
838
|
/** Tertiary styles **/
|
|
835
839
|
|
|
836
840
|
.ft-button--tertiary {
|
|
837
|
-
${Oo(
|
|
841
|
+
${Oo(Li.color,wo.tertiaryIconColor)};
|
|
838
842
|
|
|
839
|
-
${Oo(
|
|
840
|
-
${Oo(
|
|
841
|
-
${Oo(
|
|
842
|
-
${Oo(
|
|
843
|
-
${Oo(
|
|
843
|
+
${Oo(Vo.color,wo.tertiaryStateLayerColor)};
|
|
844
|
+
${Oo(Vo.opacityContentOnSurfaceHover,wo.tertiaryStateLayerOpacityHover)};
|
|
845
|
+
${Oo(Vo.opacityContentOnSurfaceFocused,wo.tertiaryStateLayerOpacityFocus)};
|
|
846
|
+
${Oo(Vo.opacityContentOnSurfaceSelected,wo.tertiaryStateLayerOpacityActive)};
|
|
847
|
+
${Oo(Vo.opacityContentOnSurfacePressed,wo.tertiaryStateLayerOpacityActive)};
|
|
844
848
|
|
|
845
849
|
background-color: ${wo.tertiaryBackgroundColor};
|
|
846
850
|
color: ${wo.tertiaryColor};
|
|
@@ -858,13 +862,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
858
862
|
/** Neutral styles **/
|
|
859
863
|
|
|
860
864
|
.ft-button--neutral {
|
|
861
|
-
${Oo(
|
|
865
|
+
${Oo(Li.color,wo.neutralIconColor)};
|
|
862
866
|
|
|
863
|
-
${Oo(
|
|
864
|
-
${Oo(
|
|
865
|
-
${Oo(
|
|
866
|
-
${Oo(
|
|
867
|
-
${Oo(
|
|
867
|
+
${Oo(Vo.backgroundColor,wo.neutralStateLayerColor)};
|
|
868
|
+
${Oo(Vo.opacityContentOnSurfaceHover,wo.neutralStateLayerOpacityHover)};
|
|
869
|
+
${Oo(Vo.opacityContentOnSurfaceFocused,wo.neutralStateLayerOpacityFocus)};
|
|
870
|
+
${Oo(Vo.opacityContentOnSurfaceSelected,wo.neutralStateLayerOpacityActive)};
|
|
871
|
+
${Oo(Vo.opacityContentOnSurfacePressed,wo.neutralStateLayerOpacityActive)};
|
|
868
872
|
|
|
869
873
|
background-color: ${wo.neutralBackgroundColor};
|
|
870
874
|
color: ${wo.neutralColor};
|
|
@@ -882,8 +886,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
882
886
|
/** Large styles **/
|
|
883
887
|
|
|
884
888
|
.ft-button--large {
|
|
885
|
-
${Oo(
|
|
886
|
-
${Oo(
|
|
889
|
+
${Oo(Ri.size,wo.largeIconSize)};
|
|
890
|
+
${Oo(Li.size,wo.largeIconSize)};
|
|
887
891
|
|
|
888
892
|
height: ${wo.largeHeight};
|
|
889
893
|
padding: 0 ${wo.largeHorizontalPadding};
|
|
@@ -905,8 +909,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
905
909
|
/** Small styles **/
|
|
906
910
|
|
|
907
911
|
.ft-button--small {
|
|
908
|
-
${Oo(
|
|
909
|
-
${Oo(
|
|
912
|
+
${Oo(Ri.size,wo.smallIconSize)};
|
|
913
|
+
${Oo(Li.size,wo.smallIconSize)};
|
|
910
914
|
|
|
911
915
|
height: ${wo.smallHeight};
|
|
912
916
|
padding: 0 ${wo.smallHorizontalPadding};
|
|
@@ -924,7 +928,7 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
924
928
|
width: ${wo.smallIconOnlyWidth};
|
|
925
929
|
padding: unset;
|
|
926
930
|
}
|
|
927
|
-
`,
|
|
931
|
+
`,Zo];var nr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ar extends or{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?pe.caption1medium:pe.body2medium}}ar.styles=[Fo,rr],nr([C({type:Boolean})],ar.prototype,"primary",void 0),nr([C({type:Boolean})],ar.prototype,"secondary",void 0),nr([C({type:Boolean})],ar.prototype,"tertiary",void 0),nr([C({type:Boolean})],ar.prototype,"neutral",void 0),nr([C({type:Boolean})],ar.prototype,"small",void 0),k("ft-button")(ir),k("ftds-button")(ar);const sr=xo.extend("--ft-chip-color","",Co.colorOnSurface),lr={backgroundColor:xo.extend("--ft-chip-background-color","",Co.colorSurface),color:sr,fontSize:xo.extend("--ft-chip-font-size","",je.fontSize),iconSize:xo.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:xo.extend("--ft-chip-ripple-color","",sr),horizontalPadding:xo.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:xo.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:xo.external(Co.colorOutline,"Design system"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},cr=xo.extend("--ft-chip-highlighted-color","",xo.extend("--ft-chip-color","",Co.colorOnPrimary)),pr={backgroundColor:xo.extend("--ft-chip-highlighted-background-color","",xo.extend("--ft-chip-background-color","",Co.colorPrimary)),color:cr,rippleColor:xo.extend("--ft-chip-highlighted-ripple-color","",cr)},fr={horizontalPadding:xo.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:xo.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},hr=[Zo,bt`
|
|
928
932
|
:host {
|
|
929
933
|
display: inline-block;
|
|
930
934
|
max-width: 100%;
|
|
@@ -940,20 +944,20 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
940
944
|
box-sizing: border-box;
|
|
941
945
|
pointer-events: auto;
|
|
942
946
|
|
|
943
|
-
--ft-chip-internal-font-size: ${
|
|
947
|
+
--ft-chip-internal-font-size: ${lr.fontSize};
|
|
944
948
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
945
|
-
${Oo(
|
|
946
|
-
--ft-chip-internal-vertical-padding: ${
|
|
947
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
949
|
+
${Oo(Ri.size,lr.iconSize)};
|
|
950
|
+
--ft-chip-internal-vertical-padding: ${lr.verticalPadding};
|
|
951
|
+
--ft-chip-internal-horizontal-padding: ${lr.horizontalPadding};
|
|
948
952
|
--ft-chip-internal-icon-padding: 3px;
|
|
949
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
953
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${lr.iconSize});
|
|
950
954
|
|
|
951
|
-
border: 1px solid ${
|
|
952
|
-
color: ${
|
|
953
|
-
${Oo(
|
|
955
|
+
border: 1px solid ${lr.colorOutline};
|
|
956
|
+
color: ${lr.color};
|
|
957
|
+
${Oo(Vo.color,lr.rippleColor)};
|
|
954
958
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
955
959
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
956
|
-
background-color: ${
|
|
960
|
+
background-color: ${lr.backgroundColor};
|
|
957
961
|
line-height: var(--ft-chip-internal-content-height);
|
|
958
962
|
}
|
|
959
963
|
|
|
@@ -963,8 +967,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
963
967
|
|
|
964
968
|
.ft-chip--dense {
|
|
965
969
|
--ft-chip-internal-icon-padding: 3px;
|
|
966
|
-
--ft-chip-internal-vertical-padding: ${
|
|
967
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
970
|
+
--ft-chip-internal-vertical-padding: ${fr.verticalPadding};
|
|
971
|
+
--ft-chip-internal-horizontal-padding: ${fr.horizontalPadding};
|
|
968
972
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
969
973
|
}
|
|
970
974
|
|
|
@@ -976,15 +980,15 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
976
980
|
cursor: default;
|
|
977
981
|
pointer-events: none;
|
|
978
982
|
filter: grayscale(1);
|
|
979
|
-
opacity: ${
|
|
983
|
+
opacity: ${lr.opacityDisabled};
|
|
980
984
|
}
|
|
981
985
|
|
|
982
986
|
.ft-chip--highlighted {
|
|
983
987
|
border: none;
|
|
984
988
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
985
|
-
background-color: ${
|
|
986
|
-
${Oo(
|
|
987
|
-
color: ${
|
|
989
|
+
background-color: ${pr.backgroundColor};
|
|
990
|
+
${Oo(Vo.color,pr.rippleColor)};
|
|
991
|
+
color: ${pr.color};
|
|
988
992
|
}
|
|
989
993
|
|
|
990
994
|
.ft-chip--clickable {
|
|
@@ -1014,9 +1018,9 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
1014
1018
|
}
|
|
1015
1019
|
|
|
1016
1020
|
.ft-chip--icon-button {
|
|
1017
|
-
${Oo(
|
|
1018
|
-
${Oo(
|
|
1019
|
-
${Oo(
|
|
1021
|
+
${Oo(Zi.iconSize,lr.iconSize)};
|
|
1022
|
+
${Oo(Zi.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
1023
|
+
${Oo(Zi.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
1020
1024
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
1021
1025
|
}
|
|
1022
1026
|
|
|
@@ -1024,8 +1028,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
1024
1028
|
vertical-align: bottom;
|
|
1025
1029
|
display: block;
|
|
1026
1030
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
1027
|
-
${Oo(
|
|
1028
|
-
${Oo(
|
|
1031
|
+
${Oo(je.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
1032
|
+
${Oo(je.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
1029
1033
|
}
|
|
1030
1034
|
|
|
1031
1035
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1061,8 +1065,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
1061
1065
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1062
1066
|
order: -1;
|
|
1063
1067
|
}
|
|
1064
|
-
`];var
|
|
1065
|
-
<div class="${
|
|
1068
|
+
`];var dr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class yr extends CustomEvent{constructor(){super("icon-click")}}class ur extends zo{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Po};return Qt`
|
|
1069
|
+
<div class="${Go(t)}"
|
|
1066
1070
|
aria-label="${this.getLabel()}"
|
|
1067
1071
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1068
1072
|
@keyup=${this.onKeyUp}>
|
|
@@ -1084,4 +1088,4 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
|
|
|
1084
1088
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
1085
1089
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
1086
1090
|
</div>
|
|
1087
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
1091
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new yr))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new yr))}getLabel(){return this.label||this.textContent}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}ur.elementDefinitions={"ft-ripple":re,"ft-typography":Si,"ft-icon":Wi,"ft-button":ir},ur.styles=hr,dr([C({type:Boolean})],ur.prototype,"highlighted",void 0),dr([C({type:Boolean})],ur.prototype,"removable",void 0),dr([C({type:Boolean})],ur.prototype,"disabled",void 0),dr([C({type:Boolean})],ur.prototype,"clickable",void 0),dr([C({type:Boolean})],ur.prototype,"iconClickable",void 0),dr([C({type:Boolean})],ur.prototype,"dense",void 0),dr([C({type:Boolean})],ur.prototype,"multiLine",void 0),dr([C()],ur.prototype,"label",void 0),dr([C()],ur.prototype,"iconLabel",void 0),dr([C()],ur.prototype,"icon",void 0),dr([C()],ur.prototype,"iconVariant",void 0),dr([C({type:Boolean})],ur.prototype,"trailingIcon",void 0),dr([R("ft-typography slot")],ur.prototype,"slottedContent",void 0),k("ft-chip")(ur),t.FtChip=ur,t.FtChipCssVariables=lr,t.FtChipDenseCssVariables=fr,t.FtChipHighlightedCssVariables=pr,t.IconClickEvent=yr,t.styles=hr}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-chip",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "A generic Fluid Topics chip",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "1.1.
|
|
23
|
-
"@fluid-topics/ft-ripple": "1.1.
|
|
24
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.1.2",
|
|
23
|
+
"@fluid-topics/ft-ripple": "1.1.2",
|
|
24
|
+
"@fluid-topics/ft-typography": "1.1.2",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "1.1.2",
|
|
26
26
|
"lit": "3.1.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
|
|
29
29
|
}
|