@fluid-topics/ft-card 0.3.19 → 0.3.20
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.light.js +86 -86
- package/build/ft-card.min.js +122 -123
- package/package.json +5 -5
package/build/ft-card.light.js
CHANGED
|
@@ -104,139 +104,139 @@
|
|
|
104
104
|
<div class="ft-ripple--background"></div>
|
|
105
105
|
<div class="ft-ripple--effect"></div>
|
|
106
106
|
</div>
|
|
107
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}x.elementDefinitions={},x.styles=b,m([o.property({type:Boolean})],x.prototype,"primary",void 0),m([o.property({type:Boolean})],x.prototype,"secondary",void 0),m([o.property({type:Boolean})],x.prototype,"unbounded",void 0),m([o.property({type:Boolean})],x.prototype,"activated",void 0),m([o.property({type:Boolean})],x.prototype,"selected",void 0),m([o.property({type:Boolean})],x.prototype,"disabled",void 0),m([o.state()],x.prototype,"hovered",void 0),m([o.state()],x.prototype,"focused",void 0),m([o.state()],x.prototype,"pressed",void 0),m([o.state()],x.prototype,"rippling",void 0),m([o.state()],x.prototype,"rippleSize",void 0),m([o.state()],x.prototype,"originX",void 0),m([o.state()],x.prototype,"originY",void 0),m([o.query(".ft-ripple")],x.prototype,"ripple",void 0),m([o.query(".ft-ripple--effect")],x.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(x);const w=globalThis.trustedTypes,k=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,z=`lit$${(Math.random()+"").slice(9)}$`,A="?"+z,S=`<${A}>`,_=document,N=(t="")=>_.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,j=/>/g,T=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),B=/'/g,I=/"/g,R=/^(?:script|style|textarea|title)$/i,C=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),U=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),G=new WeakMap,P=_.createTreeWalker(_,129,null,!1),W=(t,i)=>{const e=t.length-1,o=[];let s,r=2===i?"<svg>":"",n=E;for(let i=0;i<e;i++){const e=t[i];let p,l,h=-1,a=0;for(;a<e.length&&(n.lastIndex=a,l=n.exec(e),null!==l);)a=n.lastIndex,n===E?"!--"===l[1]?n=M:void 0!==l[1]?n=j:void 0!==l[2]?(R.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=T):void 0!==l[3]&&(n=T):n===T?">"===l[0]?(n=null!=s?s:E,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,p=l[1],n=void 0===l[3]?T:'"'===l[3]?I:B):n===I||n===B?n=T:n===M||n===j?n=E:(n=T,s=void 0);const f=n===T&&t[i+1].startsWith("/>")?" ":"";r+=n===E?e+S:h>=0?(o.push(p),e.slice(0,h)+"$lit$"+e.slice(h)+z+f):e+z+(-2===h?(o.push(void 0),i):f)}const p=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==k?k.createHTML(p):p,o]};class H{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,r=0;const n=t.length-1,p=this.parts,[l,h]=W(t,i);if(this.el=H.createElement(l,e),P.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=P.nextNode())&&p.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(z)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(z),i=/([.?@])?(.*)/.exec(e);p.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?J:"@"===i[1]?Q:X})}else p.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(R.test(o.tagName)){const t=o.textContent.split(z),i=t.length-1;if(i>0){o.textContent=w?w.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],N()),P.nextNode(),p.push({type:2,index:++s});o.append(t[i],N())}}}else if(8===o.nodeType)if(o.data===A)p.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(z,t+1));)p.push({type:7,index:s}),t+=z.length-1}s++}}static createElement(t,i){const e=_.createElement("template");return e.innerHTML=t,e}}function F(t,i,e=t,o){var s,r,n,p;if(i===U)return i;let l=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const h=O(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(n=(p=e)._$Cl)&&void 0!==n?n:p._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=F(t,l._$AS(t,i.values),l,o)),i}class K{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,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:_).importNode(e,!0);P.currentNode=s;let r=P.nextNode(),n=0,p=0,l=o[0];for(;void 0!==l;){if(n===l.index){let i;2===l.type?i=new L(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new V(r,this,t)),this.v.push(i),l=o[++p]}n!==(null==l?void 0:l.index)&&(r=P.nextNode(),n++)}return s}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 L{constructor(t,i,e,o){var s;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$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=F(this,t,i),O(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==U&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>D(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!==Z&&O(this._$AH)?this._$AA.nextSibling.data=t:this.k(_.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=H.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new K(s,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=G.get(t.strings);return void 0===i&&G.set(t.strings,i=new H(t)),i}S(t){D(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new L(this.j(N()),this.j(N()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class X{constructor(t,i,e,o,s){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let r=!1;if(void 0===s)t=F(this,t,i,0),r=!O(t)||t!==this._$AH&&t!==U,r&&(this._$AH=t);else{const o=t;let n,p;for(t=s[0],n=0;n<s.length-1;n++)p=F(this,o[e+n],i,n),p===U&&(p=this._$AH[n]),r||(r=!O(p)||p!==this._$AH[n]),p===Z?t=Z:t!==Z&&(t+=(null!=p?p:"")+s[n+1]),this._$AH[n]=p}r&&!o&&this.P(t)}P(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends X{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===Z?void 0:t}}const q=w?w.emptyScript:"";class J extends X{constructor(){super(...arguments),this.type=4}P(t){t&&t!==Z?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Q extends X{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=F(this,t,i,0))&&void 0!==e?e:Z)===U)return;const o=this._$AH,s=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Z&&(o===Z||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class V{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){F(this,t)}}const tt=window.litHtmlPolyfillSupport;null==tt||tt(H,L),(null!==($=globalThis.litHtmlVersions)&&void 0!==$?$:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
107
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}x.elementDefinitions={},x.styles=b,m([o.property({type:Boolean})],x.prototype,"primary",void 0),m([o.property({type:Boolean})],x.prototype,"secondary",void 0),m([o.property({type:Boolean})],x.prototype,"unbounded",void 0),m([o.property({type:Boolean})],x.prototype,"activated",void 0),m([o.property({type:Boolean})],x.prototype,"selected",void 0),m([o.property({type:Boolean})],x.prototype,"disabled",void 0),m([o.state()],x.prototype,"hovered",void 0),m([o.state()],x.prototype,"focused",void 0),m([o.state()],x.prototype,"pressed",void 0),m([o.state()],x.prototype,"rippling",void 0),m([o.state()],x.prototype,"rippleSize",void 0),m([o.state()],x.prototype,"originX",void 0),m([o.state()],x.prototype,"originY",void 0),m([o.query(".ft-ripple")],x.prototype,"ripple",void 0),m([o.query(".ft-ripple--effect")],x.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(x);const w=window,k=w.trustedTypes,z=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,A=`lit$${(Math.random()+"").slice(9)}$`,S="?"+A,_=`<${S}>`,O=document,N=(t="")=>O.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,B=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),R=/'/g,C=/"/g,U=/^(?:script|style|textarea|title)$/i,T=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),Z=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),W=new WeakMap,H=O.createTreeWalker(O,129,null,!1),F=(t,i)=>{const e=t.length-1,o=[];let s,r=2===i?"<svg>":"",n=E;for(let i=0;i<e;i++){const e=t[i];let p,l,h=-1,a=0;for(;a<e.length&&(n.lastIndex=a,l=n.exec(e),null!==l);)a=n.lastIndex,n===E?"!--"===l[1]?n=M:void 0!==l[1]?n=B:void 0!==l[2]?(U.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=I):void 0!==l[3]&&(n=I):n===I?">"===l[0]?(n=null!=s?s:E,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,p=l[1],n=void 0===l[3]?I:'"'===l[3]?C:R):n===C||n===R?n=I:n===M||n===B?n=E:(n=I,s=void 0);const f=n===I&&t[i+1].startsWith("/>")?" ":"";r+=n===E?e+_:h>=0?(o.push(p),e.slice(0,h)+"$lit$"+e.slice(h)+A+f):e+A+(-2===h?(o.push(void 0),i):f)}const p=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(p):p,o]};class K{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,r=0;const n=t.length-1,p=this.parts,[l,h]=F(t,i);if(this.el=K.createElement(l,e),H.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=H.nextNode())&&p.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(A)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(A),i=/([.?@])?(.*)/.exec(e);p.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?q:"?"===i[1]?Q:"@"===i[1]?V:Y})}else p.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(U.test(o.tagName)){const t=o.textContent.split(A),i=t.length-1;if(i>0){o.textContent=k?k.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],N()),H.nextNode(),p.push({type:2,index:++s});o.append(t[i],N())}}}else if(8===o.nodeType)if(o.data===S)p.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(A,t+1));)p.push({type:7,index:s}),t+=A.length-1}s++}}static createElement(t,i){const e=O.createElement("template");return e.innerHTML=t,e}}function L(t,i,e=t,o){var s,r,n,p;if(i===Z)return i;let l=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=j(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(n=(p=e)._$Co)&&void 0!==n?n:p._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=L(t,l._$AS(t,i.values),l,o)),i}class P{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:O).importNode(e,!0);H.currentNode=s;let r=H.nextNode(),n=0,p=0,l=o[0];for(;void 0!==l;){if(n===l.index){let i;2===l.type?i=new X(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new tt(r,this,t)),this.u.push(i),l=o[++p]}n!==(null==l?void 0:l.index)&&(r=H.nextNode(),n++)}return s}p(t){let i=0;for(const e of this.u)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 s;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}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=L(this,t,i),j(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==Z&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==G&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new P(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=W.get(t.strings);return void 0===i&&W.set(t.strings,i=new K(t)),i}k(t){D(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new X(this.O(N()),this.O(N()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Y{constructor(t,i,e,o,s){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let r=!1;if(void 0===s)t=L(this,t,i,0),r=!j(t)||t!==this._$AH&&t!==Z,r&&(this._$AH=t);else{const o=t;let n,p;for(t=s[0],n=0;n<s.length-1;n++)p=L(this,o[e+n],i,n),p===Z&&(p=this._$AH[n]),r||(r=!j(p)||p!==this._$AH[n]),p===G?t=G:t!==G&&(t+=(null!=p?p:"")+s[n+1]),this._$AH[n]=p}r&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends Y{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const J=k?k.emptyScript:"";class Q extends Y{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class V extends Y{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=L(this,t,i,0))&&void 0!==e?e:G)===Z)return;const o=this._$AH,s=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==G&&(o===G||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class 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){L(this,t)}}const it=w.litHtmlPolyfillSupport;null==it||it(K,X),(null!==($=w.litHtmlVersions)&&void 0!==$?$:w.litHtmlVersions=[]).push("2.4.0");
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright 2020 Google LLC
|
|
111
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
112
|
*/
|
|
113
|
-
const
|
|
113
|
+
const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void 0:t._$litStatic$},st=t=>({_$litStatic$:t,r:et}),rt=new Map,nt=(t=>(i,...e)=>{const o=e.length;let s,r;const n=[],p=[];let l,h=0,a=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(r=e[h],s=ot(r));)l+=s+i[++h],a=!0;p.push(r),n.push(l),h++}if(h===o&&n.push(i[o]),a){const t=n.join("$$lit$$");void 0===(i=rt.get(t))&&(n.raw=n,rt.set(t,i=n)),e=p}return t(i,...e)})(T);var pt;!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),ht=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),at={fontFamily:ht,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")},ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",lt),dt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",at.fontSize,"20px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",at.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",at.letterSpacing,"0.15px"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",at.lineHeight,"1.2"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",at.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",lt),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",at.fontSize,"14px"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",at.fontWeight,"normal"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",at.letterSpacing,"0.105px"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",at.lineHeight,"1.7"),wt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",at.textTransform,"inherit"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",ht),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",at.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",at.fontWeight,"600"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",at.letterSpacing,"0.144px"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",at.lineHeight,"1.5"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",at.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",ht),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",at.fontSize,"14px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",at.fontWeight,"normal"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",at.letterSpacing,"0.098px"),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",at.lineHeight,"1.7"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",at.textTransform,"inherit"),It=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",ht),Rt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",at.fontSize,"16px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",at.fontWeight,"normal"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",at.letterSpacing,"0.496px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",at.lineHeight,"1.5"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",at.textTransform,"inherit"),Gt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",ht),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",at.fontSize,"14px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",at.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",at.letterSpacing,"0.252px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",at.lineHeight,"1.4"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",at.textTransform,"inherit"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",ht),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",at.fontSize,"12px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",at.fontWeight,"normal"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",at.letterSpacing,"0.396px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",at.lineHeight,"1.33"),Qt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",at.textTransform,"inherit"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",ht),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",at.fontSize,"10px"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",at.fontWeight,"normal"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",at.letterSpacing,"0.33px"),oi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",at.lineHeight,"1.6"),si=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",at.textTransform,"inherit"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",ht),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",at.fontSize,"10px"),pi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",at.fontWeight,"normal"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",at.letterSpacing,"1.5px"),hi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",at.lineHeight,"1.6"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",at.textTransform,"uppercase"),fi=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",ht),di=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",at.fontSize,"14px"),yi=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",at.fontWeight,"600"),ci=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",at.letterSpacing,"1.246px"),gi=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",at.lineHeight,"1.15"),ui=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",at.textTransform,"uppercase"),vi=e.css`
|
|
114
114
|
.ft-typography--title {
|
|
115
|
-
font-family: ${
|
|
116
|
-
font-size: ${
|
|
117
|
-
font-weight: ${
|
|
118
|
-
letter-spacing: ${
|
|
119
|
-
line-height: ${
|
|
120
|
-
text-transform: ${
|
|
121
|
-
}
|
|
122
|
-
`,vi=e.css`
|
|
123
|
-
.ft-typography--title-dense {
|
|
124
|
-
font-family: ${ut};
|
|
125
|
-
font-size: ${vt};
|
|
126
|
-
font-weight: ${bt};
|
|
127
|
-
letter-spacing: ${$t};
|
|
128
|
-
line-height: ${mt};
|
|
129
|
-
text-transform: ${xt};
|
|
115
|
+
font-family: ${ft};
|
|
116
|
+
font-size: ${dt};
|
|
117
|
+
font-weight: ${yt};
|
|
118
|
+
letter-spacing: ${ct};
|
|
119
|
+
line-height: ${gt};
|
|
120
|
+
text-transform: ${ut};
|
|
130
121
|
}
|
|
131
122
|
`,bi=e.css`
|
|
132
|
-
.ft-typography--
|
|
133
|
-
font-family: ${
|
|
134
|
-
font-size: ${
|
|
135
|
-
font-weight: ${
|
|
136
|
-
letter-spacing: ${
|
|
137
|
-
line-height: ${
|
|
138
|
-
text-transform: ${
|
|
123
|
+
.ft-typography--title-dense {
|
|
124
|
+
font-family: ${vt};
|
|
125
|
+
font-size: ${bt};
|
|
126
|
+
font-weight: ${$t};
|
|
127
|
+
letter-spacing: ${mt};
|
|
128
|
+
line-height: ${xt};
|
|
129
|
+
text-transform: ${wt};
|
|
139
130
|
}
|
|
140
131
|
`,$i=e.css`
|
|
132
|
+
.ft-typography--subtitle1 {
|
|
133
|
+
font-family: ${kt};
|
|
134
|
+
font-size: ${zt};
|
|
135
|
+
font-weight: ${At};
|
|
136
|
+
letter-spacing: ${St};
|
|
137
|
+
line-height: ${_t};
|
|
138
|
+
text-transform: ${Ot};
|
|
139
|
+
}
|
|
140
|
+
`,mi=e.css`
|
|
141
141
|
.ft-typography--subtitle2 {
|
|
142
142
|
font-family: ${Nt};
|
|
143
|
-
font-size: ${
|
|
143
|
+
font-size: ${jt};
|
|
144
144
|
font-weight: ${Dt};
|
|
145
145
|
letter-spacing: ${Et};
|
|
146
146
|
line-height: ${Mt};
|
|
147
|
-
text-transform: ${
|
|
147
|
+
text-transform: ${Bt};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
`,mi=e.css`
|
|
151
|
-
.ft-typography--body1 {
|
|
152
|
-
font-family: ${Tt};
|
|
153
|
-
font-size: ${Bt};
|
|
154
|
-
font-weight: ${It};
|
|
155
|
-
letter-spacing: ${Rt};
|
|
156
|
-
line-height: ${Ct};
|
|
157
|
-
text-transform: ${Ut};
|
|
158
|
-
}
|
|
159
150
|
`,xi=e.css`
|
|
160
|
-
.ft-typography--
|
|
161
|
-
font-family: ${
|
|
162
|
-
font-size: ${
|
|
163
|
-
font-weight: ${
|
|
164
|
-
letter-spacing: ${
|
|
165
|
-
line-height: ${
|
|
166
|
-
text-transform: ${
|
|
151
|
+
.ft-typography--body1 {
|
|
152
|
+
font-family: ${It};
|
|
153
|
+
font-size: ${Rt};
|
|
154
|
+
font-weight: ${Ct};
|
|
155
|
+
letter-spacing: ${Ut};
|
|
156
|
+
line-height: ${Tt};
|
|
157
|
+
text-transform: ${Zt};
|
|
167
158
|
}
|
|
168
159
|
`,wi=e.css`
|
|
169
|
-
.ft-typography--
|
|
170
|
-
font-family: ${
|
|
171
|
-
font-size: ${
|
|
172
|
-
font-weight: ${
|
|
173
|
-
letter-spacing: ${
|
|
174
|
-
line-height: ${
|
|
175
|
-
text-transform: ${
|
|
160
|
+
.ft-typography--body2 {
|
|
161
|
+
font-family: ${Gt};
|
|
162
|
+
font-size: ${Wt};
|
|
163
|
+
font-weight: ${Ht};
|
|
164
|
+
letter-spacing: ${Ft};
|
|
165
|
+
line-height: ${Kt};
|
|
166
|
+
text-transform: ${Lt};
|
|
176
167
|
}
|
|
177
168
|
`,ki=e.css`
|
|
178
|
-
.ft-typography--
|
|
179
|
-
font-family: ${
|
|
180
|
-
font-size: ${
|
|
181
|
-
font-weight: ${
|
|
182
|
-
letter-spacing: ${
|
|
183
|
-
line-height: ${
|
|
184
|
-
text-transform: ${
|
|
169
|
+
.ft-typography--caption {
|
|
170
|
+
font-family: ${Pt};
|
|
171
|
+
font-size: ${Xt};
|
|
172
|
+
font-weight: ${Yt};
|
|
173
|
+
letter-spacing: ${qt};
|
|
174
|
+
line-height: ${Jt};
|
|
175
|
+
text-transform: ${Qt};
|
|
185
176
|
}
|
|
186
177
|
`,zi=e.css`
|
|
187
|
-
.ft-typography--
|
|
188
|
-
font-family: ${
|
|
189
|
-
font-size: ${
|
|
190
|
-
font-weight: ${
|
|
191
|
-
letter-spacing: ${
|
|
192
|
-
line-height: ${
|
|
193
|
-
text-transform: ${
|
|
178
|
+
.ft-typography--breadcrumb {
|
|
179
|
+
font-family: ${Vt};
|
|
180
|
+
font-size: ${ti};
|
|
181
|
+
font-weight: ${ii};
|
|
182
|
+
letter-spacing: ${ei};
|
|
183
|
+
line-height: ${oi};
|
|
184
|
+
text-transform: ${si};
|
|
194
185
|
}
|
|
195
186
|
`,Ai=e.css`
|
|
196
|
-
.ft-typography--
|
|
197
|
-
font-family: ${
|
|
198
|
-
font-size: ${
|
|
199
|
-
font-weight: ${
|
|
200
|
-
letter-spacing: ${
|
|
201
|
-
line-height: ${
|
|
202
|
-
text-transform: ${
|
|
187
|
+
.ft-typography--overline {
|
|
188
|
+
font-family: ${ri};
|
|
189
|
+
font-size: ${ni};
|
|
190
|
+
font-weight: ${pi};
|
|
191
|
+
letter-spacing: ${li};
|
|
192
|
+
line-height: ${hi};
|
|
193
|
+
text-transform: ${ai};
|
|
203
194
|
}
|
|
204
195
|
`,Si=e.css`
|
|
196
|
+
.ft-typography--button {
|
|
197
|
+
font-family: ${fi};
|
|
198
|
+
font-size: ${di};
|
|
199
|
+
font-weight: ${yi};
|
|
200
|
+
letter-spacing: ${ci};
|
|
201
|
+
line-height: ${gi};
|
|
202
|
+
text-transform: ${ui};
|
|
203
|
+
}
|
|
204
|
+
`,_i=e.css`
|
|
205
205
|
.ft-typography {
|
|
206
206
|
vertical-align: inherit;
|
|
207
207
|
}
|
|
208
|
-
`;var
|
|
209
|
-
<${
|
|
208
|
+
`;var Oi=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,p=t.length-1;p>=0;p--)(s=t[p])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};class Ni extends i.FtLitElement{constructor(){super(...arguments),this.variant=pt.body1}render(){return this.element?nt`
|
|
209
|
+
<${st(this.element)}
|
|
210
210
|
class="ft-typography ft-typography--${this.variant}">
|
|
211
211
|
<slot></slot>
|
|
212
|
-
</${
|
|
213
|
-
`:
|
|
212
|
+
</${st(this.element)}>
|
|
213
|
+
`:nt`
|
|
214
214
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
215
|
-
`}}Ni.styles=[
|
|
215
|
+
`}}Ni.styles=[vi,bi,$i,mi,xi,wi,ki,zi,Ai,Si,_i],Oi([o.property()],Ni.prototype,"element",void 0),Oi([o.property()],Ni.prototype,"variant",void 0),i.customElement("ft-typography")(Ni);const ji={padding:i.FtCssVariableFactory.create("--ft-card-padding","SIZE","12px"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceHigh,"Design system"),borderRadiusM:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusM,"Design system"),elevation02:i.FtCssVariableFactory.external(i.designSystemVariables.elevation02,"Design system"),elevation04:i.FtCssVariableFactory.external(i.designSystemVariables.elevation04,"Design system")},Di=e.css`
|
|
216
216
|
:host {
|
|
217
217
|
display: block;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
#container {
|
|
221
|
-
padding: ${
|
|
222
|
-
border-radius: ${
|
|
223
|
-
box-shadow: ${
|
|
221
|
+
padding: ${ji.padding};
|
|
222
|
+
border-radius: ${ji.borderRadiusM};
|
|
223
|
+
box-shadow: ${ji.elevation02};
|
|
224
224
|
position: relative;
|
|
225
225
|
width: 100%;
|
|
226
226
|
height: 100%;
|
|
227
227
|
display: block;
|
|
228
228
|
box-sizing: border-box;
|
|
229
|
-
background-color: ${
|
|
229
|
+
background-color: ${ji.colorSurface};
|
|
230
230
|
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
#container:hover {
|
|
234
|
-
box-shadow: ${
|
|
234
|
+
box-shadow: ${ji.elevation04};
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
#container.selected {
|
|
238
|
-
outline: solid 2px ${
|
|
239
|
-
box-shadow: ${
|
|
238
|
+
outline: solid 2px ${ji.colorPrimary};
|
|
239
|
+
box-shadow: ${ji.elevation04};
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
#header:not([hidden]) {
|
|
@@ -251,21 +251,21 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
251
251
|
.title {
|
|
252
252
|
text-overflow: ellipsis;
|
|
253
253
|
overflow: hidden;
|
|
254
|
-
color: ${
|
|
254
|
+
color: ${ji.colorOnSurfaceHigh};
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
#content {
|
|
258
258
|
opacity: 1;
|
|
259
259
|
font-size: 15px;
|
|
260
260
|
height: 100%;
|
|
261
|
-
color: ${
|
|
261
|
+
color: ${ji.colorOnSurfaceMedium};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
#action {
|
|
265
265
|
position: absolute;
|
|
266
266
|
top: 0;
|
|
267
267
|
right: 0;
|
|
268
|
-
color: ${
|
|
268
|
+
color: ${ji.colorOnSurfaceHigh};
|
|
269
269
|
}
|
|
270
270
|
`;var Ei=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,p=t.length-1;p>=0;p--)(s=t[p])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};class Mi extends i.FtLitElement{constructor(){super(...arguments),this.title="",this.selected=!1}render(){return e.html`
|
|
271
271
|
<div id="container" part="container" class=${this.selected?"selected":""}>
|
|
@@ -283,4 +283,4 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
283
283
|
<slot name="action"></slot>
|
|
284
284
|
</div>
|
|
285
285
|
</div>
|
|
286
|
-
`}}Mi.elementDefinitions={"ft-ripple":x,"ft-typography":Ni},Mi.styles=Di,Ei([o.property()],Mi.prototype,"title",void 0),Ei([o.property({type:Boolean})],Mi.prototype,"selected",void 0),i.customElement("ft-card")(Mi),t.FtCard=Mi,t.FtCardCssVariables=
|
|
286
|
+
`}}Mi.elementDefinitions={"ft-ripple":x,"ft-typography":Ni},Mi.styles=Di,Ei([o.property()],Mi.prototype,"title",void 0),Ei([o.property({type:Boolean})],Mi.prototype,"selected",void 0),i.customElement("ft-card")(Mi),t.FtCard=Mi,t.FtCardCssVariables=ji,t.styles=Di,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(zt){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,34 +46,34 @@ 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===
|
|
49
|
+
const l=window,h=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),c=new WeakMap;class f{constructor(t,e,i){if(this._$cssResult$=!0,i!==p)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(h&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&c.set(e,t))}return t}toString(){return this.cssText}}const d=t=>new f("string"==typeof t?t:t+"",void 0,p),u=(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 f(i,t,p)},y=(t,e)=>{h?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=l.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},g=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return d(e)})(t):t
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var
|
|
54
|
+
*/;var v;const b=window,m=b.trustedTypes,x=m?m.emptyScript:"",w=b.reactiveElementPolyfillSupport,$={toAttribute(t,e){switch(e){case Boolean:t=t?x: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}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class N 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=S){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)||S}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(g(t))}else void 0!==t&&e.push(g(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 y(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=S){var o;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:$).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:$;this._$El=r,this[r]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||O)(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
|
|
60
|
+
var k;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:N}),(null!==(v=b.reactiveElementVersions)&&void 0!==v?v:b.reactiveElementVersions=[]).push("1.4.1");const E=window,R=E.trustedTypes,C=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,U="?"+M,F=`<${U}>`,A=document,L=(t="")=>A.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,P=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,W=/"/g,H=/^(?:script|style|textarea|title)$/i,K=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),V=new WeakMap,J=A.createTreeWalker(A,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",n=B;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===B?"!--"===l[1]?n=D:void 0!==l[1]?n=P:void 0!==l[2]?(H.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=_):void 0!==l[3]&&(n=_):n===_?">"===l[0]?(n=null!=r?r:B,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?_:'"'===l[3]?W:T):n===W||n===T?n=_:n===D||n===P?n=B:(n=_,r=void 0);const c=n===_&&t[e+1].startsWith("/>")?" ":"";s+=n===B?i+F:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+M+c):i+M+(-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!==C?C.createHTML(a):a,o]};class q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,h]=X(t,e);if(this.el=q.createElement(l,i),J.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=J.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(M)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?ot:"@"===e[1]?rt:tt})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(H.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=R?R.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],L()),J.nextNode(),a.push({type:2,index:++r});o.append(t[e],L())}}}else if(8===o.nodeType)if(o.data===U)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)a.push({type:7,index:r}),t+=M.length-1}r++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,o){var r,s,n,a;if(e===I)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const h=j(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=Y(t,l._$AS(t,e.values),l,o)),e}class G{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(i,!0);J.currentNode=r;let s=J.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 st(s,this,t)),this.u.push(e),l=o[++a]}n!==(null==l?void 0:l.index)&&(s=J.nextNode(),n++)}return r}p(t){let e=0;for(const i of this.u)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=Z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}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=Y(this,t,e),j(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==I&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>z(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Z&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.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=q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.p(i);else{const t=new G(r,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new q(t)),e}k(t){z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new Q(this.O(L()),this.O(L()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,i,o,r){this.type=1,this._$AH=Z,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=Z}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=Y(this,t,e,0),s=!j(t)||t!==this._$AH&&t!==I,s&&(this._$AH=t);else{const o=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=Y(this,o[i+n],e,n),a===I&&(a=this._$AH[n]),s||(s=!j(a)||a!==this._$AH[n]),a===Z?t=Z:t!==Z&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}s&&!o&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}const it=R?R.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Z?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class rt extends tt{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=Y(this,t,e,0))&&void 0!==i?i:Z)===I)return;const o=this._$AH,r=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==Z&&(o===Z||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 st{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){Y(this,t)}}const nt=E.litHtmlPolyfillSupport;null==nt||nt(q,Q),(null!==(k=E.litHtmlVersions)&&void 0!==k?k:E.litHtmlVersions=[]).push("2.4.0");
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
var
|
|
66
|
+
var at,lt;class ht extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=s._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=n=new Q(e.insertBefore(L(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return I}}ht.finalized=!0,ht._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:ht});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:ht}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class ct{static create(t,e,i){let o=t=>d(null!=t?t:i),r=u`var(${d(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>u`var(${d(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=u`var(${d(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>u`var(${d(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):d(null!=e?e:t.defaultValue),o=u`var(${d(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=>u`var(${d(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 ft={colorPrimary:ct.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ct.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ct.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ct.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ct.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ct.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ct.create("--ft-color-error","COLOR","#B00020"),colorOutline:ct.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ct.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ct.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ct.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ct.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ct.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ct.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ct.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ct.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ct.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ct.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ct.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ct.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ct.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ct.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ct.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ct.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ct.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ct.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ct.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ct.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ct.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ct.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ct.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ct.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ct.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ct.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ct.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ct.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ct.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ct.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ct.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ct.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ct.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ct.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ct.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ct.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ct.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ct.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ct.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ct.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ct.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ct.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ct.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
|
|
72
|
-
${t.map((t=>
|
|
71
|
+
*/var dt,ut,yt=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 gt 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 y(r,this.constructor.elementStyles),r}}}(ht)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),K`
|
|
72
|
+
${t.map((t=>K`
|
|
73
73
|
<style>${t}</style>
|
|
74
74
|
`))}
|
|
75
75
|
${this.getTemplate()}
|
|
76
|
-
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,r,s,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(n=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const p=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}contentAvailableCallback(t){}}
|
|
76
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,r,s,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(n=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const p=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}contentAvailableCallback(t){}}yt([o()],gt.prototype,"exportpartsPrefix",void 0),yt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],gt.prototype,"exportpartsPrefixes",void 0),u`
|
|
77
77
|
.ft-no-text-select {
|
|
78
78
|
-webkit-touch-callout: none;
|
|
79
79
|
-webkit-user-select: none;
|
|
@@ -82,7 +82,7 @@ var rt,st;null==ot||ot(V,q),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
82
82
|
-ms-user-select: none;
|
|
83
83
|
user-select: none;
|
|
84
84
|
}
|
|
85
|
-
`,
|
|
85
|
+
`,u`
|
|
86
86
|
.ft-word-wrap {
|
|
87
87
|
white-space: normal;
|
|
88
88
|
word-wrap: break-word;
|
|
@@ -94,19 +94,18 @@ var rt,st;null==ot||ot(V,q),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
94
94
|
-webkit-hyphens: auto;
|
|
95
95
|
hyphens: auto
|
|
96
96
|
}
|
|
97
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
97
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ut=null===(dt=window.safari)||void 0===dt?void 0:dt.pushNotification)||void 0===ut||ut.toString());
|
|
98
98
|
/**
|
|
99
99
|
* @license
|
|
100
100
|
* Copyright 2017 Google LLC
|
|
101
101
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
102
102
|
*/
|
|
103
|
-
const
|
|
103
|
+
const vt=1;class bt{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)}}
|
|
104
104
|
/**
|
|
105
105
|
* @license
|
|
106
106
|
* Copyright 2018 Google LLC
|
|
107
107
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
108
|
-
*/
|
|
109
|
-
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}}),gt=lt.extend("--ft-ripple-color",ht.colorContent),vt=gt,bt=lt.extend("--ft-ripple-background-color",gt),mt=lt.external(ht.opacityContentOnSurfacePressed,"Design system"),xt=lt.external(ht.opacityContentOnSurfaceHover,"Design system"),wt=lt.external(ht.opacityContentOnSurfaceFocused,"Design system"),$t=lt.external(ht.opacityContentOnSurfaceSelected,"Design system"),Ot=lt.extend("--ft-ripple-color",ht.colorPrimary),St=Ot,Nt=lt.extend("--ft-ripple-background-color",Ot),kt=lt.extend("--ft-ripple-color",ht.colorSecondary),Et=kt,Rt=lt.extend("--ft-ripple-background-color",kt),Ct=d`
|
|
108
|
+
*/const mt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends bt{constructor(t){var e;if(super(t),t.type!==vt||"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 I}}),xt=ct.extend("--ft-ripple-color",ft.colorContent),wt=xt,$t=ct.extend("--ft-ripple-background-color",xt),Ot=ct.external(ft.opacityContentOnSurfacePressed,"Design system"),St=ct.external(ft.opacityContentOnSurfaceHover,"Design system"),Nt=ct.external(ft.opacityContentOnSurfaceFocused,"Design system"),kt=ct.external(ft.opacityContentOnSurfaceSelected,"Design system"),Et=ct.extend("--ft-ripple-color",ft.colorPrimary),Rt=Et,Ct=ct.extend("--ft-ripple-background-color",Et),Mt=ct.extend("--ft-ripple-color",ft.colorSecondary),Ut=Mt,Ft=ct.extend("--ft-ripple-background-color",Mt),At=u`
|
|
110
109
|
:host {
|
|
111
110
|
display: contents;
|
|
112
111
|
}
|
|
@@ -128,27 +127,27 @@ const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
128
127
|
}
|
|
129
128
|
|
|
130
129
|
.ft-ripple .ft-ripple--background {
|
|
131
|
-
background-color: ${
|
|
130
|
+
background-color: ${$t};
|
|
132
131
|
}
|
|
133
132
|
|
|
134
133
|
.ft-ripple .ft-ripple--effect {
|
|
135
|
-
background-color: ${
|
|
134
|
+
background-color: ${wt};
|
|
136
135
|
}
|
|
137
136
|
|
|
138
137
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
139
|
-
background-color: ${
|
|
138
|
+
background-color: ${Ft};
|
|
140
139
|
}
|
|
141
140
|
|
|
142
141
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
143
|
-
background-color: ${
|
|
142
|
+
background-color: ${Ut};
|
|
144
143
|
}
|
|
145
144
|
|
|
146
145
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
147
|
-
background-color: ${
|
|
146
|
+
background-color: ${Ct};
|
|
148
147
|
}
|
|
149
148
|
|
|
150
149
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
151
|
-
background-color: ${
|
|
150
|
+
background-color: ${Rt};
|
|
152
151
|
}
|
|
153
152
|
|
|
154
153
|
.ft-ripple .ft-ripple--background {
|
|
@@ -180,22 +179,22 @@ const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
180
179
|
}
|
|
181
180
|
|
|
182
181
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
183
|
-
opacity: ${
|
|
182
|
+
opacity: ${St};
|
|
184
183
|
}
|
|
185
184
|
|
|
186
185
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
187
|
-
opacity: ${
|
|
186
|
+
opacity: ${kt};
|
|
188
187
|
}
|
|
189
188
|
|
|
190
189
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
191
|
-
opacity: ${
|
|
190
|
+
opacity: ${Nt};
|
|
192
191
|
}
|
|
193
192
|
|
|
194
193
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
195
|
-
opacity: ${
|
|
194
|
+
opacity: ${Ot};
|
|
196
195
|
transform: translate(-50%, -50%) scale(1);
|
|
197
196
|
}
|
|
198
|
-
`;var
|
|
197
|
+
`;var Lt=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 jt extends gt{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 K`
|
|
199
198
|
<style>
|
|
200
199
|
.ft-ripple .ft-ripple--effect,
|
|
201
200
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -208,143 +207,143 @@ const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
208
207
|
top: ${this.originY}px;
|
|
209
208
|
}
|
|
210
209
|
</style>
|
|
211
|
-
<div class="${
|
|
210
|
+
<div class="${mt(t)}">
|
|
212
211
|
<div class="ft-ripple--background"></div>
|
|
213
212
|
<div class="ft-ripple--effect"></div>
|
|
214
213
|
</div>
|
|
215
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){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"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
|
|
214
|
+
`}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"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}jt.elementDefinitions={},jt.styles=At,Lt([o({type:Boolean})],jt.prototype,"primary",void 0),Lt([o({type:Boolean})],jt.prototype,"secondary",void 0),Lt([o({type:Boolean})],jt.prototype,"unbounded",void 0),Lt([o({type:Boolean})],jt.prototype,"activated",void 0),Lt([o({type:Boolean})],jt.prototype,"selected",void 0),Lt([o({type:Boolean})],jt.prototype,"disabled",void 0),Lt([r()],jt.prototype,"hovered",void 0),Lt([r()],jt.prototype,"focused",void 0),Lt([r()],jt.prototype,"pressed",void 0),Lt([r()],jt.prototype,"rippling",void 0),Lt([r()],jt.prototype,"rippleSize",void 0),Lt([r()],jt.prototype,"originX",void 0),Lt([r()],jt.prototype,"originY",void 0),Lt([s(".ft-ripple")],jt.prototype,"ripple",void 0),Lt([s(".ft-ripple--effect")],jt.prototype,"rippleEffect",void 0),a("ft-ripple")(jt);
|
|
216
215
|
/**
|
|
217
216
|
* @license
|
|
218
217
|
* Copyright 2020 Google LLC
|
|
219
218
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
220
219
|
*/
|
|
221
|
-
const
|
|
220
|
+
const zt=Symbol.for(""),Bt=t=>{if((null==t?void 0:t.r)===zt)return null==t?void 0:t._$litStatic$},Dt=t=>({_$litStatic$:t,r:zt}),Pt=new Map,_t=(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=Bt(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=Pt.get(t))&&(n.raw=n,Pt.set(t,e=n)),i=a}return t(e,...i)})(K);var Tt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Tt||(Tt={}));const Wt=ct.extend("--ft-typography-font-family",ft.titleFont),Ht=ct.extend("--ft-typography-font-family",ft.contentFont),Kt={fontFamily:Ht,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},It=ct.extend("--ft-typography-title-font-family",Wt),Zt=ct.extend("--ft-typography-title-font-size",Kt.fontSize,"20px"),Vt=ct.extend("--ft-typography-title-font-weight",Kt.fontWeight,"normal"),Jt=ct.extend("--ft-typography-title-letter-spacing",Kt.letterSpacing,"0.15px"),Xt=ct.extend("--ft-typography-title-line-height",Kt.lineHeight,"1.2"),qt=ct.extend("--ft-typography-title-text-transform",Kt.textTransform,"inherit"),Yt=ct.extend("--ft-typography-title-dense-font-family",Wt),Gt=ct.extend("--ft-typography-title-dense-font-size",Kt.fontSize,"14px"),Qt=ct.extend("--ft-typography-title-dense-font-weight",Kt.fontWeight,"normal"),te=ct.extend("--ft-typography-title-dense-letter-spacing",Kt.letterSpacing,"0.105px"),ee=ct.extend("--ft-typography-title-dense-line-height",Kt.lineHeight,"1.7"),ie=ct.extend("--ft-typography-title-dense-text-transform",Kt.textTransform,"inherit"),oe=ct.extend("--ft-typography-subtitle1-font-family",Ht),re=ct.extend("--ft-typography-subtitle1-font-size",Kt.fontSize,"16px"),se=ct.extend("--ft-typography-subtitle1-font-weight",Kt.fontWeight,"600"),ne=ct.extend("--ft-typography-subtitle1-letter-spacing",Kt.letterSpacing,"0.144px"),ae=ct.extend("--ft-typography-subtitle1-line-height",Kt.lineHeight,"1.5"),le=ct.extend("--ft-typography-subtitle1-text-transform",Kt.textTransform,"inherit"),he=ct.extend("--ft-typography-subtitle2-font-family",Ht),pe=ct.extend("--ft-typography-subtitle2-font-size",Kt.fontSize,"14px"),ce=ct.extend("--ft-typography-subtitle2-font-weight",Kt.fontWeight,"normal"),fe=ct.extend("--ft-typography-subtitle2-letter-spacing",Kt.letterSpacing,"0.098px"),de=ct.extend("--ft-typography-subtitle2-line-height",Kt.lineHeight,"1.7"),ue=ct.extend("--ft-typography-subtitle2-text-transform",Kt.textTransform,"inherit"),ye=ct.extend("--ft-typography-body1-font-family",Ht),ge=ct.extend("--ft-typography-body1-font-size",Kt.fontSize,"16px"),ve=ct.extend("--ft-typography-body1-font-weight",Kt.fontWeight,"normal"),be=ct.extend("--ft-typography-body1-letter-spacing",Kt.letterSpacing,"0.496px"),me=ct.extend("--ft-typography-body1-line-height",Kt.lineHeight,"1.5"),xe=ct.extend("--ft-typography-body1-text-transform",Kt.textTransform,"inherit"),we=ct.extend("--ft-typography-body2-font-family",Ht),$e=ct.extend("--ft-typography-body2-font-size",Kt.fontSize,"14px"),Oe=ct.extend("--ft-typography-body2-font-weight",Kt.fontWeight,"normal"),Se=ct.extend("--ft-typography-body2-letter-spacing",Kt.letterSpacing,"0.252px"),Ne=ct.extend("--ft-typography-body2-line-height",Kt.lineHeight,"1.4"),ke=ct.extend("--ft-typography-body2-text-transform",Kt.textTransform,"inherit"),Ee=ct.extend("--ft-typography-caption-font-family",Ht),Re=ct.extend("--ft-typography-caption-font-size",Kt.fontSize,"12px"),Ce=ct.extend("--ft-typography-caption-font-weight",Kt.fontWeight,"normal"),Me=ct.extend("--ft-typography-caption-letter-spacing",Kt.letterSpacing,"0.396px"),Ue=ct.extend("--ft-typography-caption-line-height",Kt.lineHeight,"1.33"),Fe=ct.extend("--ft-typography-caption-text-transform",Kt.textTransform,"inherit"),Ae=ct.extend("--ft-typography-breadcrumb-font-family",Ht),Le=ct.extend("--ft-typography-breadcrumb-font-size",Kt.fontSize,"10px"),je=ct.extend("--ft-typography-breadcrumb-font-weight",Kt.fontWeight,"normal"),ze=ct.extend("--ft-typography-breadcrumb-letter-spacing",Kt.letterSpacing,"0.33px"),Be=ct.extend("--ft-typography-breadcrumb-line-height",Kt.lineHeight,"1.6"),De=ct.extend("--ft-typography-breadcrumb-text-transform",Kt.textTransform,"inherit"),Pe=ct.extend("--ft-typography-overline-font-family",Ht),_e=ct.extend("--ft-typography-overline-font-size",Kt.fontSize,"10px"),Te=ct.extend("--ft-typography-overline-font-weight",Kt.fontWeight,"normal"),We=ct.extend("--ft-typography-overline-letter-spacing",Kt.letterSpacing,"1.5px"),He=ct.extend("--ft-typography-overline-line-height",Kt.lineHeight,"1.6"),Ke=ct.extend("--ft-typography-overline-text-transform",Kt.textTransform,"uppercase"),Ie=ct.extend("--ft-typography-button-font-family",Ht),Ze=ct.extend("--ft-typography-button-font-size",Kt.fontSize,"14px"),Ve=ct.extend("--ft-typography-button-font-weight",Kt.fontWeight,"600"),Je=ct.extend("--ft-typography-button-letter-spacing",Kt.letterSpacing,"1.246px"),Xe=ct.extend("--ft-typography-button-line-height",Kt.lineHeight,"1.15"),qe=ct.extend("--ft-typography-button-text-transform",Kt.textTransform,"uppercase"),Ye=u`
|
|
222
221
|
.ft-typography--title {
|
|
223
|
-
font-family: ${
|
|
224
|
-
font-size: ${
|
|
225
|
-
font-weight: ${
|
|
226
|
-
letter-spacing: ${
|
|
227
|
-
line-height: ${
|
|
228
|
-
text-transform: ${
|
|
229
|
-
}
|
|
230
|
-
`,
|
|
222
|
+
font-family: ${It};
|
|
223
|
+
font-size: ${Zt};
|
|
224
|
+
font-weight: ${Vt};
|
|
225
|
+
letter-spacing: ${Jt};
|
|
226
|
+
line-height: ${Xt};
|
|
227
|
+
text-transform: ${qt};
|
|
228
|
+
}
|
|
229
|
+
`,Ge=u`
|
|
231
230
|
.ft-typography--title-dense {
|
|
232
|
-
font-family: ${
|
|
233
|
-
font-size: ${
|
|
234
|
-
font-weight: ${
|
|
235
|
-
letter-spacing: ${
|
|
236
|
-
line-height: ${
|
|
237
|
-
text-transform: ${
|
|
238
|
-
}
|
|
239
|
-
`,
|
|
231
|
+
font-family: ${Yt};
|
|
232
|
+
font-size: ${Gt};
|
|
233
|
+
font-weight: ${Qt};
|
|
234
|
+
letter-spacing: ${te};
|
|
235
|
+
line-height: ${ee};
|
|
236
|
+
text-transform: ${ie};
|
|
237
|
+
}
|
|
238
|
+
`,Qe=u`
|
|
240
239
|
.ft-typography--subtitle1 {
|
|
241
|
-
font-family: ${
|
|
242
|
-
font-size: ${
|
|
243
|
-
font-weight: ${
|
|
244
|
-
letter-spacing: ${
|
|
245
|
-
line-height: ${
|
|
246
|
-
text-transform: ${
|
|
247
|
-
}
|
|
248
|
-
`,
|
|
240
|
+
font-family: ${oe};
|
|
241
|
+
font-size: ${re};
|
|
242
|
+
font-weight: ${se};
|
|
243
|
+
letter-spacing: ${ne};
|
|
244
|
+
line-height: ${ae};
|
|
245
|
+
text-transform: ${le};
|
|
246
|
+
}
|
|
247
|
+
`,ti=u`
|
|
249
248
|
.ft-typography--subtitle2 {
|
|
250
|
-
font-family: ${
|
|
251
|
-
font-size: ${
|
|
252
|
-
font-weight: ${
|
|
253
|
-
letter-spacing: ${
|
|
254
|
-
line-height: ${
|
|
255
|
-
text-transform: ${
|
|
249
|
+
font-family: ${he};
|
|
250
|
+
font-size: ${pe};
|
|
251
|
+
font-weight: ${ce};
|
|
252
|
+
letter-spacing: ${fe};
|
|
253
|
+
line-height: ${de};
|
|
254
|
+
text-transform: ${ue};
|
|
256
255
|
}
|
|
257
256
|
|
|
258
|
-
`,
|
|
257
|
+
`,ei=u`
|
|
259
258
|
.ft-typography--body1 {
|
|
260
|
-
font-family: ${
|
|
261
|
-
font-size: ${
|
|
262
|
-
font-weight: ${
|
|
263
|
-
letter-spacing: ${
|
|
264
|
-
line-height: ${
|
|
265
|
-
text-transform: ${
|
|
266
|
-
}
|
|
267
|
-
`,
|
|
259
|
+
font-family: ${ye};
|
|
260
|
+
font-size: ${ge};
|
|
261
|
+
font-weight: ${ve};
|
|
262
|
+
letter-spacing: ${be};
|
|
263
|
+
line-height: ${me};
|
|
264
|
+
text-transform: ${xe};
|
|
265
|
+
}
|
|
266
|
+
`,ii=u`
|
|
268
267
|
.ft-typography--body2 {
|
|
269
|
-
font-family: ${
|
|
270
|
-
font-size: ${
|
|
271
|
-
font-weight: ${
|
|
272
|
-
letter-spacing: ${
|
|
273
|
-
line-height: ${
|
|
274
|
-
text-transform: ${
|
|
275
|
-
}
|
|
276
|
-
`,
|
|
268
|
+
font-family: ${we};
|
|
269
|
+
font-size: ${$e};
|
|
270
|
+
font-weight: ${Oe};
|
|
271
|
+
letter-spacing: ${Se};
|
|
272
|
+
line-height: ${Ne};
|
|
273
|
+
text-transform: ${ke};
|
|
274
|
+
}
|
|
275
|
+
`,oi=u`
|
|
277
276
|
.ft-typography--caption {
|
|
278
|
-
font-family: ${
|
|
279
|
-
font-size: ${
|
|
280
|
-
font-weight: ${
|
|
281
|
-
letter-spacing: ${
|
|
282
|
-
line-height: ${
|
|
283
|
-
text-transform: ${
|
|
284
|
-
}
|
|
285
|
-
`,
|
|
277
|
+
font-family: ${Ee};
|
|
278
|
+
font-size: ${Re};
|
|
279
|
+
font-weight: ${Ce};
|
|
280
|
+
letter-spacing: ${Me};
|
|
281
|
+
line-height: ${Ue};
|
|
282
|
+
text-transform: ${Fe};
|
|
283
|
+
}
|
|
284
|
+
`,ri=u`
|
|
286
285
|
.ft-typography--breadcrumb {
|
|
287
|
-
font-family: ${
|
|
288
|
-
font-size: ${
|
|
289
|
-
font-weight: ${
|
|
290
|
-
letter-spacing: ${
|
|
291
|
-
line-height: ${
|
|
292
|
-
text-transform: ${
|
|
293
|
-
}
|
|
294
|
-
`,
|
|
286
|
+
font-family: ${Ae};
|
|
287
|
+
font-size: ${Le};
|
|
288
|
+
font-weight: ${je};
|
|
289
|
+
letter-spacing: ${ze};
|
|
290
|
+
line-height: ${Be};
|
|
291
|
+
text-transform: ${De};
|
|
292
|
+
}
|
|
293
|
+
`,si=u`
|
|
295
294
|
.ft-typography--overline {
|
|
296
|
-
font-family: ${
|
|
297
|
-
font-size: ${
|
|
298
|
-
font-weight: ${
|
|
299
|
-
letter-spacing: ${
|
|
300
|
-
line-height: ${
|
|
301
|
-
text-transform: ${
|
|
302
|
-
}
|
|
303
|
-
`,
|
|
295
|
+
font-family: ${Pe};
|
|
296
|
+
font-size: ${_e};
|
|
297
|
+
font-weight: ${Te};
|
|
298
|
+
letter-spacing: ${We};
|
|
299
|
+
line-height: ${He};
|
|
300
|
+
text-transform: ${Ke};
|
|
301
|
+
}
|
|
302
|
+
`,ni=u`
|
|
304
303
|
.ft-typography--button {
|
|
305
|
-
font-family: ${
|
|
306
|
-
font-size: ${
|
|
307
|
-
font-weight: ${
|
|
308
|
-
letter-spacing: ${
|
|
309
|
-
line-height: ${
|
|
310
|
-
text-transform: ${
|
|
311
|
-
}
|
|
312
|
-
`,
|
|
304
|
+
font-family: ${Ie};
|
|
305
|
+
font-size: ${Ze};
|
|
306
|
+
font-weight: ${Ve};
|
|
307
|
+
letter-spacing: ${Je};
|
|
308
|
+
line-height: ${Xe};
|
|
309
|
+
text-transform: ${qe};
|
|
310
|
+
}
|
|
311
|
+
`,ai=u`
|
|
313
312
|
.ft-typography {
|
|
314
313
|
vertical-align: inherit;
|
|
315
314
|
}
|
|
316
|
-
`;var
|
|
317
|
-
<${
|
|
315
|
+
`;var li=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 hi extends gt{constructor(){super(...arguments),this.variant=Tt.body1}render(){return this.element?_t`
|
|
316
|
+
<${Dt(this.element)}
|
|
318
317
|
class="ft-typography ft-typography--${this.variant}">
|
|
319
318
|
<slot></slot>
|
|
320
|
-
</${
|
|
321
|
-
`:
|
|
319
|
+
</${Dt(this.element)}>
|
|
320
|
+
`:_t`
|
|
322
321
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
323
|
-
`}}
|
|
322
|
+
`}}hi.styles=[Ye,Ge,Qe,ti,ei,ii,oi,ri,si,ni,ai],li([o()],hi.prototype,"element",void 0),li([o()],hi.prototype,"variant",void 0),a("ft-typography")(hi);const pi={padding:ct.create("--ft-card-padding","SIZE","12px"),colorPrimary:ct.external(ft.colorPrimary,"Design system"),colorSurface:ct.external(ft.colorSurface,"Design system"),colorOnSurfaceMedium:ct.external(ft.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:ct.external(ft.colorOnSurfaceHigh,"Design system"),borderRadiusM:ct.external(ft.borderRadiusM,"Design system"),elevation02:ct.external(ft.elevation02,"Design system"),elevation04:ct.external(ft.elevation04,"Design system")},ci=u`
|
|
324
323
|
:host {
|
|
325
324
|
display: block;
|
|
326
325
|
}
|
|
327
326
|
|
|
328
327
|
#container {
|
|
329
|
-
padding: ${
|
|
330
|
-
border-radius: ${
|
|
331
|
-
box-shadow: ${
|
|
328
|
+
padding: ${pi.padding};
|
|
329
|
+
border-radius: ${pi.borderRadiusM};
|
|
330
|
+
box-shadow: ${pi.elevation02};
|
|
332
331
|
position: relative;
|
|
333
332
|
width: 100%;
|
|
334
333
|
height: 100%;
|
|
335
334
|
display: block;
|
|
336
335
|
box-sizing: border-box;
|
|
337
|
-
background-color: ${
|
|
336
|
+
background-color: ${pi.colorSurface};
|
|
338
337
|
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
339
338
|
}
|
|
340
339
|
|
|
341
340
|
#container:hover {
|
|
342
|
-
box-shadow: ${
|
|
341
|
+
box-shadow: ${pi.elevation04};
|
|
343
342
|
}
|
|
344
343
|
|
|
345
344
|
#container.selected {
|
|
346
|
-
outline: solid 2px ${
|
|
347
|
-
box-shadow: ${
|
|
345
|
+
outline: solid 2px ${pi.colorPrimary};
|
|
346
|
+
box-shadow: ${pi.elevation04};
|
|
348
347
|
}
|
|
349
348
|
|
|
350
349
|
#header:not([hidden]) {
|
|
@@ -359,23 +358,23 @@ const Ft=Symbol.for(""),At=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void
|
|
|
359
358
|
.title {
|
|
360
359
|
text-overflow: ellipsis;
|
|
361
360
|
overflow: hidden;
|
|
362
|
-
color: ${
|
|
361
|
+
color: ${pi.colorOnSurfaceHigh};
|
|
363
362
|
}
|
|
364
363
|
|
|
365
364
|
#content {
|
|
366
365
|
opacity: 1;
|
|
367
366
|
font-size: 15px;
|
|
368
367
|
height: 100%;
|
|
369
|
-
color: ${
|
|
368
|
+
color: ${pi.colorOnSurfaceMedium};
|
|
370
369
|
}
|
|
371
370
|
|
|
372
371
|
#action {
|
|
373
372
|
position: absolute;
|
|
374
373
|
top: 0;
|
|
375
374
|
right: 0;
|
|
376
|
-
color: ${
|
|
375
|
+
color: ${pi.colorOnSurfaceHigh};
|
|
377
376
|
}
|
|
378
|
-
`;var
|
|
377
|
+
`;var fi=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 di extends gt{constructor(){super(...arguments),this.title="",this.selected=!1}render(){return K`
|
|
379
378
|
<div id="container" part="container" class=${this.selected?"selected":""}>
|
|
380
379
|
<ft-ripple primary></ft-ripple>
|
|
381
380
|
<div id="header" ?hidden=${!this.title} part="header">
|
|
@@ -391,4 +390,4 @@ const Ft=Symbol.for(""),At=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void
|
|
|
391
390
|
<slot name="action"></slot>
|
|
392
391
|
</div>
|
|
393
392
|
</div>
|
|
394
|
-
`}}
|
|
393
|
+
`}}di.elementDefinitions={"ft-ripple":jt,"ft-typography":hi},di.styles=ci,fi([o()],di.prototype,"title",void 0),fi([o({type:Boolean})],di.prototype,"selected",void 0),a("ft-card")(di),t.FtCard=di,t.FtCardCssVariables=pi,t.styles=ci,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.
|
|
3
|
+
"version": "0.3.20",
|
|
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.3.
|
|
23
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-ripple": "0.3.20",
|
|
23
|
+
"@fluid-topics/ft-typography": "0.3.20",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "0.3.20",
|
|
25
25
|
"lit": "2.2.8"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "f06e98f4cd6c9f9ae741ca86f9a24cb84ce15ec5"
|
|
28
28
|
}
|