@fluid-topics/ft-tooltip 0.3.71 → 1.0.0-alpha.0
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-tooltip.css.d.ts +0 -1
- package/build/ft-tooltip.css.js +0 -1
- package/build/ft-tooltip.d.ts +0 -1
- package/build/ft-tooltip.js +2 -2
- package/build/ft-tooltip.light.js +84 -84
- package/build/ft-tooltip.min.js +91 -101
- package/build/ft-tooltip.properties.d.ts +1 -2
- package/build/ft-tooltip.properties.js +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/package.json +5 -5
package/build/ft-tooltip.css.js
CHANGED
package/build/ft-tooltip.d.ts
CHANGED
package/build/ft-tooltip.js
CHANGED
|
@@ -9,7 +9,7 @@ import { property, query, queryAssignedNodes, state } from "lit/decorators.js";
|
|
|
9
9
|
import { Debouncer, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
10
10
|
import { FtTypography } from "@fluid-topics/ft-typography";
|
|
11
11
|
import { FtTooltipCssVariables, styles } from "./ft-tooltip.css";
|
|
12
|
-
|
|
12
|
+
class FtTooltip extends FtLitElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
15
|
this.text = "";
|
|
@@ -203,4 +203,4 @@ __decorate([
|
|
|
203
203
|
__decorate([
|
|
204
204
|
state()
|
|
205
205
|
], FtTooltip.prototype, "visible", void 0);
|
|
206
|
-
|
|
206
|
+
export { FtTooltip };
|
|
@@ -4,115 +4,115 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var s;const n=window,r=n.trustedTypes,h=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,l=`lit$${(Math.random()+"").slice(9)}$`,
|
|
7
|
+
var s;const n=window,r=n.trustedTypes,h=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,l="$lit$",a=`lit$${(Math.random()+"").slice(9)}$`,p="?"+a,f=`<${p}>`,y=document,g=()=>y.createComment(""),c=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,u="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,b=/>/g,m=RegExp(`>|${u}(?:([^\\s"'>=/]+)(${u}*=${u}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x=/'/g,w=/"/g,z=/^(?:script|style|textarea|title)$/i,k=(t=>(i,...o)=>({_$litType$:t,strings:i,values:o}))(1),A=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),_=new WeakMap,S=y.createTreeWalker(y,129,null,!1),E=(t,i)=>{const o=t.length-1,e=[];let s,n=2===i?"<svg>":"",r=v;for(let i=0;i<o;i++){const o=t[i];let h,p,y=-1,g=0;for(;g<o.length&&(r.lastIndex=g,p=r.exec(o),null!==p);)g=r.lastIndex,r===v?"!--"===p[1]?r=$:void 0!==p[1]?r=b:void 0!==p[2]?(z.test(p[2])&&(s=RegExp("</"+p[2],"g")),r=m):void 0!==p[3]&&(r=m):r===m?">"===p[0]?(r=null!=s?s:v,y=-1):void 0===p[1]?y=-2:(y=r.lastIndex-p[2].length,h=p[1],r=void 0===p[3]?m:'"'===p[3]?w:x):r===w||r===x?r=m:r===$||r===b?r=v:(r=m,s=void 0);const c=r===m&&t[i+1].startsWith("/>")?" ":"";n+=r===v?o+f:y>=0?(e.push(h),o.slice(0,y)+l+o.slice(y)+a+c):o+a+(-2===y?(e.push(void 0),i):c)}const p=n+(t[o]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==h?h.createHTML(p):p,e]};class O{constructor({strings:t,_$litType$:i},o){let e;this.parts=[];let s=0,n=0;const h=t.length-1,f=this.parts,[y,c]=E(t,i);if(this.el=O.createElement(y,o),S.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=S.nextNode())&&f.length<h;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith(l)||i.startsWith(a)){const o=c[n++];if(t.push(i),void 0!==o){const t=e.getAttribute(o.toLowerCase()+l).split(a),i=/([.?@])?(.*)/.exec(o);f.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?R:"?"===i[1]?F:"@"===i[1]?M:j})}else f.push({type:6,index:s})}for(const i of t)e.removeAttribute(i)}if(z.test(e.tagName)){const t=e.textContent.split(a),i=t.length-1;if(i>0){e.textContent=r?r.emptyScript:"";for(let o=0;o<i;o++)e.append(t[o],g()),S.nextNode(),f.push({type:2,index:++s});e.append(t[i],g())}}}else if(8===e.nodeType)if(e.data===p)f.push({type:2,index:s});else{let t=-1;for(;-1!==(t=e.data.indexOf(a,t+1));)f.push({type:7,index:s}),t+=a.length-1}s++}}static createElement(t,i){const o=y.createElement("template");return o.innerHTML=t,o}}function T(t,i,o=t,e){var s,n,r,h;if(i===A)return i;let l=void 0!==e?null===(s=o._$Co)||void 0===s?void 0:s[e]:o._$Cl;const a=c(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==a&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===a?l=void 0:(l=new a(t),l._$AT(t,o,e)),void 0!==e?(null!==(r=(h=o)._$Co)&&void 0!==r?r:h._$Co=[])[e]=l:o._$Cl=l),void 0!==l&&(i=T(t,l._$AS(t,i.values),l,e)),i}class C{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:o},parts:e}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:y).importNode(o,!0);S.currentNode=s;let n=S.nextNode(),r=0,h=0,l=e[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new I(n,n.nextSibling,this,t):1===l.type?i=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(i=new Z(n,this,t)),this._$AV.push(i),l=e[++h]}r!==(null==l?void 0:l.index)&&(n=S.nextNode(),r++)}return s}v(t){let i=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}}class I{constructor(t,i,o,e){var s;this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=e,this._$Cp=null===(s=null==e?void 0:e.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=T(this,t,i),c(t)?t===N||null==t||""===t?(this._$AH!==N&&this._$AR(),this._$AH=N):t!==this._$AH&&t!==A&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>d(t)||"function"==typeof(null==t?void 0: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!==N&&c(this._$AH)?this._$AA.nextSibling.data=t:this.$(y.createTextNode(t)),this._$AH=t}g(t){var i;const{values:o,_$litType$:e}=t,s="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=O.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(o);else{const t=new C(s,this),i=t.u(this.options);t.v(o),this.$(i),this._$AH=t}}_$AC(t){let i=_.get(t.strings);return void 0===i&&_.set(t.strings,i=new O(t)),i}T(t){d(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,e=0;for(const s of t)e===i.length?i.push(o=new I(this.k(g()),this.k(g()),this,this.options)):o=i[e],o._$AI(s),e++;e<i.length&&(this._$AR(o&&o._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var o;for(null===(o=this._$AP)||void 0===o||o.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._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class j{constructor(t,i,o,e,s){this.type=1,this._$AH=N,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=s,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=N}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,o,e){const s=this.strings;let n=!1;if(void 0===s)t=T(this,t,i,0),n=!c(t)||t!==this._$AH&&t!==A,n&&(this._$AH=t);else{const e=t;let r,h;for(t=s[0],r=0;r<s.length-1;r++)h=T(this,e[o+r],i,r),h===A&&(h=this._$AH[r]),n||(n=!c(h)||h!==this._$AH[r]),h===N?t=N:t!==N&&(t+=(null!=h?h:"")+s[r+1]),this._$AH[r]=h}n&&!e&&this.j(t)}j(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class R extends j{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===N?void 0:t}}const U=r?r.emptyScript:"";class F extends j{constructor(){super(...arguments),this.type=4}j(t){t&&t!==N?this.element.setAttribute(this.name,U):this.element.removeAttribute(this.name)}}class M extends j{constructor(t,i,o,e,s){super(t,i,o,e,s),this.type=5}_$AI(t,i=this){var o;if((t=null!==(o=T(this,t,i,0))&&void 0!==o?o:N)===A)return;const e=this._$AH,s=t===N&&e!==N||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==N&&(e===N||s);s&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}}const W=n.litHtmlPolyfillSupport;null==W||W(O,I),(null!==(s=n.litHtmlVersions)&&void 0!==s?s:n.litHtmlVersions=[]).push("2.7.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const B=Symbol.for(""),G=t=>{if((null==t?void 0:t.r)===B)return null==t?void 0:t._$litStatic$},H=t=>({_$litStatic$:t,r:B}),L=new Map,K=(t=>(i,...o)=>{const e=o.length;let s,n;const r=[],h=[];let l,a=0,p=!1;for(;a<e;){for(l=i[a];a<e&&void 0!==(n=o[a],s=G(n));)l+=s+i[++a],p=!0;a!==e&&h.push(n),r.push(l),a++}if(a===e&&r.push(i[e]),p){const t=r.join("$$lit$$");void 0===(i=L.get(t))&&(r.raw=r,L.set(t,i=r)),o=h}return t(i,...o)})(k);var D;!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"}(D||(D={}));const P=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),q=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),J={fontFamily:q,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},Q=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",P),V=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",J.fontSize,"20px"),X=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",J.fontWeight,"normal"),Y=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",J.letterSpacing,"0.15px"),tt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",J.lineHeight,"1.2"),it=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",J.textTransform,"inherit"),ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",P),et=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",J.fontSize,"14px"),st=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",J.fontWeight,"normal"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",J.letterSpacing,"0.105px"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",J.lineHeight,"1.7"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",J.textTransform,"inherit"),lt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",q),at=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",J.fontSize,"16px"),pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",J.fontWeight,"600"),ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",J.letterSpacing,"0.144px"),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",J.lineHeight,"1.5"),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",J.textTransform,"inherit"),ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",q),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",J.fontSize,"14px"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",J.fontWeight,"normal"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",J.letterSpacing,"0.098px"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",J.lineHeight,"1.7"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",J.textTransform,"inherit"),mt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",q),xt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",J.fontSize,"16px"),wt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",J.fontWeight,"normal"),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",J.letterSpacing,"0.496px"),kt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",J.lineHeight,"1.5"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",J.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",q),_t=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",J.fontSize,"14px"),St=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",J.fontWeight,"normal"),Et=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",J.letterSpacing,"0.252px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",J.lineHeight,"1.4"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",J.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",q),It=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",J.fontSize,"12px"),jt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",J.fontWeight,"normal"),Rt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",J.letterSpacing,"0.396px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",J.lineHeight,"1.33"),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",J.textTransform,"inherit"),Mt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",q),Zt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",J.fontSize,"10px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",J.fontWeight,"normal"),Bt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",J.letterSpacing,"0.33px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",J.lineHeight,"1.6"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",J.textTransform,"inherit"),Lt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",q),Kt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",J.fontSize,"10px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",J.fontWeight,"normal"),Pt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",J.letterSpacing,"1.5px"),qt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",J.lineHeight,"1.6"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",J.textTransform,"uppercase"),Qt=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",q),Vt=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",J.fontSize,"14px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",J.fontWeight,"600"),Yt=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",J.letterSpacing,"1.246px"),ti=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",J.lineHeight,"1.15"),ii=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",J.textTransform,"uppercase"),oi=o.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
|
-
font-family: ${
|
|
16
|
-
font-size: ${
|
|
17
|
-
font-weight: ${
|
|
18
|
-
letter-spacing: ${
|
|
19
|
-
line-height: ${
|
|
20
|
-
text-transform: ${
|
|
15
|
+
font-family: ${Q};
|
|
16
|
+
font-size: ${V};
|
|
17
|
+
font-weight: ${X};
|
|
18
|
+
letter-spacing: ${Y};
|
|
19
|
+
line-height: ${tt};
|
|
20
|
+
text-transform: ${it};
|
|
21
21
|
}
|
|
22
|
-
`,
|
|
22
|
+
`,ei=o.css`
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
|
-
font-family: ${
|
|
25
|
-
font-size: ${
|
|
26
|
-
font-weight: ${
|
|
27
|
-
letter-spacing: ${
|
|
28
|
-
line-height: ${
|
|
29
|
-
text-transform: ${
|
|
24
|
+
font-family: ${ot};
|
|
25
|
+
font-size: ${et};
|
|
26
|
+
font-weight: ${st};
|
|
27
|
+
letter-spacing: ${nt};
|
|
28
|
+
line-height: ${rt};
|
|
29
|
+
text-transform: ${ht};
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,si=o.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
|
-
font-family: ${
|
|
34
|
-
font-size: ${
|
|
35
|
-
font-weight: ${
|
|
36
|
-
letter-spacing: ${
|
|
37
|
-
line-height: ${
|
|
38
|
-
text-transform: ${
|
|
33
|
+
font-family: ${lt};
|
|
34
|
+
font-size: ${at};
|
|
35
|
+
font-weight: ${pt};
|
|
36
|
+
letter-spacing: ${ft};
|
|
37
|
+
line-height: ${yt};
|
|
38
|
+
text-transform: ${gt};
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,ni=o.css`
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
|
-
font-family: ${
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
47
|
-
text-transform: ${
|
|
42
|
+
font-family: ${ct};
|
|
43
|
+
font-size: ${dt};
|
|
44
|
+
font-weight: ${ut};
|
|
45
|
+
letter-spacing: ${vt};
|
|
46
|
+
line-height: ${$t};
|
|
47
|
+
text-transform: ${bt};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
`,
|
|
50
|
+
`,ri=o.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
|
-
font-family: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
font-weight: ${
|
|
55
|
-
letter-spacing: ${
|
|
56
|
-
line-height: ${
|
|
57
|
-
text-transform: ${
|
|
52
|
+
font-family: ${mt};
|
|
53
|
+
font-size: ${xt};
|
|
54
|
+
font-weight: ${wt};
|
|
55
|
+
letter-spacing: ${zt};
|
|
56
|
+
line-height: ${kt};
|
|
57
|
+
text-transform: ${At};
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,hi=o.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
61
|
-
font-family: ${
|
|
62
|
-
font-size: ${
|
|
63
|
-
font-weight: ${
|
|
64
|
-
letter-spacing: ${
|
|
65
|
-
line-height: ${
|
|
66
|
-
text-transform: ${
|
|
61
|
+
font-family: ${Nt};
|
|
62
|
+
font-size: ${_t};
|
|
63
|
+
font-weight: ${St};
|
|
64
|
+
letter-spacing: ${Et};
|
|
65
|
+
line-height: ${Ot};
|
|
66
|
+
text-transform: ${Tt};
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,li=o.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
|
-
font-family: ${
|
|
71
|
-
font-size: ${
|
|
70
|
+
font-family: ${Ct};
|
|
71
|
+
font-size: ${It};
|
|
72
72
|
font-weight: ${jt};
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
73
|
+
letter-spacing: ${Rt};
|
|
74
|
+
line-height: ${Ut};
|
|
75
|
+
text-transform: ${Ft};
|
|
76
76
|
}
|
|
77
|
-
`,
|
|
77
|
+
`,ai=o.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
83
|
-
line-height: ${
|
|
84
|
-
text-transform: ${
|
|
79
|
+
font-family: ${Mt};
|
|
80
|
+
font-size: ${Zt};
|
|
81
|
+
font-weight: ${Wt};
|
|
82
|
+
letter-spacing: ${Bt};
|
|
83
|
+
line-height: ${Gt};
|
|
84
|
+
text-transform: ${Ht};
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,pi=o.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
89
|
-
font-size: ${
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
92
|
-
line-height: ${
|
|
93
|
-
text-transform: ${
|
|
88
|
+
font-family: ${Lt};
|
|
89
|
+
font-size: ${Kt};
|
|
90
|
+
font-weight: ${Dt};
|
|
91
|
+
letter-spacing: ${Pt};
|
|
92
|
+
line-height: ${qt};
|
|
93
|
+
text-transform: ${Jt};
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`,fi=o.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
|
-
font-family: ${
|
|
98
|
-
font-size: ${
|
|
99
|
-
font-weight: ${
|
|
100
|
-
letter-spacing: ${
|
|
101
|
-
line-height: ${
|
|
102
|
-
text-transform: ${
|
|
97
|
+
font-family: ${Qt};
|
|
98
|
+
font-size: ${Vt};
|
|
99
|
+
font-weight: ${Xt};
|
|
100
|
+
letter-spacing: ${Yt};
|
|
101
|
+
line-height: ${ti};
|
|
102
|
+
text-transform: ${ii};
|
|
103
103
|
}
|
|
104
|
-
`,
|
|
104
|
+
`,yi=o.css`
|
|
105
105
|
.ft-typography {
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
|
-
`;var
|
|
109
|
-
<${
|
|
108
|
+
`;var gi=function(t,i,o,e){for(var s,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,h=t.length-1;h>=0;h--)(s=t[h])&&(r=(n<3?s(r):n>3?s(i,o,r):s(i,o))||r);return n>3&&r&&Object.defineProperty(i,o,r),r};class ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=D.body1}render(){return this.element?K`
|
|
109
|
+
<${H(this.element)}
|
|
110
110
|
class="ft-typography ft-typography--${this.variant}">
|
|
111
111
|
<slot></slot>
|
|
112
|
-
</${
|
|
113
|
-
`:
|
|
112
|
+
</${H(this.element)}>
|
|
113
|
+
`:K`
|
|
114
114
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
115
|
-
`}}
|
|
115
|
+
`}}ci.styles=[oi,ei,si,ni,ri,hi,li,ai,pi,fi,yi],gi([e.property()],ci.prototype,"element",void 0),gi([e.property()],ci.prototype,"variant",void 0),i.customElement("ft-typography")(ci);const di={distance:i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),color:i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),maxWidth:i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px")},ui=o.css`
|
|
116
116
|
.ft-tooltip--container {
|
|
117
117
|
display: block;
|
|
118
118
|
position: relative;
|
|
@@ -128,23 +128,23 @@ const Z=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===Z)return null==t?void 0:t
|
|
|
128
128
|
box-sizing: border-box;
|
|
129
129
|
overflow: hidden;
|
|
130
130
|
width: max-content;
|
|
131
|
-
max-width: ${
|
|
131
|
+
max-width: ${di.maxWidth};
|
|
132
132
|
text-align: center;
|
|
133
|
-
padding: ${
|
|
134
|
-
z-index: ${
|
|
133
|
+
padding: ${di.distance};
|
|
134
|
+
z-index: ${di.zIndex};
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.ft-tooltip--content {
|
|
138
138
|
padding: 4px 8px;
|
|
139
|
-
border-radius: ${
|
|
140
|
-
background-color: ${
|
|
141
|
-
color: ${
|
|
139
|
+
border-radius: ${di.borderRadiusS};
|
|
140
|
+
background-color: ${di.backgroundColor};
|
|
141
|
+
color: ${di.color};
|
|
142
142
|
top: -500px;
|
|
143
143
|
left: -500px;
|
|
144
144
|
position: relative;
|
|
145
145
|
word-break: break-word;
|
|
146
146
|
}
|
|
147
|
-
`;var
|
|
147
|
+
`;var vi=function(t,i,o,e){for(var s,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,h=t.length-1;h>=0;h--)(s=t[h])&&(r=(n<3?s(r):n>3?s(i,o,r):s(i,o))||r);return n>3&&r&&Object.defineProperty(i,o,r),r};class $i extends i.FtLitElement{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 i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return o.html`
|
|
148
148
|
<div part="container"
|
|
149
149
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
150
150
|
@mouseenter=${this.onHover}
|
|
@@ -162,4 +162,4 @@ const Z=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===Z)return null==t?void 0:t
|
|
|
162
162
|
</div>
|
|
163
163
|
</div>
|
|
164
164
|
</div>
|
|
165
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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 i=t.getBoundingClientRect(),o=(i.height-this.tooltip.clientHeight)/2,e=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=e;break;case"bottom":n=i.height,s=e;break;case"left":n=o,s=-this.tooltip.clientWidth;break;case"right":n=o,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${
|
|
165
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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 i=t.getBoundingClientRect(),o=(i.height-this.tooltip.clientHeight)/2,e=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=e;break;case"bottom":n=i.height,s=e;break;case"left":n=o,s=-this.tooltip.clientWidth;break;case"right":n=o,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${di.maxWidth})`}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())}}$i.elementDefinitions={"ft-typography":ci},$i.styles=ui,vi([e.property()],$i.prototype,"text",void 0),vi([e.property({type:Boolean})],$i.prototype,"manual",void 0),vi([e.property({type:Boolean})],$i.prototype,"inline",void 0),vi([e.property({type:Number})],$i.prototype,"delay",void 0),vi([e.property()],$i.prototype,"position",void 0),vi([e.queryAssignedNodes("",!0)],$i.prototype,"slotNodes",void 0),vi([e.query(".ft-tooltip--container")],$i.prototype,"container",void 0),vi([e.query("slot")],$i.prototype,"target",void 0),vi([e.query(".ft-tooltip")],$i.prototype,"tooltip",void 0),vi([e.query(".ft-tooltip--content")],$i.prototype,"tooltipContent",void 0),vi([e.state()],$i.prototype,"visible",void 0),i.customElement("ft-tooltip")($i),t.FtTooltip=$i,t.FtTooltipCssVariables=di,t.styles=ui}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators);
|
package/build/ft-tooltip.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 u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){
|
|
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 u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){const i=this._definitionsByTag.get(t);return i?.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=v[v.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?d(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(){const t=n.get(this);t?.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)})},u=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):u(e)},d=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){u(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 v=[document];const g=(t,i,e=void 0)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){v.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const b=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){v.push(this),e.set.call(this,t),v.pop()}})};if(b(Element,"innerHTML"),b(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(Ct){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -46,34 +46,24 @@ const n=({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o){const o=null!=
|
|
|
46
46
|
* Copyright 2019 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
const c=window,p=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),u=new WeakMap;
|
|
49
|
+
const c=window,p=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),u=new WeakMap;let d=class{constructor(t,i,e){if(this._$cssResult$=!0,e!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(p&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=u.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&u.set(i,t))}return t}toString(){return this.cssText}};const y=t=>new d("string"==typeof t?t:t+"",void 0,f),v=(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 d(e,t,f)},g=(t,i)=>{p?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=c.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},b=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return y(i)})(t):t
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var m;const x=window,w=x.trustedTypes,$=w?w.emptyScript:"",O=x.reactiveElementPolyfillSupport,S={toAttribute(t,i){switch(i){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},N=(t,i)=>i!==t&&(i==i||t==t),C={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N};
|
|
54
|
+
*/;var m;const x=window,w=x.trustedTypes,$=w?w.emptyScript:"",O=x.reactiveElementPolyfillSupport,S={toAttribute(t,i){switch(i){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},N=(t,i)=>i!==t&&(i==i||t==t),C={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N};let E=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=C){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||C}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(b(t))}else void 0!==t&&i.push(b(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return g(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=C){var o;const n=this.constructor._$Ep(t,e);if(void 0!==n&&!0===e.reflect){const r=(void 0!==(null===(o=e.converter)||void 0===o?void 0:o.toAttribute)?e.converter:S).toAttribute(i,e.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,i){var e;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:S;this._$El=n,this[n]=r.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||N)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:E}),(null!==(m=x.reactiveElementVersions)&&void 0!==m?m:x.reactiveElementVersions=[]).push("1.
|
|
60
|
+
var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:E}),(null!==(m=x.reactiveElementVersions)&&void 0!==m?m:x.reactiveElementVersions=[]).push("1.6.1");const M=window,k=M.trustedTypes,U=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,L="?"+j,A=`<${L}>`,P=document,z=()=>P.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,_="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,H=/>/g,K=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),I=/'/g,Z=/"/g,V=/^(?:script|style|textarea|title)$/i,J=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),q=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),G=new WeakMap,Q=P.createTreeWalker(P,129,null,!1),Y=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=W;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===W?"!--"===l[1]?s=D:void 0!==l[1]?s=H:void 0!==l[2]?(V.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=K):void 0!==l[3]&&(s=K):s===K?">"===l[0]?(s=null!=n?n:W,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?K:'"'===l[3]?Z:I):s===Z||s===I?s=K:s===D||s===H?s=W:(s=K,n=void 0);const p=s===K&&t[i+1].startsWith("/>")?" ":"";r+=s===W?e+A:h>=0?(o.push(a),e.slice(0,h)+F+e.slice(h)+j+p):e+j+(-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!==U?U.createHTML(a):a,o]};class tt{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]=Y(t,i);if(this.el=tt.createElement(l,e),Q.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(F)||i.startsWith(j)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+F).split(j),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?rt:"?"===i[1]?at:"@"===i[1]?lt:nt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(V.test(o.tagName)){const t=o.textContent.split(j),i=t.length-1;if(i>0){o.textContent=k?k.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],z()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[i],z())}}}else if(8===o.nodeType)if(o.data===L)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(j,t+1));)a.push({type:7,index:n}),t+=j.length-1}n++}}static createElement(t,i){const e=P.createElement("template");return e.innerHTML=t,e}}function it(t,i,e=t,o){var n,r,s,a;if(i===q)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=B(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)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=it(t,l._$AS(t,i.values),l,o)),i}class et{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:P).importNode(e,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new ot(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new ht(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class ot{constructor(t,i,e,o){var n;this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=it(this,t,i),B(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=>T(t)||"function"==typeof(null==t?void 0: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&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=tt.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new et(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=G.get(t.strings);return void 0===i&&G.set(t.strings,i=new tt(t)),i}T(t){T(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 ot(this.k(z()),this.k(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._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class nt{constructor(t,i,e,o,n){this.type=1,this._$AH=X,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=X}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=it(this,t,i,0),r=!B(t)||t!==this._$AH&&t!==q,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=it(this,o[e+s],i,s),a===q&&(a=this._$AH[s]),r||(r=!B(a)||a!==this._$AH[s]),a===X?t=X:t!==X&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===X?void 0:t}}const st=k?k.emptyScript:"";class at extends nt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==X?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class lt extends nt{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=it(this,t,i,0))&&void 0!==e?e:X)===q)return;const o=this._$AH,n=t===X&&o!==X||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==X&&(o===X||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 ht{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){it(this,t)}}const ct=M.litHtmlPolyfillSupport;null==ct||ct(tt,ot),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.7.3");
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
var ht,ct;class pt extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((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 it(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._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return V}}pt.finalized=!0,pt._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:pt});const ft=globalThis.litElementPolyfillSupport;null==ft||ft({LitElement:pt}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.2.2");class ut{static create(t,i,e){let o=t=>y(null!=t?t:e),n=v`var(${y(t)}, ${o(e)})`;return n.name=t,n.category=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>v`var(${y(t)}, ${o(i)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>e,n}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),n=v`var(${y(t)}, ${o(e)})`;return n.name=t,n.category=i.category,n.fallbackVariable=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>v`var(${y(t)}, ${o(i)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>e,n}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):y(null!=i?i:t.defaultValue),o=v`var(${y(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>v`var(${y(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}const dt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
67
|
-
/**
|
|
68
|
-
* @license
|
|
69
|
-
* Copyright 2021 Google LLC
|
|
70
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
71
|
-
*/var yt,vt,gt=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 bt 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 g(n,this.constructor.elementStyles),n}}}(pt)){constructor(){super(),this.exportpartsDebouncer=new i(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),Z`
|
|
72
|
-
${t.map((t=>Z`
|
|
73
|
-
<style>${t}</style>
|
|
74
|
-
`))}
|
|
75
|
-
${this.getTemplate()}
|
|
76
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.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.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var 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(", "))}}gt([o()],bt.prototype,"exportpartsPrefix",void 0),gt([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)},hasChanged:(t,i)=>!l(t,i),...null!=i?i:{}})}([])],bt.prototype,"exportpartsPrefixes",void 0),gt([o()],bt.prototype,"customStylesheet",void 0),v`
|
|
66
|
+
var pt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((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 ot(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._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return q}};ut.finalized=!0,ut._$litElement$=!0,null===(pt=globalThis.litElementHydrateSupport)||void 0===pt||pt.call(globalThis,{LitElement:ut});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ut}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.3.2");class yt{static create(t,i,e){let o=t=>y(null!=t?t:e),n=v`var(${y(t)}, ${o(e)})`;return n.name=t,n.category=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>v`var(${y(t)}, ${o(i)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>e,n}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),n=v`var(${y(t)}, ${o(e)})`;return n.name=t,n.category=i.category,n.fallbackVariable=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>v`var(${y(t)}, ${o(i)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>e,n}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):y(null!=i?i:t.defaultValue),o=v`var(${y(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>v`var(${y(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}const vt={colorPrimary:yt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:yt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:yt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:yt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:yt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:yt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:yt.create("--ft-color-error","COLOR","#B00020"),colorOutline:yt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:yt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:yt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:yt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:yt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:yt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:yt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:yt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:yt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:yt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:yt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:yt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:yt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:yt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:yt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:yt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:yt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:yt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:yt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:yt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:yt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:yt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:yt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:yt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:yt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:yt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:yt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:yt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:yt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:yt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:yt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:yt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:yt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:yt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:yt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:yt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:yt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:yt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:yt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:yt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:yt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:yt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:yt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:yt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class gt extends ut{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([i,e])=>t.registry.define(i,e))));const i={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(i);return g(e,t.elementStyles),e}}var bt,mt=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 xt=Symbol("constructorPrototype"),wt=Symbol("constructorName"),$t=Symbol("exportpartsDebouncer");class Ot extends gt{constructor(){super(),this[bt]=new i(5),this[wt]=this.constructor.name,this[xt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[wt]&&Object.setPrototypeOf(this,this[xt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.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[$t].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 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(", "))}}var St,Nt;bt=$t,mt([o()],Ot.prototype,"exportpartsPrefix",void 0),mt([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)},hasChanged:(t,i)=>!l(t,i),...null!=i?i:{}})}([])],Ot.prototype,"exportpartsPrefixes",void 0),mt([o()],Ot.prototype,"customStylesheet",void 0),v`
|
|
77
67
|
.ft-no-text-select {
|
|
78
68
|
-webkit-touch-callout: none;
|
|
79
69
|
-webkit-user-select: none;
|
|
@@ -105,115 +95,115 @@ var ht,ct;class pt extends E{constructor(){super(...arguments),this.renderOption
|
|
|
105
95
|
display: inline-block;
|
|
106
96
|
width: 0;
|
|
107
97
|
}
|
|
108
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
98
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Nt=null===(St=window.safari)||void 0===St?void 0:St.pushNotification)||void 0===Nt||Nt.toString());
|
|
109
99
|
/**
|
|
110
100
|
* @license
|
|
111
101
|
* Copyright 2020 Google LLC
|
|
112
102
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
113
103
|
*/
|
|
114
|
-
const
|
|
104
|
+
const Ct=Symbol.for(""),Et=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void 0:t._$litStatic$},Rt=t=>({_$litStatic$:t,r:Ct}),Mt=new Map,kt=(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=Et(r));)l+=n+i[++h],c=!0;h!==o&&a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),c){const t=s.join("$$lit$$");void 0===(i=Mt.get(t))&&(s.raw=s,Mt.set(t,i=s)),e=a}return t(i,...e)})(J);var Ut;!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"}(Ut||(Ut={}));const Ft=yt.extend("--ft-typography-font-family",vt.titleFont),jt=yt.extend("--ft-typography-font-family",vt.contentFont),Lt={fontFamily:jt,fontSize:yt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:yt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:yt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:yt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:yt.create("--ft-typography-text-transform","UNKNOWN","inherit")},At=yt.extend("--ft-typography-title-font-family",Ft),Pt=yt.extend("--ft-typography-title-font-size",Lt.fontSize,"20px"),zt=yt.extend("--ft-typography-title-font-weight",Lt.fontWeight,"normal"),Bt=yt.extend("--ft-typography-title-letter-spacing",Lt.letterSpacing,"0.15px"),Tt=yt.extend("--ft-typography-title-line-height",Lt.lineHeight,"1.2"),_t=yt.extend("--ft-typography-title-text-transform",Lt.textTransform,"inherit"),Wt=yt.extend("--ft-typography-title-dense-font-family",Ft),Dt=yt.extend("--ft-typography-title-dense-font-size",Lt.fontSize,"14px"),Ht=yt.extend("--ft-typography-title-dense-font-weight",Lt.fontWeight,"normal"),Kt=yt.extend("--ft-typography-title-dense-letter-spacing",Lt.letterSpacing,"0.105px"),It=yt.extend("--ft-typography-title-dense-line-height",Lt.lineHeight,"1.7"),Zt=yt.extend("--ft-typography-title-dense-text-transform",Lt.textTransform,"inherit"),Vt=yt.extend("--ft-typography-subtitle1-font-family",jt),Jt=yt.extend("--ft-typography-subtitle1-font-size",Lt.fontSize,"16px"),qt=yt.extend("--ft-typography-subtitle1-font-weight",Lt.fontWeight,"600"),Xt=yt.extend("--ft-typography-subtitle1-letter-spacing",Lt.letterSpacing,"0.144px"),Gt=yt.extend("--ft-typography-subtitle1-line-height",Lt.lineHeight,"1.5"),Qt=yt.extend("--ft-typography-subtitle1-text-transform",Lt.textTransform,"inherit"),Yt=yt.extend("--ft-typography-subtitle2-font-family",jt),ti=yt.extend("--ft-typography-subtitle2-font-size",Lt.fontSize,"14px"),ii=yt.extend("--ft-typography-subtitle2-font-weight",Lt.fontWeight,"normal"),ei=yt.extend("--ft-typography-subtitle2-letter-spacing",Lt.letterSpacing,"0.098px"),oi=yt.extend("--ft-typography-subtitle2-line-height",Lt.lineHeight,"1.7"),ni=yt.extend("--ft-typography-subtitle2-text-transform",Lt.textTransform,"inherit"),ri=yt.extend("--ft-typography-body1-font-family",jt),si=yt.extend("--ft-typography-body1-font-size",Lt.fontSize,"16px"),ai=yt.extend("--ft-typography-body1-font-weight",Lt.fontWeight,"normal"),li=yt.extend("--ft-typography-body1-letter-spacing",Lt.letterSpacing,"0.496px"),hi=yt.extend("--ft-typography-body1-line-height",Lt.lineHeight,"1.5"),ci=yt.extend("--ft-typography-body1-text-transform",Lt.textTransform,"inherit"),pi=yt.extend("--ft-typography-body2-font-family",jt),fi=yt.extend("--ft-typography-body2-font-size",Lt.fontSize,"14px"),ui=yt.extend("--ft-typography-body2-font-weight",Lt.fontWeight,"normal"),di=yt.extend("--ft-typography-body2-letter-spacing",Lt.letterSpacing,"0.252px"),yi=yt.extend("--ft-typography-body2-line-height",Lt.lineHeight,"1.4"),vi=yt.extend("--ft-typography-body2-text-transform",Lt.textTransform,"inherit"),gi=yt.extend("--ft-typography-caption-font-family",jt),bi=yt.extend("--ft-typography-caption-font-size",Lt.fontSize,"12px"),mi=yt.extend("--ft-typography-caption-font-weight",Lt.fontWeight,"normal"),xi=yt.extend("--ft-typography-caption-letter-spacing",Lt.letterSpacing,"0.396px"),wi=yt.extend("--ft-typography-caption-line-height",Lt.lineHeight,"1.33"),$i=yt.extend("--ft-typography-caption-text-transform",Lt.textTransform,"inherit"),Oi=yt.extend("--ft-typography-breadcrumb-font-family",jt),Si=yt.extend("--ft-typography-breadcrumb-font-size",Lt.fontSize,"10px"),Ni=yt.extend("--ft-typography-breadcrumb-font-weight",Lt.fontWeight,"normal"),Ci=yt.extend("--ft-typography-breadcrumb-letter-spacing",Lt.letterSpacing,"0.33px"),Ei=yt.extend("--ft-typography-breadcrumb-line-height",Lt.lineHeight,"1.6"),Ri=yt.extend("--ft-typography-breadcrumb-text-transform",Lt.textTransform,"inherit"),Mi=yt.extend("--ft-typography-overline-font-family",jt),ki=yt.extend("--ft-typography-overline-font-size",Lt.fontSize,"10px"),Ui=yt.extend("--ft-typography-overline-font-weight",Lt.fontWeight,"normal"),Fi=yt.extend("--ft-typography-overline-letter-spacing",Lt.letterSpacing,"1.5px"),ji=yt.extend("--ft-typography-overline-line-height",Lt.lineHeight,"1.6"),Li=yt.extend("--ft-typography-overline-text-transform",Lt.textTransform,"uppercase"),Ai=yt.extend("--ft-typography-button-font-family",jt),Pi=yt.extend("--ft-typography-button-font-size",Lt.fontSize,"14px"),zi=yt.extend("--ft-typography-button-font-weight",Lt.fontWeight,"600"),Bi=yt.extend("--ft-typography-button-letter-spacing",Lt.letterSpacing,"1.246px"),Ti=yt.extend("--ft-typography-button-line-height",Lt.lineHeight,"1.15"),_i=yt.extend("--ft-typography-button-text-transform",Lt.textTransform,"uppercase"),Wi=v`
|
|
115
105
|
.ft-typography--title {
|
|
116
|
-
font-family: ${Rt};
|
|
117
|
-
font-size: ${Mt};
|
|
118
|
-
font-weight: ${kt};
|
|
119
|
-
letter-spacing: ${Ut};
|
|
120
|
-
line-height: ${Ft};
|
|
121
|
-
text-transform: ${jt};
|
|
122
|
-
}
|
|
123
|
-
`,Li=v`
|
|
124
|
-
.ft-typography--title-dense {
|
|
125
106
|
font-family: ${At};
|
|
126
|
-
font-size: ${
|
|
107
|
+
font-size: ${Pt};
|
|
127
108
|
font-weight: ${zt};
|
|
128
|
-
letter-spacing: ${
|
|
129
|
-
line-height: ${
|
|
130
|
-
text-transform: ${
|
|
109
|
+
letter-spacing: ${Bt};
|
|
110
|
+
line-height: ${Tt};
|
|
111
|
+
text-transform: ${_t};
|
|
112
|
+
}
|
|
113
|
+
`,Di=v`
|
|
114
|
+
.ft-typography--title-dense {
|
|
115
|
+
font-family: ${Wt};
|
|
116
|
+
font-size: ${Dt};
|
|
117
|
+
font-weight: ${Ht};
|
|
118
|
+
letter-spacing: ${Kt};
|
|
119
|
+
line-height: ${It};
|
|
120
|
+
text-transform: ${Zt};
|
|
131
121
|
}
|
|
132
|
-
`,
|
|
122
|
+
`,Hi=v`
|
|
133
123
|
.ft-typography--subtitle1 {
|
|
134
|
-
font-family: ${
|
|
135
|
-
font-size: ${
|
|
136
|
-
font-weight: ${
|
|
137
|
-
letter-spacing: ${
|
|
138
|
-
line-height: ${
|
|
139
|
-
text-transform: ${
|
|
124
|
+
font-family: ${Vt};
|
|
125
|
+
font-size: ${Jt};
|
|
126
|
+
font-weight: ${qt};
|
|
127
|
+
letter-spacing: ${Xt};
|
|
128
|
+
line-height: ${Gt};
|
|
129
|
+
text-transform: ${Qt};
|
|
140
130
|
}
|
|
141
|
-
`,
|
|
131
|
+
`,Ki=v`
|
|
142
132
|
.ft-typography--subtitle2 {
|
|
143
|
-
font-family: ${
|
|
144
|
-
font-size: ${
|
|
145
|
-
font-weight: ${
|
|
146
|
-
letter-spacing: ${
|
|
147
|
-
line-height: ${
|
|
148
|
-
text-transform: ${
|
|
133
|
+
font-family: ${Yt};
|
|
134
|
+
font-size: ${ti};
|
|
135
|
+
font-weight: ${ii};
|
|
136
|
+
letter-spacing: ${ei};
|
|
137
|
+
line-height: ${oi};
|
|
138
|
+
text-transform: ${ni};
|
|
149
139
|
}
|
|
150
140
|
|
|
151
|
-
`,
|
|
141
|
+
`,Ii=v`
|
|
152
142
|
.ft-typography--body1 {
|
|
153
|
-
font-family: ${
|
|
154
|
-
font-size: ${
|
|
155
|
-
font-weight: ${
|
|
156
|
-
letter-spacing: ${
|
|
157
|
-
line-height: ${
|
|
158
|
-
text-transform: ${
|
|
143
|
+
font-family: ${ri};
|
|
144
|
+
font-size: ${si};
|
|
145
|
+
font-weight: ${ai};
|
|
146
|
+
letter-spacing: ${li};
|
|
147
|
+
line-height: ${hi};
|
|
148
|
+
text-transform: ${ci};
|
|
159
149
|
}
|
|
160
|
-
`,
|
|
150
|
+
`,Zi=v`
|
|
161
151
|
.ft-typography--body2 {
|
|
162
|
-
font-family: ${
|
|
163
|
-
font-size: ${
|
|
164
|
-
font-weight: ${
|
|
165
|
-
letter-spacing: ${
|
|
166
|
-
line-height: ${
|
|
167
|
-
text-transform: ${
|
|
152
|
+
font-family: ${pi};
|
|
153
|
+
font-size: ${fi};
|
|
154
|
+
font-weight: ${ui};
|
|
155
|
+
letter-spacing: ${di};
|
|
156
|
+
line-height: ${yi};
|
|
157
|
+
text-transform: ${vi};
|
|
168
158
|
}
|
|
169
|
-
`,
|
|
159
|
+
`,Vi=v`
|
|
170
160
|
.ft-typography--caption {
|
|
171
|
-
font-family: ${
|
|
172
|
-
font-size: ${
|
|
173
|
-
font-weight: ${
|
|
174
|
-
letter-spacing: ${
|
|
175
|
-
line-height: ${
|
|
176
|
-
text-transform: ${
|
|
161
|
+
font-family: ${gi};
|
|
162
|
+
font-size: ${bi};
|
|
163
|
+
font-weight: ${mi};
|
|
164
|
+
letter-spacing: ${xi};
|
|
165
|
+
line-height: ${wi};
|
|
166
|
+
text-transform: ${$i};
|
|
177
167
|
}
|
|
178
|
-
`,
|
|
168
|
+
`,Ji=v`
|
|
179
169
|
.ft-typography--breadcrumb {
|
|
180
|
-
font-family: ${
|
|
181
|
-
font-size: ${
|
|
182
|
-
font-weight: ${
|
|
183
|
-
letter-spacing: ${
|
|
184
|
-
line-height: ${
|
|
185
|
-
text-transform: ${
|
|
170
|
+
font-family: ${Oi};
|
|
171
|
+
font-size: ${Si};
|
|
172
|
+
font-weight: ${Ni};
|
|
173
|
+
letter-spacing: ${Ci};
|
|
174
|
+
line-height: ${Ei};
|
|
175
|
+
text-transform: ${Ri};
|
|
186
176
|
}
|
|
187
|
-
`,
|
|
177
|
+
`,qi=v`
|
|
188
178
|
.ft-typography--overline {
|
|
189
|
-
font-family: ${
|
|
190
|
-
font-size: ${
|
|
191
|
-
font-weight: ${
|
|
192
|
-
letter-spacing: ${
|
|
193
|
-
line-height: ${
|
|
194
|
-
text-transform: ${
|
|
179
|
+
font-family: ${Mi};
|
|
180
|
+
font-size: ${ki};
|
|
181
|
+
font-weight: ${Ui};
|
|
182
|
+
letter-spacing: ${Fi};
|
|
183
|
+
line-height: ${ji};
|
|
184
|
+
text-transform: ${Li};
|
|
195
185
|
}
|
|
196
|
-
`,
|
|
186
|
+
`,Xi=v`
|
|
197
187
|
.ft-typography--button {
|
|
198
|
-
font-family: ${
|
|
199
|
-
font-size: ${
|
|
200
|
-
font-weight: ${
|
|
201
|
-
letter-spacing: ${
|
|
202
|
-
line-height: ${
|
|
203
|
-
text-transform: ${
|
|
188
|
+
font-family: ${Ai};
|
|
189
|
+
font-size: ${Pi};
|
|
190
|
+
font-weight: ${zi};
|
|
191
|
+
letter-spacing: ${Bi};
|
|
192
|
+
line-height: ${Ti};
|
|
193
|
+
text-transform: ${_i};
|
|
204
194
|
}
|
|
205
|
-
`,
|
|
195
|
+
`,Gi=v`
|
|
206
196
|
.ft-typography {
|
|
207
197
|
vertical-align: inherit;
|
|
208
198
|
}
|
|
209
|
-
`;var
|
|
210
|
-
<${
|
|
199
|
+
`;var Qi=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 Yi extends Ot{constructor(){super(...arguments),this.variant=Ut.body1}render(){return this.element?kt`
|
|
200
|
+
<${Rt(this.element)}
|
|
211
201
|
class="ft-typography ft-typography--${this.variant}">
|
|
212
202
|
<slot></slot>
|
|
213
|
-
</${
|
|
214
|
-
`:
|
|
203
|
+
</${Rt(this.element)}>
|
|
204
|
+
`:kt`
|
|
215
205
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
216
|
-
`}}
|
|
206
|
+
`}}Yi.styles=[Wi,Di,Hi,Ki,Ii,Zi,Vi,Ji,qi,Xi,Gi],Qi([o()],Yi.prototype,"element",void 0),Qi([o()],Yi.prototype,"variant",void 0),h("ft-typography")(Yi);const te={distance:yt.create("--ft-tooltip-distance","SIZE","4px"),color:yt.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:yt.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:yt.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:yt.external(vt.borderRadiusS,"Design system"),maxWidth:yt.create("--ft-tooltip-max-width","SIZE","150px")},ie=v`
|
|
217
207
|
.ft-tooltip--container {
|
|
218
208
|
display: block;
|
|
219
209
|
position: relative;
|
|
@@ -229,23 +219,23 @@ const mt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
229
219
|
box-sizing: border-box;
|
|
230
220
|
overflow: hidden;
|
|
231
221
|
width: max-content;
|
|
232
|
-
max-width: ${
|
|
222
|
+
max-width: ${te.maxWidth};
|
|
233
223
|
text-align: center;
|
|
234
|
-
padding: ${
|
|
235
|
-
z-index: ${
|
|
224
|
+
padding: ${te.distance};
|
|
225
|
+
z-index: ${te.zIndex};
|
|
236
226
|
}
|
|
237
227
|
|
|
238
228
|
.ft-tooltip--content {
|
|
239
229
|
padding: 4px 8px;
|
|
240
|
-
border-radius: ${
|
|
241
|
-
background-color: ${
|
|
242
|
-
color: ${
|
|
230
|
+
border-radius: ${te.borderRadiusS};
|
|
231
|
+
background-color: ${te.backgroundColor};
|
|
232
|
+
color: ${te.color};
|
|
243
233
|
top: -500px;
|
|
244
234
|
left: -500px;
|
|
245
235
|
position: relative;
|
|
246
236
|
word-break: break-word;
|
|
247
237
|
}
|
|
248
|
-
`;var
|
|
238
|
+
`;var ee=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 oe extends Ot{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 i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return J`
|
|
249
239
|
<div part="container"
|
|
250
240
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
251
241
|
@mouseenter=${this.onHover}
|
|
@@ -263,10 +253,10 @@ const mt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===mt)return null==t?void
|
|
|
263
253
|
</div>
|
|
264
254
|
</div>
|
|
265
255
|
</div>
|
|
266
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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 i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=i.height,n=o;break;case"left":r=e,n=-this.tooltip.clientWidth;break;case"right":r=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${i.width}px, ${
|
|
256
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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 i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=i.height,n=o;break;case"left":r=e,n=-this.tooltip.clientWidth;break;case"right":r=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${i.width}px, ${te.maxWidth})`}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())}}oe.elementDefinitions={"ft-typography":Yi},oe.styles=ie,ee([o()],oe.prototype,"text",void 0),ee([o({type:Boolean})],oe.prototype,"manual",void 0),ee([o({type:Boolean})],oe.prototype,"inline",void 0),ee([o({type:Number})],oe.prototype,"delay",void 0),ee([o()],oe.prototype,"position",void 0),ee([
|
|
267
257
|
/**
|
|
268
258
|
* @license
|
|
269
259
|
* Copyright 2017 Google LLC
|
|
270
260
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
261
|
*/
|
|
272
|
-
function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?a(r,t):[];return e?s.filter((t=>t.matches(e))):s},enumerable:!0,configurable:!0})})}({slot:r,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(r?`[name=${r}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],
|
|
262
|
+
function(t,i,e){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?a(r,t):[];return e?s.filter((t=>t.matches(e))):s},enumerable:!0,configurable:!0})})}({slot:r,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(r?`[name=${r}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],oe.prototype,"slotNodes",void 0),ee([r(".ft-tooltip--container")],oe.prototype,"container",void 0),ee([r("slot")],oe.prototype,"target",void 0),ee([r(".ft-tooltip")],oe.prototype,"tooltip",void 0),ee([r(".ft-tooltip--content")],oe.prototype,"tooltipContent",void 0),ee([function(t){return o({...t,state:!0})}()],oe.prototype,"visible",void 0),h("ft-tooltip")(oe),t.FtTooltip=oe,t.FtTooltipCssVariables=te,t.styles=ie}({});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Position = "top" | "bottom" | "left" | "right";
|
|
2
2
|
export interface FtTooltipProperties {
|
|
3
3
|
text: string;
|
|
4
4
|
inline: boolean;
|
|
@@ -6,4 +6,3 @@ export interface FtTooltipProperties {
|
|
|
6
6
|
delay: number;
|
|
7
7
|
position: Position;
|
|
8
8
|
}
|
|
9
|
-
//# sourceMappingURL=ft-tooltip.properties.d.ts.map
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-tooltip",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.0",
|
|
4
4
|
"description": "A simple tooltip component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-typography": "0.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "0.
|
|
24
|
-
"lit": "2.2
|
|
22
|
+
"@fluid-topics/ft-typography": "1.0.0-alpha.0",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.0.0-alpha.0",
|
|
24
|
+
"lit": "2.7.2"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "e20baae36b79d721b948090d552affaf92c4f12f"
|
|
27
27
|
}
|