@fluid-topics/ft-chip 0.2.16 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-chip.min.js +123 -122
- package/package.json +6 -6
- package/build/ft-chip.inline-styles.js +0 -508
- package/build/inline-styles.d.ts +0 -2
- package/build/inline-styles.js +0 -4
package/build/ft-chip.min.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.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,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=s.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let g=[document];const x=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const v=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.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,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=s.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let g=[document];const x=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const v=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(ie){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -40,12 +40,13 @@ function r(t,i){return(({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o)
|
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2021 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/var s;null===(s=window.HTMLSlotElement)||void 0===s||s.prototype.assignedElements;const a=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)}
|
|
43
|
+
*/var s;null===(s=window.HTMLSlotElement)||void 0===s||s.prototype.assignedElements;const a=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2019 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
|
|
48
|
+
*/
|
|
49
|
+
const l=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),c=new Map;class p{constructor(t,i){if(this._$cssResult$=!0,i!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=c.get(this.cssText);return l&&void 0===t&&(c.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const f=t=>new p("string"==typeof t?t:t+"",h),d=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new p(e,h)},u=(t,i)=>{l?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},y=l?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return f(i)})(t):t
|
|
49
50
|
/**
|
|
50
51
|
* @license
|
|
51
52
|
* Copyright 2017 Google LLC
|
|
@@ -56,23 +57,23 @@ function r(t,i){return(({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o)
|
|
|
56
57
|
* Copyright 2017 Google LLC
|
|
57
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
59
|
*/
|
|
59
|
-
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:O}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.2");const k=globalThis.trustedTypes,C=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,E="?"+N,R=`<${E}>`,M=document,z=(t="")=>M.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,
|
|
60
|
+
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:O}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.2");const k=globalThis.trustedTypes,C=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,E="?"+N,R=`<${E}>`,M=document,z=(t="")=>M.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,A=/>/g,L=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,T=/'/g,P=/"/g,_=/^(?:script|style|textarea|title)$/i,D=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),I=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),K=new WeakMap,H=M.createTreeWalker(M,129,null,!1),Z=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=j;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===j?"!--"===l[1]?s=B:void 0!==l[1]?s=A:void 0!==l[2]?(_.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=L):void 0!==l[3]&&(s=L):s===L?">"===l[0]?(s=null!=n?n:j,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?L:'"'===l[3]?P:T):s===P||s===T?s=L:s===B||s===A?s=j:(s=L,n=void 0);const p=s===L&&t[i+1].startsWith("/>")?" ":"";r+=s===j?e+R:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+N+p):e+N+(-2===h?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(a):a,o]};class V{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=Z(t,i);if(this.el=V.createElement(l,e),H.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=H.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(N)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(N),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?G:"?"===i[1]?tt:"@"===i[1]?it:Y})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(_.test(o.tagName)){const t=o.textContent.split(N),i=t.length-1;if(i>0){o.textContent=k?k.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],z()),H.nextNode(),a.push({type:2,index:++n});o.append(t[i],z())}}}else if(8===o.nodeType)if(o.data===E)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(N,t+1));)a.push({type:7,index:n}),t+=N.length-1}n++}}static createElement(t,i){const e=M.createElement("template");return e.innerHTML=t,e}}function J(t,i,e=t,o){var n,r,s,a;if(i===I)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const h=U(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=J(t,l._$AS(t,i.values),l,o)),i}class q{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:M).importNode(e,!0);H.currentNode=n;let r=H.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new X(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new et(r,this,t)),this.v.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=H.nextNode(),s++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class X{constructor(t,i,e,o){var n;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=J(this,t,i),U(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==I&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return F(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==W&&U(this._$AH)?this._$AA.nextSibling.data=t:this.k(M.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=V.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new q(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=K.get(t.strings);return void 0===i&&K.set(t.strings,i=new V(t)),i}S(t){F(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new X(this.M(z()),this.M(z()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Y{constructor(t,i,e,o,n){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=J(this,t,i,0),r=!U(t)||t!==this._$AH&&t!==I,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=J(this,o[e+s],i,s),a===I&&(a=this._$AH[s]),r||(r=!U(a)||a!==this._$AH[s]),a===W?t=W:t!==W&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.C(t)}C(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends Y{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===W?void 0:t}}const Q=k?k.emptyScript:"";class tt extends Y{constructor(){super(...arguments),this.type=4}C(t){t&&t!==W?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class it extends Y{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=J(this,t,i,0))&&void 0!==e?e:W)===I)return;const o=this._$AH,n=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==W&&(o===W||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){J(this,t)}}const ot=window.litHtmlPolyfillSupport;
|
|
60
61
|
/**
|
|
61
62
|
* @license
|
|
62
63
|
* Copyright 2017 Google LLC
|
|
63
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
65
|
*/
|
|
65
|
-
var nt,rt;null==ot||ot(V,
|
|
66
|
+
var nt,rt;null==ot||ot(V,X),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S:globalThis.litHtmlVersions=[]).push("2.2.4");class st extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,i,e)=>{var o,n;const r=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new X(i.insertBefore(z(),t),t,void 0,null!=e?e:{})}return s._$AI(t),s})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return I}}st.finalized=!0,st._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:st});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:st}),(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.2.0");class lt{constructor(t,i,e,o,n){this.name=t,this.category=i,this.fallbackVariable=e,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,i,e){return new lt(t,i,void 0,e)}static extend(t,i,e){return new lt(t,i.category,i,e)}static external(t,i){return new lt(t.name,t.category,t.fallbackVariable,t.defaultValue,i)}get(t){return d`var(${f(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):f(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,i;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(i=this.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function ht(t,i){return f(`${t.name}: ${i}`)}const ct={colorPrimary:lt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:lt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:lt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:lt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:lt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:lt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:lt.create("--ft-color-error","COLOR","#B00020"),colorOutline:lt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:lt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:lt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:lt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:lt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:lt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:lt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:lt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:lt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:lt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:lt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:lt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:lt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:lt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:lt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:lt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:lt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:lt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:lt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:lt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:lt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:lt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:lt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:lt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:lt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:lt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:lt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:lt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:lt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:lt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:lt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:lt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:lt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:lt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:lt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:lt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:lt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:lt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:lt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:lt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:lt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:lt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:lt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:lt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:lt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:lt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:lt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:lt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:lt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:lt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:lt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:lt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:lt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:lt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:lt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
67
|
/**
|
|
67
68
|
* @license
|
|
68
69
|
* Copyright 2021 Google LLC
|
|
69
70
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/
|
|
71
|
+
*/var pt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ft extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return u(n,this.constructor.elementStyles),n}}}(st)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),D`
|
|
71
72
|
${t.map((t=>D`
|
|
72
73
|
<style>${t}</style>
|
|
73
74
|
`))}
|
|
74
75
|
${this.getTemplate()}
|
|
75
|
-
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const ft=d`
|
|
76
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}pt([o()],ft.prototype,"exportpartsPrefix",void 0),pt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],ft.prototype,"exportpartsPrefixes",void 0);const dt=d`
|
|
76
77
|
.ft-no-text-select {
|
|
77
78
|
-webkit-touch-callout: none;
|
|
78
79
|
-webkit-user-select: none;
|
|
@@ -81,17 +82,17 @@ var nt,rt;null==ot||ot(V,J),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
81
82
|
-ms-user-select: none;
|
|
82
83
|
user-select: none;
|
|
83
84
|
}
|
|
84
|
-
`;var
|
|
85
|
+
`;var ut,yt,gt;const xt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(gt=null===(yt=null===(ut=window.safari)||void 0===ut?void 0:ut.pushNotification)||void 0===yt?void 0:yt.toString())&&void 0!==gt?gt:""),vt=1,mt=2,bt=t=>(...i)=>({_$litDirective$:t,values:i});
|
|
85
86
|
/**
|
|
86
87
|
* @license
|
|
87
88
|
* Copyright 2017 Google LLC
|
|
88
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
|
-
*/class
|
|
90
|
+
*/class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
|
|
90
91
|
/**
|
|
91
92
|
* @license
|
|
92
93
|
* Copyright 2018 Google LLC
|
|
93
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
94
|
-
*/const
|
|
95
|
+
*/const $t=bt(class extends wt{constructor(t){var i;if(super(t),t.type!==vt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.et.add(t);return this.render(i)}const n=t.element.classList;this.et.forEach((t=>{t in i||(n.remove(t),this.et.delete(t))}));for(const t in i){const e=!!i[t];e===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.et.add(t)):(n.remove(t),this.et.delete(t)))}return I}});var Ot=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const St=lt.extend("--ft-ripple-color",ct.colorContent),kt={color:St,backgroundColor:lt.extend("--ft-ripple-background-color",St),opacityContentOnSurfacePressed:lt.external(ct.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:lt.external(ct.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:lt.external(ct.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:lt.external(ct.opacityContentOnSurfaceSelected,"Design system")},Ct=lt.extend("--ft-ripple-color",ct.colorPrimary),Nt=Ct,Et=lt.extend("--ft-ripple-background-color",Ct),Rt=lt.extend("--ft-ripple-color",ct.colorSecondary),Mt=Rt,zt=lt.extend("--ft-ripple-background-color",Rt);class Ut extends ft{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(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.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return D`
|
|
95
96
|
<style>
|
|
96
97
|
.ft-ripple .ft-ripple--effect,
|
|
97
98
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -104,11 +105,11 @@ var nt,rt;null==ot||ot(V,J),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
104
105
|
top: ${this.originY}px;
|
|
105
106
|
}
|
|
106
107
|
</style>
|
|
107
|
-
<div class="${
|
|
108
|
+
<div class="${$t(t)}">
|
|
108
109
|
<div class="ft-ripple--background"></div>
|
|
109
110
|
<div class="ft-ripple--effect"></div>
|
|
110
111
|
</div>
|
|
111
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
|
|
112
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ut.elementDefinitions={},Ut.styles=d`
|
|
112
113
|
:host {
|
|
113
114
|
display: contents;
|
|
114
115
|
}
|
|
@@ -130,27 +131,27 @@ var nt,rt;null==ot||ot(V,J),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
.ft-ripple .ft-ripple--background {
|
|
133
|
-
background-color: ${
|
|
134
|
+
background-color: ${kt.backgroundColor};
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
.ft-ripple .ft-ripple--effect {
|
|
137
|
-
background-color: ${
|
|
138
|
+
background-color: ${kt.color};
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
141
|
-
background-color: ${
|
|
142
|
+
background-color: ${zt};
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
145
|
-
background-color: ${
|
|
146
|
+
background-color: ${Mt};
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
149
|
-
background-color: ${
|
|
150
|
+
background-color: ${Et};
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
153
|
-
background-color: ${
|
|
154
|
+
background-color: ${Nt};
|
|
154
155
|
}
|
|
155
156
|
|
|
156
157
|
.ft-ripple .ft-ripple--background {
|
|
@@ -182,152 +183,152 @@ var nt,rt;null==ot||ot(V,J),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
182
183
|
}
|
|
183
184
|
|
|
184
185
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
185
|
-
opacity: ${
|
|
186
|
+
opacity: ${kt.opacityContentOnSurfaceHover};
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
189
|
-
opacity: ${
|
|
190
|
+
opacity: ${kt.opacityContentOnSurfaceSelected};
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
193
|
-
opacity: ${
|
|
194
|
+
opacity: ${kt.opacityContentOnSurfaceFocused};
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
197
|
-
opacity: ${
|
|
198
|
+
opacity: ${kt.opacityContentOnSurfacePressed};
|
|
198
199
|
transform: translate(-50%, -50%) scale(1);
|
|
199
200
|
}
|
|
200
|
-
|
|
201
|
+
`,Ot([o({type:Boolean})],Ut.prototype,"primary",void 0),Ot([o({type:Boolean})],Ut.prototype,"secondary",void 0),Ot([o({type:Boolean})],Ut.prototype,"unbounded",void 0),Ot([o({type:Boolean})],Ut.prototype,"activated",void 0),Ot([o({type:Boolean})],Ut.prototype,"selected",void 0),Ot([o({type:Boolean})],Ut.prototype,"disabled",void 0),Ot([n()],Ut.prototype,"hovered",void 0),Ot([n()],Ut.prototype,"focused",void 0),Ot([n()],Ut.prototype,"pressed",void 0),Ot([n()],Ut.prototype,"rippling",void 0),Ot([n()],Ut.prototype,"rippleSize",void 0),Ot([n()],Ut.prototype,"originX",void 0),Ot([n()],Ut.prototype,"originY",void 0),Ot([r(".ft-ripple")],Ut.prototype,"ripple",void 0),Ot([r(".ft-ripple--effect")],Ut.prototype,"rippleEffect",void 0),a("ft-ripple")(Ut);
|
|
201
202
|
/**
|
|
202
203
|
* @license
|
|
203
204
|
* Copyright 2020 Google LLC
|
|
204
205
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
205
206
|
*/
|
|
206
|
-
const
|
|
207
|
+
const Ft=Symbol.for(""),jt=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===Ft)return null===(e=t)||void 0===e?void 0:e._$litStatic$},Bt=t=>({_$litStatic$:t,r:Ft}),At=new Map,Lt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(r=e[h],n=jt(r));)l+=n+i[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),c){const t=s.join("$$lit$$");void 0===(i=At.get(t))&&(s.raw=s,At.set(t,i=s)),e=a}return t(i,...e)})(D);var Tt,Pt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!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"}(Tt||(Tt={}));const _t=lt.extend("--ft-typography-font-family",ct.titleFont),Dt=lt.extend("--ft-typography-font-family",ct.contentFont),It={fontFamily:Dt,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=lt.extend("--ft-typography-title-font-family",_t),Kt=lt.extend("--ft-typography-title-font-size",It.fontSize,"20px"),Ht=lt.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),Zt=lt.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),Vt=lt.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),Jt=lt.extend("--ft-typography-title-text-transform",It.textTransform,"inherit"),qt=lt.extend("--ft-typography-title-dense-font-family",_t),Xt=lt.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),Yt=lt.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Gt=lt.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Qt=lt.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),ti=lt.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),ii=lt.extend("--ft-typography-subtitle1-font-family",Dt),ei=lt.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),oi=lt.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),ni=lt.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),ri=lt.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),si=lt.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),ai=lt.extend("--ft-typography-subtitle2-font-family",Dt),li=lt.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),hi=lt.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),ci=lt.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),pi=lt.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),fi=lt.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),di=lt.extend("--ft-typography-body1-font-family",Dt),ui=lt.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),yi=lt.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),gi=lt.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),xi=lt.extend("--ft-typography-body1-line-height",It.lineHeight,"1.5"),vi=lt.extend("--ft-typography-body1-text-transform",It.textTransform,"inherit"),mi={fontFamily:lt.extend("--ft-typography-body2-font-family",Dt),fontSize:lt.extend("--ft-typography-body2-font-size",It.fontSize,"14px"),fontWeight:lt.extend("--ft-typography-body2-font-weight",It.fontWeight,"normal"),letterSpacing:lt.extend("--ft-typography-body2-letter-spacing",It.letterSpacing,"0.252px"),lineHeight:lt.extend("--ft-typography-body2-line-height",It.lineHeight,"1.4"),textTransform:lt.extend("--ft-typography-body2-text-transform",It.textTransform,"inherit")},bi=lt.extend("--ft-typography-caption-font-family",Dt),wi=lt.extend("--ft-typography-caption-font-size",It.fontSize,"12px"),$i=lt.extend("--ft-typography-caption-font-weight",It.fontWeight,"normal"),Oi=lt.extend("--ft-typography-caption-letter-spacing",It.letterSpacing,"0.396px"),Si=lt.extend("--ft-typography-caption-line-height",It.lineHeight,"1.33"),ki=lt.extend("--ft-typography-caption-text-transform",It.textTransform,"inherit"),Ci=lt.extend("--ft-typography-breadcrumb-font-family",Dt),Ni=lt.extend("--ft-typography-breadcrumb-font-size",It.fontSize,"10px"),Ei=lt.extend("--ft-typography-breadcrumb-font-weight",It.fontWeight,"normal"),Ri=lt.extend("--ft-typography-breadcrumb-letter-spacing",It.letterSpacing,"0.33px"),Mi=lt.extend("--ft-typography-breadcrumb-line-height",It.lineHeight,"1.6"),zi=lt.extend("--ft-typography-breadcrumb-text-transform",It.textTransform,"inherit"),Ui=lt.extend("--ft-typography-overline-font-family",Dt),Fi=lt.extend("--ft-typography-overline-font-size",It.fontSize,"10px"),ji=lt.extend("--ft-typography-overline-font-weight",It.fontWeight,"normal"),Bi=lt.extend("--ft-typography-overline-letter-spacing",It.letterSpacing,"1.5px"),Ai=lt.extend("--ft-typography-overline-line-height",It.lineHeight,"1.6"),Li=lt.extend("--ft-typography-overline-text-transform",It.textTransform,"uppercase"),Ti=lt.extend("--ft-typography-button-font-family",Dt),Pi=lt.extend("--ft-typography-button-font-size",It.fontSize,"14px"),_i=lt.extend("--ft-typography-button-font-weight",It.fontWeight,"600"),Di=lt.extend("--ft-typography-button-letter-spacing",It.letterSpacing,"1.246px"),Ii=lt.extend("--ft-typography-button-line-height",It.lineHeight,"1.15"),Wi=lt.extend("--ft-typography-button-text-transform",It.textTransform,"uppercase"),Ki=d`
|
|
207
208
|
.ft-typography--title {
|
|
208
|
-
font-family: ${
|
|
209
|
-
font-size: ${
|
|
210
|
-
font-weight: ${
|
|
211
|
-
letter-spacing: ${
|
|
212
|
-
line-height: ${
|
|
213
|
-
text-transform: ${
|
|
209
|
+
font-family: ${Wt};
|
|
210
|
+
font-size: ${Kt};
|
|
211
|
+
font-weight: ${Ht};
|
|
212
|
+
letter-spacing: ${Zt};
|
|
213
|
+
line-height: ${Vt};
|
|
214
|
+
text-transform: ${Jt};
|
|
214
215
|
}
|
|
215
|
-
`,
|
|
216
|
+
`,Hi=d`
|
|
216
217
|
.ft-typography--title-dense {
|
|
217
218
|
font-family: ${qt};
|
|
218
219
|
font-size: ${Xt};
|
|
219
|
-
font-weight: ${
|
|
220
|
-
letter-spacing: ${
|
|
221
|
-
line-height: ${
|
|
222
|
-
text-transform: ${
|
|
220
|
+
font-weight: ${Yt};
|
|
221
|
+
letter-spacing: ${Gt};
|
|
222
|
+
line-height: ${Qt};
|
|
223
|
+
text-transform: ${ti};
|
|
223
224
|
}
|
|
224
|
-
`,
|
|
225
|
+
`,Zi=d`
|
|
225
226
|
.ft-typography--subtitle1 {
|
|
226
|
-
font-family: ${
|
|
227
|
-
font-size: ${
|
|
228
|
-
font-weight: ${
|
|
229
|
-
letter-spacing: ${
|
|
230
|
-
line-height: ${
|
|
231
|
-
text-transform: ${
|
|
227
|
+
font-family: ${ii};
|
|
228
|
+
font-size: ${ei};
|
|
229
|
+
font-weight: ${oi};
|
|
230
|
+
letter-spacing: ${ni};
|
|
231
|
+
line-height: ${ri};
|
|
232
|
+
text-transform: ${si};
|
|
232
233
|
}
|
|
233
|
-
`,
|
|
234
|
+
`,Vi=d`
|
|
234
235
|
.ft-typography--subtitle2 {
|
|
235
|
-
font-family: ${
|
|
236
|
-
font-size: ${
|
|
237
|
-
font-weight: ${
|
|
238
|
-
letter-spacing: ${
|
|
239
|
-
line-height: ${
|
|
240
|
-
text-transform: ${
|
|
236
|
+
font-family: ${ai};
|
|
237
|
+
font-size: ${li};
|
|
238
|
+
font-weight: ${hi};
|
|
239
|
+
letter-spacing: ${ci};
|
|
240
|
+
line-height: ${pi};
|
|
241
|
+
text-transform: ${fi};
|
|
241
242
|
}
|
|
242
243
|
|
|
243
|
-
`,
|
|
244
|
+
`,Ji=d`
|
|
244
245
|
.ft-typography--body1 {
|
|
245
|
-
font-family: ${
|
|
246
|
-
font-size: ${
|
|
247
|
-
font-weight: ${
|
|
248
|
-
letter-spacing: ${
|
|
249
|
-
line-height: ${
|
|
250
|
-
text-transform: ${
|
|
246
|
+
font-family: ${di};
|
|
247
|
+
font-size: ${ui};
|
|
248
|
+
font-weight: ${yi};
|
|
249
|
+
letter-spacing: ${gi};
|
|
250
|
+
line-height: ${xi};
|
|
251
|
+
text-transform: ${vi};
|
|
251
252
|
}
|
|
252
253
|
`,qi=d`
|
|
253
254
|
.ft-typography--body2 {
|
|
254
|
-
font-family: ${
|
|
255
|
-
font-size: ${
|
|
256
|
-
font-weight: ${
|
|
257
|
-
letter-spacing: ${
|
|
258
|
-
line-height: ${
|
|
259
|
-
text-transform: ${
|
|
255
|
+
font-family: ${mi.fontFamily};
|
|
256
|
+
font-size: ${mi.fontSize};
|
|
257
|
+
font-weight: ${mi.fontWeight};
|
|
258
|
+
letter-spacing: ${mi.letterSpacing};
|
|
259
|
+
line-height: ${mi.lineHeight};
|
|
260
|
+
text-transform: ${mi.textTransform};
|
|
260
261
|
}
|
|
261
262
|
`,Xi=d`
|
|
262
263
|
.ft-typography--caption {
|
|
263
|
-
font-family: ${
|
|
264
|
-
font-size: ${
|
|
265
|
-
font-weight: ${
|
|
266
|
-
letter-spacing: ${
|
|
267
|
-
line-height: ${
|
|
268
|
-
text-transform: ${
|
|
264
|
+
font-family: ${bi};
|
|
265
|
+
font-size: ${wi};
|
|
266
|
+
font-weight: ${$i};
|
|
267
|
+
letter-spacing: ${Oi};
|
|
268
|
+
line-height: ${Si};
|
|
269
|
+
text-transform: ${ki};
|
|
269
270
|
}
|
|
270
|
-
`,
|
|
271
|
+
`,Yi=d`
|
|
271
272
|
.ft-typography--breadcrumb {
|
|
272
|
-
font-family: ${
|
|
273
|
-
font-size: ${
|
|
274
|
-
font-weight: ${
|
|
275
|
-
letter-spacing: ${
|
|
276
|
-
line-height: ${
|
|
277
|
-
text-transform: ${
|
|
273
|
+
font-family: ${Ci};
|
|
274
|
+
font-size: ${Ni};
|
|
275
|
+
font-weight: ${Ei};
|
|
276
|
+
letter-spacing: ${Ri};
|
|
277
|
+
line-height: ${Mi};
|
|
278
|
+
text-transform: ${zi};
|
|
278
279
|
}
|
|
279
|
-
`,
|
|
280
|
+
`,Gi=d`
|
|
280
281
|
.ft-typography--overline {
|
|
281
|
-
font-family: ${
|
|
282
|
-
font-size: ${
|
|
283
|
-
font-weight: ${
|
|
284
|
-
letter-spacing: ${
|
|
285
|
-
line-height: ${
|
|
282
|
+
font-family: ${Ui};
|
|
283
|
+
font-size: ${Fi};
|
|
284
|
+
font-weight: ${ji};
|
|
285
|
+
letter-spacing: ${Bi};
|
|
286
|
+
line-height: ${Ai};
|
|
286
287
|
text-transform: ${Li};
|
|
287
288
|
}
|
|
288
|
-
`,
|
|
289
|
+
`,Qi=d`
|
|
289
290
|
.ft-typography--button {
|
|
290
291
|
font-family: ${Ti};
|
|
291
|
-
font-size: ${
|
|
292
|
-
font-weight: ${
|
|
293
|
-
letter-spacing: ${
|
|
294
|
-
line-height: ${
|
|
295
|
-
text-transform: ${
|
|
292
|
+
font-size: ${Pi};
|
|
293
|
+
font-weight: ${_i};
|
|
294
|
+
letter-spacing: ${Di};
|
|
295
|
+
line-height: ${Ii};
|
|
296
|
+
text-transform: ${Wi};
|
|
296
297
|
}
|
|
297
|
-
`;class
|
|
298
|
-
<${
|
|
298
|
+
`;class te extends ft{constructor(){super(...arguments),this.variant=Tt.body1}render(){return this.element?Lt`
|
|
299
|
+
<${Bt(this.element)}
|
|
299
300
|
class="ft-typography ft-typography--${this.variant}">
|
|
300
301
|
<slot></slot>
|
|
301
|
-
</${
|
|
302
|
+
</${Bt(this.element)}>
|
|
302
303
|
`:Lt`
|
|
303
304
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
304
|
-
`}}
|
|
305
|
+
`}}te.styles=[Ki,Hi,Zi,Vi,Ji,qi,Xi,Yi,Gi,Qi,d`
|
|
305
306
|
.ft-typography {
|
|
306
307
|
vertical-align: inherit;
|
|
307
308
|
}
|
|
308
|
-
`],
|
|
309
|
+
`],Pt([o()],te.prototype,"element",void 0),Pt([o()],te.prototype,"variant",void 0),a("ft-typography")(te);
|
|
309
310
|
/**
|
|
310
311
|
* @license
|
|
311
312
|
* Copyright 2017 Google LLC
|
|
312
313
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
313
314
|
*/
|
|
314
|
-
class
|
|
315
|
+
class ie extends wt{constructor(t){if(super(t),this.it=W,t.type!==mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this.ft=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ie.directiveName="unsafeHTML",ie.resultType=1;const ee=bt(ie);var oe,ne;!function(t){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.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",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=""}(oe||(oe={})),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=""}(ne||(ne={})),new Map([...["abw"].map((t=>[t,ne.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,ne.AUDIO])),...["avi"].map((t=>[t,ne.AVI])),...["chm","xhs"].map((t=>[t,ne.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,ne.CODE])),...["csv"].map((t=>[t,ne.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ne.DITA])),...["epub"].map((t=>[t,ne.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ne.EXCEL])),...["flac"].map((t=>[t,ne.FLAC])),...["gif"].map((t=>[t,ne.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ne.GZIP])),...["html","htm","xhtml"].map((t=>[t,ne.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,ne.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ne.JPEG])),...["json"].map((t=>[t,ne.JSON])),...["m4a","m4p"].map((t=>[t,ne.M4A])),...["mov","qt"].map((t=>[t,ne.MOV])),...["mp3"].map((t=>[t,ne.MP3])),...["mp4","m4v"].map((t=>[t,ne.MP4])),...["ogg","oga"].map((t=>[t,ne.OGG])),...["pdf","ps"].map((t=>[t,ne.PDF])),...["png"].map((t=>[t,ne.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ne.POWERPOINT])),...["rar"].map((t=>[t,ne.RAR])),...["stp"].map((t=>[t,ne.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ne.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,ne.VIDEO])),...["wav"].map((t=>[t,ne.WAV])),...["wma"].map((t=>[t,ne.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ne.WORD])),...["xml","xsl","rdf"].map((t=>[t,ne.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ne.YAML])),...["zip"].map((t=>[t,ne.ZIP]))]);var re,se=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(re||(re={}));const ae={size:lt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:lt.extend("--ft-icon-fluid-topics-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:lt.extend("--ft-icon-file-format-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:lt.extend("--ft-icon-material-font-family",lt.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class le extends ft{constructor(){super(...arguments),this.variant=re.fluid_topics}render(){return D`
|
|
315
316
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
316
|
-
${
|
|
317
|
+
${ee(this.getIcon())}
|
|
317
318
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
318
319
|
</i>
|
|
319
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let e=this.textContent;return this.variant===
|
|
320
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let e=this.textContent;return this.variant===re.file_format?null!==(t=ne[e.toUpperCase()])&&void 0!==t?t:e:this.variant===re.fluid_topics?null!==(i=oe[e.toUpperCase()])&&void 0!==i?i:e:W}}le.elementDefinitions={},le.styles=d`
|
|
320
321
|
:host {
|
|
321
322
|
display: inline-block;
|
|
322
323
|
}
|
|
323
324
|
:host, i.ft-icon {
|
|
324
|
-
width: ${
|
|
325
|
-
height: ${
|
|
325
|
+
width: ${ae.size};
|
|
326
|
+
height: ${ae.size};
|
|
326
327
|
text-align: center;
|
|
327
328
|
}
|
|
328
329
|
|
|
329
330
|
i.ft-icon {
|
|
330
|
-
font-size: ${
|
|
331
|
+
font-size: ${ae.size};
|
|
331
332
|
line-height: 1;
|
|
332
333
|
font-weight: normal;
|
|
333
334
|
text-transform: none;
|
|
@@ -341,17 +342,17 @@ class te extends bt{constructor(t){if(super(t),this.it=W,t.type!==vt)throw Error
|
|
|
341
342
|
}
|
|
342
343
|
|
|
343
344
|
.ft-icon--fluid-topics {
|
|
344
|
-
font-family: ${
|
|
345
|
+
font-family: ${ae.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
345
346
|
}
|
|
346
347
|
|
|
347
348
|
.ft-icon--file-format {
|
|
348
|
-
font-family: ${
|
|
349
|
+
font-family: ${ae.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
349
350
|
}
|
|
350
351
|
|
|
351
352
|
.ft-icon--material {
|
|
352
|
-
font-family: ${
|
|
353
|
+
font-family: ${ae.materialFontFamily}, "Material Icons", sans-serif;
|
|
353
354
|
}
|
|
354
|
-
`,
|
|
355
|
+
`,se([o()],le.prototype,"variant",void 0),se([r("slot")],le.prototype,"slottedContent",void 0),a("ft-icon")(le);var he=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const ce=lt.extend("--ft-chip-color",ct.colorOnSurface),pe={backgroundColor:lt.extend("--ft-chip-background-color",ct.colorSurface),color:ce,fontSize:lt.extend("--ft-chip-font-size",mi.fontSize),iconSize:lt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:lt.extend("--ft-chip-ripple-color",ce),horizontalPadding:lt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:lt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:lt.external(ct.colorOutline,"Design system"),opacityDisabled:lt.external(ct.colorOpacityDisabled,"Design system")},fe=lt.extend("--ft-chip-highlighted-color",lt.extend("--ft-chip-color",ct.colorOnPrimary)),de={backgroundColor:lt.extend("--ft-chip-highlighted-background-color",lt.extend("--ft-chip-background-color",ct.colorPrimary)),color:fe,rippleColor:lt.extend("--ft-chip-highlighted-ripple-color",fe)},ue={horizontalPadding:lt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),verticalPadding:lt.create("--ft-chip-dense-vertical-padding","SIZE","4px")};class ye extends CustomEvent{constructor(){super("icon-click")}}class ge extends ft{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[dt,d`
|
|
355
356
|
:host {
|
|
356
357
|
display: inline-block;
|
|
357
358
|
max-width: 100%;
|
|
@@ -368,20 +369,20 @@ class te extends bt{constructor(t){if(super(t),this.it=W,t.type!==vt)throw Error
|
|
|
368
369
|
box-sizing: border-box;
|
|
369
370
|
pointer-events: auto;
|
|
370
371
|
|
|
371
|
-
--ft-chip-internal-font-size: ${
|
|
372
|
+
--ft-chip-internal-font-size: ${pe.fontSize};
|
|
372
373
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
373
|
-
${ht(
|
|
374
|
-
--ft-chip-internal-vertical-padding: ${
|
|
375
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
374
|
+
${ht(ae.size,pe.iconSize)};
|
|
375
|
+
--ft-chip-internal-vertical-padding: ${pe.verticalPadding};
|
|
376
|
+
--ft-chip-internal-horizontal-padding: ${pe.horizontalPadding};
|
|
376
377
|
--ft-chip-internal-icon-padding: 3px;
|
|
377
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
378
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${pe.iconSize});
|
|
378
379
|
|
|
379
|
-
border: 1px solid ${
|
|
380
|
-
color: ${
|
|
381
|
-
${ht(
|
|
380
|
+
border: 1px solid ${pe.colorOutline};
|
|
381
|
+
color: ${pe.color};
|
|
382
|
+
${ht(kt.color,pe.rippleColor)};
|
|
382
383
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
383
384
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
384
|
-
background-color: ${
|
|
385
|
+
background-color: ${pe.backgroundColor};
|
|
385
386
|
line-height: var(--ft-chip-internal-content-height);
|
|
386
387
|
}
|
|
387
388
|
|
|
@@ -391,8 +392,8 @@ class te extends bt{constructor(t){if(super(t),this.it=W,t.type!==vt)throw Error
|
|
|
391
392
|
|
|
392
393
|
.ft-chip--dense {
|
|
393
394
|
--ft-chip-internal-icon-padding: 3px;
|
|
394
|
-
--ft-chip-internal-vertical-padding: ${
|
|
395
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
395
|
+
--ft-chip-internal-vertical-padding: ${ue.verticalPadding};
|
|
396
|
+
--ft-chip-internal-horizontal-padding: ${ue.horizontalPadding};
|
|
396
397
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
397
398
|
}
|
|
398
399
|
|
|
@@ -404,15 +405,15 @@ class te extends bt{constructor(t){if(super(t),this.it=W,t.type!==vt)throw Error
|
|
|
404
405
|
cursor: default;
|
|
405
406
|
pointer-events: none;
|
|
406
407
|
filter: grayscale(1);
|
|
407
|
-
opacity: ${
|
|
408
|
+
opacity: ${pe.opacityDisabled};
|
|
408
409
|
}
|
|
409
410
|
|
|
410
411
|
.ft-chip--highlighted {
|
|
411
412
|
border: none;
|
|
412
413
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
413
|
-
background-color: ${
|
|
414
|
-
${ht(
|
|
415
|
-
color: ${
|
|
414
|
+
background-color: ${de.backgroundColor};
|
|
415
|
+
${ht(kt.color,de.rippleColor)};
|
|
416
|
+
color: ${de.color};
|
|
416
417
|
}
|
|
417
418
|
|
|
418
419
|
.ft-chip--clickable {
|
|
@@ -445,8 +446,8 @@ class te extends bt{constructor(t){if(super(t),this.it=W,t.type!==vt)throw Error
|
|
|
445
446
|
vertical-align: bottom;
|
|
446
447
|
display: block;
|
|
447
448
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
448
|
-
${ht(
|
|
449
|
-
${ht(
|
|
449
|
+
${ht(mi.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
450
|
+
${ht(mi.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
450
451
|
}
|
|
451
452
|
|
|
452
453
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -481,8 +482,8 @@ class te extends bt{constructor(t){if(super(t),this.it=W,t.type!==vt)throw Error
|
|
|
481
482
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
|
|
482
483
|
order: -1;
|
|
483
484
|
}
|
|
484
|
-
`]}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":
|
|
485
|
-
<div class="${
|
|
485
|
+
`]}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":xt};return D`
|
|
486
|
+
<div class="${$t(t)}"
|
|
486
487
|
aria-label="${this.getLabel()}"
|
|
487
488
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
488
489
|
@keyup=${this.onKeyUp}>
|
|
@@ -500,4 +501,4 @@ class te extends bt{constructor(t){if(super(t),this.it=W,t.type!==vt)throw Error
|
|
|
500
501
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
501
502
|
<ft-icon variant="material">${this.internalIcon}</ft-icon>
|
|
502
503
|
</div>
|
|
503
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
504
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ye))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ye))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}ge.elementDefinitions={"ft-ripple":Ut,"ft-typography":te,"ft-icon":le},he([o({type:Boolean})],ge.prototype,"highlighted",void 0),he([o({type:Boolean})],ge.prototype,"removable",void 0),he([o({type:Boolean})],ge.prototype,"disabled",void 0),he([o({type:Boolean})],ge.prototype,"clickable",void 0),he([o({type:Boolean})],ge.prototype,"iconClickable",void 0),he([o({type:Boolean})],ge.prototype,"dense",void 0),he([o({type:Boolean})],ge.prototype,"multiLine",void 0),he([o({type:String})],ge.prototype,"label",void 0),he([o({type:String})],ge.prototype,"icon",void 0),he([o({type:Boolean})],ge.prototype,"trailingIcon",void 0),he([r("ft-typography slot")],ge.prototype,"slottedContent",void 0),a("ft-chip")(ge),t.FtChip=ge,t.FtChipCssVariables=pe,t.FtChipDenseCssVariables=ue,t.FtChipHighlightedCssVariables=de,t.IconClickEvent=ye,Object.defineProperty(t,"t",{value:!0})}({});
|