@fluid-topics/ft-card 0.3.12 → 0.3.13

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.
@@ -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(Ut){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
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(Ft){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
@@ -94,119 +94,119 @@ const ut=1;
94
94
  * Copyright 2018 Google LLC
95
95
  * SPDX-License-Identifier: BSD-3-Clause
96
96
  */
97
- const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){var e;if(super(t),t.type!==ut||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const r=t.element.classList;this.nt.forEach((t=>{t in e||(r.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return W}});var gt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const vt=lt.extend("--ft-ripple-color",ht.colorContent),bt=vt,mt=lt.extend("--ft-ripple-background-color",vt),xt=lt.external(ht.opacityContentOnSurfacePressed,"Design system"),wt=lt.external(ht.opacityContentOnSurfaceHover,"Design system"),$t=lt.external(ht.opacityContentOnSurfaceFocused,"Design system"),Ot=lt.external(ht.opacityContentOnSurfaceSelected,"Design system"),St=lt.extend("--ft-ripple-color",ht.colorPrimary),Nt=St,Et=lt.extend("--ft-ripple-background-color",St),Rt=lt.extend("--ft-ripple-color",ht.colorSecondary),Ct=Rt,kt=lt.extend("--ft-ripple-background-color",Rt);class Mt extends dt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return T`
98
- <style>
99
- .ft-ripple .ft-ripple--effect,
100
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
101
- width: ${this.rippleSize}px;
102
- height: ${this.rippleSize}px;
103
- }
97
+ const yt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){var e;if(super(t),t.type!==ut||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const r=t.element.classList;this.nt.forEach((t=>{t in e||(r.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return W}}),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),Et=lt.extend("--ft-ripple-color",ht.colorSecondary),Rt=Et,Ct=lt.extend("--ft-ripple-background-color",Et),kt=d`
98
+ :host {
99
+ display: contents;
100
+ }
104
101
 
105
- .ft-ripple .ft-ripple--effect {
106
- left: ${this.originX}px;
107
- top: ${this.originY}px;
108
- }
109
- </style>
110
- <div class="${yt(t)}">
111
- <div class="ft-ripple--background"></div>
112
- <div class="ft-ripple--effect"></div>
113
- </div>
114
- `}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()}}Mt.elementDefinitions={},Mt.styles=d`
115
- :host {
116
- display: contents;
117
- }
102
+ .ft-ripple {
103
+ position: absolute;
104
+ inset: 0;
105
+ pointer-events: none;
106
+ }
118
107
 
119
- .ft-ripple {
120
- position: absolute;
121
- inset: 0;
122
- pointer-events: none;
123
- }
108
+ .ft-ripple:not(.ft-ripple--unbounded) {
109
+ overflow: hidden;
110
+ }
124
111
 
125
- .ft-ripple:not(.ft-ripple--unbounded) {
126
- overflow: hidden;
127
- }
112
+ .ft-ripple .ft-ripple--background,
113
+ .ft-ripple .ft-ripple--effect {
114
+ position: absolute;
115
+ opacity: 0;
116
+ }
128
117
 
129
- .ft-ripple .ft-ripple--background,
130
- .ft-ripple .ft-ripple--effect {
131
- position: absolute;
132
- opacity: 0;
133
- }
118
+ .ft-ripple .ft-ripple--background {
119
+ background-color: ${bt};
120
+ }
134
121
 
135
- .ft-ripple .ft-ripple--background {
136
- background-color: ${mt};
137
- }
122
+ .ft-ripple .ft-ripple--effect {
123
+ background-color: ${vt};
124
+ }
138
125
 
139
- .ft-ripple .ft-ripple--effect {
140
- background-color: ${bt};
141
- }
126
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
127
+ background-color: ${Ct};
128
+ }
142
129
 
143
- .ft-ripple.ft-ripple--secondary .ft-ripple--background {
144
- background-color: ${kt};
145
- }
130
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
131
+ background-color: ${Rt};
132
+ }
146
133
 
147
- .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
148
- background-color: ${Ct};
149
- }
134
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
135
+ background-color: ${Nt};
136
+ }
150
137
 
