@fluid-topics/ft-card 0.2.13 → 0.2.16
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.inline-styles.js +15 -15
- package/build/ft-card.light.js +15 -15
- package/build/ft-card.min.js +7 -7
- package/package.json +5 -5
|
@@ -56,13 +56,13 @@ function s(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o)
|
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var O;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==b||b({ReactiveElement:$}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.2");const S=globalThis.trustedTypes,C=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,
|
|
59
|
+
var O;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==b||b({ReactiveElement:$}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.2");const S=globalThis.trustedTypes,C=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,R="?"+N,E=`<${R}>`,k=document,M=(t="")=>k.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,L=/>/g,z=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,B=/'/g,T=/"/g,_=/^(?:script|style|textarea|title)$/i,P=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),j=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),H=new WeakMap,K=k.createTreeWalker(k,129,null,!1),I=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=A;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===A?"!--"===l[1]?n=D:void 0!==l[1]?n=L:void 0!==l[2]?(_.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=z):void 0!==l[3]&&(n=z):n===z?">"===l[0]?(n=null!=s?s:A,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?z:'"'===l[3]?T:B):n===T||n===B?n=z:n===D||n===L?n=A:(n=z,s=void 0);const c=n===z&&t[e+1].startsWith("/>")?" ":"";r+=n===A?i+E:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+N+c):i+N+(-2===h?(o.push(void 0),e):c)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(a):a,o]};class V{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,h]=I(t,e);if(this.el=V.createElement(l,i),K.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=K.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(N)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(N),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?Y:"?"===e[1]?Q:"@"===e[1]?tt:J})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(N),e=t.length-1;if(e>0){o.textContent=S?S.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],M()),K.nextNode(),a.push({type:2,index:++s});o.append(t[e],M())}}}else if(8===o.nodeType)if(o.data===R)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(N,t+1));)a.push({type:7,index:s}),t+=N.length-1}s++}}static createElement(t,e){const i=k.createElement("template");return i.innerHTML=t,i}}function Z(t,e,i=t,o){var s,r,n,a;if(e===j)return e;let l=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const h=U(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,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=Z(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,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:k).importNode(i,!0);K.currentNode=s;let r=K.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new q(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new et(r,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=K.nextNode(),n++)}return s}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 s;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}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=Z(this,t,e),U(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==j&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return F(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==W&&U(this._$AH)?this._$AA.nextSibling.data=t:this.k(k.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="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)===s)this._$AH.m(i);else{const t=new X(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new V(t)),e}S(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new q(this.M(M()),this.M(M()),this,this.options)):i=e[o],i._$AI(s),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._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class J{constructor(t,e,i,o,s){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=Z(this,t,e,0),r=!U(t)||t!==this._$AH&&t!==j,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=Z(this,o[i+n],e,n),a===j&&(a=this._$AH[n]),r||(r=!U(a)||a!==this._$AH[n]),a===W?t=W:t!==W&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.C(t)}C(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends J{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===W?void 0:t}}const G=S?S.emptyScript:"";class Q extends J{constructor(){super(...arguments),this.type=4}C(t){t&&t!==W?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class tt extends J{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Z(this,t,e,0))&&void 0!==i?i:W)===j)return;const o=this._$AH,s=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==W&&(o===W||s);s&&this.element.removeEventListener(this.name,this,o),r&&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 et{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){Z(this,t)}}const it=window.litHtmlPolyfillSupport;
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var ot,st;null==it||it(
|
|
65
|
+
var ot,st;null==it||it(V,q),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.2.4");class rt extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=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._$Dt=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new q(e.insertBefore(M(),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._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return j}}rt.finalized=!0,rt._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:rt});const nt=globalThis.litElementPolyfillSupport;null==nt||nt({LitElement:rt}),(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.2.0");class at{constructor(t,e,i,o,s){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=s,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new at(t,e,void 0,i)}static extend(t,e,i){return new at(t,e.category,e,i)}static external(t,e){return new at(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return f`var(${c(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):c(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const lt={colorPrimary:at.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:at.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:at.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:at.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:at.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:at.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:at.create("--ft-color-error","COLOR","#B00020"),colorOutline:at.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:at.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:at.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:at.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:at.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:at.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:at.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:at.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:at.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:at.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:at.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:at.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:at.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:at.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:at.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:at.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:at.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:at.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:at.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:at.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:at.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:at.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:at.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:at.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:at.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:at.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:at.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:at.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:at.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:at.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:at.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:at.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:at.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:at.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:at.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:at.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:at.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:at.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:at.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:at.create("--ft-border-radius-XL","SIZE","16px"),titleFont:at.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:at.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:at.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:at.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
@@ -93,7 +93,7 @@ const ft=1;
|
|
|
93
93
|
* Copyright 2018 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
95
|
*/
|
|
96
|
-
const dt=(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!==ft||"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.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.et.add(t);return this.render(e)}const s=t.element.classList;this.et.forEach((t=>{t in e||(s.remove(t),this.et.delete(t))}));for(const t in e){const i=!!e[t];i===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.et.add(t)):(s.remove(t),this.et.delete(t)))}return j}});var ut=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const yt=at.extend("--ft-ripple-color",lt.colorContent),gt=yt,vt=at.extend("--ft-ripple-background-color",yt),bt=at.external(lt.opacityContentOnSurfacePressed,"Design system"),mt=at.external(lt.opacityContentOnSurfaceHover,"Design system"),xt=at.external(lt.opacityContentOnSurfaceFocused,"Design system"),wt=at.external(lt.opacityContentOnSurfaceSelected,"Design system"),$t=at.extend("--ft-ripple-color",lt.colorPrimary),Ot=$t,St=at.extend("--ft-ripple-background-color",$t),Ct=at.extend("--ft-ripple-color",lt.colorSecondary),Nt=Ct,
|
|
96
|
+
const dt=(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!==ft||"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.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.et.add(t);return this.render(e)}const s=t.element.classList;this.et.forEach((t=>{t in e||(s.remove(t),this.et.delete(t))}));for(const t in e){const i=!!e[t];i===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.et.add(t)):(s.remove(t),this.et.delete(t)))}return j}});var ut=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const yt=at.extend("--ft-ripple-color",lt.colorContent),gt=yt,vt=at.extend("--ft-ripple-background-color",yt),bt=at.external(lt.opacityContentOnSurfacePressed,"Design system"),mt=at.external(lt.opacityContentOnSurfaceHover,"Design system"),xt=at.external(lt.opacityContentOnSurfaceFocused,"Design system"),wt=at.external(lt.opacityContentOnSurfaceSelected,"Design system"),$t=at.extend("--ft-ripple-color",lt.colorPrimary),Ot=$t,St=at.extend("--ft-ripple-background-color",$t),Ct=at.extend("--ft-ripple-color",lt.colorSecondary),Nt=Ct,Rt=at.extend("--ft-ripple-background-color",Ct);class Et extends ht{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 t(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:s}=this.getCoordinates(t),r=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-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return P`
|
|
97
97
|
<style>
|
|
98
98
|
.ft-ripple .ft-ripple--effect,
|
|
99
99
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -110,7 +110,7 @@ const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
110
110
|
<div class="ft-ripple--background"></div>
|
|
111
111
|
<div class="ft-ripple--effect"></div>
|
|
112
112
|
</div>
|
|
113
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
|
|
113
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Et.elementDefinitions={},Et.styles=f`
|
|
114
114
|
:host {
|
|
115
115
|
display: contents;
|
|
116
116
|
}
|
|
@@ -140,7 +140,7 @@ const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
143
|
-
background-color: ${
|
|
143
|
+
background-color: ${Rt};
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
@@ -199,13 +199,13 @@ const dt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
199
199
|
opacity: ${bt};
|
|
200
200
|
transform: translate(-50%, -50%) scale(1);
|
|
201
201
|
}
|
|
202
|
-
`,ut([i({type:Boolean})],
|
|
202
|
+
`,ut([i({type:Boolean})],Et.prototype,"primary",void 0),ut([i({type:Boolean})],Et.prototype,"secondary",void 0),ut([i({type:Boolean})],Et.prototype,"unbounded",void 0),ut([i({type:Boolean})],Et.prototype,"activated",void 0),ut([i({type:Boolean})],Et.prototype,"selected",void 0),ut([i({type:Boolean})],Et.prototype,"disabled",void 0),ut([o()],Et.prototype,"hovered",void 0),ut([o()],Et.prototype,"focused",void 0),ut([o()],Et.prototype,"pressed",void 0),ut([o()],Et.prototype,"rippling",void 0),ut([o()],Et.prototype,"rippleSize",void 0),ut([o()],Et.prototype,"originX",void 0),ut([o()],Et.prototype,"originY",void 0),ut([s(".ft-ripple")],Et.prototype,"ripple",void 0),ut([s(".ft-ripple--effect")],Et.prototype,"rippleEffect",void 0),n("ft-ripple")(Et);
|
|
203
203
|
/**
|
|
204
204
|
* @license
|
|
205
205
|
* Copyright 2020 Google LLC
|
|
206
206
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
207
207
|
*/
|
|
208
|
-
const kt=Symbol.for(""),Mt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===kt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},Ut=t=>({_$litStatic$:t,r:kt}),Ft=new Map,At=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],s=Mt(r));)l+=s+e[++h],p=!0;a.push(r),n.push(l),h++}if(h===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=Ft.get(t))&&(n.raw=n,Ft.set(t,e=n)),i=a}return t(e,...i)})(P);var Dt,Lt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>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"}(Dt||(Dt={}));const zt=at.extend("--ft-typography-font-family",lt.titleFont),Bt=at.extend("--ft-typography-font-family",lt.contentFont),Tt={fontFamily:Bt,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","
|
|
208
|
+
const kt=Symbol.for(""),Mt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===kt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},Ut=t=>({_$litStatic$:t,r:kt}),Ft=new Map,At=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],s=Mt(r));)l+=s+e[++h],p=!0;a.push(r),n.push(l),h++}if(h===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=Ft.get(t))&&(n.raw=n,Ft.set(t,e=n)),i=a}return t(e,...i)})(P);var Dt,Lt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>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"}(Dt||(Dt={}));const zt=at.extend("--ft-typography-font-family",lt.titleFont),Bt=at.extend("--ft-typography-font-family",lt.contentFont),Tt={fontFamily:Bt,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:at.create("--ft-typography-text-transform","UNKNOWN","inherit")},_t=at.extend("--ft-typography-title-font-family",zt),Pt=at.extend("--ft-typography-title-font-size",Tt.fontSize,"20px"),jt=at.extend("--ft-typography-title-font-weight",Tt.fontWeight,"normal"),Wt=at.extend("--ft-typography-title-letter-spacing",Tt.letterSpacing,"0.15px"),Ht=at.extend("--ft-typography-title-line-height",Tt.lineHeight,"1.2"),Kt=at.extend("--ft-typography-title-text-transform",Tt.textTransform,"inherit"),It=at.extend("--ft-typography-title-dense-font-family",zt),Vt=at.extend("--ft-typography-title-dense-font-size",Tt.fontSize,"14px"),Zt=at.extend("--ft-typography-title-dense-font-weight",Tt.fontWeight,"normal"),Xt=at.extend("--ft-typography-title-dense-letter-spacing",Tt.letterSpacing,"0.105px"),qt=at.extend("--ft-typography-title-dense-line-height",Tt.lineHeight,"1.7"),Jt=at.extend("--ft-typography-title-dense-text-transform",Tt.textTransform,"inherit"),Yt=at.extend("--ft-typography-subtitle1-font-family",Bt),Gt=at.extend("--ft-typography-subtitle1-font-size",Tt.fontSize,"16px"),Qt=at.extend("--ft-typography-subtitle1-font-weight",Tt.fontWeight,"600"),te=at.extend("--ft-typography-subtitle1-letter-spacing",Tt.letterSpacing,"0.144px"),ee=at.extend("--ft-typography-subtitle1-line-height",Tt.lineHeight,"1.5"),ie=at.extend("--ft-typography-subtitle1-text-transform",Tt.textTransform,"inherit"),oe=at.extend("--ft-typography-subtitle2-font-family",Bt),se=at.extend("--ft-typography-subtitle2-font-size",Tt.fontSize,"14px"),re=at.extend("--ft-typography-subtitle2-font-weight",Tt.fontWeight,"normal"),ne=at.extend("--ft-typography-subtitle2-letter-spacing",Tt.letterSpacing,"0.098px"),ae=at.extend("--ft-typography-subtitle2-line-height",Tt.lineHeight,"1.7"),le=at.extend("--ft-typography-subtitle2-text-transform",Tt.textTransform,"inherit"),he=at.extend("--ft-typography-body1-font-family",Bt),pe=at.extend("--ft-typography-body1-font-size",Tt.fontSize,"16px"),ce=at.extend("--ft-typography-body1-font-weight",Tt.fontWeight,"normal"),fe=at.extend("--ft-typography-body1-letter-spacing",Tt.letterSpacing,"0.496px"),de=at.extend("--ft-typography-body1-line-height",Tt.lineHeight,"1.5"),ue=at.extend("--ft-typography-body1-text-transform",Tt.textTransform,"inherit"),ye=at.extend("--ft-typography-body2-font-family",Bt),ge=at.extend("--ft-typography-body2-font-size",Tt.fontSize,"14px"),ve=at.extend("--ft-typography-body2-font-weight",Tt.fontWeight,"normal"),be=at.extend("--ft-typography-body2-letter-spacing",Tt.letterSpacing,"0.252px"),me=at.extend("--ft-typography-body2-line-height",Tt.lineHeight,"1.4"),xe=at.extend("--ft-typography-body2-text-transform",Tt.textTransform,"inherit"),we=at.extend("--ft-typography-caption-font-family",Bt),$e=at.extend("--ft-typography-caption-font-size",Tt.fontSize,"12px"),Oe=at.extend("--ft-typography-caption-font-weight",Tt.fontWeight,"normal"),Se=at.extend("--ft-typography-caption-letter-spacing",Tt.letterSpacing,"0.396px"),Ce=at.extend("--ft-typography-caption-line-height",Tt.lineHeight,"1.33"),Ne=at.extend("--ft-typography-caption-text-transform",Tt.textTransform,"inherit"),Re=at.extend("--ft-typography-breadcrumb-font-family",Bt),Ee=at.extend("--ft-typography-breadcrumb-font-size",Tt.fontSize,"10px"),ke=at.extend("--ft-typography-breadcrumb-font-weight",Tt.fontWeight,"normal"),Me=at.extend("--ft-typography-breadcrumb-letter-spacing",Tt.letterSpacing,"0.33px"),Ue=at.extend("--ft-typography-breadcrumb-line-height",Tt.lineHeight,"1.6"),Fe=at.extend("--ft-typography-breadcrumb-text-transform",Tt.textTransform,"inherit"),Ae=at.extend("--ft-typography-overline-font-family",Bt),De=at.extend("--ft-typography-overline-font-size",Tt.fontSize,"10px"),Le=at.extend("--ft-typography-overline-font-weight",Tt.fontWeight,"normal"),ze=at.extend("--ft-typography-overline-letter-spacing",Tt.letterSpacing,"1.5px"),Be=at.extend("--ft-typography-overline-line-height",Tt.lineHeight,"1.6"),Te=at.extend("--ft-typography-overline-text-transform",Tt.textTransform,"uppercase"),_e=at.extend("--ft-typography-button-font-family",Bt),Pe=at.extend("--ft-typography-button-font-size",Tt.fontSize,"14px"),je=at.extend("--ft-typography-button-font-weight",Tt.fontWeight,"600"),We=at.extend("--ft-typography-button-letter-spacing",Tt.letterSpacing,"1.246px"),He=at.extend("--ft-typography-button-line-height",Tt.lineHeight,"1.15"),Ke=at.extend("--ft-typography-button-text-transform",Tt.textTransform,"uppercase"),Ie=f`
|
|
209
209
|
.ft-typography--title {
|
|
210
210
|
font-family: ${_t};
|
|
211
211
|
font-size: ${Pt};
|
|
@@ -214,16 +214,16 @@ const kt=Symbol.for(""),Mt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
214
214
|
line-height: ${Ht};
|
|
215
215
|
text-transform: ${Kt};
|
|
216
216
|
}
|
|
217
|
-
`,
|
|
217
|
+
`,Ve=f`
|
|
218
218
|
.ft-typography--title-dense {
|
|
219
219
|
font-family: ${It};
|
|
220
|
-
font-size: ${
|
|
221
|
-
font-weight: ${
|
|
220
|
+
font-size: ${Vt};
|
|
221
|
+
font-weight: ${Zt};
|
|
222
222
|
letter-spacing: ${Xt};
|
|
223
223
|
line-height: ${qt};
|
|
224
224
|
text-transform: ${Jt};
|
|
225
225
|
}
|
|
226
|
-
`,
|
|
226
|
+
`,Ze=f`
|
|
227
227
|
.ft-typography--subtitle1 {
|
|
228
228
|
font-family: ${Yt};
|
|
229
229
|
font-size: ${Gt};
|
|
@@ -271,8 +271,8 @@ const kt=Symbol.for(""),Mt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
271
271
|
}
|
|
272
272
|
`,Ge=f`
|
|
273
273
|
.ft-typography--breadcrumb {
|
|
274
|
-
font-family: ${
|
|
275
|
-
font-size: ${
|
|
274
|
+
font-family: ${Re};
|
|
275
|
+
font-size: ${Ee};
|
|
276
276
|
font-weight: ${ke};
|
|
277
277
|
letter-spacing: ${Me};
|
|
278
278
|
line-height: ${Ue};
|
|
@@ -303,7 +303,7 @@ const kt=Symbol.for(""),Mt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
303
303
|
</${Ut(this.element)}>
|
|
304
304
|
`:At`
|
|
305
305
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
306
|
-
`}}ei.styles=[Ie,Ze,
|
|
306
|
+
`}}ei.styles=[Ie,Ve,Ze,Xe,qe,Je,Ye,Ge,Qe,ti,f`
|
|
307
307
|
.ft-typography {
|
|
308
308
|
vertical-align: inherit;
|
|
309
309
|
}
|
|
@@ -377,7 +377,7 @@ const kt=Symbol.for(""),Mt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
377
377
|
<slot name="action"></slot>
|
|
378
378
|
</div>
|
|
379
379
|
</div>
|
|
380
|
-
`}}ci.elementDefinitions={"ft-ripple":
|
|
380
|
+
`}}ci.elementDefinitions={"ft-ripple":Et,"ft-typography":ei},ii([i()],ci.prototype,"title",void 0),ii([i({type:Boolean})],ci.prototype,"selected",void 0),n("ft-card")(function t(e){var i;let o;if("elementDefinitions"in e){o={};const i=e.elementDefinitions;for(let e in i)o[e]=t(i[e])}return i=class extends e{render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),P`
|
|
381
381
|
${i.map((t=>P`
|
|
382
382
|
<style>${t}</style>
|
|
383
383
|
`))}
|
package/build/ft-card.light.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,i,e,o,r){var s=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,
|
|
1
|
+
!function(t,i,e,o,r){var s=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};const n=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),a=n,p=i.FtCssVariable.extend("--ft-ripple-background-color",n),l=i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),f=i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),h=i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),c=i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),y=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),d=y,u=i.FtCssVariable.extend("--ft-ripple-background-color",y),g=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),b=g,x=i.FtCssVariable.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),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
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: ${p};
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.ft-ripple .ft-ripple--effect {
|
|
44
|
-
background-color: ${
|
|
44
|
+
background-color: ${a};
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
48
|
-
background-color: ${
|
|
48
|
+
background-color: ${x};
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
52
|
-
background-color: ${
|
|
52
|
+
background-color: ${b};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
@@ -109,24 +109,24 @@
|
|
|
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,w=`lit$${(Math.random()+"").slice(9)}$`,R="?"+w,U=`<${R}>`,C=document,E=(t="")=>C.createComment(t),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,z=/>/g,L=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,D=/'/g,P=/"/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,T=C.createTreeWalker(C,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let r,s=2===i?"<svg>":"",n=k;for(let i=0;i<e;i++){const e=t[i];let p,
|
|
112
|
+
*/var O;const N=globalThis.trustedTypes,S=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,R="?"+w,U=`<${R}>`,C=document,E=(t="")=>C.createComment(t),F=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,z=/>/g,L=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,D=/'/g,P=/"/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,T=C.createTreeWalker(C,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let r,s=2===i?"<svg>":"",n=k;for(let i=0;i<e;i++){const e=t[i];let a,p,l=-1,f=0;for(;f<e.length&&(n.lastIndex=f,p=n.exec(e),null!==p);)f=n.lastIndex,n===k?"!--"===p[1]?n=B:void 0!==p[1]?n=z:void 0!==p[2]?(W.test(p[2])&&(r=RegExp("</"+p[2],"g")),n=L):void 0!==p[3]&&(n=L):n===L?">"===p[0]?(n=null!=r?r:k,l=-1):void 0===p[1]?l=-2:(l=n.lastIndex-p[2].length,a=p[1],n=void 0===p[3]?L:'"'===p[3]?P:D):n===P||n===D?n=L:n===B||n===z?n=k:(n=L,r=void 0);const h=n===L&&t[i+1].startsWith("/>")?" ":"";s+=n===k?e+U:l>=0?(o.push(a),e.slice(0,l)+"$lit$"+e.slice(l)+w+h):e+w+(-2===l?(o.push(void 0),i):h)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(a):a,o]};class Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[p,l]=H(t,i);if(this.el=Z.createElement(p,e),T.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=T.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(w)){const e=l[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(w),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?J:"@"===i[1]?Q:X})}else a.push({type:6,index:r})}for(const i of t)o.removeAttribute(i)}if(W.test(o.tagName)){const t=o.textContent.split(w),i=t.length-1;if(i>0){o.textContent=N?N.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],E()),T.nextNode(),a.push({type:2,index:++r});o.append(t[i],E())}}}else if(8===o.nodeType)if(o.data===R)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)a.push({type:7,index:r}),t+=w.length-1}r++}}static createElement(t,i){const e=C.createElement("template");return e.innerHTML=t,e}}function j(t,i,e=t,o){var r,s,n,a;if(i===K)return i;let p=void 0!==o?null===(r=e._$Cl)||void 0===r?void 0:r[o]:e._$Cu;const l=F(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==l&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===l?p=void 0:(p=new l(t),p._$AT(t,e,o)),void 0!==o?(null!==(n=(a=e)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=j(t,p._$AS(t,i.values),p,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:C).importNode(e,!0);T.currentNode=r;let s=T.nextNode(),n=0,a=0,p=o[0];for(;void 0!==p;){if(n===p.index){let i;2===p.type?i=new V(s,s.nextSibling,this,t):1===p.type?i=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(i=new tt(s,this,t)),this.v.push(i),p=o[++a]}n!==(null==p?void 0:p.index)&&(s=T.nextNode(),n++)}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 V{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._$Cg=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._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=j(this,t,i),F(t)?t===_||null==t||""===t?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==K&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return M(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==_&&F(this._$AH)?this._$AA.nextSibling.data=t:this.k(C.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.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 Z(t)),i}S(t){M(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 V(this.M(E()),this.M(E()),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._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class X{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 s=!1;if(void 0===r)t=j(this,t,i,0),s=!F(t)||t!==this._$AH&&t!==K,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[e+n],i,n),a===K&&(a=this._$AH[n]),s||(s=!F(a)||a!==this._$AH[n]),a===_?t=_:t!==_&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.C(t)}C(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends X{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===_?void 0:t}}const q=N?N.emptyScript:"";class J extends X{constructor(){super(...arguments),this.type=4}C(t){t&&t!==_?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Q extends X{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=j(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,s=t!==_&&(o===_||r);r&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class 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){j(this,t)}}const it=window.litHtmlPolyfillSupport;null==it||it(Z,V),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
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=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===et)return null===(e=t)||void 0===e?void 0:e._$litStatic$},rt=t=>({_$litStatic$:t,r:et}),st=new Map,nt=(t=>(i,...e)=>{const o=e.length;let r,s;const n=[],
|
|
118
|
+
const et=Symbol.for(""),ot=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===et)return null===(e=t)||void 0===e?void 0:e._$litStatic$},rt=t=>({_$litStatic$:t,r:et}),st=new Map,nt=(t=>(i,...e)=>{const o=e.length;let r,s;const n=[],a=[];let p,l=0,f=!1;for(;l<o;){for(p=i[l];l<o&&void 0!==(s=e[l],r=ot(s));)p+=r+i[++l],f=!0;a.push(s),n.push(p),l++}if(l===o&&n.push(i[o]),f){const t=n.join("$$lit$$");void 0===(i=st.get(t))&&(n.raw=n,st.set(t,i=n)),e=a}return t(i,...e)})(A);var at,pt=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};!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"}(at||(at={}));const lt=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),ft=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),ht={fontFamily:ft,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},ct=i.FtCssVariable.extend("--ft-typography-title-font-family",lt),yt=i.FtCssVariable.extend("--ft-typography-title-font-size",ht.fontSize,"20px"),dt=i.FtCssVariable.extend("--ft-typography-title-font-weight",ht.fontWeight,"normal"),ut=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",ht.letterSpacing,"0.15px"),gt=i.FtCssVariable.extend("--ft-typography-title-line-height",ht.lineHeight,"1.2"),bt=i.FtCssVariable.extend("--ft-typography-title-text-transform",ht.textTransform,"inherit"),xt=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",lt),vt=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",ht.fontSize,"14px"),mt=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",ht.fontWeight,"normal"),$t=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",ht.letterSpacing,"0.105px"),Ot=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",ht.lineHeight,"1.7"),Nt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",ht.textTransform,"inherit"),St=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",ft),wt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",ht.fontSize,"16px"),Rt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",ht.fontWeight,"600"),Ut=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",ht.letterSpacing,"0.144px"),Ct=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",ht.lineHeight,"1.5"),Et=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",ht.textTransform,"inherit"),Ft=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",ft),Mt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",ht.fontSize,"14px"),kt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",ht.fontWeight,"normal"),Bt=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",ht.letterSpacing,"0.098px"),zt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",ht.lineHeight,"1.7"),Lt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",ht.textTransform,"inherit"),Dt=i.FtCssVariable.extend("--ft-typography-body1-font-family",ft),Pt=i.FtCssVariable.extend("--ft-typography-body1-font-size",ht.fontSize,"16px"),Wt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",ht.fontWeight,"normal"),At=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",ht.letterSpacing,"0.496px"),Kt=i.FtCssVariable.extend("--ft-typography-body1-line-height",ht.lineHeight,"1.5"),_t=i.FtCssVariable.extend("--ft-typography-body1-text-transform",ht.textTransform,"inherit"),It=i.FtCssVariable.extend("--ft-typography-body2-font-family",ft),Tt=i.FtCssVariable.extend("--ft-typography-body2-font-size",ht.fontSize,"14px"),Ht=i.FtCssVariable.extend("--ft-typography-body2-font-weight",ht.fontWeight,"normal"),Zt=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",ht.letterSpacing,"0.252px"),jt=i.FtCssVariable.extend("--ft-typography-body2-line-height",ht.lineHeight,"1.4"),Gt=i.FtCssVariable.extend("--ft-typography-body2-text-transform",ht.textTransform,"inherit"),Vt=i.FtCssVariable.extend("--ft-typography-caption-font-family",ft),Xt=i.FtCssVariable.extend("--ft-typography-caption-font-size",ht.fontSize,"12px"),Yt=i.FtCssVariable.extend("--ft-typography-caption-font-weight",ht.fontWeight,"normal"),qt=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",ht.letterSpacing,"0.396px"),Jt=i.FtCssVariable.extend("--ft-typography-caption-line-height",ht.lineHeight,"1.33"),Qt=i.FtCssVariable.extend("--ft-typography-caption-text-transform",ht.textTransform,"inherit"),ti=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",ft),ii=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",ht.fontSize,"10px"),ei=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",ht.fontWeight,"normal"),oi=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",ht.letterSpacing,"0.33px"),ri=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",ht.lineHeight,"1.6"),si=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",ht.textTransform,"inherit"),ni=i.FtCssVariable.extend("--ft-typography-overline-font-family",ft),ai=i.FtCssVariable.extend("--ft-typography-overline-font-size",ht.fontSize,"10px"),pi=i.FtCssVariable.extend("--ft-typography-overline-font-weight",ht.fontWeight,"normal"),li=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",ht.letterSpacing,"1.5px"),fi=i.FtCssVariable.extend("--ft-typography-overline-line-height",ht.lineHeight,"1.6"),hi=i.FtCssVariable.extend("--ft-typography-overline-text-transform",ht.textTransform,"uppercase"),ci=i.FtCssVariable.extend("--ft-typography-button-font-family",ft),yi=i.FtCssVariable.extend("--ft-typography-button-font-size",ht.fontSize,"14px"),di=i.FtCssVariable.extend("--ft-typography-button-font-weight",ht.fontWeight,"600"),ui=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",ht.letterSpacing,"1.246px"),gi=i.FtCssVariable.extend("--ft-typography-button-line-height",ht.lineHeight,"1.15"),bi=i.FtCssVariable.extend("--ft-typography-button-text-transform",ht.textTransform,"uppercase"),xi=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: ${bt};
|
|
126
126
|
}
|
|
127
127
|
`,vi=e.css`
|
|
128
128
|
.ft-typography--title-dense {
|
|
129
|
-
font-family: ${
|
|
129
|
+
font-family: ${xt};
|
|
130
130
|
font-size: ${vt};
|
|
131
131
|
font-weight: ${mt};
|
|
132
132
|
letter-spacing: ${$t};
|
|
@@ -191,8 +191,8 @@ const et=Symbol.for(""),ot=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
191
191
|
`,Ri=e.css`
|
|
192
192
|
.ft-typography--overline {
|
|
193
193
|
font-family: ${ni};
|
|
194
|
-
font-size: ${
|
|
195
|
-
font-weight: ${
|
|
194
|
+
font-size: ${ai};
|
|
195
|
+
font-weight: ${pi};
|
|
196
196
|
letter-spacing: ${li};
|
|
197
197
|
line-height: ${fi};
|
|
198
198
|
text-transform: ${hi};
|
|
@@ -204,20 +204,20 @@ 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: ${bi};
|
|
208
208
|
}
|
|
209
|
-
`;class Ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=
|
|
209
|
+
`;class Ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=at.body1}render(){return this.element?nt`
|
|
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
|
`:nt`
|
|
215
215
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
216
|
-
`}}Ci.styles=[
|
|
216
|
+
`}}Ci.styles=[xi,vi,mi,$i,Oi,Ni,Si,wi,Ri,Ui,e.css`
|
|
217
217
|
.ft-typography {
|
|
218
218
|
vertical-align: inherit;
|
|
219
219
|
}
|
|
220
|
-
`],
|
|
220
|
+
`],pt([o.property()],Ci.prototype,"element",void 0),pt([o.property()],Ci.prototype,"variant",void 0),i.customElement("ft-typography")(Ci);var Ei=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};const Fi={padding:i.FtCssVariable.create("--ft-card-padding","SIZE","12px"),colorPrimary:i.FtCssVariable.external($.colorPrimary,"Design system"),colorSurface:i.FtCssVariable.external($.colorSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariable.external($.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:i.FtCssVariable.external($.colorOnSurfaceHigh,"Design system"),borderRadiusM:i.FtCssVariable.external($.borderRadiusM,"Design system"),elevation02:i.FtCssVariable.external($.elevation02,"Design system"),elevation04:i.FtCssVariable.external($.elevation04,"Design system")};class Mi 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
|
}
|
package/build/ft-card.min.js
CHANGED
|
@@ -56,13 +56,13 @@ function r(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o)
|
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:O}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.2");const C=globalThis.trustedTypes,N=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,E="?"+R,k=`<${E}>`,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,D=/-->/g,z=/>/g,B=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,_=/'/g,T=/"/g,P=/^(?:script|style|textarea|title)$/i,j=(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),
|
|
59
|
+
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:O}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.2");const C=globalThis.trustedTypes,N=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,E="?"+R,k=`<${E}>`,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,D=/-->/g,z=/>/g,B=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,_=/'/g,T=/"/g,P=/^(?:script|style|textarea|title)$/i,j=(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),V=(t,e)=>{const i=t.length-1,o=[];let s,r=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=D:void 0!==l[1]?n=z:void 0!==l[2]?(P.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=B):void 0!==l[3]&&(n=B):n===B?">"===l[0]?(n=null!=s?s: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]?T:_):n===T||n===_?n=B:n===D||n===z?n=L:(n=B,s=void 0);const c=n===B&&t[e+1].startsWith("/>")?" ":"";r+=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=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(a):a,o]};class Z{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,h]=V(t,e);if(this.el=Z.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[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(R),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?tt:"@"===e[1]?et:Y})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(P.test(o.tagName)){const t=o.textContent.split(R),e=t.length-1;if(e>0){o.textContent=C?C.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),I.nextNode(),a.push({type:2,index:++s});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===E)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)a.push({type:7,index:s}),t+=R.length-1}s++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function X(t,e,i=t,o){var s,r,n,a;if(e===W)return e;let l=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const h=F(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,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=X(t,l._$AS(t,e.values),l,o)),e}class q{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,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);I.currentNode=s;let r=I.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new J(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new it(r,this,t)),this.v.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(r=I.nextNode(),n++)}return s}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 J{constructor(t,e,i,o){var s;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}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=X(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):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return A(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==H&&F(this._$AH)?this._$AA.nextSibling.data=t:this.k(M.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new q(s,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 Z(t)),e}S(t){A(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new J(this.M(U()),this.M(U()),this,this.options)):i=e[o],i._$AI(s),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._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Y{constructor(t,e,i,o,s){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,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 s=this.strings;let r=!1;if(void 0===s)t=X(this,t,e,0),r=!F(t)||t!==this._$AH&&t!==W,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=X(this,o[i+n],e,n),a===W&&(a=this._$AH[n]),r||(r=!F(a)||a!==this._$AH[n]),a===H?t=H:t!==H&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.C(t)}C(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}C(t){this.element[this.name]=t===H?void 0:t}}const Q=C?C.emptyScript:"";class tt extends Y{constructor(){super(...arguments),this.type=4}C(t){t&&t!==H?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class et extends Y{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=X(this,t,e,0))&&void 0!==i?i:H)===W)return;const o=this._$AH,s=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==H&&(o===H||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var 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){X(this,t)}}const ot=window.litHtmlPolyfillSupport;
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var st,rt;null==ot||ot(
|
|
65
|
+
var st,rt;null==ot||ot(Z,J),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S:globalThis.litHtmlVersions=[]).push("2.2.4");class nt extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=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._$Dt=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new J(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._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return W}}nt.finalized=!0,nt._$litElement$=!0,null===(st=globalThis.litElementHydrateSupport)||void 0===st||st.call(globalThis,{LitElement:nt});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:nt}),(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.2.0");class lt{constructor(t,e,i,o,s){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=s,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new lt(t,e,void 0,i)}static extend(t,e,i){return new lt(t,e.category,e,i)}static external(t,e){return new lt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return d`var(${f(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):f(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}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")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
@@ -205,7 +205,7 @@ const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
205
205
|
* Copyright 2020 Google LLC
|
|
206
206
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
207
207
|
*/
|
|
208
|
-
const Mt=Symbol.for(""),Ut=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===Mt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},Ft=t=>({_$litStatic$:t,r:Mt}),At=new Map,Lt=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],s=Ut(r));)l+=s+e[++h],p=!0;a.push(r),n.push(l),h++}if(h===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=At.get(t))&&(n.raw=n,At.set(t,e=n)),i=a}return t(e,...i)})(j);var Dt,zt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>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"}(Dt||(Dt={}));const Bt=lt.extend("--ft-typography-font-family",ht.titleFont),_t=lt.extend("--ft-typography-font-family",ht.contentFont),Tt={fontFamily:_t,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","
|
|
208
|
+
const Mt=Symbol.for(""),Ut=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===Mt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},Ft=t=>({_$litStatic$:t,r:Mt}),At=new Map,Lt=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],s=Ut(r));)l+=s+e[++h],p=!0;a.push(r),n.push(l),h++}if(h===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=At.get(t))&&(n.raw=n,At.set(t,e=n)),i=a}return t(e,...i)})(j);var Dt,zt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>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"}(Dt||(Dt={}));const Bt=lt.extend("--ft-typography-font-family",ht.titleFont),_t=lt.extend("--ft-typography-font-family",ht.contentFont),Tt={fontFamily:_t,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")},Pt=lt.extend("--ft-typography-title-font-family",Bt),jt=lt.extend("--ft-typography-title-font-size",Tt.fontSize,"20px"),Wt=lt.extend("--ft-typography-title-font-weight",Tt.fontWeight,"normal"),Ht=lt.extend("--ft-typography-title-letter-spacing",Tt.letterSpacing,"0.15px"),Kt=lt.extend("--ft-typography-title-line-height",Tt.lineHeight,"1.2"),It=lt.extend("--ft-typography-title-text-transform",Tt.textTransform,"inherit"),Vt=lt.extend("--ft-typography-title-dense-font-family",Bt),Zt=lt.extend("--ft-typography-title-dense-font-size",Tt.fontSize,"14px"),Xt=lt.extend("--ft-typography-title-dense-font-weight",Tt.fontWeight,"normal"),qt=lt.extend("--ft-typography-title-dense-letter-spacing",Tt.letterSpacing,"0.105px"),Jt=lt.extend("--ft-typography-title-dense-line-height",Tt.lineHeight,"1.7"),Yt=lt.extend("--ft-typography-title-dense-text-transform",Tt.textTransform,"inherit"),Gt=lt.extend("--ft-typography-subtitle1-font-family",_t),Qt=lt.extend("--ft-typography-subtitle1-font-size",Tt.fontSize,"16px"),te=lt.extend("--ft-typography-subtitle1-font-weight",Tt.fontWeight,"600"),ee=lt.extend("--ft-typography-subtitle1-letter-spacing",Tt.letterSpacing,"0.144px"),ie=lt.extend("--ft-typography-subtitle1-line-height",Tt.lineHeight,"1.5"),oe=lt.extend("--ft-typography-subtitle1-text-transform",Tt.textTransform,"inherit"),se=lt.extend("--ft-typography-subtitle2-font-family",_t),re=lt.extend("--ft-typography-subtitle2-font-size",Tt.fontSize,"14px"),ne=lt.extend("--ft-typography-subtitle2-font-weight",Tt.fontWeight,"normal"),ae=lt.extend("--ft-typography-subtitle2-letter-spacing",Tt.letterSpacing,"0.098px"),le=lt.extend("--ft-typography-subtitle2-line-height",Tt.lineHeight,"1.7"),he=lt.extend("--ft-typography-subtitle2-text-transform",Tt.textTransform,"inherit"),pe=lt.extend("--ft-typography-body1-font-family",_t),ce=lt.extend("--ft-typography-body1-font-size",Tt.fontSize,"16px"),fe=lt.extend("--ft-typography-body1-font-weight",Tt.fontWeight,"normal"),de=lt.extend("--ft-typography-body1-letter-spacing",Tt.letterSpacing,"0.496px"),ue=lt.extend("--ft-typography-body1-line-height",Tt.lineHeight,"1.5"),ye=lt.extend("--ft-typography-body1-text-transform",Tt.textTransform,"inherit"),ge=lt.extend("--ft-typography-body2-font-family",_t),ve=lt.extend("--ft-typography-body2-font-size",Tt.fontSize,"14px"),be=lt.extend("--ft-typography-body2-font-weight",Tt.fontWeight,"normal"),me=lt.extend("--ft-typography-body2-letter-spacing",Tt.letterSpacing,"0.252px"),xe=lt.extend("--ft-typography-body2-line-height",Tt.lineHeight,"1.4"),we=lt.extend("--ft-typography-body2-text-transform",Tt.textTransform,"inherit"),$e=lt.extend("--ft-typography-caption-font-family",_t),Oe=lt.extend("--ft-typography-caption-font-size",Tt.fontSize,"12px"),Se=lt.extend("--ft-typography-caption-font-weight",Tt.fontWeight,"normal"),Ce=lt.extend("--ft-typography-caption-letter-spacing",Tt.letterSpacing,"0.396px"),Ne=lt.extend("--ft-typography-caption-line-height",Tt.lineHeight,"1.33"),Re=lt.extend("--ft-typography-caption-text-transform",Tt.textTransform,"inherit"),Ee=lt.extend("--ft-typography-breadcrumb-font-family",_t),ke=lt.extend("--ft-typography-breadcrumb-font-size",Tt.fontSize,"10px"),Me=lt.extend("--ft-typography-breadcrumb-font-weight",Tt.fontWeight,"normal"),Ue=lt.extend("--ft-typography-breadcrumb-letter-spacing",Tt.letterSpacing,"0.33px"),Fe=lt.extend("--ft-typography-breadcrumb-line-height",Tt.lineHeight,"1.6"),Ae=lt.extend("--ft-typography-breadcrumb-text-transform",Tt.textTransform,"inherit"),Le=lt.extend("--ft-typography-overline-font-family",_t),De=lt.extend("--ft-typography-overline-font-size",Tt.fontSize,"10px"),ze=lt.extend("--ft-typography-overline-font-weight",Tt.fontWeight,"normal"),Be=lt.extend("--ft-typography-overline-letter-spacing",Tt.letterSpacing,"1.5px"),_e=lt.extend("--ft-typography-overline-line-height",Tt.lineHeight,"1.6"),Te=lt.extend("--ft-typography-overline-text-transform",Tt.textTransform,"uppercase"),Pe=lt.extend("--ft-typography-button-font-family",_t),je=lt.extend("--ft-typography-button-font-size",Tt.fontSize,"14px"),We=lt.extend("--ft-typography-button-font-weight",Tt.fontWeight,"600"),He=lt.extend("--ft-typography-button-letter-spacing",Tt.letterSpacing,"1.246px"),Ke=lt.extend("--ft-typography-button-line-height",Tt.lineHeight,"1.15"),Ie=lt.extend("--ft-typography-button-text-transform",Tt.textTransform,"uppercase"),Ve=d`
|
|
209
209
|
.ft-typography--title {
|
|
210
210
|
font-family: ${Pt};
|
|
211
211
|
font-size: ${jt};
|
|
@@ -214,10 +214,10 @@ const Mt=Symbol.for(""),Ut=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
214
214
|
line-height: ${Kt};
|
|
215
215
|
text-transform: ${It};
|
|
216
216
|
}
|
|
217
|
-
`,
|
|
217
|
+
`,Ze=d`
|
|
218
218
|
.ft-typography--title-dense {
|
|
219
|
-
font-family: ${
|
|
220
|
-
font-size: ${
|
|
219
|
+
font-family: ${Vt};
|
|
220
|
+
font-size: ${Zt};
|
|
221
221
|
font-weight: ${Xt};
|
|
222
222
|
letter-spacing: ${qt};
|
|
223
223
|
line-height: ${Jt};
|
|
@@ -303,7 +303,7 @@ const Mt=Symbol.for(""),Ut=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
303
303
|
</${Ft(this.element)}>
|
|
304
304
|
`:Lt`
|
|
305
305
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
306
|
-
`}}ii.styles=[Ze,
|
|
306
|
+
`}}ii.styles=[Ve,Ze,Xe,qe,Je,Ye,Ge,Qe,ti,ei,d`
|
|
307
307
|
.ft-typography {
|
|
308
308
|
vertical-align: inherit;
|
|
309
309
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-card",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
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.2.
|
|
23
|
-
"@fluid-topics/ft-typography": "^0.2.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "^0.2.
|
|
22
|
+
"@fluid-topics/ft-ripple": "^0.2.16",
|
|
23
|
+
"@fluid-topics/ft-typography": "^0.2.16",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "^0.2.16",
|
|
25
25
|
"lit": "2.1.3"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "d57a682474d27df7e667d8616a2fbca7643d51c2"
|
|
28
28
|
}
|