@fluid-topics/ft-card 1.0.0-alpha.1 → 1.0.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-card.css.js +11 -1
- package/build/ft-card.d.ts +1 -0
- package/build/ft-card.js +5 -0
- package/build/ft-card.light.js +114 -104
- package/build/ft-card.min.js +122 -112
- package/build/ft-card.properties.d.ts +4 -3
- package/package.json +5 -5
package/build/ft-card.css.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { css, } from "lit";
|
|
2
|
-
import { designSystemVariables, FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
|
|
2
|
+
import { designSystemVariables, FtCssVariableFactory, setVariable } from "@fluid-topics/ft-wc-utils";
|
|
3
|
+
import { FtRippleCssVariables } from "@fluid-topics/ft-ripple/build/ft-ripple.css";
|
|
3
4
|
export const FtCardCssVariables = {
|
|
4
5
|
padding: FtCssVariableFactory.create("--ft-card-padding", "SIZE", "12px"),
|
|
5
6
|
colorPrimary: FtCssVariableFactory.external(designSystemVariables.colorPrimary, "Design system"),
|
|
@@ -19,6 +20,7 @@ export const styles = css `
|
|
|
19
20
|
#container {
|
|
20
21
|
padding: ${FtCardCssVariables.padding};
|
|
21
22
|
border-radius: ${FtCardCssVariables.borderRadiusM};
|
|
23
|
+
${setVariable(FtRippleCssVariables.borderRadius, FtCardCssVariables.borderRadiusM)};
|
|
22
24
|
box-shadow: ${FtCardCssVariables.elevation02};
|
|
23
25
|
position: relative;
|
|
24
26
|
width: 100%;
|
|
@@ -35,6 +37,14 @@ export const styles = css `
|
|
|
35
37
|
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
36
38
|
}
|
|
37
39
|
|
|
40
|
+
#container.no-header {
|
|
41
|
+
grid-template: "content";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
#container.no-header #header, #container.no-header #action {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
38
48
|
#container.selected {
|
|
39
49
|
outline: solid 2px ${FtCardCssVariables.colorPrimary};
|
|
40
50
|
box-shadow: ${FtCardCssVariables.elevation04};
|
package/build/ft-card.d.ts
CHANGED
package/build/ft-card.js
CHANGED
|
@@ -17,11 +17,13 @@ class FtCard extends FtLitElement {
|
|
|
17
17
|
this.title = "";
|
|
18
18
|
this.clickable = false;
|
|
19
19
|
this.selected = false;
|
|
20
|
+
this.noHeader = false;
|
|
20
21
|
}
|
|
21
22
|
render() {
|
|
22
23
|
const classes = {
|
|
23
24
|
selected: this.selected,
|
|
24
25
|
clickable: this.clickable,
|
|
26
|
+
"no-header": this.noHeader,
|
|
25
27
|
};
|
|
26
28
|
return html `
|
|
27
29
|
<div id="container" part="container" class=${classMap(classes)}>
|
|
@@ -56,4 +58,7 @@ __decorate([
|
|
|
56
58
|
__decorate([
|
|
57
59
|
property({ type: Boolean })
|
|
58
60
|
], FtCard.prototype, "selected", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
property({ type: Boolean })
|
|
63
|
+
], FtCard.prototype, "noHeader", void 0);
|
|
59
64
|
export { FtCard };
|
package/build/ft-card.light.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,i,e,o,
|
|
1
|
+
!function(t,i,e,o,r){const s=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),n={color:s,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",s),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),l=p,h=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),a=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),f=a,d=i.FtCssVariableFactory.extend("--ft-ripple-background-color",a),c=e.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
13
13
|
overflow: hidden;
|
|
14
|
+
border-radius: ${n.borderRadius};
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.ft-ripple .ft-ripple--background,
|
|
@@ -20,27 +21,27 @@
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.ft-ripple .ft-ripple--background {
|
|
23
|
-
background-color: ${
|
|
24
|
+
background-color: ${n.backgroundColor};
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
.ft-ripple .ft-ripple--effect {
|
|
27
|
-
background-color: ${n};
|
|
28
|
+
background-color: ${n.color};
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
31
|
-
background-color: ${
|
|
32
|
+
background-color: ${d};
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
35
|
-
background-color: ${
|
|
36
|
+
background-color: ${f};
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
39
|
-
background-color: ${
|
|
40
|
+
background-color: ${h};
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
43
|
-
background-color: ${
|
|
44
|
+
background-color: ${l};
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
.ft-ripple .ft-ripple--background {
|
|
@@ -72,22 +73,22 @@
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
75
|
-
opacity: ${
|
|
76
|
+
opacity: ${n.opacityContentOnSurfaceHover};
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
79
|
-
opacity: ${
|
|
80
|
+
opacity: ${n.opacityContentOnSurfaceSelected};
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
83
|
-
opacity: ${
|
|
84
|
+
opacity: ${n.opacityContentOnSurfaceFocused};
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
87
|
-
opacity: ${
|
|
88
|
+
opacity: ${n.opacityContentOnSurfacePressed};
|
|
88
89
|
transform: translate(-50%, -50%) scale(1);
|
|
89
90
|
}
|
|
90
|
-
`;var
|
|
91
|
+
`;var y,g=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,p=t.length-1;p>=0;p--)(r=t[p])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};class u extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:r}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
91
92
|
<style>
|
|
92
93
|
.ft-ripple .ft-ripple--effect,
|
|
93
94
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -100,127 +101,128 @@
|
|
|
100
101
|
top: ${this.originY}px;
|
|
101
102
|
}
|
|
102
103
|
</style>
|
|
103
|
-
<div class="${
|
|
104
|
+
<div class="${r.classMap(t)}">
|
|
104
105
|
<div class="ft-ripple--background"></div>
|
|
105
106
|
<div class="ft-ripple--effect"></div>
|
|
106
107
|
</div>
|
|
107
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}x.elementDefinitions={},x.styles=b,$([o.property({type:Boolean})],x.prototype,"primary",void 0),$([o.property({type:Boolean})],x.prototype,"secondary",void 0),$([o.property({type:Boolean})],x.prototype,"unbounded",void 0),$([o.property({type:Boolean})],x.prototype,"activated",void 0),$([o.property({type:Boolean})],x.prototype,"selected",void 0),$([o.property({type:Boolean})],x.prototype,"disabled",void 0),$([o.state()],x.prototype,"hovered",void 0),$([o.state()],x.prototype,"focused",void 0),$([o.state()],x.prototype,"pressed",void 0),$([o.state()],x.prototype,"rippling",void 0),$([o.state()],x.prototype,"rippleSize",void 0),$([o.state()],x.prototype,"originX",void 0),$([o.state()],x.prototype,"originY",void 0),$([o.query(".ft-ripple")],x.prototype,"ripple",void 0),$([o.query(".ft-ripple--effect")],x.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(x);const w=window,k=w.trustedTypes,z=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,A="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,_="?"+S,N=`<${_}>`,D=document,E=()=>D.createComment(""),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,M="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,R=/>/g,C=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),U=/'/g,T=/"/g,Z=/^(?:script|style|textarea|title)$/i,G=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),W=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),F=new WeakMap,K=D.createTreeWalker(D,129,null,!1),L=(t,i)=>{const e=t.length-1,o=[];let s,r=2===i?"<svg>":"",n=B;for(let i=0;i<e;i++){const e=t[i];let p,l,h=-1,a=0;for(;a<e.length&&(n.lastIndex=a,l=n.exec(e),null!==l);)a=n.lastIndex,n===B?"!--"===l[1]?n=I:void 0!==l[1]?n=R:void 0!==l[2]?(Z.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=C):void 0!==l[3]&&(n=C):n===C?">"===l[0]?(n=null!=s?s:B,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,p=l[1],n=void 0===l[3]?C:'"'===l[3]?T:U):n===T||n===U?n=C:n===I||n===R?n=B:(n=C,s=void 0);const f=n===C&&t[i+1].startsWith("/>")?" ":"";r+=n===B?e+N:h>=0?(o.push(p),e.slice(0,h)+A+e.slice(h)+S+f):e+S+(-2===h?(o.push(void 0),i):f)}const p=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(p):p,o]};class P{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,r=0;const n=t.length-1,p=this.parts,[l,h]=L(t,i);if(this.el=P.createElement(l,e),K.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=K.nextNode())&&p.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(A)||i.startsWith(S)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+A).split(S),i=/([.?@])?(.*)/.exec(e);p.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?Q:"?"===i[1]?tt:"@"===i[1]?it:J})}else p.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(Z.test(o.tagName)){const t=o.textContent.split(S),i=t.length-1;if(i>0){o.textContent=k?k.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],E()),K.nextNode(),p.push({type:2,index:++s});o.append(t[i],E())}}}else if(8===o.nodeType)if(o.data===_)p.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)p.push({type:7,index:s}),t+=S.length-1}s++}}static createElement(t,i){const e=D.createElement("template");return e.innerHTML=t,e}}function X(t,i,e=t,o){var s,r,n,p;if(i===W)return i;let l=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=O(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!==(n=(p=e)._$Co)&&void 0!==n?n:p._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=X(t,l._$AS(t,i.values),l,o)),i}class Y{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,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:D).importNode(e,!0);K.currentNode=s;let r=K.nextNode(),n=0,p=0,l=o[0];for(;void 0!==l;){if(n===l.index){let i;2===l.type?i=new q(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new et(r,this,t)),this._$AV.push(i),l=o[++p]}n!==(null==l?void 0:l.index)&&(r=K.nextNode(),n++)}return s}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 q{constructor(t,i,e,o){var s;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(s=null==o?void 0:o.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=X(this,t,i),O(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==W&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>j(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!==H&&O(this._$AH)?this._$AA.nextSibling.data=t:this.$(D.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=P.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(e);else{const t=new Y(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=F.get(t.strings);return void 0===i&&F.set(t.strings,i=new P(t)),i}T(t){j(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new q(this.k(E()),this.k(E()),this,this.options)):e=i[o],e._$AI(s),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 J{constructor(t,i,e,o,s){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let r=!1;if(void 0===s)t=X(this,t,i,0),r=!O(t)||t!==this._$AH&&t!==W,r&&(this._$AH=t);else{const o=t;let n,p;for(t=s[0],n=0;n<s.length-1;n++)p=X(this,o[e+n],i,n),p===W&&(p=this._$AH[n]),r||(r=!O(p)||p!==this._$AH[n]),p===H?t=H:t!==H&&(t+=(null!=p?p:"")+s[n+1]),this._$AH[n]=p}r&&!o&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends J{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}const V=k?k.emptyScript:"";class tt extends J{constructor(){super(...arguments),this.type=4}j(t){t&&t!==H?this.element.setAttribute(this.name,V):this.element.removeAttribute(this.name)}}class it extends J{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=X(this,t,i,0))&&void 0!==e?e:H)===W)return;const o=this._$AH,s=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==H&&(o===H||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const ot=w.litHtmlPolyfillSupport;null==ot||ot(P,q),(null!==(m=w.litHtmlVersions)&&void 0!==m?m:w.litHtmlVersions=[]).push("2.7.3");
|
|
108
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,r;return null!=i.x?({x:o,y:r}=i):null!=e.touches&&(o=e.touches[0].clientX,r=e.touches[0].clientY),{x:o,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}u.elementDefinitions={},u.styles=c,g([o.property({type:Boolean})],u.prototype,"primary",void 0),g([o.property({type:Boolean})],u.prototype,"secondary",void 0),g([o.property({type:Boolean})],u.prototype,"unbounded",void 0),g([o.property({type:Boolean})],u.prototype,"activated",void 0),g([o.property({type:Boolean})],u.prototype,"selected",void 0),g([o.property({type:Boolean})],u.prototype,"disabled",void 0),g([o.state()],u.prototype,"hovered",void 0),g([o.state()],u.prototype,"focused",void 0),g([o.state()],u.prototype,"pressed",void 0),g([o.state()],u.prototype,"rippling",void 0),g([o.state()],u.prototype,"rippleSize",void 0),g([o.state()],u.prototype,"originX",void 0),g([o.state()],u.prototype,"originY",void 0),g([o.query(".ft-ripple")],u.prototype,"ripple",void 0),g([o.query(".ft-ripple--effect")],u.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(u);const v=window,b=v.trustedTypes,m=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,k=`<${w}>`,z=document,S=()=>z.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,_="[ \t\n\f\r]",C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,N=/>/g,D=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,B=/"/g,M=/^(?:script|style|textarea|title)$/i,I=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),R=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),T=new WeakMap,Z=z.createTreeWalker(z,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let r,s=2===i?"<svg>":"",n=C;for(let i=0;i<e;i++){const e=t[i];let p,l,h=-1,a=0;for(;a<e.length&&(n.lastIndex=a,l=n.exec(e),null!==l);)a=n.lastIndex,n===C?"!--"===l[1]?n=E:void 0!==l[1]?n=N:void 0!==l[2]?(M.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=D):void 0!==l[3]&&(n=D):n===D?">"===l[0]?(n=null!=r?r:C,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,p=l[1],n=void 0===l[3]?D:'"'===l[3]?B:j):n===B||n===j?n=D:n===E||n===N?n=C:(n=D,r=void 0);const f=n===D&&t[i+1].startsWith("/>")?" ":"";s+=n===C?e+k:h>=0?(o.push(p),e.slice(0,h)+$+e.slice(h)+x+f):e+x+(-2===h?(o.push(void 0),i):f)}const p=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(p):p,o]};class G{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let r=0,s=0;const n=t.length-1,p=this.parts,[l,h]=H(t,i);if(this.el=G.createElement(l,e),Z.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Z.nextNode())&&p.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith($)||i.startsWith(x)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+$).split(x),i=/([.?@])?(.*)/.exec(e);p.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?L:"?"===i[1]?Y:"@"===i[1]?q:P})}else p.push({type:6,index:r})}for(const i of t)o.removeAttribute(i)}if(M.test(o.tagName)){const t=o.textContent.split(x),i=t.length-1;if(i>0){o.textContent=b?b.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],S()),Z.nextNode(),p.push({type:2,index:++r});o.append(t[i],S())}}}else if(8===o.nodeType)if(o.data===w)p.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(x,t+1));)p.push({type:7,index:r}),t+=x.length-1}r++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function W(t,i,e=t,o){var r,s,n,p;if(i===R)return i;let l=void 0!==o?null===(r=e._$Co)||void 0===r?void 0:r[o]:e._$Cl;const h=A(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(n=(p=e)._$Co)&&void 0!==n?n:p._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=W(t,l._$AS(t,i.values),l,o)),i}class F{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,r=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);Z.currentNode=r;let s=Z.nextNode(),n=0,p=0,l=o[0];for(;void 0!==l;){if(n===l.index){let i;2===l.type?i=new K(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new J(s,this,t)),this._$AV.push(i),l=o[++p]}n!==(null==l?void 0:l.index)&&(s=Z.nextNode(),n++)}return r}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 K{constructor(t,i,e,o){var r;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}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=W(this,t,i),A(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==R&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>O(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!==U&&A(this._$AH)?this._$AA.nextSibling.data=t:this.$(z.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=G.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===r)this._$AH.v(e);else{const t=new F(r,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=T.get(t.strings);return void 0===i&&T.set(t.strings,i=new G(t)),i}T(t){O(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const r of t)o===i.length?i.push(e=new K(this.k(S()),this.k(S()),this,this.options)):e=i[o],e._$AI(r),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 P{constructor(t,i,e,o,r){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const r=this.strings;let s=!1;if(void 0===r)t=W(this,t,i,0),s=!A(t)||t!==this._$AH&&t!==R,s&&(this._$AH=t);else{const o=t;let n,p;for(t=r[0],n=0;n<r.length-1;n++)p=W(this,o[e+n],i,n),p===R&&(p=this._$AH[n]),s||(s=!A(p)||p!==this._$AH[n]),p===U?t=U:t!==U&&(t+=(null!=p?p:"")+r[n+1]),this._$AH[n]=p}s&&!o&&this.j(t)}j(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class L extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===U?void 0:t}}const X=b?b.emptyScript:"";class Y extends P{constructor(){super(...arguments),this.type=4}j(t){t&&t!==U?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class q extends P{constructor(t,i,e,o,r){super(t,i,e,o,r),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=W(this,t,i,0))&&void 0!==e?e:U)===R)return;const o=this._$AH,r=t===U&&o!==U||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==U&&(o===U||r);r&&this.element.removeEventListener(this.name,this,o),s&&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 J{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){W(this,t)}}const Q=v.litHtmlPolyfillSupport;null==Q||Q(G,K),(null!==(y=v.litHtmlVersions)&&void 0!==y?y:v.litHtmlVersions=[]).push("2.7.3");
|
|
108
109
|
/**
|
|
109
110
|
* @license
|
|
110
111
|
* Copyright 2020 Google LLC
|
|
111
112
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
113
|
*/
|
|
113
|
-
const
|
|
114
|
+
const V=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t._$litStatic$},it=t=>({_$litStatic$:t,r:V}),et=new Map,ot=(t=>(i,...e)=>{const o=e.length;let r,s;const n=[],p=[];let l,h=0,a=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],r=tt(s));)l+=r+i[++h],a=!0;h!==o&&p.push(s),n.push(l),h++}if(h===o&&n.push(i[o]),a){const t=n.join("$$lit$$");void 0===(i=et.get(t))&&(n.raw=n,et.set(t,i=n)),e=p}return t(i,...e)})(I);var rt;!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"}(rt||(rt={}));const st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),pt={fontFamily:nt,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")},lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",st),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",pt.fontSize,"20px"),at=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",pt.fontWeight,"normal"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",pt.letterSpacing,"0.15px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",pt.lineHeight,"1.2"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",pt.textTransform,"inherit"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",st),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",pt.fontSize,"14px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",pt.fontWeight,"normal"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",pt.letterSpacing,"0.105px"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",pt.lineHeight,"1.7"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",pt.textTransform,"inherit"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",nt),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",pt.fontSize,"16px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",pt.fontWeight,"600"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",pt.letterSpacing,"0.144px"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",pt.lineHeight,"1.5"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",pt.textTransform,"inherit"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",nt),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",pt.fontSize,"14px"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",pt.fontWeight,"normal"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",pt.letterSpacing,"0.098px"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",pt.lineHeight,"1.7"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",pt.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",nt),jt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",pt.fontSize,"16px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",pt.fontWeight,"normal"),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",pt.letterSpacing,"0.496px"),It=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",pt.lineHeight,"1.5"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",pt.textTransform,"inherit"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",nt),Tt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",pt.fontSize,"14px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",pt.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",pt.letterSpacing,"0.252px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",pt.lineHeight,"1.4"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",pt.textTransform,"inherit"),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",nt),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",pt.fontSize,"12px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",pt.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",pt.letterSpacing,"0.396px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",pt.lineHeight,"1.33"),Yt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",pt.textTransform,"inherit"),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",nt),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",pt.fontSize,"10px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",pt.fontWeight,"normal"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",pt.letterSpacing,"0.33px"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",pt.lineHeight,"1.6"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",pt.textTransform,"inherit"),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",nt),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",pt.fontSize,"10px"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",pt.fontWeight,"normal"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",pt.letterSpacing,"1.5px"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",pt.lineHeight,"1.6"),pi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",pt.textTransform,"uppercase"),li=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",nt),hi=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",pt.fontSize,"14px"),ai=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",pt.fontWeight,"600"),fi=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",pt.letterSpacing,"1.246px"),di=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",pt.lineHeight,"1.15"),ci=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",pt.textTransform,"uppercase"),yi=e.css`
|
|
114
115
|
.ft-typography--title {
|
|
115
|
-
font-family: ${
|
|
116
|
-
font-size: ${
|
|
117
|
-
font-weight: ${
|
|
118
|
-
letter-spacing: ${
|
|
119
|
-
line-height: ${
|
|
120
|
-
text-transform: ${
|
|
121
|
-
}
|
|
122
|
-
|
|
116
|
+
font-family: ${lt};
|
|
117
|
+
font-size: ${ht};
|
|
118
|
+
font-weight: ${at};
|
|
119
|
+
letter-spacing: ${ft};
|
|
120
|
+
line-height: ${dt};
|
|
121
|
+
text-transform: ${ct};
|
|
122
|
+
}
|
|
123
|
+
`,gi=e.css`
|
|
123
124
|
.ft-typography--title-dense {
|
|
124
|
-
font-family: ${
|
|
125
|
-
font-size: ${
|
|
126
|
-
font-weight: ${
|
|
127
|
-
letter-spacing: ${
|
|
128
|
-
line-height: ${
|
|
129
|
-
text-transform: ${
|
|
130
|
-
}
|
|
131
|
-
`,
|
|
125
|
+
font-family: ${yt};
|
|
126
|
+
font-size: ${gt};
|
|
127
|
+
font-weight: ${ut};
|
|
128
|
+
letter-spacing: ${vt};
|
|
129
|
+
line-height: ${bt};
|
|
130
|
+
text-transform: ${mt};
|
|
131
|
+
}
|
|
132
|
+
`,ui=e.css`
|
|
132
133
|
.ft-typography--subtitle1 {
|
|
134
|
+
font-family: ${$t};
|
|
135
|
+
font-size: ${xt};
|
|
136
|
+
font-weight: ${wt};
|
|
137
|
+
letter-spacing: ${kt};
|
|
138
|
+
line-height: ${zt};
|
|
139
|
+
text-transform: ${St};
|
|
140
|
+
}
|
|
141
|
+
`,vi=e.css`
|
|
142
|
+
.ft-typography--subtitle2 {
|
|
133
143
|
font-family: ${At};
|
|
134
|
-
font-size: ${
|
|
144
|
+
font-size: ${Ot};
|
|
135
145
|
font-weight: ${_t};
|
|
136
|
-
letter-spacing: ${
|
|
137
|
-
line-height: ${
|
|
138
|
-
text-transform: ${
|
|
146
|
+
letter-spacing: ${Ct};
|
|
147
|
+
line-height: ${Et};
|
|
148
|
+
text-transform: ${Nt};
|
|
139
149
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
150
|
+
|
|
151
|
+
`,bi=e.css`
|
|
152
|
+
.ft-typography--body1 {
|
|
153
|
+
font-family: ${Dt};
|
|
143
154
|
font-size: ${jt};
|
|
144
|
-
font-weight: ${
|
|
145
|
-
letter-spacing: ${
|
|
155
|
+
font-weight: ${Bt};
|
|
156
|
+
letter-spacing: ${Mt};
|
|
146
157
|
line-height: ${It};
|
|
147
158
|
text-transform: ${Rt};
|
|
148
159
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
font-
|
|
153
|
-
font-
|
|
154
|
-
|
|
155
|
-
letter-spacing: ${Zt};
|
|
160
|
+
`,mi=e.css`
|
|
161
|
+
.ft-typography--body2 {
|
|
162
|
+
font-family: ${Ut};
|
|
163
|
+
font-size: ${Tt};
|
|
164
|
+
font-weight: ${Zt};
|
|
165
|
+
letter-spacing: ${Ht};
|
|
156
166
|
line-height: ${Gt};
|
|
157
167
|
text-transform: ${Wt};
|
|
158
168
|
}
|
|
159
|
-
|
|
160
|
-
.ft-typography--
|
|
161
|
-
font-family: ${
|
|
162
|
-
font-size: ${
|
|
163
|
-
font-weight: ${
|
|
169
|
+
`,$i=e.css`
|
|
170
|
+
.ft-typography--caption {
|
|
171
|
+
font-family: ${Ft};
|
|
172
|
+
font-size: ${Kt};
|
|
173
|
+
font-weight: ${Pt};
|
|
164
174
|
letter-spacing: ${Lt};
|
|
165
|
-
line-height: ${
|
|
166
|
-
text-transform: ${
|
|
175
|
+
line-height: ${Xt};
|
|
176
|
+
text-transform: ${Yt};
|
|
167
177
|
}
|
|
168
|
-
`,
|
|
169
|
-
.ft-typography--caption {
|
|
170
|
-
font-family: ${Yt};
|
|
171
|
-
font-size: ${qt};
|
|
172
|
-
font-weight: ${Jt};
|
|
173
|
-
letter-spacing: ${Qt};
|
|
174
|
-
line-height: ${Vt};
|
|
175
|
-
text-transform: ${ti};
|
|
176
|
-
}
|
|
177
|
-
`,Si=e.css`
|
|
178
|
+
`,xi=e.css`
|
|
178
179
|
.ft-typography--breadcrumb {
|
|
179
|
-
font-family: ${
|
|
180
|
-
font-size: ${
|
|
181
|
-
font-weight: ${
|
|
182
|
-
letter-spacing: ${
|
|
183
|
-
line-height: ${
|
|
184
|
-
text-transform: ${
|
|
180
|
+
font-family: ${qt};
|
|
181
|
+
font-size: ${Jt};
|
|
182
|
+
font-weight: ${Qt};
|
|
183
|
+
letter-spacing: ${Vt};
|
|
184
|
+
line-height: ${ti};
|
|
185
|
+
text-transform: ${ii};
|
|
185
186
|
}
|
|
186
|
-
`,
|
|
187
|
+
`,wi=e.css`
|
|
187
188
|
.ft-typography--overline {
|
|
188
|
-
font-family: ${
|
|
189
|
-
font-size: ${
|
|
190
|
-
font-weight: ${
|
|
191
|
-
letter-spacing: ${
|
|
192
|
-
line-height: ${
|
|
193
|
-
text-transform: ${
|
|
194
|
-
}
|
|
195
|
-
`,
|
|
189
|
+
font-family: ${ei};
|
|
190
|
+
font-size: ${oi};
|
|
191
|
+
font-weight: ${ri};
|
|
192
|
+
letter-spacing: ${si};
|
|
193
|
+
line-height: ${ni};
|
|
194
|
+
text-transform: ${pi};
|
|
195
|
+
}
|
|
196
|
+
`,ki=e.css`
|
|
196
197
|
.ft-typography--button {
|
|
197
|
-
font-family: ${
|
|
198
|
-
font-size: ${
|
|
199
|
-
font-weight: ${
|
|
200
|
-
letter-spacing: ${
|
|
201
|
-
line-height: ${
|
|
202
|
-
text-transform: ${
|
|
203
|
-
}
|
|
204
|
-
`,
|
|
198
|
+
font-family: ${li};
|
|
199
|
+
font-size: ${hi};
|
|
200
|
+
font-weight: ${ai};
|
|
201
|
+
letter-spacing: ${fi};
|
|
202
|
+
line-height: ${di};
|
|
203
|
+
text-transform: ${ci};
|
|
204
|
+
}
|
|
205
|
+
`,zi=e.css`
|
|
205
206
|
.ft-typography {
|
|
206
207
|
vertical-align: inherit;
|
|
207
208
|
}
|
|
208
|
-
`;var
|
|
209
|
-
<${
|
|
209
|
+
`;var Si=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,p=t.length-1;p>=0;p--)(r=t[p])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};class Ai extends i.FtLitElement{constructor(){super(...arguments),this.variant=rt.body1}render(){return this.element?ot`
|
|
210
|
+
<${it(this.element)}
|
|
210
211
|
class="ft-typography ft-typography--${this.variant}">
|
|
211
212
|
<slot></slot>
|
|
212
|
-
</${
|
|
213
|
-
`:
|
|
213
|
+
</${it(this.element)}>
|
|
214
|
+
`:ot`
|
|
214
215
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
215
|
-
`}}
|
|
216
|
+
`}}Ai.styles=[yi,gi,ui,vi,bi,mi,$i,xi,wi,ki,zi],Si([o.property()],Ai.prototype,"element",void 0),Si([o.property()],Ai.prototype,"variant",void 0),i.customElement("ft-typography")(Ai);const Oi={padding:i.FtCssVariableFactory.create("--ft-card-padding","SIZE","12px"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceHigh,"Design system"),borderRadiusM:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusM,"Design system"),elevation02:i.FtCssVariableFactory.external(i.designSystemVariables.elevation02,"Design system"),elevation04:i.FtCssVariableFactory.external(i.designSystemVariables.elevation04,"Design system")},_i=e.css`
|
|
216
217
|
:host {
|
|
217
218
|
display: block;
|
|
218
219
|
}
|
|
219
220
|
|
|
220
221
|
#container {
|
|
221
|
-
padding: ${
|
|
222
|
-
border-radius: ${
|
|
223
|
-
|
|
222
|
+
padding: ${Oi.padding};
|
|
223
|
+
border-radius: ${Oi.borderRadiusM};
|
|
224
|
+
${i.setVariable(n.borderRadius,Oi.borderRadiusM)};
|
|
225
|
+
box-shadow: ${Oi.elevation02};
|
|
224
226
|
position: relative;
|
|
225
227
|
width: 100%;
|
|
226
228
|
height: 100%;
|
|
@@ -232,13 +234,21 @@ const st=Symbol.for(""),rt=t=>{if((null==t?void 0:t.r)===st)return null==t?void
|
|
|
232
234
|
grid-template-rows: max-content minmax(0, 1fr);
|
|
233
235
|
grid-gap: 8px;
|
|
234
236
|
box-sizing: border-box;
|
|
235
|
-
background-color: ${
|
|
237
|
+
background-color: ${Oi.colorSurface};
|
|
236
238
|
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
237
239
|
}
|
|
238
240
|
|
|
241
|
+
#container.no-header {
|
|
242
|
+
grid-template: "content";
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
#container.no-header #header, #container.no-header #action {
|
|
246
|
+
display: none;
|
|
247
|
+
}
|
|
248
|
+
|
|
239
249
|
#container.selected {
|
|
240
|
-
outline: solid 2px ${
|
|
241
|
-
box-shadow: ${
|
|
250
|
+
outline: solid 2px ${Oi.colorPrimary};
|
|
251
|
+
box-shadow: ${Oi.elevation04};
|
|
242
252
|
}
|
|
243
253
|
|
|
244
254
|
#container.clickable {
|
|
@@ -246,7 +256,7 @@ const st=Symbol.for(""),rt=t=>{if((null==t?void 0:t.r)===st)return null==t?void
|
|
|
246
256
|
}
|
|
247
257
|
|
|
248
258
|
#container.clickable:hover {
|
|
249
|
-
box-shadow: ${
|
|
259
|
+
box-shadow: ${Oi.elevation04};
|
|
250
260
|
}
|
|
251
261
|
|
|
252
262
|
#header {
|
|
@@ -256,19 +266,19 @@ const st=Symbol.for(""),rt=t=>{if((null==t?void 0:t.r)===st)return null==t?void
|
|
|
256
266
|
.title {
|
|
257
267
|
text-overflow: ellipsis;
|
|
258
268
|
overflow: hidden;
|
|
259
|
-
color: ${
|
|
269
|
+
color: ${Oi.colorOnSurfaceHigh};
|
|
260
270
|
}
|
|
261
271
|
|
|
262
272
|
#content {
|
|
263
273
|
grid-area: content;
|
|
264
|
-
color: ${
|
|
274
|
+
color: ${Oi.colorOnSurfaceMedium};
|
|
265
275
|
}
|
|
266
276
|
|
|
267
277
|
#action {
|
|
268
278
|
grid-area: actions;
|
|
269
279
|
}
|
|
270
|
-
`;var
|
|
271
|
-
<div id="container" part="container" class=${
|
|
280
|
+
`;var Ci=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,p=t.length-1;p>=0;p--)(r=t[p])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};class Ei extends i.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return e.html`
|
|
281
|
+
<div id="container" part="container" class=${r.classMap(t)}>
|
|
272
282
|
${this.clickable?e.html`
|
|
273
283
|
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
274
284
|
`:e.nothing}
|
|
@@ -283,4 +293,4 @@ const st=Symbol.for(""),rt=t=>{if((null==t?void 0:t.r)===st)return null==t?void
|
|
|
283
293
|
<ft-typography variant="body2"><slot></slot></ft-typography>
|
|
284
294
|
</div>
|
|
285
295
|
</div>
|
|
286
|
-
`}}
|
|
296
|
+
`}}Ei.elementDefinitions={"ft-ripple":u,"ft-typography":Ai},Ei.styles=_i,Ci([o.property()],Ei.prototype,"title",void 0),Ci([o.property({type:Boolean})],Ei.prototype,"clickable",void 0),Ci([o.property({type:Boolean})],Ei.prototype,"selected",void 0),Ci([o.property({type:Boolean})],Ei.prototype,"noHeader",void 0),i.customElement("ft-card")(Ei),t.FtCard=Ei,t.FtCardCssVariables=Oi,t.styles=_i}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap);
|
package/build/ft-card.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,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,s=new WeakMap,n=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,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const h={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(r,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(n.set(r,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,r=o._getDefinition(e);return r?u(i,r):s.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,r),i.call(this,s,t,r)}else o.call(this,s,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||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,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.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,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,s=new WeakMap,n=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,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const h={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(r,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(n.set(r,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,r=o._getDefinition(e);return r?u(i,r):s.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,r),i.call(this,s,t,r)}else o.call(this,s,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||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,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.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,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Dt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!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
|
|
@@ -57,13 +57,13 @@ const h=window,c=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"
|
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var
|
|
60
|
+
var C;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:N}),(null!==(b=m.reactiveElementVersions)&&void 0!==b?b:m.reactiveElementVersions=[]).push("1.6.1");const E=window,R=E.trustedTypes,M=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,j="?"+F,A=`<${j}>`,B=document,L=()=>B.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,D="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,W=/>/g,H=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,I=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),q=new WeakMap,Y=B.createTreeWalker(B,129,null,!1),G=(t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",n=_;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===_?"!--"===l[1]?n=T:void 0!==l[1]?n=W:void 0!==l[2]?(Z.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=H):void 0!==l[3]&&(n=H):n===H?">"===l[0]?(n=null!=r?r:_,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?H:'"'===l[3]?I:K):n===I||n===K?n=H:n===T||n===W?n=_:(n=H,r=void 0);const p=n===H&&t[e+1].startsWith("/>")?" ":"";s+=n===_?i+A:h>=0?(o.push(a),i.slice(0,h)+U+i.slice(h)+F+p):i+F+(-2===h?(o.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==M?M.createHTML(a):a,o]};class Q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,h]=G(t,e);if(this.el=Q.createElement(l,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Y.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(U)||e.startsWith(F)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+U).split(F),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?nt:"@"===e[1]?at:ot})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(Z.test(o.tagName)){const t=o.textContent.split(F),e=t.length-1;if(e>0){o.textContent=R?R.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],L()),Y.nextNode(),a.push({type:2,index:++r});o.append(t[e],L())}}}else if(8===o.nodeType)if(o.data===j)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:r}),t+=F.length-1}r++}}static createElement(t,e){const i=B.createElement("template");return i.innerHTML=t,i}}function tt(t,e,i=t,o){var r,s,n,a;if(e===J)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const h=P(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=tt(t,l._$AS(t,e.values),l,o)),e}class et{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:B).importNode(i,!0);Y.currentNode=r;let s=Y.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new it(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new lt(s,this,t)),this._$AV.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(s=Y.nextNode(),n++)}return r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class it{constructor(t,e,i,o){var r;this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),P(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>z(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&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(B.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new et(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new Q(t)),e}T(t){z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new it(this.k(L()),this.k(L()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ot{constructor(t,e,i,o,r){this.type=1,this._$AH=X,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=X}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(void 0===r)t=tt(this,t,e,0),s=!P(t)||t!==this._$AH&&t!==J,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=tt(this,o[i+n],e,n),a===J&&(a=this._$AH[n]),s||(s=!P(a)||a!==this._$AH[n]),a===X?t=X:t!==X&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.j(t)}j(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===X?void 0:t}}const st=R?R.emptyScript:"";class nt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==X?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class at extends ot{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=tt(this,t,e,0))&&void 0!==i?i:X)===J)return;const o=this._$AH,r=t===X&&o!==X||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==X&&(o===X||r);r&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const ht=E.litHtmlPolyfillSupport;null==ht||ht(Q,it),(null!==(C=E.litHtmlVersions)&&void 0!==C?C:E.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 ct,pt;let ft=class extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=s._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=n=new it(e.insertBefore(B(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,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 J}};ft.finalized=!0,ft._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:ft});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ft}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.3.2");class ut{static create(t,e,i){let o=t=>u(null!=t?t:i),r=y`var(${u(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>y`var(${u(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=y`var(${u(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>y`var(${u(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):u(null!=e?e:t.defaultValue),o=y`var(${u(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${u(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const yt={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")};class vt extends ft{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return v(i,t.elementStyles),i}}var gt,bt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const mt=Symbol("constructorPrototype"),xt=Symbol("constructorName"),wt=Symbol("exportpartsDebouncer");class $t extends vt{constructor(){super(),this[gt]=new e(5),this[xt]=this.constructor.name,this[mt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xt]&&Object.setPrototypeOf(this,this[mt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).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[wt].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 e,i,o,r,s,n;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!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(n=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).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((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}var Ot,St;gt=wt,bt([o()],$t.prototype,"exportpartsPrefix",void 0),bt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!a(t,e),...null!=e?e:{}})}([])],$t.prototype,"exportpartsPrefixes",void 0),bt([o()],$t.prototype,"customStylesheet",void 0),y`
|
|
66
|
+
var ct,pt;let ft=class extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=s._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=n=new it(e.insertBefore(L(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,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 J}};ft.finalized=!0,ft._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:ft});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ft}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.3.2");class ut{static create(t,e,i){let o=t=>u(null!=t?t:i),r=y`var(${u(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>y`var(${u(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=y`var(${u(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>y`var(${u(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):u(null!=e?e:t.defaultValue),o=y`var(${u(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${u(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const yt={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")};class vt extends ft{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return v(i,t.elementStyles),i}}var gt,bt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const mt=Symbol("constructorPrototype"),xt=Symbol("constructorName"),wt=Symbol("exportpartsDebouncer");class $t extends vt{constructor(){super(),this[gt]=new e(5),this[xt]=this.constructor.name,this[mt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xt]&&Object.setPrototypeOf(this,this[mt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).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[wt].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 e,i,o,r,s,n;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!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(n=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).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((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}var Ot,St;gt=wt,bt([o()],$t.prototype,"exportpartsPrefix",void 0),bt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!a(t,e),...null!=e?e:{}})}([])],$t.prototype,"exportpartsPrefixes",void 0),bt([o()],$t.prototype,"customStylesheet",void 0),y`
|
|
67
67
|
.ft-no-text-select {
|
|
68
68
|
-webkit-touch-callout: none;
|
|
69
69
|
-webkit-user-select: none;
|
|
@@ -106,7 +106,7 @@ const kt=1;class Nt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
106
106
|
* @license
|
|
107
107
|
* Copyright 2018 Google LLC
|
|
108
108
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
109
|
-
*/const
|
|
109
|
+
*/const Ct=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends Nt{constructor(t){var e;if(super(t),t.type!==kt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return J}}),Et=ut.extend("--ft-ripple-color",yt.colorContent),Rt={color:Et,backgroundColor:ut.extend("--ft-ripple-background-color",Et),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ut.create("--ft-ripple-border-radius","SIZE","0px")},Mt=ut.extend("--ft-ripple-color",yt.colorPrimary),Ut=Mt,Ft=ut.extend("--ft-ripple-background-color",Mt),jt=ut.extend("--ft-ripple-color",yt.colorSecondary),At=jt,Bt=ut.extend("--ft-ripple-background-color",jt),Lt=y`
|
|
110
110
|
:host {
|
|
111
111
|
display: contents;
|
|
112
112
|
}
|
|
@@ -119,6 +119,7 @@ const kt=1;class Nt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
119
119
|
|
|
120
120
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
121
121
|
overflow: hidden;
|
|
122
|
+
border-radius: ${Rt.borderRadius};
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
.ft-ripple .ft-ripple--background,
|
|
@@ -128,27 +129,27 @@ const kt=1;class Nt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
128
129
|
}
|
|
129
130
|
|
|
130
131
|
.ft-ripple .ft-ripple--background {
|
|
131
|
-
background-color: ${
|
|
132
|
+
background-color: ${Rt.backgroundColor};
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
.ft-ripple .ft-ripple--effect {
|
|
135
|
-
background-color: ${Rt};
|
|
136
|
+
background-color: ${Rt.color};
|
|
136
137
|
}
|
|
137
138
|
|
|
138
139
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
139
|
-
background-color: ${
|
|
140
|
+
background-color: ${Bt};
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
143
|
-
background-color: ${
|
|
144
|
+
background-color: ${At};
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
147
|
-
background-color: ${
|
|
148
|
+
background-color: ${Ft};
|
|
148
149
|
}
|
|
149
150
|
|
|
150
151
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
151
|
-
background-color: ${
|
|
152
|
+
background-color: ${Ut};
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
.ft-ripple .ft-ripple--background {
|
|
@@ -180,22 +181,22 @@ const kt=1;class Nt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
183
|
-
opacity: ${
|
|
184
|
+
opacity: ${Rt.opacityContentOnSurfaceHover};
|
|
184
185
|
}
|
|
185
186
|
|
|
186
187
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
187
|
-
opacity: ${
|
|
188
|
+
opacity: ${Rt.opacityContentOnSurfaceSelected};
|
|
188
189
|
}
|
|
189
190
|
|
|
190
191
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
191
|
-
opacity: ${
|
|
192
|
+
opacity: ${Rt.opacityContentOnSurfaceFocused};
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
195
|
-
opacity: ${
|
|
196
|
+
opacity: ${Rt.opacityContentOnSurfacePressed};
|
|
196
197
|
transform: translate(-50%, -50%) scale(1);
|
|
197
198
|
}
|
|
198
|
-
`;var
|
|
199
|
+
`;var Pt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class zt extends $t{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return V`
|
|
199
200
|
<style>
|
|
200
201
|
.ft-ripple .ft-ripple--effect,
|
|
201
202
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -208,127 +209,128 @@ const kt=1;class Nt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
208
209
|
top: ${this.originY}px;
|
|
209
210
|
}
|
|
210
211
|
</style>
|
|
211
|
-
<div class="${
|
|
212
|
+
<div class="${Ct(t)}">
|
|
212
213
|
<div class="ft-ripple--background"></div>
|
|
213
214
|
<div class="ft-ripple--effect"></div>
|
|
214
215
|
</div>
|
|
215
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
|
|
216
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}zt.elementDefinitions={},zt.styles=Lt,Pt([o({type:Boolean})],zt.prototype,"primary",void 0),Pt([o({type:Boolean})],zt.prototype,"secondary",void 0),Pt([o({type:Boolean})],zt.prototype,"unbounded",void 0),Pt([o({type:Boolean})],zt.prototype,"activated",void 0),Pt([o({type:Boolean})],zt.prototype,"selected",void 0),Pt([o({type:Boolean})],zt.prototype,"disabled",void 0),Pt([r()],zt.prototype,"hovered",void 0),Pt([r()],zt.prototype,"focused",void 0),Pt([r()],zt.prototype,"pressed",void 0),Pt([r()],zt.prototype,"rippling",void 0),Pt([r()],zt.prototype,"rippleSize",void 0),Pt([r()],zt.prototype,"originX",void 0),Pt([r()],zt.prototype,"originY",void 0),Pt([s(".ft-ripple")],zt.prototype,"ripple",void 0),Pt([s(".ft-ripple--effect")],zt.prototype,"rippleEffect",void 0),l("ft-ripple")(zt);
|
|
216
217
|
/**
|
|
217
218
|
* @license
|
|
218
219
|
* Copyright 2020 Google LLC
|
|
219
220
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
220
221
|
*/
|
|
221
|
-
const
|
|
222
|
+
const Dt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void 0:t._$litStatic$},Tt=t=>({_$litStatic$:t,r:Dt}),Wt=new Map,Ht=(t=>(e,...i)=>{const o=i.length;let r,s;const n=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(s=i[h],r=_t(s));)l+=r+e[++h],c=!0;h!==o&&a.push(s),n.push(l),h++}if(h===o&&n.push(e[o]),c){const t=n.join("$$lit$$");void 0===(e=Wt.get(t))&&(n.raw=n,Wt.set(t,e=n)),i=a}return t(e,...i)})(V);var Kt;!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"}(Kt||(Kt={}));const It=ut.extend("--ft-typography-font-family",yt.titleFont),Zt=ut.extend("--ft-typography-font-family",yt.contentFont),Vt={fontFamily:Zt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Jt=ut.extend("--ft-typography-title-font-family",It),Xt=ut.extend("--ft-typography-title-font-size",Vt.fontSize,"20px"),qt=ut.extend("--ft-typography-title-font-weight",Vt.fontWeight,"normal"),Yt=ut.extend("--ft-typography-title-letter-spacing",Vt.letterSpacing,"0.15px"),Gt=ut.extend("--ft-typography-title-line-height",Vt.lineHeight,"1.2"),Qt=ut.extend("--ft-typography-title-text-transform",Vt.textTransform,"inherit"),te=ut.extend("--ft-typography-title-dense-font-family",It),ee=ut.extend("--ft-typography-title-dense-font-size",Vt.fontSize,"14px"),ie=ut.extend("--ft-typography-title-dense-font-weight",Vt.fontWeight,"normal"),oe=ut.extend("--ft-typography-title-dense-letter-spacing",Vt.letterSpacing,"0.105px"),re=ut.extend("--ft-typography-title-dense-line-height",Vt.lineHeight,"1.7"),se=ut.extend("--ft-typography-title-dense-text-transform",Vt.textTransform,"inherit"),ne=ut.extend("--ft-typography-subtitle1-font-family",Zt),ae=ut.extend("--ft-typography-subtitle1-font-size",Vt.fontSize,"16px"),le=ut.extend("--ft-typography-subtitle1-font-weight",Vt.fontWeight,"600"),he=ut.extend("--ft-typography-subtitle1-letter-spacing",Vt.letterSpacing,"0.144px"),ce=ut.extend("--ft-typography-subtitle1-line-height",Vt.lineHeight,"1.5"),pe=ut.extend("--ft-typography-subtitle1-text-transform",Vt.textTransform,"inherit"),fe=ut.extend("--ft-typography-subtitle2-font-family",Zt),de=ut.extend("--ft-typography-subtitle2-font-size",Vt.fontSize,"14px"),ue=ut.extend("--ft-typography-subtitle2-font-weight",Vt.fontWeight,"normal"),ye=ut.extend("--ft-typography-subtitle2-letter-spacing",Vt.letterSpacing,"0.098px"),ve=ut.extend("--ft-typography-subtitle2-line-height",Vt.lineHeight,"1.7"),ge=ut.extend("--ft-typography-subtitle2-text-transform",Vt.textTransform,"inherit"),be=ut.extend("--ft-typography-body1-font-family",Zt),me=ut.extend("--ft-typography-body1-font-size",Vt.fontSize,"16px"),xe=ut.extend("--ft-typography-body1-font-weight",Vt.fontWeight,"normal"),we=ut.extend("--ft-typography-body1-letter-spacing",Vt.letterSpacing,"0.496px"),$e=ut.extend("--ft-typography-body1-line-height",Vt.lineHeight,"1.5"),Oe=ut.extend("--ft-typography-body1-text-transform",Vt.textTransform,"inherit"),Se=ut.extend("--ft-typography-body2-font-family",Zt),ke=ut.extend("--ft-typography-body2-font-size",Vt.fontSize,"14px"),Ne=ut.extend("--ft-typography-body2-font-weight",Vt.fontWeight,"normal"),Ce=ut.extend("--ft-typography-body2-letter-spacing",Vt.letterSpacing,"0.252px"),Ee=ut.extend("--ft-typography-body2-line-height",Vt.lineHeight,"1.4"),Re=ut.extend("--ft-typography-body2-text-transform",Vt.textTransform,"inherit"),Me=ut.extend("--ft-typography-caption-font-family",Zt),Ue=ut.extend("--ft-typography-caption-font-size",Vt.fontSize,"12px"),Fe=ut.extend("--ft-typography-caption-font-weight",Vt.fontWeight,"normal"),je=ut.extend("--ft-typography-caption-letter-spacing",Vt.letterSpacing,"0.396px"),Ae=ut.extend("--ft-typography-caption-line-height",Vt.lineHeight,"1.33"),Be=ut.extend("--ft-typography-caption-text-transform",Vt.textTransform,"inherit"),Le=ut.extend("--ft-typography-breadcrumb-font-family",Zt),Pe=ut.extend("--ft-typography-breadcrumb-font-size",Vt.fontSize,"10px"),ze=ut.extend("--ft-typography-breadcrumb-font-weight",Vt.fontWeight,"normal"),De=ut.extend("--ft-typography-breadcrumb-letter-spacing",Vt.letterSpacing,"0.33px"),_e=ut.extend("--ft-typography-breadcrumb-line-height",Vt.lineHeight,"1.6"),Te=ut.extend("--ft-typography-breadcrumb-text-transform",Vt.textTransform,"inherit"),We=ut.extend("--ft-typography-overline-font-family",Zt),He=ut.extend("--ft-typography-overline-font-size",Vt.fontSize,"10px"),Ke=ut.extend("--ft-typography-overline-font-weight",Vt.fontWeight,"normal"),Ie=ut.extend("--ft-typography-overline-letter-spacing",Vt.letterSpacing,"1.5px"),Ze=ut.extend("--ft-typography-overline-line-height",Vt.lineHeight,"1.6"),Ve=ut.extend("--ft-typography-overline-text-transform",Vt.textTransform,"uppercase"),Je=ut.extend("--ft-typography-button-font-family",Zt),Xe=ut.extend("--ft-typography-button-font-size",Vt.fontSize,"14px"),qe=ut.extend("--ft-typography-button-font-weight",Vt.fontWeight,"600"),Ye=ut.extend("--ft-typography-button-letter-spacing",Vt.letterSpacing,"1.246px"),Ge=ut.extend("--ft-typography-button-line-height",Vt.lineHeight,"1.15"),Qe=ut.extend("--ft-typography-button-text-transform",Vt.textTransform,"uppercase"),ti=y`
|
|
222
223
|
.ft-typography--title {
|
|
223
|
-
font-family: ${
|
|
224
|
-
font-size: ${
|
|
225
|
-
font-weight: ${
|
|
226
|
-
letter-spacing: ${
|
|
227
|
-
line-height: ${
|
|
228
|
-
text-transform: ${
|
|
229
|
-
}
|
|
230
|
-
`,
|
|
224
|
+
font-family: ${Jt};
|
|
225
|
+
font-size: ${Xt};
|
|
226
|
+
font-weight: ${qt};
|
|
227
|
+
letter-spacing: ${Yt};
|
|
228
|
+
line-height: ${Gt};
|
|
229
|
+
text-transform: ${Qt};
|
|
230
|
+
}
|
|
231
|
+
`,ei=y`
|
|
231
232
|
.ft-typography--title-dense {
|
|
232
|
-
font-family: ${
|
|
233
|
-
font-size: ${
|
|
234
|
-
font-weight: ${
|
|
235
|
-
letter-spacing: ${
|
|
236
|
-
line-height: ${
|
|
237
|
-
text-transform: ${
|
|
238
|
-
}
|
|
239
|
-
`,
|
|
233
|
+
font-family: ${te};
|
|
234
|
+
font-size: ${ee};
|
|
235
|
+
font-weight: ${ie};
|
|
236
|
+
letter-spacing: ${oe};
|
|
237
|
+
line-height: ${re};
|
|
238
|
+
text-transform: ${se};
|
|
239
|
+
}
|
|
240
|
+
`,ii=y`
|
|
240
241
|
.ft-typography--subtitle1 {
|
|
241
|
-
font-family: ${
|
|
242
|
-
font-size: ${
|
|
243
|
-
font-weight: ${
|
|
244
|
-
letter-spacing: ${
|
|
245
|
-
line-height: ${
|
|
246
|
-
text-transform: ${
|
|
247
|
-
}
|
|
248
|
-
`,
|
|
242
|
+
font-family: ${ne};
|
|
243
|
+
font-size: ${ae};
|
|
244
|
+
font-weight: ${le};
|
|
245
|
+
letter-spacing: ${he};
|
|
246
|
+
line-height: ${ce};
|
|
247
|
+
text-transform: ${pe};
|
|
248
|
+
}
|
|
249
|
+
`,oi=y`
|
|
249
250
|
.ft-typography--subtitle2 {
|
|
250
|
-
font-family: ${
|
|
251
|
-
font-size: ${
|
|
252
|
-
font-weight: ${
|
|
253
|
-
letter-spacing: ${
|
|
254
|
-
line-height: ${
|
|
255
|
-
text-transform: ${
|
|
251
|
+
font-family: ${fe};
|
|
252
|
+
font-size: ${de};
|
|
253
|
+
font-weight: ${ue};
|
|
254
|
+
letter-spacing: ${ye};
|
|
255
|
+
line-height: ${ve};
|
|
256
|
+
text-transform: ${ge};
|
|
256
257
|
}
|
|
257
258
|
|
|
258
|
-
`,
|
|
259
|
+
`,ri=y`
|
|
259
260
|
.ft-typography--body1 {
|
|
260
|
-
font-family: ${
|
|
261
|
-
font-size: ${
|
|
262
|
-
font-weight: ${
|
|
263
|
-
letter-spacing: ${
|
|
261
|
+
font-family: ${be};
|
|
262
|
+
font-size: ${me};
|
|
263
|
+
font-weight: ${xe};
|
|
264
|
+
letter-spacing: ${we};
|
|
265
|
+
line-height: ${$e};
|
|
266
|
+
text-transform: ${Oe};
|
|
267
|
+
}
|
|
268
|
+
`,si=y`
|
|
269
|
+
.ft-typography--body2 {
|
|
270
|
+
font-family: ${Se};
|
|
271
|
+
font-size: ${ke};
|
|
272
|
+
font-weight: ${Ne};
|
|
273
|
+
letter-spacing: ${Ce};
|
|
264
274
|
line-height: ${Ee};
|
|
265
|
-
text-transform: ${
|
|
275
|
+
text-transform: ${Re};
|
|
266
276
|
}
|
|
267
|
-
`,
|
|
268
|
-
.ft-typography--body2 {
|
|
269
|
-
font-family: ${Re};
|
|
270
|
-
font-size: ${Me};
|
|
271
|
-
font-weight: ${Ue};
|
|
272
|
-
letter-spacing: ${Fe};
|
|
273
|
-
line-height: ${je};
|
|
274
|
-
text-transform: ${Ae};
|
|
275
|
-
}
|
|
276
|
-
`,pi=y`
|
|
277
|
+
`,ni=y`
|
|
277
278
|
.ft-typography--caption {
|
|
278
|
-
font-family: ${
|
|
279
|
-
font-size: ${
|
|
280
|
-
font-weight: ${
|
|
281
|
-
letter-spacing: ${
|
|
282
|
-
line-height: ${
|
|
283
|
-
text-transform: ${
|
|
279
|
+
font-family: ${Me};
|
|
280
|
+
font-size: ${Ue};
|
|
281
|
+
font-weight: ${Fe};
|
|
282
|
+
letter-spacing: ${je};
|
|
283
|
+
line-height: ${Ae};
|
|
284
|
+
text-transform: ${Be};
|
|
284
285
|
}
|
|
285
|
-
`,
|
|
286
|
+
`,ai=y`
|
|
286
287
|
.ft-typography--breadcrumb {
|
|
287
|
-
font-family: ${
|
|
288
|
-
font-size: ${
|
|
289
|
-
font-weight: ${
|
|
290
|
-
letter-spacing: ${
|
|
291
|
-
line-height: ${
|
|
292
|
-
text-transform: ${
|
|
293
|
-
}
|
|
294
|
-
`,
|
|
288
|
+
font-family: ${Le};
|
|
289
|
+
font-size: ${Pe};
|
|
290
|
+
font-weight: ${ze};
|
|
291
|
+
letter-spacing: ${De};
|
|
292
|
+
line-height: ${_e};
|
|
293
|
+
text-transform: ${Te};
|
|
294
|
+
}
|
|
295
|
+
`,li=y`
|
|
295
296
|
.ft-typography--overline {
|
|
296
|
-
font-family: ${
|
|
297
|
-
font-size: ${
|
|
298
|
-
font-weight: ${
|
|
299
|
-
letter-spacing: ${
|
|
300
|
-
line-height: ${
|
|
301
|
-
text-transform: ${
|
|
302
|
-
}
|
|
303
|
-
`,
|
|
297
|
+
font-family: ${We};
|
|
298
|
+
font-size: ${He};
|
|
299
|
+
font-weight: ${Ke};
|
|
300
|
+
letter-spacing: ${Ie};
|
|
301
|
+
line-height: ${Ze};
|
|
302
|
+
text-transform: ${Ve};
|
|
303
|
+
}
|
|
304
|
+
`,hi=y`
|
|
304
305
|
.ft-typography--button {
|
|
305
|
-
font-family: ${
|
|
306
|
-
font-size: ${
|
|
307
|
-
font-weight: ${
|
|
308
|
-
letter-spacing: ${
|
|
309
|
-
line-height: ${
|
|
310
|
-
text-transform: ${
|
|
311
|
-
}
|
|
312
|
-
`,
|
|
306
|
+
font-family: ${Je};
|
|
307
|
+
font-size: ${Xe};
|
|
308
|
+
font-weight: ${qe};
|
|
309
|
+
letter-spacing: ${Ye};
|
|
310
|
+
line-height: ${Ge};
|
|
311
|
+
text-transform: ${Qe};
|
|
312
|
+
}
|
|
313
|
+
`,ci=y`
|
|
313
314
|
.ft-typography {
|
|
314
315
|
vertical-align: inherit;
|
|
315
316
|
}
|
|
316
|
-
`;var
|
|
317
|
-
<${
|
|
317
|
+
`;var pi=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class fi extends $t{constructor(){super(...arguments),this.variant=Kt.body1}render(){return this.element?Ht`
|
|
318
|
+
<${Tt(this.element)}
|
|
318
319
|
class="ft-typography ft-typography--${this.variant}">
|
|
319
320
|
<slot></slot>
|
|
320
|
-
</${
|
|
321
|
-
`:
|
|
321
|
+
</${Tt(this.element)}>
|
|
322
|
+
`:Ht`
|
|
322
323
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
323
|
-
`}}
|
|
324
|
+
`}}fi.styles=[ti,ei,ii,oi,ri,si,ni,ai,li,hi,ci],pi([o()],fi.prototype,"element",void 0),pi([o()],fi.prototype,"variant",void 0),l("ft-typography")(fi);const di={padding:ut.create("--ft-card-padding","SIZE","12px"),colorPrimary:ut.external(yt.colorPrimary,"Design system"),colorSurface:ut.external(yt.colorSurface,"Design system"),colorOnSurfaceMedium:ut.external(yt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:ut.external(yt.colorOnSurfaceHigh,"Design system"),borderRadiusM:ut.external(yt.borderRadiusM,"Design system"),elevation02:ut.external(yt.elevation02,"Design system"),elevation04:ut.external(yt.elevation04,"Design system")},ui=y`
|
|
324
325
|
:host {
|
|
325
326
|
display: block;
|
|
326
327
|
}
|
|
327
328
|
|
|
328
329
|
#container {
|
|
329
|
-
padding: ${
|
|
330
|
-
border-radius: ${
|
|
331
|
-
|
|
330
|
+
padding: ${di.padding};
|
|
331
|
+
border-radius: ${di.borderRadiusM};
|
|
332
|
+
${yi=Rt.borderRadius,vi=di.borderRadiusM,u(`${yi.name}: ${vi}`)};
|
|
333
|
+
box-shadow: ${di.elevation02};
|
|
332
334
|
position: relative;
|
|
333
335
|
width: 100%;
|
|
334
336
|
height: 100%;
|
|
@@ -340,13 +342,21 @@ const Kt=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===Kt)return null==t?void
|
|
|
340
342
|
grid-template-rows: max-content minmax(0, 1fr);
|
|
341
343
|
grid-gap: 8px;
|
|
342
344
|
box-sizing: border-box;
|
|
343
|
-
background-color: ${
|
|
345
|
+
background-color: ${di.colorSurface};
|
|
344
346
|
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
345
347
|
}
|
|
346
348
|
|
|
349
|
+
#container.no-header {
|
|
350
|
+
grid-template: "content";
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
#container.no-header #header, #container.no-header #action {
|
|
354
|
+
display: none;
|
|
355
|
+
}
|
|
356
|
+
|
|
347
357
|
#container.selected {
|
|
348
|
-
outline: solid 2px ${
|
|
349
|
-
box-shadow: ${
|
|
358
|
+
outline: solid 2px ${di.colorPrimary};
|
|
359
|
+
box-shadow: ${di.elevation04};
|
|
350
360
|
}
|
|
351
361
|
|
|
352
362
|
#container.clickable {
|
|
@@ -354,7 +364,7 @@ const Kt=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===Kt)return null==t?void
|
|
|
354
364
|
}
|
|
355
365
|
|
|
356
366
|
#container.clickable:hover {
|
|
357
|
-
box-shadow: ${
|
|
367
|
+
box-shadow: ${di.elevation04};
|
|
358
368
|
}
|
|
359
369
|
|
|
360
370
|
#header {
|
|
@@ -364,19 +374,19 @@ const Kt=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===Kt)return null==t?void
|
|
|
364
374
|
.title {
|
|
365
375
|
text-overflow: ellipsis;
|
|
366
376
|
overflow: hidden;
|
|
367
|
-
color: ${
|
|
377
|
+
color: ${di.colorOnSurfaceHigh};
|
|
368
378
|
}
|
|
369
379
|
|
|
370
380
|
#content {
|
|
371
381
|
grid-area: content;
|
|
372
|
-
color: ${
|
|
382
|
+
color: ${di.colorOnSurfaceMedium};
|
|
373
383
|
}
|
|
374
384
|
|
|
375
385
|
#action {
|
|
376
386
|
grid-area: actions;
|
|
377
387
|
}
|
|
378
|
-
`;var
|
|
379
|
-
<div id="container" part="container" class=${
|
|
388
|
+
`;var yi,vi,gi=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class bi extends $t{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return V`
|
|
389
|
+
<div id="container" part="container" class=${Ct(t)}>
|
|
380
390
|
${this.clickable?V`
|
|
381
391
|
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
382
392
|
`:X}
|
|
@@ -391,4 +401,4 @@ const Kt=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===Kt)return null==t?void
|
|
|
391
401
|
<ft-typography variant="body2"><slot></slot></ft-typography>
|
|
392
402
|
</div>
|
|
393
403
|
</div>
|
|
394
|
-
`}}
|
|
404
|
+
`}}bi.elementDefinitions={"ft-ripple":zt,"ft-typography":fi},bi.styles=ui,gi([o()],bi.prototype,"title",void 0),gi([o({type:Boolean})],bi.prototype,"clickable",void 0),gi([o({type:Boolean})],bi.prototype,"selected",void 0),gi([o({type:Boolean})],bi.prototype,"noHeader",void 0),l("ft-card")(bi),t.FtCard=bi,t.FtCardCssVariables=di,t.styles=ui}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-card",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "A file uploader with drag and drop",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-ripple": "1.0.0
|
|
23
|
-
"@fluid-topics/ft-typography": "1.0.0
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "1.0.0
|
|
22
|
+
"@fluid-topics/ft-ripple": "1.0.0",
|
|
23
|
+
"@fluid-topics/ft-typography": "1.0.0",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "1.0.0",
|
|
25
25
|
"lit": "2.7.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "90895771e0ea740f1a0d972b9fd3796051757255"
|
|
28
28
|
}
|