151
- .ft-ripple.ft-ripple--primary .ft-ripple--background {
152
- background-color: ${Et};
153
- }
138
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
139
+ background-color: ${St};
140
+ }
154
141
 
155
- .ft-ripple.ft-ripple--primary .ft-ripple--effect {
156
- background-color: ${Nt};
157
- }
142
+ .ft-ripple .ft-ripple--background {
143
+ top: 0;
144
+ left: 0;
145
+ height: 100%;
146
+ width: 100%;
147
+ transition: opacity 75ms linear;
148
+ }
158
149
 
159
- .ft-ripple .ft-ripple--background {
160
- top: 0;
161
- left: 0;
162
- height: 100%;
163
- width: 100%;
164
- transition: opacity 75ms linear;
165
- }
150
+ .ft-ripple .ft-ripple--effect,
151
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
152
+ border-radius: 50%;
153
+ }
166
154
 
167
- .ft-ripple .ft-ripple--effect,
168
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
169
- border-radius: 50%;
170
- }
155
+ .ft-ripple .ft-ripple--effect {
156
+ transform: translate(-50%, -50%) scale(0.15);
157
+ transition: transform 300ms ease, opacity 75ms linear;
158
+ }
171
159
 
172
- .ft-ripple .ft-ripple--effect {
173
- transform: translate(-50%, -50%) scale(0.15);
174
- transition: transform 300ms ease, opacity 75ms linear;
175
- }
160
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
161
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
162
+ left: 50%;
163
+ top: 50%;
164
+ }
176
165
 
177
- .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
178
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
179
- left: 50%;
180
- top: 50%;
181
- }
166
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
167
+ transform: translate(-50%, -50%);
168
+ }
182
169
 
183
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
184
- transform: translate(-50%, -50%);
185
- }
170
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
171
+ opacity: ${xt};
172
+ }
186
173
 
187
- .ft-ripple.ft-ripple--hovered .ft-ripple--background {
188
- opacity: ${wt};
189
- }
174
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
175
+ opacity: ${$t};
176
+ }
190
177
 
191
- .ft-ripple.ft-ripple--selected .ft-ripple--background {
192
- opacity: ${Ot};
193
- }
178
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
179
+ opacity: ${wt};
180
+ }
194
181
 
195
- .ft-ripple.ft-ripple--focused .ft-ripple--background {
196
- opacity: ${$t};
197
- }
182
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
183
+ opacity: ${mt};
184
+ transform: translate(-50%, -50%) scale(1);
185
+ }
186
+ `;var Mt=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 Ut extends dt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return T`
187
+ <style>
188
+ .ft-ripple .ft-ripple--effect,
189
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
190
+ width: ${this.rippleSize}px;
191
+ height: ${this.rippleSize}px;
192
+ }
198
193
 
