@fluid-topics/ft-tabs 1.1.1 → 1.1.3
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-tabs.min.js +143 -139
- package/package.json +7 -7
package/build/ft-tabs.min.js
CHANGED
|
@@ -12,43 +12,43 @@
|
|
|
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,a=new WeakMap,n=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&&(n.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){u.push(this),i.upgrade.apply(i,arguments),u.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=n.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=u[u.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):a.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.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 a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);i.call(this,a,r),e.call(this,a,t,r)}else i.call(this,a,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 a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);a.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else a.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)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.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){u.push(this),e.set.call(this,t),u.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 a{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 n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(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,a=new WeakMap,n=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&&(n.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){u.push(this),i.upgrade.apply(i,arguments),u.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=n.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=u[u.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):a.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.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 a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);i.call(this,a,r),e.call(this,a,t,r)}else i.call(this,a,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 a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);a.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else a.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)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.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){u.push(this),e.set.call(this,t),u.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 a{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 n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(Vi){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)}}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
19
19
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
20
|
-
*/const
|
|
20
|
+
*/const o=globalThis,e=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;const a=t=>new class{constructor(t,o,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(e&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=r.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&r.set(o,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),n=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return a(o)})(t):t
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/,{is:
|
|
25
|
+
*/,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:p,getOwnPropertySymbols:f,getPrototypeOf:h}=Object,d=globalThis,y=d.trustedTypes,g=y?y.emptyScript:"",u=d.reactiveElementPolyfillSupport,b=(t,o)=>t,m={toAttribute(t,o){switch(o){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},x=(t,o)=>!s(t,o),O={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let v=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=O){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),i=this.getPropertyDescriptor(t,e,o);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,o,e){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return i?.call(this)},set(o){const a=i?.call(this);r.call(this,o),this.requestUpdate(t,a,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??O}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,o=[...p(t),...f(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(n(t))}else void 0!==t&&o.push(n(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(e)t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of i){const i=document.createElement("style"),r=o.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,e);if(void 0!==i&&!0===e.reflect){const r=(void 0!==e.converter?.toAttribute?e.converter:m).toAttribute(o,e.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,o){const e=this.constructor,i=e._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=e.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=r.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,i=!1,r){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??x)(i?r:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[b("elementProperties")]=new Map,v[b("finalized")]=new Map,u?.({ReactiveElement:v}),(d.reactiveElementVersions??=[]).push("2.0.2");
|
|
26
26
|
/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
30
|
*/
|
|
31
|
-
const
|
|
31
|
+
const N={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},S=(t=N,o,e)=>{const{kind:i,metadata:r}=e;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=new Map),a.set(e.name,t),"accessor"===i){const{name:i}=e;return{set(e){const r=o.get.call(this);o.set.call(this,e),this.requestUpdate(i,r,t)},init(o){return void 0!==o&&this.C(i,void 0,t),o}}}if("setter"===i){const{name:i}=e;return function(e){const r=this[i];o.call(this,e),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function w(t){return(o,e)=>"object"==typeof e?S(t,o,e):((t,o,e)=>{const i=o.hasOwnProperty(e);return o.constructor.createProperty(e,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(o,e):void 0})(t,o,e)
|
|
32
32
|
/**
|
|
33
33
|
* @license
|
|
34
34
|
* Copyright 2017 Google LLC
|
|
35
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
-
*/}function
|
|
36
|
+
*/}function C(t){return w({...t,state:!0,attribute:!1})}
|
|
37
37
|
/**
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2017 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/const
|
|
41
|
+
*/const R=(t,o,e)=>(e.configurable=!0,e.enumerable=!0,e)
|
|
42
42
|
/**
|
|
43
43
|
* @license
|
|
44
44
|
* Copyright 2017 Google LLC
|
|
45
45
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
|
-
*/;function
|
|
46
|
+
*/;function E(t,o){return(e,i,r)=>{const a=o=>o.renderRoot?.querySelector(t)??null;if(o){const{get:t,set:o}="object"==typeof i?e:r??(()=>{const t=Symbol();return{get(){return this[t]},set(o){this[t]=o}}})();return R(0,0,{get(){let e=t.call(this);return void 0===e&&(e=a(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return R(0,0,{get(){return a(this)}})}}
|
|
47
47
|
/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2017 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*/function $(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,i,r;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(i=e;0!=i--;)if(!$(t[i],o[i]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;for(i of t.entries())if(!$(i[1],o.get(i[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(r=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(i=e;0!=i--;)if(!Object.prototype.hasOwnProperty.call(o,r[i]))return!1;for(i=e;0!=i--;){var a=r[i];if(!$(t[a],o[a]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const I=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};
|
|
51
|
+
*/class U{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}}function $(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,i,r;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(i=e;0!=i--;)if(!$(t[i],o[i]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;for(i of t.entries())if(!$(i[1],o.get(i[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(r=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(i=e;0!=i--;)if(!Object.prototype.hasOwnProperty.call(o,r[i]))return!1;for(i=e;0!=i--;){var a=r[i];if(!$(t[a],o[a]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const I=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};
|
|
52
52
|
/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright 2017 Google LLC
|
|
@@ -82,7 +82,11 @@ let Oo=class extends Ft{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
82
82
|
* @license
|
|
83
83
|
* Copyright 2019 Google LLC
|
|
84
84
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
85
|
-
*/const Io=window,ko=Io.ShadowRoot&&(void 0===Io.ShadyCSS||Io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Wo extends Oo{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)=>{ko?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Io.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Lo,Ko=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Zo=Symbol("constructorPrototype"),zo=Symbol("constructorName"),Fo=Symbol("exportpartsDebouncer");class Mo extends Wo{constructor(){super(),this[Lo]=new
|
|
85
|
+
*/const Io=window,ko=Io.ShadowRoot&&(void 0===Io.ShadyCSS||Io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Wo extends Oo{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)=>{ko?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Io.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Lo,Ko=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Zo=Symbol("constructorPrototype"),zo=Symbol("constructorName"),Fo=Symbol("exportpartsDebouncer");class Mo extends Wo{constructor(){super(),this[Lo]=new U(5),this[zo]=this.constructor.name,this[Zo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zo]&&Object.setPrototypeOf(this,this[Zo])}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[Fo].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,a,n;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!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];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(", "))}}Lo=Fo,Ko([w()],Mo.prototype,"exportpartsPrefix",void 0),Ko([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return w({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)=>!$(t,o),...null!=o?o:{}})}([])],Mo.prototype,"exportpartsPrefixes",void 0),Ko([w()],Mo.prototype,"customStylesheet",void 0);const Do=So.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");var Ao,Bo;vt`
|
|
86
|
+
.highlight-html-match {
|
|
87
|
+
background: ${Do};
|
|
88
|
+
}
|
|
89
|
+
`,vt`
|
|
86
90
|
.ft-no-text-select {
|
|
87
91
|
-webkit-touch-callout: none;
|
|
88
92
|
-webkit-user-select: none;
|
|
@@ -114,25 +118,25 @@ let Oo=class extends Ft{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
114
118
|
display: inline-block;
|
|
115
119
|
width: 0;
|
|
116
120
|
}
|
|
117
|
-
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
121
|
+
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Bo=null===(Ao=window.safari)||void 0===Ao?void 0:Ao.pushNotification)||void 0===Bo||Bo.toString());var Po=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class jo extends Mo{constructor(){super(...arguments),this.label="",this.icon="",this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return io`
|
|
118
122
|
<style>
|
|
119
123
|
:host {
|
|
120
124
|
display: ${Ot(this.active?"block":"none")};
|
|
121
125
|
}
|
|
122
126
|
</style>
|
|
123
127
|
<slot></slot>
|
|
124
|
-
`}update(t){super.update(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control"}updated(t){super.updated(t),this.dispatchEvent(new Event("updated"))}}
|
|
128
|
+
`}update(t){super.update(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control"}updated(t){super.updated(t),this.dispatchEvent(new Event("updated"))}}jo.elementDefinitions={},Po([w({type:String})],jo.prototype,"label",void 0),Po([w({type:String})],jo.prototype,"icon",void 0),Po([w()],jo.prototype,"iconVariant",void 0),Po([w({type:Boolean,reflect:!0})],jo.prototype,"active",void 0),Po([w({type:Boolean})],jo.prototype,"disabled",void 0),Po([w({reflect:!0})],jo.prototype,"id",void 0),Po([w()],jo.prototype,"color",void 0),Po([w()],jo.prototype,"rippleColor",void 0),Po([w({reflect:!0,attribute:"aria-labelledby"})],jo.prototype,"ariaLabelledBy",void 0);
|
|
125
129
|
/**
|
|
126
130
|
* @license
|
|
127
131
|
* Copyright 2017 Google LLC
|
|
128
132
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
133
|
*/
|
|
130
|
-
const
|
|
134
|
+
const Ho=1,_o=2,To=t=>(...o)=>({_$litDirective$:t,values:o});let Go=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)}};
|
|
131
135
|
/**
|
|
132
136
|
* @license
|
|
133
137
|
* Copyright 2020 Google LLC
|
|
134
138
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
|
-
*/const{D:
|
|
139
|
+
*/const{D:Yo}=dt,Vo=()=>document.createComment(""),Jo=(t,o,e)=>{const i=t._$AA.parentNode,r=void 0===o?t._$AB:o._$AA;if(void 0===e){const o=i.insertBefore(Vo(),r),a=i.insertBefore(Vo(),r);e=new Yo(o,a,t,t.options)}else{const o=e._$AB.nextSibling,a=e._$AM,n=a!==t;if(n){let o;e._$AQ?.(t),e._$AM=t,void 0!==e._$AP&&(o=t._$AU)!==a._$AU&&e._$AP(o)}if(o!==r||n){let t=e._$AA;for(;t!==o;){const o=t.nextSibling;i.insertBefore(t,r),t=o}}}return e},qo=(t,o,e=t)=>(t._$AI(o,e),t),Xo={},Qo=t=>{t._$AP?.(!1,!0);let o=t._$AA;const e=t._$AB.nextSibling;for(;o!==e;){const t=o.nextSibling;o.remove(),o=t}},te=(t,o,e)=>{const i=new Map;for(let r=o;r<=e;r++)i.set(t[r],r);return i},oe=To(class extends Go{constructor(t){if(super(t),t.type!==_o)throw Error("repeat() can only be used in text expressions")}ht(t,o,e){let i;void 0===e?e=o:void 0!==o&&(i=o);const r=[],a=[];let n=0;for(const o of t)r[n]=i?i(o,n):n,a[n]=e(o,n),n++;return{values:a,keys:r}}render(t,o,e){return this.ht(t,o,e).values}update(t,[o,e,i]){const r=(t=>t._$AH)(t),{values:a,keys:n}=this.ht(o,e,i);if(!Array.isArray(r))return this.dt=n,a;const s=this.dt??=[],l=[];let c,p,f=0,h=r.length-1,d=0,y=a.length-1;for(;f<=h&&d<=y;)if(null===r[f])f++;else if(null===r[h])h--;else if(s[f]===n[d])l[d]=qo(r[f],a[d]),f++,d++;else if(s[h]===n[y])l[y]=qo(r[h],a[y]),h--,y--;else if(s[f]===n[y])l[y]=qo(r[f],a[y]),Jo(t,l[y+1],r[f]),f++,y--;else if(s[h]===n[d])l[d]=qo(r[h],a[d]),Jo(t,r[f],r[h]),h--,d++;else if(void 0===c&&(c=te(n,d,y),p=te(s,f,h)),c.has(s[f]))if(c.has(s[h])){const o=p.get(n[d]),e=void 0!==o?r[o]:null;if(null===e){const o=Jo(t,r[f]);qo(o,a[d]),l[d]=o}else l[d]=qo(e,a[d]),Jo(t,r[f],e),r[o]=null;d++}else Qo(r[h]),h--;else Qo(r[f]),f++;for(;d<=y;){const o=Jo(t,l[y+1]);qo(o,a[d]),l[d++]=o}for(;f<=h;){const t=r[f++];null!==t&&Qo(t)}return this.dt=n,((t,o=Xo)=>{t._$AH=o})(t,l),X}}),ee=To(class extends Go{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 X}}),ie=So.extend("--ft-ripple-color","",Eo.colorContent),re=ie,ae=So.extend("--ft-ripple-background-color","",ie),ne=So.external(Eo.opacityContentOnSurfacePressed,"Design system"),se=So.external(Eo.opacityContentOnSurfaceHover,"Design system"),le=So.external(Eo.opacityContentOnSurfaceFocused,"Design system"),ce=So.external(Eo.opacityContentOnSurfaceSelected,"Design system"),pe=So.create("--ft-ripple-border-radius","","SIZE","0px"),fe=So.extend("--ft-ripple-color","",Eo.colorPrimary),he=fe,de=So.extend("--ft-ripple-background-color","",fe),ye=So.extend("--ft-ripple-color","",Eo.colorSecondary),ge=ye,ue=So.extend("--ft-ripple-background-color","",ye),be=vt`
|
|
136
140
|
:host {
|
|
137
141
|
display: contents;
|
|
138
142
|
}
|
|
@@ -145,7 +149,7 @@ const jo=1,Ho=2,_o=t=>(...o)=>({_$litDirective$:t,values:o});let To=class{constr
|
|
|
145
149
|
|
|
146
150
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
147
151
|
overflow: hidden;
|
|
148
|
-
border-radius: ${
|
|
152
|
+
border-radius: ${pe};
|
|
149
153
|
}
|
|
150
154
|
|
|
151
155
|
.ft-ripple .ft-ripple--background,
|
|
@@ -179,27 +183,27 @@ const jo=1,Ho=2,_o=t=>(...o)=>({_$litDirective$:t,values:o});let To=class{constr
|
|
|
179
183
|
}
|
|
180
184
|
|
|
181
185
|
.ft-ripple .ft-ripple--background {
|
|
182
|
-
background-color: ${
|
|
186
|
+
background-color: ${ae};
|
|
183
187
|
}
|
|
184
188
|
|
|
185
189
|
.ft-ripple .ft-ripple--effect {
|
|
186
|
-
background-color: ${
|
|
190
|
+
background-color: ${re};
|
|
187
191
|
}
|
|
188
192
|
|
|
189
193
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
190
|
-
background-color: ${
|
|
194
|
+
background-color: ${ue};
|
|
191
195
|
}
|
|
192
196
|
|
|
193
197
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
194
|
-
background-color: ${
|
|
198
|
+
background-color: ${ge};
|
|
195
199
|
}
|
|
196
200
|
|
|
197
201
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
198
|
-
background-color: ${
|
|
202
|
+
background-color: ${de};
|
|
199
203
|
}
|
|
200
204
|
|
|
201
205
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
202
|
-
background-color: ${
|
|
206
|
+
background-color: ${he};
|
|
203
207
|
}
|
|
204
208
|
|
|
205
209
|
.ft-ripple .ft-ripple--background {
|
|
@@ -229,19 +233,19 @@ const jo=1,Ho=2,_o=t=>(...o)=>({_$litDirective$:t,values:o});let To=class{constr
|
|
|
229
233
|
}
|
|
230
234
|
|
|
231
235
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
232
|
-
opacity: ${
|
|
236
|
+
opacity: ${se};
|
|
233
237
|
}
|
|
234
238
|
|
|
235
239
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
236
|
-
opacity: ${
|
|
240
|
+
opacity: ${ce};
|
|
237
241
|
}
|
|
238
242
|
|
|
239
243
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
240
|
-
opacity: ${
|
|
244
|
+
opacity: ${le};
|
|
241
245
|
}
|
|
242
246
|
|
|
243
247
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
244
|
-
opacity: ${
|
|
248
|
+
opacity: ${ne};
|
|
245
249
|
transform: translate(-50%, -50%) scale(1);
|
|
246
250
|
}
|
|
247
251
|
`;
|
|
@@ -249,119 +253,119 @@ const jo=1,Ho=2,_o=t=>(...o)=>({_$litDirective$:t,values:o});let To=class{constr
|
|
|
249
253
|
* @license
|
|
250
254
|
* Copyright 2017 Google LLC
|
|
251
255
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
252
|
-
*/var
|
|
256
|
+
*/var me=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class xe extends Mo{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 U(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 U(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),a=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-a.x:a.width/2),this.originY=Math.round(null!=r?r-a.y:a.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 io`
|
|
253
257
|
<style>
|
|
254
258
|
.ft-ripple .ft-ripple--effect {
|
|
255
259
|
left: ${this.originX}px;
|
|
256
260
|
top: ${this.originY}px;
|
|
257
261
|
}
|
|
258
262
|
</style>
|
|
259
|
-
<div class="${
|
|
263
|
+
<div class="${ee(t)}">
|
|
260
264
|
<div class="ft-ripple--background"></div>
|
|
261
265
|
<div class="ft-ripple--effect"></div>
|
|
262
266
|
</div>
|
|
263
|
-
`}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()}}
|
|
267
|
+
`}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()}}xe.elementDefinitions={},xe.styles=be,me([w({type:Boolean})],xe.prototype,"primary",void 0),me([w({type:Boolean})],xe.prototype,"secondary",void 0),me([w({type:Boolean})],xe.prototype,"unbounded",void 0),me([w({type:Boolean})],xe.prototype,"activated",void 0),me([w({type:Boolean})],xe.prototype,"selected",void 0),me([w({type:Boolean})],xe.prototype,"disabled",void 0),me([C()],xe.prototype,"hovered",void 0),me([C()],xe.prototype,"focused",void 0),me([C()],xe.prototype,"pressed",void 0),me([C()],xe.prototype,"rippling",void 0),me([C()],xe.prototype,"originX",void 0),me([C()],xe.prototype,"originY",void 0),me([E(".ft-ripple")],xe.prototype,"ripple",void 0),me([E(".ft-ripple--effect")],xe.prototype,"rippleEffect",void 0),I("ft-ripple")(xe);
|
|
264
268
|
/**
|
|
265
269
|
* @license
|
|
266
270
|
* Copyright 2020 Google LLC
|
|
267
271
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
268
272
|
*/
|
|
269
|
-
const
|
|
273
|
+
const Oe=Symbol.for(""),ve=t=>{if(t?.r===Oe)return t?._$litStatic$},Ne=t=>({_$litStatic$:t,r:Oe}),Se=new Map,we=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(a=e[c],r=ve(a));)l+=r+o[++c],p=!0;c!==i&&s.push(a),n.push(l),c++}if(c===i&&n.push(o[i]),p){const t=n.join("$$lit$$");void 0===(o=Se.get(t))&&(n.raw=n,Se.set(t,o=n)),e=s}return t(o,...e)})(q);var Ce;!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"}(Ce||(Ce={}));const Re=So.extend("--ft-typography-font-family","",Eo.titleFont),Ee=So.extend("--ft-typography-font-family","",Eo.contentFont),Ue={fontFamily:Ee,fontSize:So.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:So.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:So.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:So.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:So.create("--ft-typography-text-transform","","UNKNOWN","inherit")},$e=So.extend("--ft-typography-title-font-family","",Re),Ie=So.extend("--ft-typography-title-font-size","",Ue.fontSize,"20px"),ke=So.extend("--ft-typography-title-font-weight","",Ue.fontWeight,"normal"),We=So.extend("--ft-typography-title-letter-spacing","",Ue.letterSpacing,"0.15px"),Le=So.extend("--ft-typography-title-line-height","",Ue.lineHeight,"1.2"),Ke=So.extend("--ft-typography-title-text-transform","",Ue.textTransform,"inherit"),Ze=So.extend("--ft-typography-title-dense-font-family","",Re),ze=So.extend("--ft-typography-title-dense-font-size","",Ue.fontSize,"14px"),Fe=So.extend("--ft-typography-title-dense-font-weight","",Ue.fontWeight,"normal"),Me=So.extend("--ft-typography-title-dense-letter-spacing","",Ue.letterSpacing,"0.105px"),De=So.extend("--ft-typography-title-dense-line-height","",Ue.lineHeight,"1.7"),Ae=So.extend("--ft-typography-title-dense-text-transform","",Ue.textTransform,"inherit"),Be=So.extend("--ft-typography-subtitle1-font-family","",Ee),Pe=So.extend("--ft-typography-subtitle1-font-size","",Ue.fontSize,"16px"),je=So.extend("--ft-typography-subtitle1-font-weight","",Ue.fontWeight,"600"),He=So.extend("--ft-typography-subtitle1-letter-spacing","",Ue.letterSpacing,"0.144px"),_e=So.extend("--ft-typography-subtitle1-line-height","",Ue.lineHeight,"1.5"),Te=So.extend("--ft-typography-subtitle1-text-transform","",Ue.textTransform,"inherit"),Ge=So.extend("--ft-typography-subtitle2-font-family","",Ee),Ye=So.extend("--ft-typography-subtitle2-font-size","",Ue.fontSize,"14px"),Ve=So.extend("--ft-typography-subtitle2-font-weight","",Ue.fontWeight,"normal"),Je=So.extend("--ft-typography-subtitle2-letter-spacing","",Ue.letterSpacing,"0.098px"),qe=So.extend("--ft-typography-subtitle2-line-height","",Ue.lineHeight,"1.7"),Xe=So.extend("--ft-typography-subtitle2-text-transform","",Ue.textTransform,"inherit"),Qe=So.extend("--ft-typography-body1-font-family","",Ee),ti=So.extend("--ft-typography-body1-font-size","",Ue.fontSize,"16px"),oi=So.extend("--ft-typography-body1-font-weight","",Ue.fontWeight,"normal"),ei=So.extend("--ft-typography-body1-letter-spacing","",Ue.letterSpacing,"0.496px"),ii=So.extend("--ft-typography-body1-line-height","",Ue.lineHeight,"1.5"),ri=So.extend("--ft-typography-body1-text-transform","",Ue.textTransform,"inherit"),ai=So.extend("--ft-typography-body2-font-family","",Ee),ni=So.extend("--ft-typography-body2-font-size","",Ue.fontSize,"14px"),si=So.extend("--ft-typography-body2-font-weight","",Ue.fontWeight,"normal"),li=So.extend("--ft-typography-body2-letter-spacing","",Ue.letterSpacing,"0.252px"),ci=So.extend("--ft-typography-body2-line-height","",Ue.lineHeight,"1.4"),pi=So.extend("--ft-typography-body2-text-transform","",Ue.textTransform,"inherit"),fi=So.extend("--ft-typography-caption-font-family","",Ee),hi=So.extend("--ft-typography-caption-font-size","",Ue.fontSize,"12px"),di=So.extend("--ft-typography-caption-font-weight","",Ue.fontWeight,"normal"),yi=So.extend("--ft-typography-caption-letter-spacing","",Ue.letterSpacing,"0.396px"),gi=So.extend("--ft-typography-caption-line-height","",Ue.lineHeight,"1.33"),ui=So.extend("--ft-typography-caption-text-transform","",Ue.textTransform,"inherit"),bi=So.extend("--ft-typography-breadcrumb-font-family","",Ee),mi=So.extend("--ft-typography-breadcrumb-font-size","",Ue.fontSize,"10px"),xi=So.extend("--ft-typography-breadcrumb-font-weight","",Ue.fontWeight,"normal"),Oi=So.extend("--ft-typography-breadcrumb-letter-spacing","",Ue.letterSpacing,"0.33px"),vi=So.extend("--ft-typography-breadcrumb-line-height","",Ue.lineHeight,"1.6"),Ni=So.extend("--ft-typography-breadcrumb-text-transform","",Ue.textTransform,"inherit"),Si=So.extend("--ft-typography-overline-font-family","",Ee),wi=So.extend("--ft-typography-overline-font-size","",Ue.fontSize,"10px"),Ci=So.extend("--ft-typography-overline-font-weight","",Ue.fontWeight,"normal"),Ri=So.extend("--ft-typography-overline-letter-spacing","",Ue.letterSpacing,"1.5px"),Ei=So.extend("--ft-typography-overline-line-height","",Ue.lineHeight,"1.6"),Ui=So.extend("--ft-typography-overline-text-transform","",Ue.textTransform,"uppercase"),$i=So.extend("--ft-typography-button-font-family","",Ee),Ii=So.extend("--ft-typography-button-font-size","",Ue.fontSize,"14px"),ki=So.extend("--ft-typography-button-font-weight","",Ue.fontWeight,"600"),Wi=So.extend("--ft-typography-button-letter-spacing","",Ue.letterSpacing,"1.246px"),Li=So.extend("--ft-typography-button-line-height","",Ue.lineHeight,"1.15"),Ki=So.extend("--ft-typography-button-text-transform","",Ue.textTransform,"uppercase"),Zi=vt`
|
|
270
274
|
.ft-typography--title {
|
|
271
|
-
font-family: ${
|
|
272
|
-
font-size: ${
|
|
273
|
-
font-weight: ${
|
|
274
|
-
letter-spacing: ${
|
|
275
|
-
line-height: ${
|
|
276
|
-
text-transform: ${
|
|
277
|
-
}
|
|
278
|
-
`,Zi=vt`
|
|
279
|
-
.ft-typography--title-dense {
|
|
280
|
-
font-family: ${Ke};
|
|
281
|
-
font-size: ${Ze};
|
|
282
|
-
font-weight: ${ze};
|
|
283
|
-
letter-spacing: ${Fe};
|
|
284
|
-
line-height: ${Me};
|
|
285
|
-
text-transform: ${De};
|
|
275
|
+
font-family: ${$e};
|
|
276
|
+
font-size: ${Ie};
|
|
277
|
+
font-weight: ${ke};
|
|
278
|
+
letter-spacing: ${We};
|
|
279
|
+
line-height: ${Le};
|
|
280
|
+
text-transform: ${Ke};
|
|
286
281
|
}
|
|
287
282
|
`,zi=vt`
|
|
288
|
-
.ft-typography--
|
|
289
|
-
font-family: ${
|
|
290
|
-
font-size: ${
|
|
291
|
-
font-weight: ${
|
|
292
|
-
letter-spacing: ${
|
|
293
|
-
line-height: ${
|
|
294
|
-
text-transform: ${
|
|
283
|
+
.ft-typography--title-dense {
|
|
284
|
+
font-family: ${Ze};
|
|
285
|
+
font-size: ${ze};
|
|
286
|
+
font-weight: ${Fe};
|
|
287
|
+
letter-spacing: ${Me};
|
|
288
|
+
line-height: ${De};
|
|
289
|
+
text-transform: ${Ae};
|
|
295
290
|
}
|
|
296
291
|
`,Fi=vt`
|
|
297
|
-
.ft-typography--
|
|
298
|
-
font-family: ${
|
|
299
|
-
font-size: ${
|
|
300
|
-
font-weight: ${
|
|
301
|
-
letter-spacing: ${
|
|
302
|
-
line-height: ${
|
|
303
|
-
text-transform: ${
|
|
292
|
+
.ft-typography--subtitle1 {
|
|
293
|
+
font-family: ${Be};
|
|
294
|
+
font-size: ${Pe};
|
|
295
|
+
font-weight: ${je};
|
|
296
|
+
letter-spacing: ${He};
|
|
297
|
+
line-height: ${_e};
|
|
298
|
+
text-transform: ${Te};
|
|
304
299
|
}
|
|
305
|
-
|
|
306
300
|
`,Mi=vt`
|
|
307
|
-
.ft-typography--
|
|
308
|
-
font-family: ${
|
|
309
|
-
font-size: ${
|
|
310
|
-
font-weight: ${
|
|
311
|
-
letter-spacing: ${
|
|
312
|
-
line-height: ${
|
|
313
|
-
text-transform: ${
|
|
301
|
+
.ft-typography--subtitle2 {
|
|
302
|
+
font-family: ${Ge};
|
|
303
|
+
font-size: ${Ye};
|
|
304
|
+
font-weight: ${Ve};
|
|
305
|
+
letter-spacing: ${Je};
|
|
306
|
+
line-height: ${qe};
|
|
307
|
+
text-transform: ${Xe};
|
|
314
308
|
}
|
|
309
|
+
|
|
315
310
|
`,Di=vt`
|
|
316
|
-
.ft-typography--
|
|
317
|
-
font-family: ${
|
|
318
|
-
font-size: ${
|
|
319
|
-
font-weight: ${
|
|
320
|
-
letter-spacing: ${
|
|
321
|
-
line-height: ${
|
|
322
|
-
text-transform: ${
|
|
311
|
+
.ft-typography--body1 {
|
|
312
|
+
font-family: ${Qe};
|
|
313
|
+
font-size: ${ti};
|
|
314
|
+
font-weight: ${oi};
|
|
315
|
+
letter-spacing: ${ei};
|
|
316
|
+
line-height: ${ii};
|
|
317
|
+
text-transform: ${ri};
|
|
323
318
|
}
|
|
324
319
|
`,Ai=vt`
|
|
325
|
-
.ft-typography--
|
|
326
|
-
font-family: ${
|
|
327
|
-
font-size: ${
|
|
328
|
-
font-weight: ${
|
|
329
|
-
letter-spacing: ${
|
|
330
|
-
line-height: ${
|
|
331
|
-
text-transform: ${
|
|
320
|
+
.ft-typography--body2 {
|
|
321
|
+
font-family: ${ai};
|
|
322
|
+
font-size: ${ni};
|
|
323
|
+
font-weight: ${si};
|
|
324
|
+
letter-spacing: ${li};
|
|
325
|
+
line-height: ${ci};
|
|
326
|
+
text-transform: ${pi};
|
|
332
327
|
}
|
|
333
328
|
`,Bi=vt`
|
|
334
|
-
.ft-typography--
|
|
335
|
-
font-family: ${
|
|
336
|
-
font-size: ${
|
|
337
|
-
font-weight: ${
|
|
338
|
-
letter-spacing: ${
|
|
339
|
-
line-height: ${
|
|
340
|
-
text-transform: ${
|
|
329
|
+
.ft-typography--caption {
|
|
330
|
+
font-family: ${fi};
|
|
331
|
+
font-size: ${hi};
|
|
332
|
+
font-weight: ${di};
|
|
333
|
+
letter-spacing: ${yi};
|
|
334
|
+
line-height: ${gi};
|
|
335
|
+
text-transform: ${ui};
|
|
341
336
|
}
|
|
342
337
|
`,Pi=vt`
|
|
343
|
-
.ft-typography--
|
|
344
|
-
font-family: ${
|
|
345
|
-
font-size: ${
|
|
346
|
-
font-weight: ${
|
|
347
|
-
letter-spacing: ${
|
|
348
|
-
line-height: ${
|
|
349
|
-
text-transform: ${
|
|
338
|
+
.ft-typography--breadcrumb {
|
|
339
|
+
font-family: ${bi};
|
|
340
|
+
font-size: ${mi};
|
|
341
|
+
font-weight: ${xi};
|
|
342
|
+
letter-spacing: ${Oi};
|
|
343
|
+
line-height: ${vi};
|
|
344
|
+
text-transform: ${Ni};
|
|
350
345
|
}
|
|
351
346
|
`,ji=vt`
|
|
352
|
-
.ft-typography--
|
|
353
|
-
font-family: ${
|
|
354
|
-
font-size: ${
|
|
355
|
-
font-weight: ${
|
|
356
|
-
letter-spacing: ${
|
|
357
|
-
line-height: ${
|
|
358
|
-
text-transform: ${
|
|
347
|
+
.ft-typography--overline {
|
|
348
|
+
font-family: ${Si};
|
|
349
|
+
font-size: ${wi};
|
|
350
|
+
font-weight: ${Ci};
|
|
351
|
+
letter-spacing: ${Ri};
|
|
352
|
+
line-height: ${Ei};
|
|
353
|
+
text-transform: ${Ui};
|
|
359
354
|
}
|
|
360
355
|
`,Hi=vt`
|
|
356
|
+
.ft-typography--button {
|
|
357
|
+
font-family: ${$i};
|
|
358
|
+
font-size: ${Ii};
|
|
359
|
+
font-weight: ${ki};
|
|
360
|
+
letter-spacing: ${Wi};
|
|
361
|
+
line-height: ${Li};
|
|
362
|
+
text-transform: ${Ki};
|
|
363
|
+
}
|
|
364
|
+
`,_i=vt`
|
|
361
365
|
.ft-typography {
|
|
362
366
|
vertical-align: inherit;
|
|
363
367
|
}
|
|
364
|
-
`,
|
|
368
|
+
`,Ti=[Object.keys(Co).map((t=>function(t){const o=Co[t];return vt`
|
|
365
369
|
.ft-typography--${Ot(t)} {
|
|
366
370
|
font-family: ${o.fontFamily};
|
|
367
371
|
font-size: ${o.fontSize};
|
|
@@ -370,20 +374,20 @@ const xe=Symbol.for(""),Oe=t=>{if(t?.r===xe)return t?._$litStatic$},ve=t=>({_$li
|
|
|
370
374
|
line-height: ${o.lineHeight};
|
|
371
375
|
text-transform: ${o.textCase};
|
|
372
376
|
}
|
|
373
|
-
`}(t)))];var
|
|
374
|
-
<${
|
|
377
|
+
`}(t)))];var Gi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Yi extends Mo{constructor(){super(...arguments),this.variant=Ce.body1}render(){return this.element?we`
|
|
378
|
+
<${Ne(this.element)}
|
|
375
379
|
class="ft-typography ft-typography--${this.variant}">
|
|
376
380
|
<slot></slot>
|
|
377
|
-
</${
|
|
378
|
-
`:
|
|
381
|
+
</${Ne(this.element)}>
|
|
382
|
+
`:we`
|
|
379
383
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
380
|
-
`}}
|
|
384
|
+
`}}Yi.styles=[Zi,zi,Fi,Mi,Di,Ai,Bi,Pi,ji,Hi,_i,...Ti],Gi([w()],Yi.prototype,"element",void 0),Gi([w()],Yi.prototype,"variant",void 0),I("ft-typography")(Yi);
|
|
381
385
|
/**
|
|
382
386
|
* @license
|
|
383
387
|
* Copyright 2017 Google LLC
|
|
384
388
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
385
389
|
*/
|
|
386
|
-
class
|
|
390
|
+
class Vi extends Go{constructor(t){if(super(t),this.et=Q,t.type!==_o)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this.vt=void 0,this.et=t;if(t===X)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:[]}}}Vi.directiveName="unsafeHTML",Vi.resultType=1;const Ji=To(Vi);var qi,Xi;!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=""}(qi||(qi={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Xi||(Xi={})),new Map([...["abw"].map((t=>[t,Xi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Xi.AUDIO])),...["avi"].map((t=>[t,Xi.AVI])),...["chm","xhs"].map((t=>[t,Xi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Xi.CODE])),...["csv"].map((t=>[t,Xi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Xi.DITA])),...["epub"].map((t=>[t,Xi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Xi.EXCEL])),...["flac"].map((t=>[t,Xi.FLAC])),...["gif"].map((t=>[t,Xi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Xi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Xi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Xi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Xi.JPEG])),...["json"].map((t=>[t,Xi.JSON])),...["m4a","m4p"].map((t=>[t,Xi.M4A])),...["mov","qt"].map((t=>[t,Xi.MOV])),...["mp3"].map((t=>[t,Xi.MP3])),...["mp4","m4v"].map((t=>[t,Xi.MP4])),...["ogg","oga"].map((t=>[t,Xi.OGG])),...["pdf","ps"].map((t=>[t,Xi.PDF])),...["png"].map((t=>[t,Xi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Xi.POWERPOINT])),...["rar"].map((t=>[t,Xi.RAR])),...["stp"].map((t=>[t,Xi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Xi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Xi.VIDEO])),...["wav"].map((t=>[t,Xi.WAV])),...["wma"].map((t=>[t,Xi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Xi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Xi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Xi.YAML])),...["zip"].map((t=>[t,Xi.ZIP]))]);const Qi=So.create("--ft-icon-font-size","","SIZE","24px"),tr=So.extend("--ft-icon-fluid-topics-font-family","",So.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),or=So.extend("--ft-icon-file-format-font-family","",So.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),er=So.extend("--ft-icon-material-font-family","",So.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),ir=So.create("--ft-icon-vertical-align","","UNKNOWN","unset"),rr=vt`
|
|
387
391
|
:host, i.ft-icon {
|
|
388
392
|
display: inline-flex;
|
|
389
393
|
align-items: center;
|
|
@@ -392,14 +396,14 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
|
|
|
392
396
|
}
|
|
393
397
|
|
|
394
398
|
:host {
|
|
395
|
-
width: ${
|
|
396
|
-
height: ${
|
|
399
|
+
width: ${Qi};
|
|
400
|
+
height: ${Qi};
|
|
397
401
|
}
|
|
398
402
|
|
|
399
403
|
i.ft-icon {
|
|
400
404
|
width: 100%;
|
|
401
405
|
height: 100%;
|
|
402
|
-
font-size: ${
|
|
406
|
+
font-size: ${Qi};
|
|
403
407
|
line-height: 1;
|
|
404
408
|
font-weight: normal;
|
|
405
409
|
text-transform: none;
|
|
@@ -410,37 +414,37 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
|
|
|
410
414
|
text-rendering: auto;
|
|
411
415
|
-webkit-font-smoothing: antialiased;
|
|
412
416
|
-moz-osx-font-smoothing: grayscale;
|
|
413
|
-
vertical-align: ${
|
|
417
|
+
vertical-align: ${ir};
|
|
414
418
|
}
|
|
415
419
|
|
|
416
420
|
i.ft-icon.ft-icon--fluid-topics {
|
|
417
|
-
font-family: ${
|
|
421
|
+
font-family: ${tr}, ft-icons, fticons, sans-serif;
|
|
418
422
|
|
|
419
423
|
/* Ugly fix because font is broken */
|
|
420
|
-
font-size: calc(0.75 * ${
|
|
421
|
-
line-height: ${
|
|
424
|
+
font-size: calc(0.75 * ${Qi});
|
|
425
|
+
line-height: ${Qi};
|
|
422
426
|
position: relative;
|
|
423
427
|
top: -4%;
|
|
424
428
|
justify-content: center;
|
|
425
429
|
}
|
|
426
430
|
|
|
427
431
|
.ft-icon--file-format {
|
|
428
|
-
font-family: ${
|
|
432
|
+
font-family: ${or}, ft-mime, sans-serif;
|
|
429
433
|
}
|
|
430
434
|
|
|
431
435
|
.ft-icon--material {
|
|
432
|
-
font-family: ${
|
|
436
|
+
font-family: ${er}, "Material Icons", sans-serif;
|
|
433
437
|
}
|
|
434
|
-
`;var
|
|
438
|
+
`;var ar;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ar||(ar={}));var nr,sr=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class lr extends Mo{constructor(){super(...arguments),this.resolvedIcon=ao}render(){const t=this.variant&&Object.values(ar).includes(this.variant)?this.variant:ar.fluid_topics,o=t!==ar.material||!!this.value;return io`
|
|
435
439
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
436
|
-
${
|
|
440
|
+
${Ji(this.resolvedIcon)}
|
|
437
441
|
<slot ?hidden=${o}></slot>
|
|
438
442
|
</i>
|
|
439
|
-
`}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
|
|
443
|
+
`}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 ar.file_format:this.resolvedIcon=null!==(t=Xi[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case ar.material:this.resolvedIcon=this.value||ao;break;default:this.resolvedIcon=null!==(o=qi[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}lr.elementDefinitions={},lr.styles=rr,sr([w()],lr.prototype,"variant",void 0),sr([w()],lr.prototype,"value",void 0),sr([C()],lr.prototype,"resolvedIcon",void 0),sr([E("slot")],lr.prototype,"slottedContent",void 0),I("ft-icon")(lr),t.FtTabsAlignment=void 0,(nr=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",nr.right="right",nr.justify="justify";const cr={colorSurface:So.external(Eo.colorSurface,"Design system"),colorPrimary:So.external(Eo.colorPrimary,"Design system"),colorOnSurfaceMedium:So.external(Eo.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:So.external(Eo.colorOnSurfaceDisabled,"Design system")},pr=vt`
|
|
440
444
|
.ft-tabs {
|
|
441
445
|
display: flex;
|
|
442
446
|
flex-direction: column;
|
|
443
|
-
background-color: ${
|
|
447
|
+
background-color: ${cr.colorSurface};
|
|
444
448
|
height: 100%;
|
|
445
449
|
}
|
|
446
450
|
|
|
@@ -480,15 +484,15 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
|
|
|
480
484
|
outline: none;
|
|
481
485
|
font-size: 16px;
|
|
482
486
|
line-height: 1;
|
|
483
|
-
color: ${
|
|
487
|
+
color: ${cr.colorOnSurfaceMedium};
|
|
484
488
|
}
|
|
485
489
|
|
|
486
490
|
[role='tab'][aria-selected='true'] {
|
|
487
|
-
color: ${
|
|
491
|
+
color: ${cr.colorPrimary};
|
|
488
492
|
}
|
|
489
493
|
|
|
490
494
|
[role='tab'][disabled] {
|
|
491
|
-
color: ${
|
|
495
|
+
color: ${cr.colorOnSurfaceDisabled};
|
|
492
496
|
}
|
|
493
497
|
|
|
494
498
|
.ft-tabs--align-justify [role='tab'],
|
|
@@ -520,7 +524,7 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
|
|
|
520
524
|
position: absolute;
|
|
521
525
|
height: 3px;
|
|
522
526
|
border-radius: 2px;
|
|
523
|
-
background-color: ${
|
|
527
|
+
background-color: ${cr.colorPrimary};
|
|
524
528
|
transition: width 200ms ease, left 200ms ease, top 200ms ease;
|
|
525
529
|
}
|
|
526
530
|
|
|
@@ -529,7 +533,7 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
|
|
|
529
533
|
flex-grow: 1;
|
|
530
534
|
overflow: auto;
|
|
531
535
|
}
|
|
532
|
-
`,
|
|
536
|
+
`,fr=So.create("--ft-tooltip-distance","","SIZE","4px"),hr=So.create("--ft-tooltip-color","","COLOR","#FFFFFF"),dr=So.create("--ft-tooltip-background-color","","COLOR","#666666"),yr=So.create("--ft-tooltip-z-index","","NUMBER","100"),gr=So.external(Eo.borderRadiusS,"Design system"),ur=So.create("--ft-tooltip-max-width","","SIZE","150px"),br=vt`
|
|
533
537
|
.ft-tooltip--container {
|
|
534
538
|
display: block;
|
|
535
539
|
}
|
|
@@ -544,21 +548,21 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
|
|
|
544
548
|
box-sizing: border-box;
|
|
545
549
|
overflow: hidden;
|
|
546
550
|
width: max-content;
|
|
547
|
-
max-width: ${
|
|
551
|
+
max-width: ${ur};
|
|
548
552
|
text-align: center;
|
|
549
|
-
padding: ${
|
|
550
|
-
z-index: ${
|
|
553
|
+
padding: ${fr};
|
|
554
|
+
z-index: ${yr};
|
|
551
555
|
}
|
|
552
556
|
|
|
553
557
|
.ft-tooltip--content {
|
|
554
558
|
padding: 4px 8px;
|
|
555
|
-
border-radius: ${
|
|
556
|
-
background-color: ${
|
|
557
|
-
color: ${
|
|
559
|
+
border-radius: ${gr};
|
|
560
|
+
background-color: ${dr};
|
|
561
|
+
color: ${hr};
|
|
558
562
|
position: relative;
|
|
559
563
|
word-break: break-word;
|
|
560
564
|
}
|
|
561
|
-
`;var
|
|
565
|
+
`;var mr=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class xr extends Mo{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 U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return io`
|
|
562
566
|
<div part="container"
|
|
563
567
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
564
568
|
@mouseenter=${this.onHover}
|
|
@@ -576,11 +580,11 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
|
|
|
576
580
|
</div>
|
|
577
581
|
</div>
|
|
578
582
|
</div>
|
|
579
|
-
`}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 a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=a+"px",s.top=n+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=a+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=n+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${
|
|
580
|
-
<div class="${
|
|
583
|
+
`}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 a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=a+"px",s.top=n+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=a+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=n+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${ur})`}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))}}xr.elementDefinitions={"ft-typography":Yi},xr.styles=br,mr([w()],xr.prototype,"text",void 0),mr([w({type:Boolean})],xr.prototype,"manual",void 0),mr([w({type:Boolean})],xr.prototype,"inline",void 0),mr([w({type:Number})],xr.prototype,"delay",void 0),mr([w()],xr.prototype,"position",void 0),mr([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],xr.prototype,"slotNodes",void 0),mr([E(".ft-tooltip--container")],xr.prototype,"container",void 0),mr([E(".ft-tooltip")],xr.prototype,"tooltip",void 0),mr([E(".ft-tooltip--content")],xr.prototype,"tooltipContent",void 0),mr([C()],xr.prototype,"visible",void 0),I("ft-tooltip")(xr);var Or=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class vr extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class Nr extends Mo{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new U(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new $o)})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const o={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},e=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return io`
|
|
584
|
+
<div class="${ee(o)}" part="container">
|
|
581
585
|
<div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
|
|
582
|
-
${
|
|
583
|
-
<button class="${
|
|
586
|
+
${oe(this.ftTabs,((t,o)=>this.addTooltipIfNecessary(t,io`
|
|
587
|
+
<button class="${ee({"ft-tabs--tab-with-icon":!!t.icon,"ft-tabs--tab-with-label":!!t.label})}"
|
|
584
588
|
?disabled=${t.disabled}
|
|
585
589
|
@click=${()=>this.activeIndex=o}
|
|
586
590
|
role="tab"
|
|
@@ -602,7 +606,7 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
|
|
|
602
606
|
</ft-icon>
|
|
603
607
|
<ft-typography class="ft-tabs--tab-label"
|
|
604
608
|
part="tab-label${t.active?" active-tab-label":""}"
|
|
605
|
-
variant="${
|
|
609
|
+
variant="${Ce.body2}">
|
|
606
610
|
${t.label}
|
|
607
611
|
</ft-typography>
|
|
608
612
|
</button>
|
|
@@ -616,11 +620,11 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
|
|
|
616
620
|
<slot @slotchange=${this.onContentChange}></slot>
|
|
617
621
|
</div>
|
|
618
622
|
</div>
|
|
619
|
-
`}onContentChange(t){const o=t.composedPath()[0];this.ftTabs=o.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.onTabUpdated),t.addEventListener("updated",this.onTabUpdated)})),this.updateTabs()}update(t){super.update(t),t.has("activeIndex")&&this.dispatchEvent(new Uo),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new
|
|
623
|
+
`}onContentChange(t){const o=t.composedPath()[0];this.ftTabs=o.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.onTabUpdated),t.addEventListener("updated",this.onTabUpdated)})),this.updateTabs()}update(t){super.update(t),t.has("activeIndex")&&this.dispatchEvent(new Uo),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new vr(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,o,e,i,r,a,n;if(this.activeTabIndicator){const s=null!==(o=null===(t=this.activeTab)||void 0===t?void 0:t.closest(".ft-tabs--tab-tooltip"))&&void 0!==o?o:this.activeTab;this.activeTabIndicator.style.width=(null!==(e=null==s?void 0:s.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(i=null==s?void 0:s.offsetLeft)&&void 0!==i?i:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(r=null==s?void 0:s.offsetTop)&&void 0!==r?r:0)+"px":this.activeTabIndicator.style.top=(null!==(a=null==s?void 0:s.offsetTop)&&void 0!==a?a:0)+(null!==(n=null==s?void 0:s.clientHeight)&&void 0!==n?n:0)-this.activeTabIndicator.clientHeight+"px"}}updateTabs(){this.ftTabs.forEach(((t,o)=>{t.active=o==this.activeIndex}))}addTooltipIfNecessary(t,o){return this.dense&&t.label&&t.icon?io`
|
|
620
624
|
<ft-tooltip class="ft-tabs--tab-tooltip"
|
|
621
625
|
part="tab-tooltip"
|
|
622
626
|
text="${t.label}"
|
|
623
627
|
position="${this.contentBefore?"top":"bottom"}">
|
|
624
628
|
${o}
|
|
625
629
|
</ft-tooltip>
|
|
626
|
-
`:o}}
|
|
630
|
+
`:o}}Nr.elementDefinitions={"ft-tab":jo,"ft-ripple":xe,"ft-tooltip":xr,"ft-typography":Yi,"ft-icon":lr},Nr.styles=pr,Or([w({type:Boolean})],Nr.prototype,"dense",void 0),Or([w({type:Boolean})],Nr.prototype,"contentBefore",void 0),Or([w()],Nr.prototype,"alignTabs",void 0),Or([C()],Nr.prototype,"ftTabs",void 0),Or([E("[role='tablist']")],Nr.prototype,"tabsContainer",void 0),Or([E("[aria-selected='true']")],Nr.prototype,"activeTab",void 0),Or([E(".ft-tabs--active-tab-indicator")],Nr.prototype,"activeTabIndicator",void 0),Or([w({type:Number,reflect:!0})],Nr.prototype,"activeIndex",void 0);I("ft-tab")(jo),I("ft-tabs")(Nr),t.FtTab=jo,t.FtTabCssVariables={},t.FtTabs=Nr,t.FtTabsCssVariables=cr,t.IndexChangeEvent=vr,t.styles=pr}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-tabs",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Generic tabs component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
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-tooltip": "1.1.
|
|
25
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.1.3",
|
|
23
|
+
"@fluid-topics/ft-ripple": "1.1.3",
|
|
24
|
+
"@fluid-topics/ft-tooltip": "1.1.3",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.1.3",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.1.3",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "0d44a470e710f185c37e42ee87be4481a3bdf793"
|
|
30
30
|
}
|