@fluid-topics/ft-card 0.2.20 → 0.3.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.d.ts +9 -9
- package/build/ft-card.js +9 -9
- package/build/ft-card.light.js +47 -47
- package/build/ft-card.min.js +27 -27
- package/package.json +6 -6
package/build/ft-card.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ElementDefinitionsMap,
|
|
1
|
+
import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
2
2
|
export interface FtCardProperties {
|
|
3
3
|
title: string;
|
|
4
4
|
selected: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const FtCardCssVariables: {
|
|
7
|
-
padding: FtCssVariable;
|
|
8
|
-
colorPrimary: FtCssVariable;
|
|
9
|
-
colorSurface: FtCssVariable;
|
|
10
|
-
colorOnSurfaceMedium: FtCssVariable;
|
|
11
|
-
colorOnSurfaceHigh: FtCssVariable;
|
|
12
|
-
borderRadiusM: FtCssVariable;
|
|
13
|
-
elevation02: FtCssVariable;
|
|
14
|
-
elevation04: FtCssVariable;
|
|
7
|
+
padding: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
8
|
+
colorPrimary: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
9
|
+
colorSurface: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
10
|
+
colorOnSurfaceMedium: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
11
|
+
colorOnSurfaceHigh: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
12
|
+
borderRadiusM: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
13
|
+
elevation02: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
14
|
+
elevation04: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
15
15
|
};
|
|
16
16
|
export declare class FtCard extends FtLitElement implements FtCardProperties {
|
|
17
17
|
static elementDefinitions: ElementDefinitionsMap;
|
package/build/ft-card.js
CHANGED
|
@@ -6,19 +6,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { css, html, } from "lit";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
|
-
import {
|
|
9
|
+
import { FtCssVariableFactory, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
10
10
|
import { FtRipple } from "@fluid-topics/ft-ripple";
|
|
11
11
|
import { designSystemVariables } from "@fluid-topics/ft-wc-utils/build/designSystemVariables";
|
|
12
12
|
import { FtTypography } from "@fluid-topics/ft-typography";
|
|
13
13
|
export const FtCardCssVariables = {
|
|
14
|
-
padding:
|
|
15
|
-
colorPrimary:
|
|
16
|
-
colorSurface:
|
|
17
|
-
colorOnSurfaceMedium:
|
|
18
|
-
colorOnSurfaceHigh:
|
|
19
|
-
borderRadiusM:
|
|
20
|
-
elevation02:
|
|
21
|
-
elevation04:
|
|
14
|
+
padding: FtCssVariableFactory.create("--ft-card-padding", "SIZE", "12px"),
|
|
15
|
+
colorPrimary: FtCssVariableFactory.external(designSystemVariables.colorPrimary, "Design system"),
|
|
16
|
+
colorSurface: FtCssVariableFactory.external(designSystemVariables.colorSurface, "Design system"),
|
|
17
|
+
colorOnSurfaceMedium: FtCssVariableFactory.external(designSystemVariables.colorOnSurfaceMedium, "Design system"),
|
|
18
|
+
colorOnSurfaceHigh: FtCssVariableFactory.external(designSystemVariables.colorOnSurfaceHigh, "Design system"),
|
|
19
|
+
borderRadiusM: FtCssVariableFactory.external(designSystemVariables.borderRadiusM, "Design system"),
|
|
20
|
+
elevation02: FtCssVariableFactory.external(designSystemVariables.elevation02, "Design system"),
|
|
21
|
+
elevation04: FtCssVariableFactory.external(designSystemVariables.elevation04, "Design system"),
|
|
22
22
|
};
|
|
23
23
|
export class FtCard extends FtLitElement {
|
|
24
24
|
constructor() {
|
package/build/ft-card.light.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,i,e,o,r){var
|
|
1
|
+
!function(t,i,e,o,r){var n=function(t,i,e,o){for(var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,p=t.length-1;p>=0;p--)(r=t[p])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};const s=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),p=s,a=i.FtCssVariableFactory.extend("--ft-ripple-background-color",s),l=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),f=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),h=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),c=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),y=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),d=y,u=i.FtCssVariableFactory.extend("--ft-ripple-background-color",y),g=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),x=g,b=i.FtCssVariableFactory.extend("--ft-ripple-background-color",g);class v 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.moveRipple=t=>{var i,e;let{x:o,y:r}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.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`
|
|
2
2
|
<style>
|
|
3
3
|
.ft-ripple .ft-ripple--effect,
|
|
4
4
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.ft-ripple .ft-ripple--background {
|
|
40
|
-
background-color: ${
|
|
40
|
+
background-color: ${a};
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.ft-ripple .ft-ripple--effect {
|
|
44
|
-
background-color: ${
|
|
44
|
+
background-color: ${p};
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
48
|
-
background-color: ${
|
|
48
|
+
background-color: ${b};
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
52
|
-
background-color: ${
|
|
52
|
+
background-color: ${x};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
@@ -104,29 +104,29 @@
|
|
|
104
104
|
opacity: ${l};
|
|
105
105
|
transform: translate(-50%, -50%) scale(1);
|
|
106
106
|
}
|
|
107
|
-
`,
|
|
107
|
+
`,n([o.property({type:Boolean})],v.prototype,"primary",void 0),n([o.property({type:Boolean})],v.prototype,"secondary",void 0),n([o.property({type:Boolean})],v.prototype,"unbounded",void 0),n([o.property({type:Boolean})],v.prototype,"activated",void 0),n([o.property({type:Boolean})],v.prototype,"selected",void 0),n([o.property({type:Boolean})],v.prototype,"disabled",void 0),n([o.state()],v.prototype,"hovered",void 0),n([o.state()],v.prototype,"focused",void 0),n([o.state()],v.prototype,"pressed",void 0),n([o.state()],v.prototype,"rippling",void 0),n([o.state()],v.prototype,"rippleSize",void 0),n([o.state()],v.prototype,"originX",void 0),n([o.state()],v.prototype,"originY",void 0),n([o.query(".ft-ripple")],v.prototype,"ripple",void 0),n([o.query(".ft-ripple--effect")],v.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(v);class m{static create(t,i,o){let r=t=>e.unsafeCSS(null!=t?t:o),n=e.css`var(${e.unsafeCSS(t)}, ${r(o)})`;return n.name=t,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=i=>e.css`var(${e.unsafeCSS(t)}, ${r(i)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,i,o){let r=t=>i.get(null!=t?t:o),n=e.css`var(${e.unsafeCSS(t)}, ${r(o)})`;return n.name=t,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=i=>e.css`var(${e.unsafeCSS(t)}, ${r(i)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>o,n}static external(t,i){let o=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):e.unsafeCSS(null!=i?i:t.defaultValue),r=e.css`var(${e.unsafeCSS(t.name)}, ${o(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=i,r.defaultCssValue=o,r.get=i=>e.css`var(${e.unsafeCSS(t.name)}, ${o(i)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},r}}const $={colorPrimary:m.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:m.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:m.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:m.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:m.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:m.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:m.create("--ft-color-error","COLOR","#B00020"),colorOutline:m.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:m.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:m.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:m.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:m.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:m.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:m.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:m.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:m.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:m.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:m.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:m.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:m.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:m.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:m.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:m.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:m.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:m.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:m.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:m.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:m.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:m.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:m.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:m.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:m.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:m.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:m.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:m.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:m.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:m.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:m.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:m.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:m.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:m.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:m.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:m.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:m.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:m.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:m.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:m.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:m.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:m.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:m.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:m.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:m.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:m.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:m.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:m.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:m.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:m.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:m.create("--ft-border-radius-XL","SIZE","16px"),titleFont:m.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:m.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:m.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:m.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright 2017 Google LLC
|
|
111
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
|
-
*/var O;const N=globalThis.trustedTypes,S=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,
|
|
112
|
+
*/var O;const N=globalThis.trustedTypes,S=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,w="?"+R,U=`<${w}>`,E=document,F=(t="")=>E.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,z=/>/g,P=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),L=/'/g,D=/"/g,W=/^(?:script|style|textarea|title)$/i,A=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),K=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),I=new WeakMap,H=E.createTreeWalker(E,129,null,!1),T=(t,i)=>{const e=t.length-1,o=[];let r,n=2===i?"<svg>":"",s=k;for(let i=0;i<e;i++){const e=t[i];let p,a,l=-1,f=0;for(;f<e.length&&(s.lastIndex=f,a=s.exec(e),null!==a);)f=s.lastIndex,s===k?"!--"===a[1]?s=B:void 0!==a[1]?s=z:void 0!==a[2]?(W.test(a[2])&&(r=RegExp("</"+a[2],"g")),s=P):void 0!==a[3]&&(s=P):s===P?">"===a[0]?(s=null!=r?r:k,l=-1):void 0===a[1]?l=-2:(l=s.lastIndex-a[2].length,p=a[1],s=void 0===a[3]?P:'"'===a[3]?D:L):s===D||s===L?s=P:s===B||s===z?s=k:(s=P,r=void 0);const h=s===P&&t[i+1].startsWith("/>")?" ":"";n+=s===k?e+U:l>=0?(o.push(p),e.slice(0,l)+"$lit$"+e.slice(l)+R+h):e+R+(-2===l?(o.push(void 0),i):h)}const p=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(p):p,o]};class j{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let r=0,n=0;const s=t.length-1,p=this.parts,[a,l]=T(t,i);if(this.el=j.createElement(a,e),H.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=H.nextNode())&&p.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(R)){const e=l[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(R),i=/([.?@])?(.*)/.exec(e);p.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?J:"@"===i[1]?Q:V})}else p.push({type:6,index:r})}for(const i of t)o.removeAttribute(i)}if(W.test(o.tagName)){const t=o.textContent.split(R),i=t.length-1;if(i>0){o.textContent=N?N.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],F()),H.nextNode(),p.push({type:2,index:++r});o.append(t[i],F())}}}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(R,t+1));)p.push({type:7,index:r}),t+=R.length-1}r++}}static createElement(t,i){const e=E.createElement("template");return e.innerHTML=t,e}}function Z(t,i,e=t,o){var r,n,s,p;if(i===K)return i;let a=void 0!==o?null===(r=e._$Cl)||void 0===r?void 0:r[o]:e._$Cu;const l=M(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==l&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,e,o)),void 0!==o?(null!==(s=(p=e)._$Cl)&&void 0!==s?s:p._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=Z(t,a._$AS(t,i.values),a,o)),i}class G{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,r=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:E).importNode(e,!0);H.currentNode=r;let n=H.nextNode(),s=0,p=0,a=o[0];for(;void 0!==a;){if(s===a.index){let i;2===a.type?i=new X(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new tt(n,this,t)),this.v.push(i),a=o[++p]}s!==(null==a?void 0:a.index)&&(n=H.nextNode(),s++)}return r}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class X{constructor(t,i,e,o){var r;this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=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._$C_}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Z(this,t,i),M(t)?t===_||null==t||""===t?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==K&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==_&&M(this._$AH)?this._$AA.nextSibling.data=t:this.k(E.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=j.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===r)this._$AH.m(e);else{const t=new G(r,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=I.get(t.strings);return void 0===i&&I.set(t.strings,i=new j(t)),i}S(t){C(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 X(this.j(F()),this.j(F()),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._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class V{constructor(t,i,e,o,r){this.type=1,this._$AH=_,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=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const r=this.strings;let n=!1;if(void 0===r)t=Z(this,t,i,0),n=!M(t)||t!==this._$AH&&t!==K,n&&(this._$AH=t);else{const o=t;let s,p;for(t=r[0],s=0;s<r.length-1;s++)p=Z(this,o[e+s],i,s),p===K&&(p=this._$AH[s]),n||(n=!M(p)||p!==this._$AH[s]),p===_?t=_:t!==_&&(t+=(null!=p?p:"")+r[s+1]),this._$AH[s]=p}n&&!o&&this.P(t)}P(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends V{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===_?void 0:t}}const q=N?N.emptyScript:"";class J extends V{constructor(){super(...arguments),this.type=4}P(t){t&&t!==_?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Q extends V{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=Z(this,t,i,0))&&void 0!==e?e:_)===K)return;const o=this._$AH,r=t===_&&o!==_||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==_&&(o===_||r);r&&this.element.removeEventListener(this.name,this,o),n&&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 tt{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){Z(this,t)}}const it=window.litHtmlPolyfillSupport;null==it||it(j,X),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
113
113
|
/**
|
|
114
114
|
* @license
|
|
115
115
|
* Copyright 2020 Google LLC
|
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
117
|
*/
|
|
118
|
-
const et=Symbol.for(""),ot=t=>{
|
|
118
|
+
const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void 0:t._$litStatic$},rt=t=>({_$litStatic$:t,r:et}),nt=new Map,st=(t=>(i,...e)=>{const o=e.length;let r,n;const s=[],p=[];let a,l=0,f=!1;for(;l<o;){for(a=i[l];l<o&&void 0!==(n=e[l],r=ot(n));)a+=r+i[++l],f=!0;p.push(n),s.push(a),l++}if(l===o&&s.push(i[o]),f){const t=s.join("$$lit$$");void 0===(i=nt.get(t))&&(s.raw=s,nt.set(t,i=s)),e=p}return t(i,...e)})(A);var pt,at=function(t,i,e,o){for(var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,p=t.length-1;p>=0;p--)(r=t[p])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(pt||(pt={}));const lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),ft=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),ht={fontFamily:ft,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")},ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",lt),yt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",ht.fontSize,"20px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ht.fontWeight,"normal"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ht.letterSpacing,"0.15px"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",ht.lineHeight,"1.2"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ht.textTransform,"inherit"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",lt),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ht.fontSize,"14px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ht.fontWeight,"normal"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ht.letterSpacing,"0.105px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ht.lineHeight,"1.7"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ht.textTransform,"inherit"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",ft),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ht.fontSize,"16px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ht.fontWeight,"600"),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ht.letterSpacing,"0.144px"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ht.lineHeight,"1.5"),Ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ht.textTransform,"inherit"),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",ft),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ht.fontSize,"14px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ht.fontWeight,"normal"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ht.letterSpacing,"0.098px"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ht.lineHeight,"1.7"),Pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ht.textTransform,"inherit"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",ft),Dt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ht.fontSize,"16px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ht.fontWeight,"normal"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ht.letterSpacing,"0.496px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ht.lineHeight,"1.5"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ht.textTransform,"inherit"),It=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",ft),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ht.fontSize,"14px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ht.fontWeight,"normal"),jt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ht.letterSpacing,"0.252px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ht.lineHeight,"1.4"),Gt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ht.textTransform,"inherit"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",ft),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ht.fontSize,"12px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ht.fontWeight,"normal"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ht.letterSpacing,"0.396px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ht.lineHeight,"1.33"),Qt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ht.textTransform,"inherit"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",ft),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ht.fontSize,"10px"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ht.fontWeight,"normal"),oi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ht.letterSpacing,"0.33px"),ri=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ht.lineHeight,"1.6"),ni=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ht.textTransform,"inherit"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",ft),pi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ht.fontSize,"10px"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ht.fontWeight,"normal"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ht.letterSpacing,"1.5px"),fi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ht.lineHeight,"1.6"),hi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ht.textTransform,"uppercase"),ci=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",ft),yi=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",ht.fontSize,"14px"),di=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ht.fontWeight,"600"),ui=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ht.letterSpacing,"1.246px"),gi=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",ht.lineHeight,"1.15"),xi=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ht.textTransform,"uppercase"),bi=e.css`
|
|
119
119
|
.ft-typography--title {
|
|
120
120
|
font-family: ${ct};
|
|
121
121
|
font-size: ${yt};
|
|
122
122
|
font-weight: ${dt};
|
|
123
123
|
letter-spacing: ${ut};
|
|
124
124
|
line-height: ${gt};
|
|
125
|
-
text-transform: ${
|
|
125
|
+
text-transform: ${xt};
|
|
126
126
|
}
|
|
127
127
|
`,vi=e.css`
|
|
128
128
|
.ft-typography--title-dense {
|
|
129
|
-
font-family: ${
|
|
129
|
+
font-family: ${bt};
|
|
130
130
|
font-size: ${vt};
|
|
131
131
|
font-weight: ${mt};
|
|
132
132
|
letter-spacing: ${$t};
|
|
@@ -136,26 +136,26 @@ const et=Symbol.for(""),ot=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
136
136
|
`,mi=e.css`
|
|
137
137
|
.ft-typography--subtitle1 {
|
|
138
138
|
font-family: ${St};
|
|
139
|
-
font-size: ${
|
|
140
|
-
font-weight: ${
|
|
139
|
+
font-size: ${Rt};
|
|
140
|
+
font-weight: ${wt};
|
|
141
141
|
letter-spacing: ${Ut};
|
|
142
|
-
line-height: ${
|
|
143
|
-
text-transform: ${
|
|
142
|
+
line-height: ${Et};
|
|
143
|
+
text-transform: ${Ft};
|
|
144
144
|
}
|
|
145
145
|
`,$i=e.css`
|
|
146
146
|
.ft-typography--subtitle2 {
|
|
147
|
-
font-family: ${
|
|
148
|
-
font-size: ${
|
|
147
|
+
font-family: ${Mt};
|
|
148
|
+
font-size: ${Ct};
|
|
149
149
|
font-weight: ${kt};
|
|
150
150
|
letter-spacing: ${Bt};
|
|
151
151
|
line-height: ${zt};
|
|
152
|
-
text-transform: ${
|
|
152
|
+
text-transform: ${Pt};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
`,Oi=e.css`
|
|
156
156
|
.ft-typography--body1 {
|
|
157
|
-
font-family: ${
|
|
158
|
-
font-size: ${
|
|
157
|
+
font-family: ${Lt};
|
|
158
|
+
font-size: ${Dt};
|
|
159
159
|
font-weight: ${Wt};
|
|
160
160
|
letter-spacing: ${At};
|
|
161
161
|
line-height: ${Kt};
|
|
@@ -164,35 +164,35 @@ const et=Symbol.for(""),ot=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
164
164
|
`,Ni=e.css`
|
|
165
165
|
.ft-typography--body2 {
|
|
166
166
|
font-family: ${It};
|
|
167
|
-
font-size: ${
|
|
168
|
-
font-weight: ${
|
|
169
|
-
letter-spacing: ${
|
|
170
|
-
line-height: ${
|
|
167
|
+
font-size: ${Ht};
|
|
168
|
+
font-weight: ${Tt};
|
|
169
|
+
letter-spacing: ${jt};
|
|
170
|
+
line-height: ${Zt};
|
|
171
171
|
text-transform: ${Gt};
|
|
172
172
|
}
|
|
173
173
|
`,Si=e.css`
|
|
174
174
|
.ft-typography--caption {
|
|
175
|
-
font-family: ${
|
|
176
|
-
font-size: ${
|
|
175
|
+
font-family: ${Xt};
|
|
176
|
+
font-size: ${Vt};
|
|
177
177
|
font-weight: ${Yt};
|
|
178
178
|
letter-spacing: ${qt};
|
|
179
179
|
line-height: ${Jt};
|
|
180
180
|
text-transform: ${Qt};
|
|
181
181
|
}
|
|
182
|
-
`,
|
|
182
|
+
`,Ri=e.css`
|
|
183
183
|
.ft-typography--breadcrumb {
|
|
184
184
|
font-family: ${ti};
|
|
185
185
|
font-size: ${ii};
|
|
186
186
|
font-weight: ${ei};
|
|
187
187
|
letter-spacing: ${oi};
|
|
188
188
|
line-height: ${ri};
|
|
189
|
-
text-transform: ${
|
|
189
|
+
text-transform: ${ni};
|
|
190
190
|
}
|
|
191
|
-
`,
|
|
191
|
+
`,wi=e.css`
|
|
192
192
|
.ft-typography--overline {
|
|
193
|
-
font-family: ${
|
|
194
|
-
font-size: ${
|
|
195
|
-
font-weight: ${
|
|
193
|
+
font-family: ${si};
|
|
194
|
+
font-size: ${pi};
|
|
195
|
+
font-weight: ${ai};
|
|
196
196
|
letter-spacing: ${li};
|
|
197
197
|
line-height: ${fi};
|
|
198
198
|
text-transform: ${hi};
|
|
@@ -204,44 +204,44 @@ const et=Symbol.for(""),ot=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
204
204
|
font-weight: ${di};
|
|
205
205
|
letter-spacing: ${ui};
|
|
206
206
|
line-height: ${gi};
|
|
207
|
-
text-transform: ${
|
|
207
|
+
text-transform: ${xi};
|
|
208
208
|
}
|
|
209
|
-
`;class
|
|
209
|
+
`;class Ei extends i.FtLitElement{constructor(){super(...arguments),this.variant=pt.body1}render(){return this.element?st`
|
|
210
210
|
<${rt(this.element)}
|
|
211
211
|
class="ft-typography ft-typography--${this.variant}">
|
|
212
212
|
<slot></slot>
|
|
213
213
|
</${rt(this.element)}>
|
|
214
|
-
`:
|
|
214
|
+
`:st`
|
|
215
215
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
216
|
-
`}}
|
|
216
|
+
`}}Ei.styles=[bi,vi,mi,$i,Oi,Ni,Si,Ri,wi,Ui,e.css`
|
|
217
217
|
.ft-typography {
|
|
218
218
|
vertical-align: inherit;
|
|
219
219
|
}
|
|
220
|
-
`],
|
|
220
|
+
`],at([o.property()],Ei.prototype,"element",void 0),at([o.property()],Ei.prototype,"variant",void 0),i.customElement("ft-typography")(Ei);var Fi=function(t,i,e,o){for(var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,p=t.length-1;p>=0;p--)(r=t[p])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);return n>3&&s&&Object.defineProperty(i,e,s),s};const Mi={padding:i.FtCssVariableFactory.create("--ft-card-padding","SIZE","12px"),colorPrimary:i.FtCssVariableFactory.external($.colorPrimary,"Design system"),colorSurface:i.FtCssVariableFactory.external($.colorSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external($.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:i.FtCssVariableFactory.external($.colorOnSurfaceHigh,"Design system"),borderRadiusM:i.FtCssVariableFactory.external($.borderRadiusM,"Design system"),elevation02:i.FtCssVariableFactory.external($.elevation02,"Design system"),elevation04:i.FtCssVariableFactory.external($.elevation04,"Design system")};class Ci extends i.FtLitElement{constructor(){super(...arguments),this.title="",this.selected=!1}static get styles(){return e.css`
|
|
221
221
|
:host {
|
|
222
222
|
display: block;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
#container {
|
|
226
|
-
padding: ${
|
|
227
|
-
border-radius: ${
|
|
228
|
-
box-shadow: ${
|
|
226
|
+
padding: ${Mi.padding};
|
|
227
|
+
border-radius: ${Mi.borderRadiusM};
|
|
228
|
+
box-shadow: ${Mi.elevation02};
|
|
229
229
|
position: relative;
|
|
230
230
|
width: 100%;
|
|
231
231
|
height: 100%;
|
|
232
232
|
display: block;
|
|
233
233
|
box-sizing: border-box;
|
|
234
|
-
background-color: ${
|
|
234
|
+
background-color: ${Mi.colorSurface};
|
|
235
235
|
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
#container:hover {
|
|
239
|
-
box-shadow: ${
|
|
239
|
+
box-shadow: ${Mi.elevation04};
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
#container.selected {
|
|
243
|
-
outline: solid 2px ${
|
|
244
|
-
box-shadow: ${
|
|
243
|
+
outline: solid 2px ${Mi.colorPrimary};
|
|
244
|
+
box-shadow: ${Mi.elevation04};
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
#header:not([hidden]) {
|
|
@@ -255,21 +255,21 @@ const et=Symbol.for(""),ot=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
255
255
|
|
|
256
256
|
.title {
|
|
257
257
|
text-overflow: ellipsis;
|
|
258
|
-
color: ${
|
|
258
|
+
color: ${Mi.colorOnSurfaceHigh};
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
#content {
|
|
262
262
|
opacity: 1;
|
|
263
263
|
font-size: 15px;
|
|
264
264
|
height: 100%;
|
|
265
|
-
color: ${
|
|
265
|
+
color: ${Mi.colorOnSurfaceMedium};
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
#action {
|
|
269
269
|
position: absolute;
|
|
270
270
|
top: 0;
|
|
271
271
|
right: 0;
|
|
272
|
-
color: ${
|
|
272
|
+
color: ${Mi.colorOnSurfaceHigh};
|
|
273
273
|
}
|
|
274
274
|
`}render(){return e.html`
|
|
275
275
|
<div id="container" part="container" class=${this.selected?"selected":""}>
|
|
@@ -287,4 +287,4 @@ const et=Symbol.for(""),ot=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
287
287
|
<slot name="action"></slot>
|
|
288
288
|
</div>
|
|
289
289
|
</div>
|
|
290
|
-
`}}
|
|
290
|
+
`}}Ci.elementDefinitions={"ft-ripple":v,"ft-typography":Ei},Fi([o.property()],Ci.prototype,"title",void 0),Fi([o.property({type:Boolean})],Ci.prototype,"selected",void 0),i.customElement("ft-card")(Ci),t.FtCard=Ci,t.FtCardCssVariables=Mi,Object.defineProperty(t,"t",{value:!0})}({},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 p=i.call(o,t);p||(p=c(t),e.call(o,t,p)),this===window.customElements&&(n.set(r,h),h.standInClass=p);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(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const 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,p=t=>{let e=t.getRootNode();if(!h(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=p(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(){r.get(this)?.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 g=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.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 p=i.call(o,t);p||(p=c(t),e.call(o,t,p)),this===window.customElements&&(n.set(r,h),h.standInClass=p);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(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const 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,p=t=>{let e=t.getRootNode();if(!h(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=p(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(){r.get(this)?.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 g=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.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(Ut){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -46,30 +46,30 @@ function s(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var r;if(void 0===o)
|
|
|
46
46
|
* Copyright 2019 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
const l=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),p=new
|
|
49
|
+
const l=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),p=new WeakMap;class c{constructor(t,e,i){if(this._$cssResult$=!0,i!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(l&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=p.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&p.set(e,t))}return t}toString(){return this.cssText}}const f=t=>new c("string"==typeof t?t:t+"",void 0,h),d=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new c(i,t,h)},u=(t,e)=>{l?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},y=l?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return f(e)})(t):t
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var g;const v=window.trustedTypes,b=v?v.emptyScript:"",m=window.reactiveElementPolyfillSupport,x={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},w=(t,e)=>e!==t&&(e==e||t==t),$={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:w};class O extends HTMLElement{constructor(){super(),this._$
|
|
54
|
+
*/;var g;const v=window.trustedTypes,b=v?v.emptyScript:"",m=window.reactiveElementPolyfillSupport,x={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},w=(t,e)=>e!==t&&(e==e||t==t),$={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:w};class O extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(y(t))}else void 0!==t&&e.push(y(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return u(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=$){var o,r;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(null!==(r=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==r?r:x.toAttribute)(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i,o;const r=this.constructor,s=r._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=r.getPropertyOptions(s),n=t.converter,a=null!==(o=null!==(i=null==n?void 0:n.fromAttribute)&&void 0!==i?i:"function"==typeof n?n:null)&&void 0!==o?o:x.fromAttribute;this._$El=s,this[s]=a(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||w)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:O}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.
|
|
60
|
+
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:O}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.4");const N=globalThis.trustedTypes,E=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,C="?"+R,k=`<${C}>`,M=document,U=(t="")=>M.createComment(t),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,z=/>/g,B=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),D=/'/g,j=/"/g,_=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),W=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),K=new WeakMap,I=M.createTreeWalker(M,129,null,!1),Z=(t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",n=L;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,p=0;for(;p<i.length&&(n.lastIndex=p,l=n.exec(i),null!==l);)p=n.lastIndex,n===L?"!--"===l[1]?n=P:void 0!==l[1]?n=z:void 0!==l[2]?(_.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=B):void 0!==l[3]&&(n=B):n===B?">"===l[0]?(n=null!=r?r:L,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?B:'"'===l[3]?j:D):n===j||n===D?n=B:n===P||n===z?n=L:(n=B,r=void 0);const c=n===B&&t[e+1].startsWith("/>")?" ":"";s+=n===L?i+k:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+R+c):i+R+(-2===h?(o.push(void 0),e):c)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(a):a,o]};class V{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]=Z(t,e);if(this.el=V.createElement(l,i),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=I.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(R)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(R),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?tt:"@"===e[1]?et:Y})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(R),e=t.length-1;if(e>0){o.textContent=N?N.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),I.nextNode(),a.push({type:2,index:++r});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===C)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)a.push({type:7,index:r}),t+=R.length-1}r++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function J(t,e,i=t,o){var r,s,n,a;if(e===W)return e;let l=void 0!==o?null===(r=i._$Cl)||void 0===r?void 0:r[o]:i._$Cu;const h=F(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)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=J(t,l._$AS(t,e.values),l,o)),e}class X{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);I.currentNode=r;let s=I.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new q(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new it(s,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(s=I.nextNode(),n++)}return r}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class q{constructor(t,e,i,o){var r;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=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._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=J(this,t,e),F(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==W&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==H&&F(this._$AH)?this._$AA.nextSibling.data=t:this.k(M.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=V.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{const t=new X(r,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new V(t)),e}S(t){A(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 q(this.j(U()),this.j(U()),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._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Y{constructor(t,e,i,o,r){this.type=1,this._$AH=H,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=H}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=J(this,t,e,0),s=!F(t)||t!==this._$AH&&t!==W,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=J(this,o[i+n],e,n),a===W&&(a=this._$AH[n]),s||(s=!F(a)||a!==this._$AH[n]),a===H?t=H:t!==H&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.P(t)}P(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends Y{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===H?void 0:t}}const Q=N?N.emptyScript:"";class tt extends Y{constructor(){super(...arguments),this.type=4}P(t){t&&t!==H?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class et extends Y{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=J(this,t,e,0))&&void 0!==i?i:H)===W)return;const o=this._$AH,r=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==H&&(o===H||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 it{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){J(this,t)}}const ot=window.litHtmlPolyfillSupport;
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
var rt,st;null==ot||ot(
|
|
66
|
+
var rt,st;null==ot||ot(V,q),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S:globalThis.litHtmlVersions=[]).push("2.2.7");class nt extends O{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 q(e.insertBefore(U(),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 W}}nt.finalized=!0,nt._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:nt});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:nt}),(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.2.2");class lt{static create(t,e,i){let o=t=>f(null!=t?t:i),r=d`var(${f(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>d`var(${f(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=d`var(${f(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>d`var(${f(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):f(null!=e?e:t.defaultValue),o=d`var(${f(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=>d`var(${f(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 ht={colorPrimary:lt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:lt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:lt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:lt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:lt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:lt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:lt.create("--ft-color-error","COLOR","#B00020"),colorOutline:lt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:lt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:lt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:lt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:lt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:lt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:lt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:lt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:lt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:lt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:lt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:lt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:lt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:lt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:lt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:lt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:lt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:lt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:lt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:lt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:lt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:lt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:lt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:lt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:lt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:lt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:lt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:lt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:lt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:lt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:lt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:lt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:lt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:lt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:lt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:lt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:lt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:lt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:lt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:lt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:lt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:lt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:lt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:lt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:lt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:lt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:lt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:lt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:lt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:lt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:lt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:lt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:lt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:lt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:lt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
67
67
|
/**
|
|
68
68
|
* @license
|
|
69
69
|
* Copyright 2021 Google LLC
|
|
70
70
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
71
|
-
*/var pt,ct,ft=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 dt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return u(r,this.constructor.elementStyles),r}}}(nt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),
|
|
72
|
-
${t.map((t=>
|
|
71
|
+
*/var pt,ct,ft=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 dt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return u(r,this.constructor.elementStyles),r}}}(nt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),T`
|
|
72
|
+
${t.map((t=>T`
|
|
73
73
|
<style>${t}</style>
|
|
74
74
|
`))}
|
|
75
75
|
${this.getTemplate()}
|
|
@@ -94,7 +94,7 @@ const ut=1;
|
|
|
94
94
|
* Copyright 2018 Google LLC
|
|
95
95
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
96
96
|
*/
|
|
97
|
-
const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){var e;if(super(t),t.type!==ut||"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.
|
|
97
|
+
const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){var e;if(super(t),t.type!==ut||"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.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const r=t.element.classList;this.nt.forEach((t=>{t in e||(r.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return W}});var gt=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 vt=lt.extend("--ft-ripple-color",ht.colorContent),bt=vt,mt=lt.extend("--ft-ripple-background-color",vt),xt=lt.external(ht.opacityContentOnSurfacePressed,"Design system"),wt=lt.external(ht.opacityContentOnSurfaceHover,"Design system"),$t=lt.external(ht.opacityContentOnSurfaceFocused,"Design system"),Ot=lt.external(ht.opacityContentOnSurfaceSelected,"Design system"),St=lt.extend("--ft-ripple-color",ht.colorPrimary),Nt=St,Et=lt.extend("--ft-ripple-background-color",St),Rt=lt.extend("--ft-ripple-color",ht.colorSecondary),Ct=Rt,kt=lt.extend("--ft-ripple-background-color",Rt);class Mt extends dt{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.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 T`
|
|
98
98
|
<style>
|
|
99
99
|
.ft-ripple .ft-ripple--effect,
|
|
100
100
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -145,11 +145,11 @@ const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
148
|
-
background-color: ${
|
|
148
|
+
background-color: ${Ct};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
152
|
-
background-color: ${
|
|
152
|
+
background-color: ${Et};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
@@ -206,18 +206,18 @@ const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
206
206
|
* Copyright 2020 Google LLC
|
|
207
207
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
208
208
|
*/
|
|
209
|
-
const Ut=Symbol.for(""),Ft=t=>{
|
|
209
|
+
const Ut=Symbol.for(""),Ft=t=>{if((null==t?void 0:t.r)===Ut)return null==t?void 0:t._$litStatic$},At=t=>({_$litStatic$:t,r:Ut}),Lt=new Map,Pt=(t=>(e,...i)=>{const o=i.length;let r,s;const n=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(s=i[h],r=Ft(s));)l+=r+e[++h],p=!0;a.push(s),n.push(l),h++}if(h===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=Lt.get(t))&&(n.raw=n,Lt.set(t,e=n)),i=a}return t(e,...i)})(T);var zt,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};!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"}(zt||(zt={}));const Dt=lt.extend("--ft-typography-font-family",ht.titleFont),jt=lt.extend("--ft-typography-font-family",ht.contentFont),_t={fontFamily:jt,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Tt=lt.extend("--ft-typography-title-font-family",Dt),Wt=lt.extend("--ft-typography-title-font-size",_t.fontSize,"20px"),Ht=lt.extend("--ft-typography-title-font-weight",_t.fontWeight,"normal"),Kt=lt.extend("--ft-typography-title-letter-spacing",_t.letterSpacing,"0.15px"),It=lt.extend("--ft-typography-title-line-height",_t.lineHeight,"1.2"),Zt=lt.extend("--ft-typography-title-text-transform",_t.textTransform,"inherit"),Vt=lt.extend("--ft-typography-title-dense-font-family",Dt),Jt=lt.extend("--ft-typography-title-dense-font-size",_t.fontSize,"14px"),Xt=lt.extend("--ft-typography-title-dense-font-weight",_t.fontWeight,"normal"),qt=lt.extend("--ft-typography-title-dense-letter-spacing",_t.letterSpacing,"0.105px"),Yt=lt.extend("--ft-typography-title-dense-line-height",_t.lineHeight,"1.7"),Gt=lt.extend("--ft-typography-title-dense-text-transform",_t.textTransform,"inherit"),Qt=lt.extend("--ft-typography-subtitle1-font-family",jt),te=lt.extend("--ft-typography-subtitle1-font-size",_t.fontSize,"16px"),ee=lt.extend("--ft-typography-subtitle1-font-weight",_t.fontWeight,"600"),ie=lt.extend("--ft-typography-subtitle1-letter-spacing",_t.letterSpacing,"0.144px"),oe=lt.extend("--ft-typography-subtitle1-line-height",_t.lineHeight,"1.5"),re=lt.extend("--ft-typography-subtitle1-text-transform",_t.textTransform,"inherit"),se=lt.extend("--ft-typography-subtitle2-font-family",jt),ne=lt.extend("--ft-typography-subtitle2-font-size",_t.fontSize,"14px"),ae=lt.extend("--ft-typography-subtitle2-font-weight",_t.fontWeight,"normal"),le=lt.extend("--ft-typography-subtitle2-letter-spacing",_t.letterSpacing,"0.098px"),he=lt.extend("--ft-typography-subtitle2-line-height",_t.lineHeight,"1.7"),pe=lt.extend("--ft-typography-subtitle2-text-transform",_t.textTransform,"inherit"),ce=lt.extend("--ft-typography-body1-font-family",jt),fe=lt.extend("--ft-typography-body1-font-size",_t.fontSize,"16px"),de=lt.extend("--ft-typography-body1-font-weight",_t.fontWeight,"normal"),ue=lt.extend("--ft-typography-body1-letter-spacing",_t.letterSpacing,"0.496px"),ye=lt.extend("--ft-typography-body1-line-height",_t.lineHeight,"1.5"),ge=lt.extend("--ft-typography-body1-text-transform",_t.textTransform,"inherit"),ve=lt.extend("--ft-typography-body2-font-family",jt),be=lt.extend("--ft-typography-body2-font-size",_t.fontSize,"14px"),me=lt.extend("--ft-typography-body2-font-weight",_t.fontWeight,"normal"),xe=lt.extend("--ft-typography-body2-letter-spacing",_t.letterSpacing,"0.252px"),we=lt.extend("--ft-typography-body2-line-height",_t.lineHeight,"1.4"),$e=lt.extend("--ft-typography-body2-text-transform",_t.textTransform,"inherit"),Oe=lt.extend("--ft-typography-caption-font-family",jt),Se=lt.extend("--ft-typography-caption-font-size",_t.fontSize,"12px"),Ne=lt.extend("--ft-typography-caption-font-weight",_t.fontWeight,"normal"),Ee=lt.extend("--ft-typography-caption-letter-spacing",_t.letterSpacing,"0.396px"),Re=lt.extend("--ft-typography-caption-line-height",_t.lineHeight,"1.33"),Ce=lt.extend("--ft-typography-caption-text-transform",_t.textTransform,"inherit"),ke=lt.extend("--ft-typography-breadcrumb-font-family",jt),Me=lt.extend("--ft-typography-breadcrumb-font-size",_t.fontSize,"10px"),Ue=lt.extend("--ft-typography-breadcrumb-font-weight",_t.fontWeight,"normal"),Fe=lt.extend("--ft-typography-breadcrumb-letter-spacing",_t.letterSpacing,"0.33px"),Ae=lt.extend("--ft-typography-breadcrumb-line-height",_t.lineHeight,"1.6"),Le=lt.extend("--ft-typography-breadcrumb-text-transform",_t.textTransform,"inherit"),Pe=lt.extend("--ft-typography-overline-font-family",jt),ze=lt.extend("--ft-typography-overline-font-size",_t.fontSize,"10px"),Be=lt.extend("--ft-typography-overline-font-weight",_t.fontWeight,"normal"),De=lt.extend("--ft-typography-overline-letter-spacing",_t.letterSpacing,"1.5px"),je=lt.extend("--ft-typography-overline-line-height",_t.lineHeight,"1.6"),_e=lt.extend("--ft-typography-overline-text-transform",_t.textTransform,"uppercase"),Te=lt.extend("--ft-typography-button-font-family",jt),We=lt.extend("--ft-typography-button-font-size",_t.fontSize,"14px"),He=lt.extend("--ft-typography-button-font-weight",_t.fontWeight,"600"),Ke=lt.extend("--ft-typography-button-letter-spacing",_t.letterSpacing,"1.246px"),Ie=lt.extend("--ft-typography-button-line-height",_t.lineHeight,"1.15"),Ze=lt.extend("--ft-typography-button-text-transform",_t.textTransform,"uppercase"),Ve=d`
|
|
210
210
|
.ft-typography--title {
|
|
211
|
-
font-family: ${
|
|
211
|
+
font-family: ${Tt};
|
|
212
212
|
font-size: ${Wt};
|
|
213
213
|
font-weight: ${Ht};
|
|
214
214
|
letter-spacing: ${Kt};
|
|
215
215
|
line-height: ${It};
|
|
216
|
-
text-transform: ${
|
|
216
|
+
text-transform: ${Zt};
|
|
217
217
|
}
|
|
218
218
|
`,Je=d`
|
|
219
219
|
.ft-typography--title-dense {
|
|
220
|
-
font-family: ${
|
|
220
|
+
font-family: ${Vt};
|
|
221
221
|
font-size: ${Jt};
|
|
222
222
|
font-weight: ${Xt};
|
|
223
223
|
letter-spacing: ${qt};
|
|
@@ -266,9 +266,9 @@ const Ut=Symbol.for(""),Ft=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
266
266
|
font-family: ${Oe};
|
|
267
267
|
font-size: ${Se};
|
|
268
268
|
font-weight: ${Ne};
|
|
269
|
-
letter-spacing: ${
|
|
269
|
+
letter-spacing: ${Ee};
|
|
270
270
|
line-height: ${Re};
|
|
271
|
-
text-transform: ${
|
|
271
|
+
text-transform: ${Ce};
|
|
272
272
|
}
|
|
273
273
|
`,ti=d`
|
|
274
274
|
.ft-typography--breadcrumb {
|
|
@@ -281,30 +281,30 @@ const Ut=Symbol.for(""),Ft=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
281
281
|
}
|
|
282
282
|
`,ei=d`
|
|
283
283
|
.ft-typography--overline {
|
|
284
|
-
font-family: ${
|
|
284
|
+
font-family: ${Pe};
|
|
285
285
|
font-size: ${ze};
|
|
286
286
|
font-weight: ${Be};
|
|
287
|
-
letter-spacing: ${
|
|
288
|
-
line-height: ${
|
|
289
|
-
text-transform: ${
|
|
287
|
+
letter-spacing: ${De};
|
|
288
|
+
line-height: ${je};
|
|
289
|
+
text-transform: ${_e};
|
|
290
290
|
}
|
|
291
291
|
`,ii=d`
|
|
292
292
|
.ft-typography--button {
|
|
293
|
-
font-family: ${
|
|
293
|
+
font-family: ${Te};
|
|
294
294
|
font-size: ${We};
|
|
295
295
|
font-weight: ${He};
|
|
296
296
|
letter-spacing: ${Ke};
|
|
297
297
|
line-height: ${Ie};
|
|
298
|
-
text-transform: ${
|
|
298
|
+
text-transform: ${Ze};
|
|
299
299
|
}
|
|
300
|
-
`;class oi extends dt{constructor(){super(...arguments),this.variant=zt.body1}render(){return this.element?
|
|
300
|
+
`;class oi extends dt{constructor(){super(...arguments),this.variant=zt.body1}render(){return this.element?Pt`
|
|
301
301
|
<${At(this.element)}
|
|
302
302
|
class="ft-typography ft-typography--${this.variant}">
|
|
303
303
|
<slot></slot>
|
|
304
304
|
</${At(this.element)}>
|
|
305
|
-
`:
|
|
305
|
+
`:Pt`
|
|
306
306
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
307
|
-
`}}oi.styles=[
|
|
307
|
+
`}}oi.styles=[Ve,Je,Xe,qe,Ye,Ge,Qe,ti,ei,ii,d`
|
|
308
308
|
.ft-typography {
|
|
309
309
|
vertical-align: inherit;
|
|
310
310
|
}
|
|
@@ -362,7 +362,7 @@ const Ut=Symbol.for(""),Ft=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
362
362
|
right: 0;
|
|
363
363
|
color: ${si.colorOnSurfaceHigh};
|
|
364
364
|
}
|
|
365
|
-
`}render(){return
|
|
365
|
+
`}render(){return T`
|
|
366
366
|
<div id="container" part="container" class=${this.selected?"selected":""}>
|
|
367
367
|
<ft-ripple primary></ft-ripple>
|
|
368
368
|
<div id="header" ?hidden=${!this.title} part="header">
|
|
@@ -378,4 +378,4 @@ const Ut=Symbol.for(""),Ft=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
378
378
|
<slot name="action"></slot>
|
|
379
379
|
</div>
|
|
380
380
|
</div>
|
|
381
|
-
`}}ni.elementDefinitions={"ft-ripple":Mt,"ft-typography":oi},ri([o()],ni.prototype,"title",void 0),ri([o({type:Boolean})],ni.prototype,"selected",void 0),a("ft-card")(ni),t.FtCard=ni,t.FtCardCssVariables=si,Object.defineProperty(t,"
|
|
381
|
+
`}}ni.elementDefinitions={"ft-ripple":Mt,"ft-typography":oi},ri([o()],ni.prototype,"title",void 0),ri([o({type:Boolean})],ni.prototype,"selected",void 0),a("ft-card")(ni),t.FtCard=ni,t.FtCardCssVariables=si,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-card",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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": "^0.
|
|
23
|
-
"@fluid-topics/ft-typography": "^0.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "^0.
|
|
25
|
-
"lit": "2.
|
|
22
|
+
"@fluid-topics/ft-ripple": "^0.3.0",
|
|
23
|
+
"@fluid-topics/ft-typography": "^0.3.0",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "^0.3.0",
|
|
25
|
+
"lit": "2.2.8"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "2019aceb4a578402211f951ec3d68dbc0acf25c7"
|
|
28
28
|
}
|