199
- .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
200
- opacity: ${xt};
201
- transform: translate(-50%, -50%) scale(1);
202
- }
203
- `,gt([o({type:Boolean})],Mt.prototype,"primary",void 0),gt([o({type:Boolean})],Mt.prototype,"secondary",void 0),gt([o({type:Boolean})],Mt.prototype,"unbounded",void 0),gt([o({type:Boolean})],Mt.prototype,"activated",void 0),gt([o({type:Boolean})],Mt.prototype,"selected",void 0),gt([o({type:Boolean})],Mt.prototype,"disabled",void 0),gt([r()],Mt.prototype,"hovered",void 0),gt([r()],Mt.prototype,"focused",void 0),gt([r()],Mt.prototype,"pressed",void 0),gt([r()],Mt.prototype,"rippling",void 0),gt([r()],Mt.prototype,"rippleSize",void 0),gt([r()],Mt.prototype,"originX",void 0),gt([r()],Mt.prototype,"originY",void 0),gt([s(".ft-ripple")],Mt.prototype,"ripple",void 0),gt([s(".ft-ripple--effect")],Mt.prototype,"rippleEffect",void 0),a("ft-ripple")(Mt);
194
+ .ft-ripple .ft-ripple--effect {
195
+ left: ${this.originX}px;
196
+ top: ${this.originY}px;
197
+ }
198
+ </style>
199
+ <div class="${yt(t)}">
200
+ <div class="ft-ripple--background"></div>
201
+ <div class="ft-ripple--effect"></div>
202
+ </div>
203
+ `}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()}}Ut.elementDefinitions={},Ut.styles=kt,Mt([o({type:Boolean})],Ut.prototype,"primary",void 0),Mt([o({type:Boolean})],Ut.prototype,"secondary",void 0),Mt([o({type:Boolean})],Ut.prototype,"unbounded",void 0),Mt([o({type:Boolean})],Ut.prototype,"activated",void 0),Mt([o({type:Boolean})],Ut.prototype,"selected",void 0),Mt([o({type:Boolean})],Ut.prototype,"disabled",void 0),Mt([r()],Ut.prototype,"hovered",void 0),Mt([r()],Ut.prototype,"focused",void 0),Mt([r()],Ut.prototype,"pressed",void 0),Mt([r()],Ut.prototype,"rippling",void 0),Mt([r()],Ut.prototype,"rippleSize",void 0),Mt([r()],Ut.prototype,"originX",void 0),Mt([r()],Ut.prototype,"originY",void 0),Mt([s(".ft-ripple")],Ut.prototype,"ripple",void 0),Mt([s(".ft-ripple--effect")],Ut.prototype,"rippleEffect",void 0),a("ft-ripple")(Ut);
204
204
  /**
205
205
  * @license
206
206
  * Copyright 2020 Google LLC
207
207
  * SPDX-License-Identifier: BSD-3-Clause
208
208
  */
