@fluid-topics/ft-button 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-button.min.js +191 -187
- package/package.json +8 -8
package/build/ft-button.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,r=window.customElements,i=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,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);h(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(a.set(i,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(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,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 r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.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),i.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 r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):n.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);r.call(this,n,i),e.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else n.call(this,i,r)})},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),i.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 r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.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 r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r 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 r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(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=i.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,r=window.customElements,i=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,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);h(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(a.set(i,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(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,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 r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.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),i.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 r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):n.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);r.call(this,n,i),e.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else n.call(this,i,r)})},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),i.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 r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.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 r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r 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 r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(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=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(Yr){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,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 r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!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
|
|
@@ -54,7 +54,7 @@ const S={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:O},w=(t=S,o,
|
|
|
54
54
|
* Copyright 2017 Google LLC
|
|
55
55
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
56
|
*/
|
|
57
|
-
const k=globalThis,W=k.trustedTypes,L=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,
|
|
57
|
+
const k=globalThis,W=k.trustedTypes,L=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,F="?"+z,Z=`<${F}>`,B=document,A=()=>B.createComment(""),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,P="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,T=/>/g,_=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,Y=/"/g,V=/^(?:script|style|textarea|title)$/i,J=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),q=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Q=new WeakMap,tt=B.createTreeWalker(B,129);function ot(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(o):o}let et=class t{constructor({strings:o,_$litType$:e},r){let i;this.parts=[];let n=0,a=0;const s=o.length-1,l=this.parts,[c,p]=((t,o)=>{const e=t.length-1,r=[];let i,n=2===o?"<svg>":"",a=H;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,p=0;for(;p<e.length&&(a.lastIndex=p,l=a.exec(e),null!==l);)p=a.lastIndex,a===H?"!--"===l[1]?a=j:void 0!==l[1]?a=T:void 0!==l[2]?(V.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=_):void 0!==l[3]&&(a=_):a===_?">"===l[0]?(a=i??H,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?_:'"'===l[3]?Y:G):a===Y||a===G?a=_:a===j||a===T?a=H:(a=_,i=void 0);const f=a===_&&t[o+1].startsWith("/>")?" ":"";n+=a===H?e+Z:c>=0?(r.push(s),e.slice(0,c)+K+e.slice(c)+z+f):e+z+(-2===c?o:f)}return[ot(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),r]})(o,e);if(this.el=t.createElement(c,r),tt.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=tt.nextNode())&&l.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(K)){const o=p[a++],e=i.getAttribute(t).split(z),r=/([.?@])?(.*)/.exec(o);l.push({type:1,index:n,name:r[2],strings:e,ctor:"."===r[1]?at:"?"===r[1]?st:"@"===r[1]?lt:nt}),i.removeAttribute(t)}else t.startsWith(z)&&(l.push({type:6,index:n}),i.removeAttribute(t));if(V.test(i.tagName)){const t=i.textContent.split(z),o=t.length-1;if(o>0){i.textContent=W?W.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],A()),tt.nextNode(),l.push({type:2,index:++n});i.append(t[o],A())}}}else if(8===i.nodeType)if(i.data===F)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(z,t+1));)l.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,o){const e=B.createElement("template");return e.innerHTML=t,e}};function rt(t,o,e=t,r){if(o===q)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const n=D(o)?void 0:o._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=rt(t,i._$AS(t,o.values),i,r)),o}let it=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=rt(this,t,o),D(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>M(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==X&&D(this._$AH)?this._$AA.nextSibling.data=t:this.$(B.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=et.createElement(ot(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??B).importNode(o,!0);tt.currentNode=r;let i=tt.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new it(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new ct(i,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(i=tt.nextNode(),n++)}return tt.currentNode=B,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=Q.get(t.strings);return void 0===o&&Q.set(t.strings,o=new et(t)),o}T(o){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const n of o)i===e.length?e.push(r=new t(this.k(A()),this.k(A()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},nt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=X,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=X}_$AI(t,o=this,e,r){const i=this.strings;let n=!1;if(void 0===i)t=rt(this,t,o,0),n=!D(t)||t!==this._$AH&&t!==q,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=rt(this,r[e+a],o,a),s===q&&(s=this._$AH[a]),n||=!D(s)||s!==this._$AH[a],s===X?t=X:t!==X&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},at=class extends nt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===X?void 0:t}},st=class extends nt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==X)}},lt=class extends nt{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=rt(this,t,o,0)??X)===q)return;const e=this._$AH,r=t===X&&e!==X||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==X&&(e===X||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ct=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){rt(this,t)}};const pt=k.litHtmlPolyfillSupport;pt?.(et,it),(k.litHtmlVersions??=[]).push("3.1.0");
|
|
58
58
|
/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2019 Google LLC
|
|
@@ -71,7 +71,7 @@ const ft=globalThis,ht=ft.ShadowRoot&&(void 0===ft.ShadyCSS||ft.ShadyCSS.nativeS
|
|
|
71
71
|
* Copyright 2017 Google LLC
|
|
72
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
73
|
*/
|
|
74
|
-
const Kt=globalThis,zt=Kt.trustedTypes,
|
|
74
|
+
const Kt=globalThis,zt=Kt.trustedTypes,Ft=zt?zt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Zt="$lit$",Bt=`lit$${(Math.random()+"").slice(9)}$`,At="?"+Bt,Dt=`<${At}>`,Mt=document,Pt=()=>Mt.createComment(""),Ht=t=>null===t||"object"!=typeof t&&"function"!=typeof t,jt=Array.isArray,Tt="[ \t\n\f\r]",_t=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gt=/-->/g,Yt=/>/g,Vt=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Jt=/'/g,qt=/"/g,Xt=/^(?:script|style|textarea|title)$/i,Qt=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),to=Symbol.for("lit-noChange"),oo=Symbol.for("lit-nothing"),eo=new WeakMap,ro=Mt.createTreeWalker(Mt,129);function io(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ft?Ft.createHTML(o):o}const no=(t,o)=>{const e=t.length-1,r=[];let i,n=2===o?"<svg>":"",a=_t;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,p=0;for(;p<e.length&&(a.lastIndex=p,l=a.exec(e),null!==l);)p=a.lastIndex,a===_t?"!--"===l[1]?a=Gt:void 0!==l[1]?a=Yt:void 0!==l[2]?(Xt.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=Vt):void 0!==l[3]&&(a=Vt):a===Vt?">"===l[0]?(a=i??_t,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Vt:'"'===l[3]?qt:Jt):a===qt||a===Jt?a=Vt:a===Gt||a===Yt?a=_t:(a=Vt,i=void 0);const f=a===Vt&&t[o+1].startsWith("/>")?" ":"";n+=a===_t?e+Dt:c>=0?(r.push(s),e.slice(0,c)+Zt+e.slice(c)+Bt+f):e+Bt+(-2===c?o:f)}return[io(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),r]};class ao{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,n=0;const a=t.length-1,s=this.parts,[l,c]=no(t,o);if(this.el=ao.createElement(l,e),ro.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ro.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Zt)){const o=c[n++],e=r.getAttribute(t).split(Bt),a=/([.?@])?(.*)/.exec(o);s.push({type:1,index:i,name:a[2],strings:e,ctor:"."===a[1]?po:"?"===a[1]?fo:"@"===a[1]?ho:co}),r.removeAttribute(t)}else t.startsWith(Bt)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(Xt.test(r.tagName)){const t=r.textContent.split(Bt),o=t.length-1;if(o>0){r.textContent=zt?zt.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],Pt()),ro.nextNode(),s.push({type:2,index:++i});r.append(t[o],Pt())}}}else if(8===r.nodeType)if(r.data===At)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(Bt,t+1));)s.push({type:7,index:i}),t+=Bt.length-1}i++}}static createElement(t,o){const e=Mt.createElement("template");return e.innerHTML=t,e}}function so(t,o,e=t,r){if(o===to)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const n=Ht(o)?void 0:o._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=so(t,i._$AS(t,o.values),i,r)),o}class lo{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=oo,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=so(this,t,o),Ht(t)?t===oo||null==t||""===t?(this._$AH!==oo&&this._$AR(),this._$AH=oo):t!==this._$AH&&t!==to&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>jt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==oo&&Ht(this._$AH)?this._$AA.nextSibling.data=t:this.$(Mt.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=ao.createElement(io(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??Mt).importNode(o,!0);ro.currentNode=r;let i=ro.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new lo(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new yo(i,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(i=ro.nextNode(),n++)}return ro.currentNode=Mt,r}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=eo.get(t.strings);return void 0===o&&eo.set(t.strings,o=new ao(t)),o}T(t){jt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new lo(this.k(Pt()),this.k(Pt()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class co{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=oo,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=oo}_$AI(t,o=this,e,r){const i=this.strings;let n=!1;if(void 0===i)t=so(this,t,o,0),n=!Ht(t)||t!==this._$AH&&t!==to,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=so(this,r[e+a],o,a),s===to&&(s=this._$AH[a]),n||=!Ht(s)||s!==this._$AH[a],s===oo?t=oo:t!==oo&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===oo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class po extends co{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===oo?void 0:t}}class fo extends co{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==oo)}}class ho extends co{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=so(this,t,o,0)??oo)===to)return;const e=this._$AH,r=t===oo&&e!==oo||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==oo&&(e===oo||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class yo{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){so(this,t)}}const uo=Kt.litHtmlPolyfillSupport;uo?.(ao,lo),(Kt.litHtmlVersions??=[]).push("3.1.0");
|
|
75
75
|
/**
|
|
76
76
|
* @license
|
|
77
77
|
* Copyright 2017 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 Eo 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)=>{Ro?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=$o.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,Io=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const ko=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),Lo=Symbol("exportpartsDebouncer");class Ko extends Eo{constructor(){super(),this[Uo]=new o(5),this[Wo]=this.constructor.name,this[ko]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[ko])}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,r,i,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!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],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,Io([C()],Ko.prototype,"exportpartsPrefix",void 0),Io([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:{}})}([])],Ko.prototype,"exportpartsPrefixes",void 0),Io([C()],Ko.prototype,"customStylesheet",void 0);const zo=bt`
|
|
85
|
+
*/class Eo 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)=>{Ro?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=$o.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,Io=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const ko=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),Lo=Symbol("exportpartsDebouncer");class Ko extends Eo{constructor(){super(),this[Uo]=new o(5),this[Wo]=this.constructor.name,this[ko]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[ko])}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,r,i,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!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],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,Io([C()],Ko.prototype,"exportpartsPrefix",void 0),Io([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:{}})}([])],Ko.prototype,"exportpartsPrefixes",void 0),Io([C()],Ko.prototype,"customStylesheet",void 0);const zo=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");bt`
|
|
86
|
+
.highlight-html-match {
|
|
87
|
+
background: ${zo};
|
|
88
|
+
}
|
|
89
|
+
`;const Fo=bt`
|
|
86
90
|
.ft-no-text-select {
|
|
87
91
|
-webkit-touch-callout: none;
|
|
88
92
|
-webkit-user-select: none;
|
|
@@ -114,7 +118,7 @@ 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 Ao,Do,Mo;const Po=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mo=null===(Do=null===(Ao=window.safari)||void 0===Ao?void 0:Ao.pushNotification)||void 0===Do?void 0:Do.toString())&&void 0!==Mo?Mo:""),Ho=xo.extend("--ft-ripple-color","",Co.colorContent),jo={color:Ho,backgroundColor:xo.extend("--ft-ripple-background-color","",Ho),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")},To=xo.extend("--ft-ripple-color","",Co.colorPrimary),_o=To,Go=xo.extend("--ft-ripple-background-color","",To),Yo=xo.extend("--ft-ripple-color","",Co.colorSecondary),Vo=Yo,Jo=xo.extend("--ft-ripple-background-color","",Yo),qo=bt`
|
|
118
122
|
:host {
|
|
119
123
|
display: contents;
|
|
120
124
|
}
|
|
@@ -127,7 +131,7 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
127
131
|
|
|
128
132
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
129
133
|
overflow: hidden;
|
|
130
|
-
border-radius: ${
|
|
134
|
+
border-radius: ${jo.borderRadius};
|
|
131
135
|
}
|
|
132
136
|
|
|
133
137
|
.ft-ripple .ft-ripple--background,
|
|
@@ -161,27 +165,27 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
161
165
|
}
|
|
162
166
|
|
|
163
167
|
.ft-ripple .ft-ripple--background {
|
|
164
|
-
background-color: ${
|
|
168
|
+
background-color: ${jo.backgroundColor};
|
|
165
169
|
}
|
|
166
170
|
|
|
167
171
|
.ft-ripple .ft-ripple--effect {
|
|
168
|
-
background-color: ${
|
|
172
|
+
background-color: ${jo.color};
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
172
|
-
background-color: ${
|
|
176
|
+
background-color: ${Jo};
|
|
173
177
|
}
|
|
174
178
|
|
|
175
179
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
176
|
-
background-color: ${
|
|
180
|
+
background-color: ${Vo};
|
|
177
181
|
}
|
|
178
182
|
|
|
179
183
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
180
|
-
background-color: ${
|
|
184
|
+
background-color: ${Go};
|
|
181
185
|
}
|
|
182
186
|
|
|
183
187
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
184
|
-
background-color: ${
|
|
188
|
+
background-color: ${_o};
|
|
185
189
|
}
|
|
186
190
|
|
|
187
191
|
.ft-ripple .ft-ripple--background {
|
|
@@ -211,117 +215,117 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
211
215
|
}
|
|
212
216
|
|
|
213
217
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
214
|
-
opacity: ${
|
|
218
|
+
opacity: ${jo.opacityContentOnSurfaceHover};
|
|
215
219
|
}
|
|
216
220
|
|
|
217
221
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
218
|
-
opacity: ${
|
|
222
|
+
opacity: ${jo.opacityContentOnSurfaceSelected};
|
|
219
223
|
}
|
|
220
224
|
|
|
221
225
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
222
|
-
opacity: ${
|
|
226
|
+
opacity: ${jo.opacityContentOnSurfaceFocused};
|
|
223
227
|
}
|
|
224
228
|
|
|
225
229
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
226
|
-
opacity: ${
|
|
230
|
+
opacity: ${jo.opacityContentOnSurfacePressed};
|
|
227
231
|
transform: translate(-50%, -50%) scale(1);
|
|
228
232
|
}
|
|
229
|
-
`;const
|
|
233
|
+
`;const Xo=xo.extend("--ft-typography-font-family","",Co.titleFont),Qo=xo.extend("--ft-typography-font-family","",Co.contentFont),te={fontFamily:Qo,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")},oe=xo.extend("--ft-typography-title-font-family","",Xo),ee=xo.extend("--ft-typography-title-font-size","",te.fontSize,"20px"),re=xo.extend("--ft-typography-title-font-weight","",te.fontWeight,"normal"),ie=xo.extend("--ft-typography-title-letter-spacing","",te.letterSpacing,"0.15px"),ne=xo.extend("--ft-typography-title-line-height","",te.lineHeight,"1.2"),ae=xo.extend("--ft-typography-title-text-transform","",te.textTransform,"inherit"),se=xo.extend("--ft-typography-title-dense-font-family","",Xo),le=xo.extend("--ft-typography-title-dense-font-size","",te.fontSize,"14px"),ce=xo.extend("--ft-typography-title-dense-font-weight","",te.fontWeight,"normal"),pe=xo.extend("--ft-typography-title-dense-letter-spacing","",te.letterSpacing,"0.105px"),fe=xo.extend("--ft-typography-title-dense-line-height","",te.lineHeight,"1.7"),he=xo.extend("--ft-typography-title-dense-text-transform","",te.textTransform,"inherit"),de=xo.extend("--ft-typography-subtitle1-font-family","",Qo),ye=xo.extend("--ft-typography-subtitle1-font-size","",te.fontSize,"16px"),ue=xo.extend("--ft-typography-subtitle1-font-weight","",te.fontWeight,"600"),ge=xo.extend("--ft-typography-subtitle1-letter-spacing","",te.letterSpacing,"0.144px"),be=xo.extend("--ft-typography-subtitle1-line-height","",te.lineHeight,"1.5"),me=xo.extend("--ft-typography-subtitle1-text-transform","",te.textTransform,"inherit"),xe=xo.extend("--ft-typography-subtitle2-font-family","",Qo),Oe=xo.extend("--ft-typography-subtitle2-font-size","",te.fontSize,"14px"),ve=xo.extend("--ft-typography-subtitle2-font-weight","",te.fontWeight,"normal"),Ne=xo.extend("--ft-typography-subtitle2-letter-spacing","",te.letterSpacing,"0.098px"),Se=xo.extend("--ft-typography-subtitle2-line-height","",te.lineHeight,"1.7"),we=xo.extend("--ft-typography-subtitle2-text-transform","",te.textTransform,"inherit"),Ce=xo.extend("--ft-typography-body1-font-family","",Qo),$e=xo.extend("--ft-typography-body1-font-size","",te.fontSize,"16px"),Re=xo.extend("--ft-typography-body1-font-weight","",te.fontWeight,"normal"),Ee=xo.extend("--ft-typography-body1-letter-spacing","",te.letterSpacing,"0.496px"),Ue=xo.extend("--ft-typography-body1-line-height","",te.lineHeight,"1.5"),Ie=xo.extend("--ft-typography-body1-text-transform","",te.textTransform,"inherit"),ke=xo.extend("--ft-typography-body2-font-family","",Qo),We=xo.extend("--ft-typography-body2-font-size","",te.fontSize,"14px"),Le=xo.extend("--ft-typography-body2-font-weight","",te.fontWeight,"normal"),Ke=xo.extend("--ft-typography-body2-letter-spacing","",te.letterSpacing,"0.252px"),ze=xo.extend("--ft-typography-body2-line-height","",te.lineHeight,"1.4"),Fe=xo.extend("--ft-typography-body2-text-transform","",te.textTransform,"inherit"),Ze=xo.extend("--ft-typography-caption-font-family","",Qo),Be=xo.extend("--ft-typography-caption-font-size","",te.fontSize,"12px"),Ae=xo.extend("--ft-typography-caption-font-weight","",te.fontWeight,"normal"),De=xo.extend("--ft-typography-caption-letter-spacing","",te.letterSpacing,"0.396px"),Me=xo.extend("--ft-typography-caption-line-height","",te.lineHeight,"1.33"),Pe=xo.extend("--ft-typography-caption-text-transform","",te.textTransform,"inherit"),He=xo.extend("--ft-typography-breadcrumb-font-family","",Qo),je=xo.extend("--ft-typography-breadcrumb-font-size","",te.fontSize,"10px"),Te=xo.extend("--ft-typography-breadcrumb-font-weight","",te.fontWeight,"normal"),_e=xo.extend("--ft-typography-breadcrumb-letter-spacing","",te.letterSpacing,"0.33px"),Ge=xo.extend("--ft-typography-breadcrumb-line-height","",te.lineHeight,"1.6"),Ye=xo.extend("--ft-typography-breadcrumb-text-transform","",te.textTransform,"inherit"),Ve=xo.extend("--ft-typography-overline-font-family","",Qo),Je=xo.extend("--ft-typography-overline-font-size","",te.fontSize,"10px"),qe=xo.extend("--ft-typography-overline-font-weight","",te.fontWeight,"normal"),Xe=xo.extend("--ft-typography-overline-letter-spacing","",te.letterSpacing,"1.5px"),Qe=xo.extend("--ft-typography-overline-line-height","",te.lineHeight,"1.6"),tr=xo.extend("--ft-typography-overline-text-transform","",te.textTransform,"uppercase"),or={fontFamily:xo.extend("--ft-typography-button-font-family","",Qo),fontSize:xo.extend("--ft-typography-button-font-size","",te.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",te.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",te.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",te.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",te.textTransform,"uppercase")},er=bt`
|
|
230
234
|
.ft-typography--title {
|
|
231
|
-
font-family: ${
|
|
232
|
-
font-size: ${
|
|
233
|
-
font-weight: ${
|
|
234
|
-
letter-spacing: ${
|
|
235
|
-
line-height: ${
|
|
236
|
-
text-transform: ${
|
|
237
|
-
}
|
|
238
|
-
`,er=bt`
|
|
239
|
-
.ft-typography--title-dense {
|
|
240
|
-
font-family: ${ae};
|
|
241
|
-
font-size: ${se};
|
|
242
|
-
font-weight: ${le};
|
|
243
|
-
letter-spacing: ${ce};
|
|
244
|
-
line-height: ${pe};
|
|
245
|
-
text-transform: ${fe};
|
|
235
|
+
font-family: ${oe};
|
|
236
|
+
font-size: ${ee};
|
|
237
|
+
font-weight: ${re};
|
|
238
|
+
letter-spacing: ${ie};
|
|
239
|
+
line-height: ${ne};
|
|
240
|
+
text-transform: ${ae};
|
|
246
241
|
}
|
|
247
242
|
`,rr=bt`
|
|
248
|
-
.ft-typography--
|
|
249
|
-
font-family: ${
|
|
250
|
-
font-size: ${
|
|
251
|
-
font-weight: ${
|
|
252
|
-
letter-spacing: ${
|
|
253
|
-
line-height: ${
|
|
254
|
-
text-transform: ${
|
|
243
|
+
.ft-typography--title-dense {
|
|
244
|
+
font-family: ${se};
|
|
245
|
+
font-size: ${le};
|
|
246
|
+
font-weight: ${ce};
|
|
247
|
+
letter-spacing: ${pe};
|
|
248
|
+
line-height: ${fe};
|
|
249
|
+
text-transform: ${he};
|
|
255
250
|
}
|
|
256
251
|
`,ir=bt`
|
|
252
|
+
.ft-typography--subtitle1 {
|
|
253
|
+
font-family: ${de};
|
|
254
|
+
font-size: ${ye};
|
|
255
|
+
font-weight: ${ue};
|
|
256
|
+
letter-spacing: ${ge};
|
|
257
|
+
line-height: ${be};
|
|
258
|
+
text-transform: ${me};
|
|
259
|
+
}
|
|
260
|
+
`,nr=bt`
|
|
257
261
|
.ft-typography--subtitle2 {
|
|
258
|
-
font-family: ${
|
|
259
|
-
font-size: ${
|
|
260
|
-
font-weight: ${
|
|
261
|
-
letter-spacing: ${
|
|
262
|
-
line-height: ${
|
|
263
|
-
text-transform: ${
|
|
262
|
+
font-family: ${xe};
|
|
263
|
+
font-size: ${Oe};
|
|
264
|
+
font-weight: ${ve};
|
|
265
|
+
letter-spacing: ${Ne};
|
|
266
|
+
line-height: ${Se};
|
|
267
|
+
text-transform: ${we};
|
|
264
268
|
}
|
|
265
269
|
|
|
266
|
-
`,
|
|
270
|
+
`,ar=bt`
|
|
267
271
|
.ft-typography--body1 {
|
|
268
|
-
font-family: ${
|
|
269
|
-
font-size: ${
|
|
270
|
-
font-weight: ${
|
|
271
|
-
letter-spacing: ${
|
|
272
|
-
line-height: ${
|
|
273
|
-
text-transform: ${
|
|
272
|
+
font-family: ${Ce};
|
|
273
|
+
font-size: ${$e};
|
|
274
|
+
font-weight: ${Re};
|
|
275
|
+
letter-spacing: ${Ee};
|
|
276
|
+
line-height: ${Ue};
|
|
277
|
+
text-transform: ${Ie};
|
|
274
278
|
}
|
|
275
|
-
`,
|
|
279
|
+
`,sr=bt`
|
|
276
280
|
.ft-typography--body2 {
|
|
277
|
-
font-family: ${
|
|
278
|
-
font-size: ${
|
|
279
|
-
font-weight: ${
|
|
280
|
-
letter-spacing: ${
|
|
281
|
-
line-height: ${
|
|
282
|
-
text-transform: ${
|
|
281
|
+
font-family: ${ke};
|
|
282
|
+
font-size: ${We};
|
|
283
|
+
font-weight: ${Le};
|
|
284
|
+
letter-spacing: ${Ke};
|
|
285
|
+
line-height: ${ze};
|
|
286
|
+
text-transform: ${Fe};
|
|
283
287
|
}
|
|
284
|
-
`,
|
|
288
|
+
`,lr=bt`
|
|
285
289
|
.ft-typography--caption {
|
|
286
290
|
font-family: ${Ze};
|
|
287
|
-
font-size: ${
|
|
288
|
-
font-weight: ${
|
|
289
|
-
letter-spacing: ${
|
|
290
|
-
line-height: ${
|
|
291
|
-
text-transform: ${
|
|
292
|
-
}
|
|
293
|
-
`,lr=bt`
|
|
294
|
-
.ft-typography--breadcrumb {
|
|
295
|
-
font-family: ${Pe};
|
|
296
|
-
font-size: ${He};
|
|
297
|
-
font-weight: ${je};
|
|
298
|
-
letter-spacing: ${Te};
|
|
299
|
-
line-height: ${_e};
|
|
300
|
-
text-transform: ${Ge};
|
|
291
|
+
font-size: ${Be};
|
|
292
|
+
font-weight: ${Ae};
|
|
293
|
+
letter-spacing: ${De};
|
|
294
|
+
line-height: ${Me};
|
|
295
|
+
text-transform: ${Pe};
|
|
301
296
|
}
|
|
302
297
|
`,cr=bt`
|
|
303
|
-
.ft-typography--
|
|
304
|
-
font-family: ${
|
|
305
|
-
font-size: ${
|
|
306
|
-
font-weight: ${
|
|
307
|
-
letter-spacing: ${
|
|
308
|
-
line-height: ${
|
|
309
|
-
text-transform: ${
|
|
298
|
+
.ft-typography--breadcrumb {
|
|
299
|
+
font-family: ${He};
|
|
300
|
+
font-size: ${je};
|
|
301
|
+
font-weight: ${Te};
|
|
302
|
+
letter-spacing: ${_e};
|
|
303
|
+
line-height: ${Ge};
|
|
304
|
+
text-transform: ${Ye};
|
|
310
305
|
}
|
|
311
306
|
`,pr=bt`
|
|
312
|
-
.ft-typography--
|
|
313
|
-
font-family: ${
|
|
314
|
-
font-size: ${
|
|
315
|
-
font-weight: ${
|
|
316
|
-
letter-spacing: ${
|
|
317
|
-
line-height: ${
|
|
318
|
-
text-transform: ${tr
|
|
307
|
+
.ft-typography--overline {
|
|
308
|
+
font-family: ${Ve};
|
|
309
|
+
font-size: ${Je};
|
|
310
|
+
font-weight: ${qe};
|
|
311
|
+
letter-spacing: ${Xe};
|
|
312
|
+
line-height: ${Qe};
|
|
313
|
+
text-transform: ${tr};
|
|
319
314
|
}
|
|
320
315
|
`,fr=bt`
|
|
316
|
+
.ft-typography--button {
|
|
317
|
+
font-family: ${or.fontFamily};
|
|
318
|
+
font-size: ${or.fontSize};
|
|
319
|
+
font-weight: ${or.fontWeight};
|
|
320
|
+
letter-spacing: ${or.letterSpacing};
|
|
321
|
+
line-height: ${or.lineHeight};
|
|
322
|
+
text-transform: ${or.textTransform};
|
|
323
|
+
}
|
|
324
|
+
`,hr=bt`
|
|
321
325
|
.ft-typography {
|
|
322
326
|
vertical-align: inherit;
|
|
323
327
|
}
|
|
324
|
-
`,
|
|
328
|
+
`,dr=[Object.keys(No).map((t=>function(t){const o=No[t];return bt`
|
|
325
329
|
.ft-typography--${gt(t)} {
|
|
326
330
|
font-family: ${o.fontFamily};
|
|
327
331
|
font-size: ${o.fontSize};
|
|
@@ -330,7 +334,7 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
330
334
|
line-height: ${o.lineHeight};
|
|
331
335
|
text-transform: ${o.textCase};
|
|
332
336
|
}
|
|
333
|
-
`}(t)))],
|
|
337
|
+
`}(t)))],yr={color:xo.extend("--ft-loader-color","",Co.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},ur=bt`
|
|
334
338
|
:host {
|
|
335
339
|
line-height: 0;
|
|
336
340
|
}
|
|
@@ -339,8 +343,8 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
339
343
|
display: inline-block;
|
|
340
344
|
position: relative;
|
|
341
345
|
|
|
342
|
-
width: ${
|
|
343
|
-
height: ${
|
|
346
|
+
width: ${yr.size};
|
|
347
|
+
height: ${yr.size};
|
|
344
348
|
}
|
|
345
349
|
|
|
346
350
|
.ft-loader div {
|
|
@@ -349,7 +353,7 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
349
353
|
width: 25%;
|
|
350
354
|
height: 25%;
|
|
351
355
|
border-radius: 50%;
|
|
352
|
-
background: ${
|
|
356
|
+
background: ${yr.color};
|
|
353
357
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
354
358
|
}
|
|
355
359
|
|
|
@@ -396,10 +400,10 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
396
400
|
transform: translate(0, 0);
|
|
397
401
|
}
|
|
398
402
|
100% {
|
|
399
|
-
transform: translate(calc(0.35 * ${
|
|
403
|
+
transform: translate(calc(0.35 * ${yr.size}), 0);
|
|
400
404
|
}
|
|
401
405
|
}
|
|
402
|
-
`,
|
|
406
|
+
`,gr={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")},br=bt`
|
|
403
407
|
:host, i.ft-icon {
|
|
404
408
|
display: inline-flex;
|
|
405
409
|
align-items: center;
|
|
@@ -408,14 +412,14 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
408
412
|
}
|
|
409
413
|
|
|
410
414
|
:host {
|
|
411
|
-
width: ${
|
|
412
|
-
height: ${
|
|
415
|
+
width: ${gr.size};
|
|
416
|
+
height: ${gr.size};
|
|
413
417
|
}
|
|
414
418
|
|
|
415
419
|
i.ft-icon {
|
|
416
420
|
width: 100%;
|
|
417
421
|
height: 100%;
|
|
418
|
-
font-size: ${
|
|
422
|
+
font-size: ${gr.size};
|
|
419
423
|
line-height: 1;
|
|
420
424
|
font-weight: normal;
|
|
421
425
|
text-transform: none;
|
|
@@ -426,28 +430,28 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
426
430
|
text-rendering: auto;
|
|
427
431
|
-webkit-font-smoothing: antialiased;
|
|
428
432
|
-moz-osx-font-smoothing: grayscale;
|
|
429
|
-
vertical-align: ${
|
|
433
|
+
vertical-align: ${gr.verticalAlign};
|
|
430
434
|
}
|
|
431
435
|
|
|
432
436
|
i.ft-icon.ft-icon--fluid-topics {
|
|
433
|
-
font-family: ${
|
|
437
|
+
font-family: ${gr.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
434
438
|
|
|
435
439
|
/* Ugly fix because font is broken */
|
|
436
|
-
font-size: calc(0.75 * ${
|
|
437
|
-
line-height: ${
|
|
440
|
+
font-size: calc(0.75 * ${gr.size});
|
|
441
|
+
line-height: ${gr.size};
|
|
438
442
|
position: relative;
|
|
439
443
|
top: -4%;
|
|
440
444
|
justify-content: center;
|
|
441
445
|
}
|
|
442
446
|
|
|
443
447
|
.ft-icon--file-format {
|
|
444
|
-
font-family: ${
|
|
448
|
+
font-family: ${gr.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
445
449
|
}
|
|
446
450
|
|
|
447
451
|
.ft-icon--material {
|
|
448
|
-
font-family: ${
|
|
452
|
+
font-family: ${gr.materialFontFamily}, "Material Icons", sans-serif;
|
|
449
453
|
}
|
|
450
|
-
`,
|
|
454
|
+
`,mr=xo.extend("--ft-button-color","",Co.colorPrimary),xr={backgroundColor:xo.extend("--ft-button-background-color","",Co.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",Co.borderRadiusL),color:mr,fontSize:xo.extend("--ft-button-font-size","",or.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",mr),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")},Or=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",Co.colorOnPrimary)),vr={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",Co.colorPrimary)),color:Or,rippleColor:xo.extend("--ft-button-primary-ripple-color","",Or)},Nr={borderRadius:xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",Co.borderRadiusM)),verticalPadding:xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:xo.create("--ft-button-dense-icon-padding","","SIZE","4px")},Sr=[bt`
|
|
451
455
|
:host {
|
|
452
456
|
display: inline-block;
|
|
453
457
|
max-width: 100%;
|
|
@@ -458,7 +462,7 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
458
462
|
box-shadow: 0px 0px 0px transparent;
|
|
459
463
|
border: 0px solid transparent;
|
|
460
464
|
text-shadow: 0px 0px 0px transparent;
|
|
461
|
-
font-size: ${
|
|
465
|
+
font-size: ${xr.fontSize};
|
|
462
466
|
}
|
|
463
467
|
|
|
464
468
|
button:hover {
|
|
@@ -487,31 +491,31 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
487
491
|
border: none;
|
|
488
492
|
pointer-events: auto;
|
|
489
493
|
|
|
490
|
-
--ft-button-internal-line-height: max(calc(${
|
|
491
|
-
--ft-button-internal-color: ${
|
|
492
|
-
${Oo(
|
|
493
|
-
${Oo(
|
|
494
|
+
--ft-button-internal-line-height: max(calc(${xr.fontSize} + 2px), ${xr.iconSize});
|
|
495
|
+
--ft-button-internal-color: ${xr.color};
|
|
496
|
+
${Oo(gr.size,xr.iconSize)};
|
|
497
|
+
${Oo(jo.color,xr.rippleColor)};
|
|
494
498
|
|
|
495
|
-
border-radius: ${
|
|
496
|
-
padding: ${
|
|
497
|
-
background-color: ${
|
|
499
|
+
border-radius: ${xr.borderRadius};
|
|
500
|
+
padding: ${xr.verticalPadding} ${xr.horizontalPadding};
|
|
501
|
+
background-color: ${xr.backgroundColor};
|
|
498
502
|
color: var(--ft-button-internal-color);
|
|
499
503
|
-webkit-mask-image: radial-gradient(white, black);
|
|
500
504
|
}
|
|
501
505
|
|
|
502
506
|
.ft-button.ft-button--outlined {
|
|
503
507
|
border: 1px solid var(--ft-button-internal-color);
|
|
504
|
-
padding: calc(${
|
|
508
|
+
padding: calc(${xr.verticalPadding} - 1px) calc(${xr.horizontalPadding} - 1px);
|
|
505
509
|
}
|
|
506
510
|
|
|
507
511
|
.ft-button.ft-button--dense {
|
|
508
|
-
padding: ${
|
|
509
|
-
border-radius: ${
|
|
510
|
-
gap: ${
|
|
512
|
+
padding: ${Nr.verticalPadding} ${Nr.horizontalPadding};
|
|
513
|
+
border-radius: ${Nr.borderRadius};
|
|
514
|
+
gap: ${Nr.iconPadding};
|
|
511
515
|
}
|
|
512
516
|
|
|
513
517
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
514
|
-
padding: calc(${
|
|
518
|
+
padding: calc(${Nr.verticalPadding} - 1px) calc(${Nr.horizontalPadding} - 1px);
|
|
515
519
|
}
|
|
516
520
|
|
|
517
521
|
.ft-button:not([disabled]):hover {
|
|
@@ -519,22 +523,22 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
519
523
|
}
|
|
520
524
|
|
|
521
525
|
.ft-button--round {
|
|
522
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
526
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${xr.verticalPadding});
|
|
523
527
|
}
|
|
524
528
|
|
|
525
529
|
.ft-button--round.ft-button--dense {
|
|
526
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
530
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Nr.verticalPadding});
|
|
527
531
|
}
|
|
528
532
|
|
|
529
533
|
.ft-button[disabled] {
|
|
530
534
|
filter: grayscale(1);
|
|
531
|
-
opacity: ${
|
|
535
|
+
opacity: ${xr.opacityDisabled};
|
|
532
536
|
}
|
|
533
537
|
|
|
534
538
|
.ft-button.ft-button--primary {
|
|
535
|
-
background-color: ${
|
|
536
|
-
--ft-button-internal-color: ${
|
|
537
|
-
${Oo(
|
|
539
|
+
background-color: ${vr.backgroundColor};
|
|
540
|
+
--ft-button-internal-color: ${vr.color};
|
|
541
|
+
${Oo(jo.color,vr.rippleColor)};
|
|
538
542
|
}
|
|
539
543
|
|
|
540
544
|
.ft-button:focus {
|
|
@@ -547,13 +551,13 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
547
551
|
white-space: nowrap;
|
|
548
552
|
text-overflow: ellipsis;
|
|
549
553
|
display: block;
|
|
550
|
-
margin: 0 ${
|
|
551
|
-
${Oo(
|
|
552
|
-
${Oo(
|
|
554
|
+
margin: 0 ${xr.iconPadding};
|
|
555
|
+
${Oo(or.fontSize,"1em")};
|
|
556
|
+
${Oo(or.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
553
557
|
}
|
|
554
558
|
|
|
555
559
|
.ft-button--dense .ft-button--label {
|
|
556
|
-
margin: 0 ${
|
|
560
|
+
margin: 0 ${Nr.iconPadding};
|
|
557
561
|
}
|
|
558
562
|
|
|
559
563
|
.ft-button--label[hidden] {
|
|
@@ -566,13 +570,13 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
566
570
|
}
|
|
567
571
|
|
|
568
572
|
.ft-button--label[hidden] + ft-icon {
|
|
569
|
-
margin: 0 calc(${
|
|
570
|
-
padding: 0 ${
|
|
573
|
+
margin: 0 calc(${xr.horizontalPadding} * -1);
|
|
574
|
+
padding: 0 ${xr.verticalPadding};
|
|
571
575
|
}
|
|
572
576
|
|
|
573
577
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
574
|
-
margin: 0 calc(${
|
|
575
|
-
padding: 0 ${
|
|
578
|
+
margin: 0 calc(${Nr.horizontalPadding} * -1);
|
|
579
|
+
padding: 0 ${Nr.verticalPadding};
|
|
576
580
|
}
|
|
577
581
|
|
|
578
582
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -581,39 +585,39 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
581
585
|
}
|
|
582
586
|
|
|
583
587
|
ft-loader {
|
|
584
|
-
${Oo(
|
|
585
|
-
${Oo(
|
|
588
|
+
${Oo(yr.size,xr.iconSize)};
|
|
589
|
+
${Oo(yr.color,"var(--ft-button-internal-color)")};
|
|
586
590
|
}
|
|
587
|
-
`,
|
|
591
|
+
`,Fo],wr=1,Cr=2,$r=t=>(...o)=>({_$litDirective$:t,values:o});let Rr=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)}};
|
|
588
592
|
/**
|
|
589
593
|
* @license
|
|
590
594
|
* Copyright 2018 Google LLC
|
|
591
595
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
592
|
-
*/const
|
|
596
|
+
*/const Er=$r(class extends Rr{constructor(t){if(super(t),t.type!==wr||"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 r=!!o[t];r===this.it.has(t)||this.st?.has(t)||(r?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return q}});var Ur=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ir extends Ko{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:r,y:i}=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!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-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`
|
|
593
597
|
<style>
|
|
594
598
|
.ft-ripple .ft-ripple--effect {
|
|
595
599
|
left: ${this.originX}px;
|
|
596
600
|
top: ${this.originY}px;
|
|
597
601
|
}
|
|
598
602
|
</style>
|
|
599
|
-
<div class="${
|
|
603
|
+
<div class="${Er(t)}">
|
|
600
604
|
<div class="ft-ripple--background"></div>
|
|
601
605
|
<div class="ft-ripple--effect"></div>
|
|
602
606
|
</div>
|
|
603
|
-
`}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"),r=o("touchend","touchcancel"),i=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",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),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",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),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 r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}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()}}
|
|
607
|
+
`}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"),r=o("touchend","touchcancel"),i=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",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),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",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),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 r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}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()}}Ir.elementDefinitions={},Ir.styles=qo,Ur([C({type:Boolean})],Ir.prototype,"primary",void 0),Ur([C({type:Boolean})],Ir.prototype,"secondary",void 0),Ur([C({type:Boolean})],Ir.prototype,"unbounded",void 0),Ur([C({type:Boolean})],Ir.prototype,"activated",void 0),Ur([C({type:Boolean})],Ir.prototype,"selected",void 0),Ur([C({type:Boolean})],Ir.prototype,"disabled",void 0),Ur([$()],Ir.prototype,"hovered",void 0),Ur([$()],Ir.prototype,"focused",void 0),Ur([$()],Ir.prototype,"pressed",void 0),Ur([$()],Ir.prototype,"rippling",void 0),Ur([$()],Ir.prototype,"originX",void 0),Ur([$()],Ir.prototype,"originY",void 0),Ur([E(".ft-ripple")],Ir.prototype,"ripple",void 0),Ur([E(".ft-ripple--effect")],Ir.prototype,"rippleEffect",void 0),I("ft-ripple")(Ir);
|
|
604
608
|
/**
|
|
605
609
|
* @license
|
|
606
610
|
* Copyright 2020 Google LLC
|
|
607
611
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
608
612
|
*/
|
|
609
|
-
const
|
|
610
|
-
<${
|
|
613
|
+
const kr=Symbol.for(""),Wr=t=>{if(t?.r===kr)return t?._$litStatic$},Lr=t=>({_$litStatic$:t,r:kr}),Kr=new Map,zr=(t=>(o,...e)=>{const r=e.length;let i,n;const a=[],s=[];let l,c=0,p=!1;for(;c<r;){for(l=o[c];c<r&&void 0!==(n=e[c],i=Wr(n));)l+=i+o[++c],p=!0;c!==r&&s.push(n),a.push(l),c++}if(c===r&&a.push(o[r]),p){const t=a.join("$$lit$$");void 0===(o=Kr.get(t))&&(a.raw=a,Kr.set(t,o=a)),e=s}return t(o,...e)})(J);var Fr;!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"}(Fr||(Fr={}));var Zr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Br extends Ko{constructor(){super(...arguments),this.variant=Fr.body1}render(){return this.element?zr`
|
|
614
|
+
<${Lr(this.element)}
|
|
611
615
|
class="ft-typography ft-typography--${this.variant}">
|
|
612
616
|
<slot></slot>
|
|
613
|
-
</${
|
|
614
|
-
`:
|
|
617
|
+
</${Lr(this.element)}>
|
|
618
|
+
`:zr`
|
|
615
619
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
616
|
-
`}}
|
|
620
|
+
`}}Br.styles=[er,rr,ir,nr,ar,sr,lr,cr,pr,fr,hr,...dr],Zr([C()],Br.prototype,"element",void 0),Zr([C()],Br.prototype,"variant",void 0),I("ft-typography")(Br);const Ar=xo.create("--ft-tooltip-distance","","SIZE","4px"),Dr=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Mr=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),Pr=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Hr=xo.external(Co.borderRadiusS,"Design system"),jr=xo.create("--ft-tooltip-max-width","","SIZE","150px"),Tr=bt`
|
|
617
621
|
.ft-tooltip--container {
|
|
618
622
|
display: block;
|
|
619
623
|
}
|
|
@@ -628,21 +632,21 @@ const Ir=Symbol.for(""),kr=t=>{if(t?.r===Ir)return t?._$litStatic$},Wr=t=>({_$li
|
|
|
628
632
|
box-sizing: border-box;
|
|
629
633
|
overflow: hidden;
|
|
630
634
|
width: max-content;
|
|
631
|
-
max-width: ${
|
|
635
|
+
max-width: ${jr};
|
|
632
636
|
text-align: center;
|
|
633
|
-
padding: ${
|
|
634
|
-
z-index: ${
|
|
637
|
+
padding: ${Ar};
|
|
638
|
+
z-index: ${Pr};
|
|
635
639
|
}
|
|
636
640
|
|
|
637
641
|
.ft-tooltip--content {
|
|
638
642
|
padding: 4px 8px;
|
|
639
|
-
border-radius: ${
|
|
640
|
-
background-color: ${
|
|
641
|
-
color: ${
|
|
643
|
+
border-radius: ${Hr};
|
|
644
|
+
background-color: ${Mr};
|
|
645
|
+
color: ${Dr};
|
|
642
646
|
position: relative;
|
|
643
647
|
word-break: break-word;
|
|
644
648
|
}
|
|
645
|
-
`;var
|
|
649
|
+
`;var _r=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Gr extends Ko{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`
|
|
646
650
|
<div part="container"
|
|
647
651
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
648
652
|
@mouseenter=${this.onHover}
|
|
@@ -660,34 +664,34 @@ const Ir=Symbol.for(""),kr=t=>{if(t?.r===Ir)return t?._$litStatic$},Wr=t=>({_$li
|
|
|
660
664
|
</div>
|
|
661
665
|
</div>
|
|
662
666
|
</div>
|
|
663
|
-
`}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,r=(t.offsetHeight-e)/2,i=(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+i-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+r-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, ${
|
|
667
|
+
`}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,r=(t.offsetHeight-e)/2,i=(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+i-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+r-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, ${jr})`}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))}}Gr.elementDefinitions={"ft-typography":Br},Gr.styles=Tr,_r([C()],Gr.prototype,"text",void 0),_r([C({type:Boolean})],Gr.prototype,"manual",void 0),_r([C({type:Boolean})],Gr.prototype,"inline",void 0),_r([C({type:Number})],Gr.prototype,"delay",void 0),_r([C()],Gr.prototype,"position",void 0),_r([function(t){return(o,e)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(i);return o?.assignedNodes(t)??[]}})}}()],Gr.prototype,"slotNodes",void 0),_r([E(".ft-tooltip--container")],Gr.prototype,"container",void 0),_r([E(".ft-tooltip")],Gr.prototype,"tooltip",void 0),_r([E(".ft-tooltip--content")],Gr.prototype,"tooltipContent",void 0),_r([$()],Gr.prototype,"visible",void 0),I("ft-tooltip")(Gr);
|
|
664
668
|
/**
|
|
665
669
|
* @license
|
|
666
670
|
* Copyright 2017 Google LLC
|
|
667
671
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
668
672
|
*/
|
|
669
|
-
class
|
|
673
|
+
class Yr extends Rr{constructor(t){if(super(t),this.et=X,t.type!==Cr)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:[]}}}Yr.directiveName="unsafeHTML",Yr.resultType=1;const Vr=$r(Yr);var Jr,qr,Xr;!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=""}(Jr||(Jr={})),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=""}(qr||(qr={})),new Map([...["abw"].map((t=>[t,qr.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,qr.AUDIO])),...["avi"].map((t=>[t,qr.AVI])),...["chm","xhs"].map((t=>[t,qr.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,qr.CODE])),...["csv"].map((t=>[t,qr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qr.DITA])),...["epub"].map((t=>[t,qr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qr.EXCEL])),...["flac"].map((t=>[t,qr.FLAC])),...["gif"].map((t=>[t,qr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qr.GZIP])),...["html","htm","xhtml"].map((t=>[t,qr.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,qr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qr.JPEG])),...["json"].map((t=>[t,qr.JSON])),...["m4a","m4p"].map((t=>[t,qr.M4A])),...["mov","qt"].map((t=>[t,qr.MOV])),...["mp3"].map((t=>[t,qr.MP3])),...["mp4","m4v"].map((t=>[t,qr.MP4])),...["ogg","oga"].map((t=>[t,qr.OGG])),...["pdf","ps"].map((t=>[t,qr.PDF])),...["png"].map((t=>[t,qr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qr.POWERPOINT])),...["rar"].map((t=>[t,qr.RAR])),...["stp"].map((t=>[t,qr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qr.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,qr.VIDEO])),...["wav"].map((t=>[t,qr.WAV])),...["wma"].map((t=>[t,qr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qr.WORD])),...["xml","xsl","rdf"].map((t=>[t,qr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qr.YAML])),...["zip"].map((t=>[t,qr.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xr||(Xr={}));var Qr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ti extends Ko{constructor(){super(...arguments),this.resolvedIcon=oo}render(){const t=this.variant&&Object.values(Xr).includes(this.variant)?this.variant:Xr.fluid_topics,o=t!==Xr.material||!!this.value;return Qt`
|
|
670
674
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
671
|
-
${
|
|
675
|
+
${Vr(this.resolvedIcon)}
|
|
672
676
|
<slot ?hidden=${o}></slot>
|
|
673
677
|
</i>
|
|
674
|
-
`}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
|
|
678
|
+
`}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 Xr.file_format:this.resolvedIcon=null!==(t=qr[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Xr.material:this.resolvedIcon=this.value||oo;break;default:this.resolvedIcon=null!==(o=Jr[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ti.elementDefinitions={},ti.styles=br,Qr([C()],ti.prototype,"variant",void 0),Qr([C()],ti.prototype,"value",void 0),Qr([$()],ti.prototype,"resolvedIcon",void 0),Qr([E("slot")],ti.prototype,"slottedContent",void 0),I("ft-icon")(ti);class oi extends Ko{render(){return Qt`
|
|
675
679
|
<div class="ft-loader">
|
|
676
680
|
<div></div>
|
|
677
681
|
<div></div>
|
|
678
682
|
<div></div>
|
|
679
683
|
<div></div>
|
|
680
684
|
</div>
|
|
681
|
-
`}}
|
|
685
|
+
`}}oi.styles=ur,I("ft-loader")(oi);var ei=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ri 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)}}}(Ko,"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`
|
|
682
686
|
<button part="button"
|
|
683
|
-
class="${
|
|
687
|
+
class="${Er(this.buttonClasses)}"
|
|
684
688
|
aria-label="${this.getLabel()}"
|
|
685
689
|
?disabled=${this.isDisabled()}>
|
|
686
690
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
687
691
|
<ft-typography part="label"
|
|
688
692
|
variant=${this.typographyVariant}
|
|
689
693
|
element="span"
|
|
690
|
-
class="ft-button--label ${
|
|
694
|
+
class="ft-button--label ${Po?"ft-safari-ellipsis-fix":""}"
|
|
691
695
|
?hidden=${!this.hasTextContent()}>
|
|
692
696
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
693
697
|
</ft-typography>
|
|
@@ -701,7 +705,7 @@ class Gr extends $r{constructor(t){if(super(t),this.et=X,t.type!==wr)throw Error
|
|
|
701
705
|
</ft-tooltip>
|
|
702
706
|
`:t}resolveIcon(){return this.loading?Qt`
|
|
703
707
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?Qt`
|
|
704
|
-
<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}}
|
|
708
|
+
<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}}ri.elementDefinitions={"ft-ripple":Ir,"ft-tooltip":Gr,"ft-typography":Br,"ft-icon":ti,"ft-loader":oi},ei([C({type:String,reflect:!0})],ri.prototype,"role",void 0),ei([C()],ri.prototype,"type",void 0),ei([C({type:Boolean})],ri.prototype,"disabled",void 0),ei([C()],ri.prototype,"label",void 0),ei([C()],ri.prototype,"icon",void 0),ei([C()],ri.prototype,"iconVariant",void 0),ei([C({type:Boolean})],ri.prototype,"trailingIcon",void 0),ei([C({type:Boolean})],ri.prototype,"loading",void 0),ei([C()],ri.prototype,"tooltipPosition",void 0),ei([C({type:Boolean})],ri.prototype,"hideTooltip",void 0),ei([C({type:Boolean})],ri.prototype,"forceTooltip",void 0),ei([E(".ft-button")],ri.prototype,"button",void 0),ei([E(".ft-button--label slot")],ri.prototype,"slottedContent",void 0);var ii=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ni extends ri{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"}}ni.styles=[Zo,Sr],ii([C({type:Boolean})],ni.prototype,"primary",void 0),ii([C({type:Boolean})],ni.prototype,"outlined",void 0),ii([C({type:Boolean})],ni.prototype,"dense",void 0),ii([C({type:Boolean})],ni.prototype,"round",void 0);const ai=[bt`
|
|
705
709
|
:host {
|
|
706
710
|
display: inline-block;
|
|
707
711
|
max-width: 100%;
|
|
@@ -780,13 +784,13 @@ class Gr extends $r{constructor(t){if(super(t),this.et=X,t.type!==wr)throw Error
|
|
|
780
784
|
/** Primary styles **/
|
|
781
785
|
|
|
782
786
|
.ft-button--primary {
|
|
783
|
-
${Oo(
|
|
787
|
+
${Oo(yr.color,wo.primaryIconColor)};
|
|
784
788
|
|
|
785
|
-
${Oo(
|
|
786
|
-
${Oo(
|
|
787
|
-
${Oo(
|
|
788
|
-
${Oo(
|
|
789
|
-
${Oo(
|
|
789
|
+
${Oo(jo.color,wo.primaryStateLayerColor)};
|
|
790
|
+
${Oo(jo.opacityContentOnSurfaceHover,wo.primaryStateLayerOpacityHover)};
|
|
791
|
+
${Oo(jo.opacityContentOnSurfaceFocused,wo.primaryStateLayerOpacityFocus)};
|
|
792
|
+
${Oo(jo.opacityContentOnSurfaceSelected,wo.primaryStateLayerOpacityActive)};
|
|
793
|
+
${Oo(jo.opacityContentOnSurfacePressed,wo.primaryStateLayerOpacityActive)};
|
|
790
794
|
|
|
791
795
|
background-color: ${wo.primaryBackgroundColor};
|
|
792
796
|
color: ${wo.primaryColor};
|
|
@@ -804,13 +808,13 @@ class Gr extends $r{constructor(t){if(super(t),this.et=X,t.type!==wr)throw Error
|
|
|
804
808
|
/** Secondary styles **/
|
|
805
809
|
|
|
806
810
|
.ft-button--secondary {
|
|
807
|
-
${Oo(
|
|
811
|
+
${Oo(yr.color,wo.secondaryIconColor)};
|
|
808
812
|
|
|
809
|
-
${Oo(
|
|
810
|
-
${Oo(
|
|
811
|
-
${Oo(
|
|
812
|
-
${Oo(
|
|
813
|
-
${Oo(
|
|
813
|
+
${Oo(jo.color,wo.secondaryStateLayerColor)};
|
|
814
|
+
${Oo(jo.opacityContentOnSurfaceHover,wo.secondaryStateLayerOpacityHover)};
|
|
815
|
+
${Oo(jo.opacityContentOnSurfaceFocused,wo.secondaryStateLayerOpacityFocus)};
|
|
816
|
+
${Oo(jo.opacityContentOnSurfaceSelected,wo.secondaryStateLayerOpacityActive)};
|
|
817
|
+
${Oo(jo.opacityContentOnSurfacePressed,wo.secondaryStateLayerOpacityActive)};
|
|
814
818
|
|
|
815
819
|
background-color: ${wo.secondaryBackgroundColor};
|
|
816
820
|
color: ${wo.secondaryColor};
|
|
@@ -829,13 +833,13 @@ class Gr extends $r{constructor(t){if(super(t),this.et=X,t.type!==wr)throw Error
|
|
|
829
833
|
/** Tertiary styles **/
|
|
830
834
|
|
|
831
835
|
.ft-button--tertiary {
|
|
832
|
-
${Oo(
|
|
836
|
+
${Oo(yr.color,wo.tertiaryIconColor)};
|
|
833
837
|
|
|
834
|
-
${Oo(
|
|
835
|
-
${Oo(
|
|
836
|
-
${Oo(
|
|
837
|
-
${Oo(
|
|
838
|
-
${Oo(
|
|
838
|
+
${Oo(jo.color,wo.tertiaryStateLayerColor)};
|
|
839
|
+
${Oo(jo.opacityContentOnSurfaceHover,wo.tertiaryStateLayerOpacityHover)};
|
|
840
|
+
${Oo(jo.opacityContentOnSurfaceFocused,wo.tertiaryStateLayerOpacityFocus)};
|
|
841
|
+
${Oo(jo.opacityContentOnSurfaceSelected,wo.tertiaryStateLayerOpacityActive)};
|
|
842
|
+
${Oo(jo.opacityContentOnSurfacePressed,wo.tertiaryStateLayerOpacityActive)};
|
|
839
843
|
|
|
840
844
|
background-color: ${wo.tertiaryBackgroundColor};
|
|
841
845
|
color: ${wo.tertiaryColor};
|
|
@@ -853,13 +857,13 @@ class Gr extends $r{constructor(t){if(super(t),this.et=X,t.type!==wr)throw Error
|
|
|
853
857
|
/** Neutral styles **/
|
|
854
858
|
|
|
855
859
|
.ft-button--neutral {
|
|
856
|
-
${Oo(
|
|
860
|
+
${Oo(yr.color,wo.neutralIconColor)};
|
|
857
861
|
|
|
858
|
-
${Oo(
|
|
859
|
-
${Oo(
|
|
860
|
-
${Oo(
|
|
861
|
-
${Oo(
|
|
862
|
-
${Oo(
|
|
862
|
+
${Oo(jo.backgroundColor,wo.neutralStateLayerColor)};
|
|
863
|
+
${Oo(jo.opacityContentOnSurfaceHover,wo.neutralStateLayerOpacityHover)};
|
|
864
|
+
${Oo(jo.opacityContentOnSurfaceFocused,wo.neutralStateLayerOpacityFocus)};
|
|
865
|
+
${Oo(jo.opacityContentOnSurfaceSelected,wo.neutralStateLayerOpacityActive)};
|
|
866
|
+
${Oo(jo.opacityContentOnSurfacePressed,wo.neutralStateLayerOpacityActive)};
|
|
863
867
|
|
|
864
868
|
background-color: ${wo.neutralBackgroundColor};
|
|
865
869
|
color: ${wo.neutralColor};
|
|
@@ -877,8 +881,8 @@ class Gr extends $r{constructor(t){if(super(t),this.et=X,t.type!==wr)throw Error
|
|
|
877
881
|
/** Large styles **/
|
|
878
882
|
|
|
879
883
|
.ft-button--large {
|
|
880
|
-
${Oo(
|
|
881
|
-
${Oo(
|
|
884
|
+
${Oo(gr.size,wo.largeIconSize)};
|
|
885
|
+
${Oo(yr.size,wo.largeIconSize)};
|
|
882
886
|
|
|
883
887
|
height: ${wo.largeHeight};
|
|
884
888
|
padding: 0 ${wo.largeHorizontalPadding};
|
|
@@ -900,8 +904,8 @@ class Gr extends $r{constructor(t){if(super(t),this.et=X,t.type!==wr)throw Error
|
|
|
900
904
|
/** Small styles **/
|
|
901
905
|
|
|
902
906
|
.ft-button--small {
|
|
903
|
-
${Oo(
|
|
904
|
-
${Oo(
|
|
907
|
+
${Oo(gr.size,wo.smallIconSize)};
|
|
908
|
+
${Oo(yr.size,wo.smallIconSize)};
|
|
905
909
|
|
|
906
910
|
height: ${wo.smallHeight};
|
|
907
911
|
padding: 0 ${wo.smallHorizontalPadding};
|
|
@@ -919,4 +923,4 @@ class Gr extends $r{constructor(t){if(super(t),this.et=X,t.type!==wr)throw Error
|
|
|
919
923
|
width: ${wo.smallIconOnlyWidth};
|
|
920
924
|
padding: unset;
|
|
921
925
|
}
|
|
922
|
-
`,
|
|
926
|
+
`,Fo];var si=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class li extends ri{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?Fr.caption1medium:Fr.body2medium}}li.styles=[Zo,ai],si([C({type:Boolean})],li.prototype,"primary",void 0),si([C({type:Boolean})],li.prototype,"secondary",void 0),si([C({type:Boolean})],li.prototype,"tertiary",void 0),si([C({type:Boolean})],li.prototype,"neutral",void 0),si([C({type:Boolean})],li.prototype,"small",void 0),I("ft-button")(ni),I("ftds-button")(li),t.FtButton=ni,t.FtButtonCssVariables=xr,t.FtButtonDenseCssVariables=Nr,t.FtButtonPrimaryCssVariables=vr,t.FtdsButton=li,t.FtdsButtonCssVariables=wo,t.classicStyles=Sr,t.designSystemStyles=ai}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-button",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "A generic Fluid Topics tag",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,13 +19,13 @@
|
|
|
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-loader": "1.1.
|
|
24
|
-
"@fluid-topics/ft-ripple": "1.1.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "1.1.
|
|
26
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.1.2",
|
|
23
|
+
"@fluid-topics/ft-loader": "1.1.2",
|
|
24
|
+
"@fluid-topics/ft-ripple": "1.1.2",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "1.1.2",
|
|
26
|
+
"@fluid-topics/ft-typography": "1.1.2",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.1.2",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
|
|
31
31
|
}
|