209
- const Ut=Symbol.for(""),Ft=t=>{if((null==t?void 0:t.r)===Ut)return null==t?void 0:t._$litStatic$},At=t=>({_$litStatic$:t,r:Ut}),Lt=new Map,Pt=(t=>(e,...i)=>{const o=i.length;let r,s;const n=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(s=i[h],r=Ft(s));)l+=r+e[++h],p=!0;a.push(s),n.push(l),h++}if(h===o&&n.push(e[o]),p){const t=n.join("$$lit$$");void 0===(e=Lt.get(t))&&(n.raw=n,Lt.set(t,e=n)),i=a}return t(e,...i)})(T);var zt,Bt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(zt||(zt={}));const Dt=lt.extend("--ft-typography-font-family",ht.titleFont),jt=lt.extend("--ft-typography-font-family",ht.contentFont),_t={fontFamily:jt,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Tt=lt.extend("--ft-typography-title-font-family",Dt),Wt=lt.extend("--ft-typography-title-font-size",_t.fontSize,"20px"),Ht=lt.extend("--ft-typography-title-font-weight",_t.fontWeight,"normal"),Kt=lt.extend("--ft-typography-title-letter-spacing",_t.letterSpacing,"0.15px"),It=lt.extend("--ft-typography-title-line-height",_t.lineHeight,"1.2"),Zt=lt.extend("--ft-typography-title-text-transform",_t.textTransform,"inherit"),Vt=lt.extend("--ft-typography-title-dense-font-family",Dt),Jt=lt.extend("--ft-typography-title-dense-font-size",_t.fontSize,"14px"),Xt=lt.extend("--ft-typography-title-dense-font-weight",_t.fontWeight,"normal"),qt=lt.extend("--ft-typography-title-dense-letter-spacing",_t.letterSpacing,"0.105px"),Yt=lt.extend("--ft-typography-title-dense-line-height",_t.lineHeight,"1.7"),Gt=lt.extend("--ft-typography-title-dense-text-transform",_t.textTransform,"inherit"),Qt=lt.extend("--ft-typography-subtitle1-font-family",jt),te=lt.extend("--ft-typography-subtitle1-font-size",_t.fontSize,"16px"),ee=lt.extend("--ft-typography-subtitle1-font-weight",_t.fontWeight,"600"),ie=lt.extend("--ft-typography-subtitle1-letter-spacing",_t.letterSpacing,"0.144px"),oe=lt.extend("--ft-typography-subtitle1-line-height",_t.lineHeight,"1.5"),re=lt.extend("--ft-typography-subtitle1-text-transform",_t.textTransform,"inherit"),se=lt.extend("--ft-typography-subtitle2-font-family",jt),ne=lt.extend("--ft-typography-subtitle2-font-size",_t.fontSize,"14px"),ae=lt.extend("--ft-typography-subtitle2-font-weight",_t.fontWeight,"normal"),le=lt.extend("--ft-typography-subtitle2-letter-spacing",_t.letterSpacing,"0.098px"),he=lt.extend("--ft-typography-subtitle2-line-height",_t.lineHeight,"1.7"),pe=lt.extend("--ft-typography-subtitle2-text-transform",_t.textTransform,"inherit"),ce=lt.extend("--ft-typography-body1-font-family",jt),fe=lt.extend("--ft-typography-body1-font-size",_t.fontSize,"16px"),de=lt.extend("--ft-typography-body1-font-weight",_t.fontWeight,"normal"),ue=lt.extend("--ft-typography-body1-letter-spacing",_t.letterSpacing,"0.496px"),ye=lt.extend("--ft-typography-body1-line-height",_t.lineHeight,"1.5"),ge=lt.extend("--ft-typography-body1-text-transform",_t.textTransform,"inherit"),ve=lt.extend("--ft-typography-body2-font-family",jt),be=lt.extend("--ft-typography-body2-font-size",_t.fontSize,"14px"),me=lt.extend("--ft-typography-body2-font-weight",_t.fontWeight,"normal"),xe=lt.extend("--ft-typography-body2-letter-spacing",_t.letterSpacing,"0.252px"),we=lt.extend("--ft-typography-body2-line-height",_t.lineHeight,"1.4"),$e=lt.extend("--ft-typography-body2-text-transform",_t.textTransform,"inherit"),Oe=lt.extend("--ft-typography-caption-font-family",jt),Se=lt.extend("--ft-typography-caption-font-size",_t.fontSize,"12px"),Ne=lt.extend("--ft-typography-caption-font-weight",_t.fontWeight,"normal"),Ee=lt.extend("--ft-typography-caption-letter-spacing",_t.letterSpacing,"0.396px"),Re=lt.extend("--ft-typography-caption-line-height",_t.lineHeight,"1.33"),Ce=lt.extend("--ft-typography-caption-text-transform",_t.textTransform,"inherit"),ke=lt.extend("--ft-typography-breadcrumb-font-family",jt),Me=lt.extend("--ft-typography-breadcrumb-font-size",_t.fontSize,"10px"),Ue=lt.extend("--ft-typography-breadcrumb-font-weight",_t.fontWeight,"normal"),Fe=lt.extend("--ft-typography-breadcrumb-letter-spacing",_t.letterSpacing,"0.33px"),Ae=lt.extend("--ft-typography-breadcrumb-line-height",_t.lineHeight,"1.6"),Le=lt.extend("--ft-typography-breadcrumb-text-transform",_t.textTransform,"inherit"),Pe=lt.extend("--ft-typography-overline-font-family",jt),ze=lt.extend("--ft-typography-overline-font-size",_t.fontSize,"10px"),Be=lt.extend("--ft-typography-overline-font-weight",_t.fontWeight,"normal"),De=lt.extend("--ft-typography-overline-letter-spacing",_t.letterSpacing,"1.5px"),je=lt.extend("--ft-typography-overline-line-height",_t.lineHeight,"1.6"),_e=lt.extend("--ft-typography-overline-text-transform",_t.textTransform,"uppercase"),Te=lt.extend("--ft-typography-button-font-family",jt),We=lt.extend("--ft-typography-button-font-size",_t.fontSize,"14px"),He=lt.extend("--ft-typography-button-font-weight",_t.fontWeight,"600"),Ke=lt.extend("--ft-typography-button-letter-spacing",_t.letterSpacing,"1.246px"),Ie=lt.extend("--ft-typography-button-line-height",_t.lineHeight,"1.15"),Ze=lt.extend("--ft-typography-button-text-transform",_t.textTransform,"uppercase"),Ve=d`
209
+ const Ft=Symbol.for(""),At=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void 0:t._$litStatic$},Lt=t=>({_$litStatic$:t,r:Ft}),Pt=new Map,zt=(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=At(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)})(T);var Bt;!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"}(Bt||(Bt={}));const Dt=lt.extend("--ft-typography-font-family",ht.titleFont),jt=lt.extend("--ft-typography-font-family",ht.contentFont),_t={fontFamily:jt,fontSize:lt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:lt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:lt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:lt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:lt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Tt=lt.extend("--ft-typography-title-font-family",Dt),Wt=lt.extend("--ft-typography-title-font-size",_t.fontSize,"20px"),Ht=lt.extend("--ft-typography-title-font-weight",_t.fontWeight,"normal"),Kt=lt.extend("--ft-typography-title-letter-spacing",_t.letterSpacing,"0.15px"),It=lt.extend("--ft-typography-title-line-height",_t.lineHeight,"1.2"),Zt=lt.extend("--ft-typography-title-text-transform",_t.textTransform,"inherit"),Vt=lt.extend("--ft-typography-title-dense-font-family",Dt),Jt=lt.extend("--ft-typography-title-dense-font-size",_t.fontSize,"14px"),Xt=lt.extend("--ft-typography-title-dense-font-weight",_t.fontWeight,"normal"),qt=lt.extend("--ft-typography-title-dense-letter-spacing",_t.letterSpacing,"0.105px"),Yt=lt.extend("--ft-typography-title-dense-line-height",_t.lineHeight,"1.7"),Gt=lt.extend("--ft-typography-title-dense-text-transform",_t.textTransform,"inherit"),Qt=lt.extend("--ft-typography-subtitle1-font-family",jt),te=lt.extend("--ft-typography-subtitle1-font-size",_t.fontSize,"16px"),ee=lt.extend("--ft-typography-subtitle1-font-weight",_t.fontWeight,"600"),ie=lt.extend("--ft-typography-subtitle1-letter-spacing",_t.letterSpacing,"0.144px"),oe=lt.extend("--ft-typography-subtitle1-line-height",_t.lineHeight,"1.5"),re=lt.extend("--ft-typography-subtitle1-text-transform",_t.textTransform,"inherit"),se=lt.extend("--ft-typography-subtitle2-font-family",jt),ne=lt.extend("--ft-typography-subtitle2-font-size",_t.fontSize,"14px"),ae=lt.extend("--ft-typography-subtitle2-font-weight",_t.fontWeight,"normal"),le=lt.extend("--ft-typography-subtitle2-letter-spacing",_t.letterSpacing,"0.098px"),he=lt.extend("--ft-typography-subtitle2-line-height",_t.lineHeight,"1.7"),pe=lt.extend("--ft-typography-subtitle2-text-transform",_t.textTransform,"inherit"),ce=lt.extend("--ft-typography-body1-font-family",jt),fe=lt.extend("--ft-typography-body1-font-size",_t.fontSize,"16px"),de=lt.extend("--ft-typography-body1-font-weight",_t.fontWeight,"normal"),ue=lt.extend("--ft-typography-body1-letter-spacing",_t.letterSpacing,"0.496px"),ye=lt.extend("--ft-typography-body1-line-height",_t.lineHeight,"1.5"),ge=lt.extend("--ft-typography-body1-text-transform",_t.textTransform,"inherit"),ve=lt.extend("--ft-typography-body2-font-family",jt),be=lt.extend("--ft-typography-body2-font-size",_t.fontSize,"14px"),me=lt.extend("--ft-typography-body2-font-weight",_t.fontWeight,"normal"),xe=lt.extend("--ft-typography-body2-letter-spacing",_t.letterSpacing,"0.252px"),we=lt.extend("--ft-typography-body2-line-height",_t.lineHeight,"1.4"),$e=lt.extend("--ft-typography-body2-text-transform",_t.textTransform,"inherit"),Oe=lt.extend("--ft-typography-caption-font-family",jt),Se=lt.extend("--ft-typography-caption-font-size",_t.fontSize,"12px"),Ne=lt.extend("--ft-typography-caption-font-weight",_t.fontWeight,"normal"),Ee=lt.extend("--ft-typography-caption-letter-spacing",_t.letterSpacing,"0.396px"),Re=lt.extend("--ft-typography-caption-line-height",_t.lineHeight,"1.33"),Ce=lt.extend("--ft-typography-caption-text-transform",_t.textTransform,"inherit"),ke=lt.extend("--ft-typography-breadcrumb-font-family",jt),Me=lt.extend("--ft-typography-breadcrumb-font-size",_t.fontSize,"10px"),Ue=lt.extend("--ft-typography-breadcrumb-font-weight",_t.fontWeight,"normal"),Fe=lt.extend("--ft-typography-breadcrumb-letter-spacing",_t.letterSpacing,"0.33px"),Ae=lt.extend("--ft-typography-breadcrumb-line-height",_t.lineHeight,"1.6"),Le=lt.extend("--ft-typography-breadcrumb-text-transform",_t.textTransform,"inherit"),Pe=lt.extend("--ft-typography-overline-font-family",jt),ze=lt.extend("--ft-typography-overline-font-size",_t.fontSize,"10px"),Be=lt.extend("--ft-typography-overline-font-weight",_t.fontWeight,"normal"),De=lt.extend("--ft-typography-overline-letter-spacing",_t.letterSpacing,"1.5px"),je=lt.extend("--ft-typography-overline-line-height",_t.lineHeight,"1.6"),_e=lt.extend("--ft-typography-overline-text-transform",_t.textTransform,"uppercase"),Te=lt.extend("--ft-typography-button-font-family",jt),We=lt.extend("--ft-typography-button-font-size",_t.fontSize,"14px"),He=lt.extend("--ft-typography-button-font-weight",_t.fontWeight,"600"),Ke=lt.extend("--ft-typography-button-letter-spacing",_t.letterSpacing,"1.246px"),Ie=lt.extend("--ft-typography-button-line-height",_t.lineHeight,"1.15"),Ze=lt.extend("--ft-typography-button-text-transform",_t.textTransform,"uppercase"),Ve=d`
210
210
  .ft-typography--title {
211
211
  font-family: ${Tt};
212
212
  font-size: ${Wt};
@@ -297,73 +297,73 @@ const Ut=Symbol.for(""),Ft=t=>{if((null==t?void 0:t.r)===Ut)return null==t?void
297
297
  line-height: ${Ie};
298
298
  text-transform: ${Ze};
299
299
  }
300
- `;class oi extends dt{constructor(){super(...arguments),this.variant=zt.body1}render(){return this.element?Pt`
301
- <${At(this.element)}
300
+ `,oi=d`
301
+ .ft-typography {
302
+ vertical-align: inherit;
303
+ }
304
+ `;var ri=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 si extends dt{constructor(){super(...arguments),this.variant=Bt.body1}render(){return this.element?zt`
305
+ <${Lt(this.element)}
302
306
  class="ft-typography ft-typography--${this.variant}">
303
307
  <slot></slot>
304
- </${At(this.element)}>
305
- `:Pt`
308
+ </${Lt(this.element)}>
309
+ `:zt`
306
310
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
307
- `}}oi.styles=[Ve,Je,Xe,qe,Ye,Ge,Qe,ti,ei,ii,d`
308
- .ft-typography {
309
- vertical-align: inherit;
310
- }
311
- `],Bt([o()],oi.prototype,"element",void 0),Bt([o()],oi.prototype,"variant",void 0),a("ft-typography")(oi);var ri=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const si={padding:lt.create("--ft-card-padding","SIZE","12px"),colorPrimary:lt.external(ht.colorPrimary,"Design system"),colorSurface:lt.external(ht.colorSurface,"Design system"),colorOnSurfaceMedium:lt.external(ht.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:lt.external(ht.colorOnSurfaceHigh,"Design system"),borderRadiusM:lt.external(ht.borderRadiusM,"Design system"),elevation02:lt.external(ht.elevation02,"Design system"),elevation04:lt.external(ht.elevation04,"Design system")};class ni extends dt{constructor(){super(...arguments),this.title="",this.selected=!1}static get styles(){return d`
312
- :host {
313
- display: block;
314
- }
311
+ `}}si.styles=[Ve,Je,Xe,qe,Ye,Ge,Qe,ti,ei,ii,oi],ri([o()],si.prototype,"element",void 0),ri([o()],si.prototype,"variant",void 0),a("ft-typography")(si);const ni={padding:lt.create("--ft-card-padding","SIZE","12px"),colorPrimary:lt.external(ht.colorPrimary,"Design system"),colorSurface:lt.external(ht.colorSurface,"Design system"),colorOnSurfaceMedium:lt.external(ht.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:lt.external(ht.colorOnSurfaceHigh,"Design system"),borderRadiusM:lt.external(ht.borderRadiusM,"Design system"),elevation02:lt.external(ht.elevation02,"Design system"),elevation04:lt.external(ht.elevation04,"Design system")},ai=d`
312
+ :host {
313
+ display: block;
314
+ }
315
315
 
316
- #container {
317
- padding: ${si.padding};
318
- border-radius: ${si.borderRadiusM};
319
- box-shadow: ${si.elevation02};
320
- position: relative;
321
- width: 100%;
322
- height: 100%;
323
- display: block;
324
- box-sizing: border-box;
325
- background-color: ${si.colorSurface};
326
- transition: box-shadow 0.2s linear, color 0.2s linear;
327
- }
316
+ #container {
317
+ padding: ${ni.padding};
318
+ border-radius: ${ni.borderRadiusM};
319
+ box-shadow: ${ni.elevation02};
320
+ position: relative;
321
+ width: 100%;
322
+ height: 100%;
323
+ display: block;
324
+ box-sizing: border-box;
325
+ background-color: ${ni.colorSurface};
326
+ transition: box-shadow 0.2s linear, color 0.2s linear;
327
+ }
328
328
 
329
- #container:hover {
330
- box-shadow: ${si.elevation04};
331
- }
329
+ #container:hover {
330
+ box-shadow: ${ni.elevation04};
331
+ }
332
332
 
333
- #container.selected {
334
- outline: solid 2px ${si.colorPrimary};
335
- box-shadow: ${si.elevation04};
336
- }
333
+ #container.selected {
334
+ outline: solid 2px ${ni.colorPrimary};
335
+ box-shadow: ${ni.elevation04};
336
+ }
337
337
 
338
- #header:not([hidden]) {
339
- display: flex;
340
- margin-bottom: 8px;
341
- }
338
+ #header:not([hidden]) {
339
+ display: flex;
340
+ margin-bottom: 8px;
341
+ }
342
342
 
343
- #header-content {
344
- margin-left: 4px;
345
- }
343
+ #header-content {
344
+ margin-left: 4px;
345
+ }
346
346
 
347
- .title {
348
- text-overflow: ellipsis;
349
- overflow: hidden;
350
- color: ${si.colorOnSurfaceHigh};
351
- }
347
+ .title {
348
+ text-overflow: ellipsis;
349
+ overflow: hidden;
350
+ color: ${ni.colorOnSurfaceHigh};
351
+ }
352
352
 
353
- #content {
354
- opacity: 1;
355
- font-size: 15px;
356
- height: 100%;
357
- color: ${si.colorOnSurfaceMedium};
358
- }
353
+ #content {
354
+ opacity: 1;
355
+ font-size: 15px;
356
+ height: 100%;
357
+ color: ${ni.colorOnSurfaceMedium};
358
+ }
359
359
 
360
- #action {
361
- position: absolute;
362
- top: 0;
363
- right: 0;
364
- color: ${si.colorOnSurfaceHigh};
365
- }
366
- `}render(){return T`
360
+ #action {
361
+ position: absolute;
362
+ top: 0;
363
+ right: 0;
364
+ color: ${ni.colorOnSurfaceHigh};
365
+ }
366
+ `;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 dt{constructor(){super(...arguments),this.title="",this.selected=!1}render(){return T`
367
367
  <div id="container" part="container" class=${this.selected?"selected":""}>
368
368
  <ft-ripple primary></ft-ripple>
369
369
  <div id="header" ?hidden=${!this.title} part="header">
@@ -379,4 +379,4 @@ const Ut=Symbol.for(""),Ft=t=>{if((null==t?void 0:t.r)===Ut)return null==t?void
379
379
  <slot name="action"></slot>
380
380
  </div>
381
381
  </div>
382
- `}}ni.elementDefinitions={"ft-ripple":Mt,"ft-typography":oi},ri([o()],ni.prototype,"title",void 0),ri([o({type:Boolean})],ni.prototype,"selected",void 0),a("ft-card")(ni),t.FtCard=ni,t.FtCardCssVariables=si,Object.defineProperty(t,"i",{value:!0})}({});
382
+ `}}hi.elementDefinitions={"ft-ripple":Ut,"ft-typography":si},hi.styles=ai,li([o()],hi.prototype,"title",void 0),li([o({type:Boolean})],hi.prototype,"selected",void 0),a("ft-card")(hi),t.FtCard=hi,t.FtCardCssVariables=ni,t.styles=ai,Object.defineProperty(t,"i",{value:!0})}({});
@@ -0,0 +1,5 @@
1
+ export interface FtCardProperties {
2
+ title: string;
3
+ selected: boolean;
4
+ }
5
+ //# sourceMappingURL=ft-card.properties.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ft-card.properties.js.map
package/build/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  export * from "./ft-card";
2
+ export * from "./ft-card.css";
3
+ export * from "./ft-card.properties";
2
4
  //# sourceMappingURL=index.d.ts.map
package/build/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { customElement } from "@fluid-topics/ft-wc-utils";
2
2
  import { FtCard } from "./ft-card";
3
3
  export * from "./ft-card";
4
+ export * from "./ft-card.css";
5
+ export * from "./ft-card.properties";
4
6
  customElement("ft-card")(FtCard);
5
7
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-card",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
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.12",
23
- "@fluid-topics/ft-typography": "0.3.12",
24
- "@fluid-topics/ft-wc-utils": "0.3.12",
22
+ "@fluid-topics/ft-ripple": "0.3.13",
23
+ "@fluid-topics/ft-typography": "0.3.13",
24
+ "@fluid-topics/ft-wc-utils": "0.3.13",
25
25
  "lit": "2.2.8"
26
26
  },
27
- "gitHead": "126fc60c5ec4b89c3897901d1a92ee9b17286686"
27
+ "gitHead": "84b5fc920bc5d2bdb646b5da8815ad51caaf228e"
28
28
  }