@fluid-topics/ft-file-drop 1.0.0-alpha.1 → 1.0.1

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.
@@ -1,4 +1,4 @@
1
- !function(t,i,e,o,n,r){const s=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),l={color:s,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",s),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},a=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),p=a,h=i.FtCssVariableFactory.extend("--ft-ripple-background-color",a),f=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),c=f,d=i.FtCssVariableFactory.extend("--ft-ripple-background-color",f),u=e.css`
1
+ !function(t,i,e,o,n,r){const s=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),l={color:s,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",s),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},a=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),p=a,h=i.FtCssVariableFactory.extend("--ft-ripple-background-color",a),f=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),c=f,d=i.FtCssVariableFactory.extend("--ft-ripple-background-color",f),u=e.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -11,6 +11,7 @@
11
11
 
12
12
  .ft-ripple:not(.ft-ripple--unbounded) {
13
13
  overflow: hidden;
14
+ border-radius: ${l.borderRadius};
14
15
  }
15
16
 
16
17
  .ft-ripple .ft-ripple--background,
@@ -247,6 +248,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
247
248
 
248
249
  /* Ugly fix because font is broken */
249
250
  font-size: calc(0.75 * ${mi.size});
251
+ line-height: ${mi.size};
250
252
  position: relative;
251
253
  top: -4%;
252
254
  justify-content: center;
@@ -260,7 +262,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
260
262
  font-family: ${mi.materialFontFamily}, "Material Icons", sans-serif;
261
263
  }
262
264
  `;var wi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(wi||(wi={}));var ki=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class zi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(wi).includes(this.variant)?this.variant:wi.fluid_topics,i=t!==wi.material||!!this.value;return e.html`
263
- <i class="ft-icon ${"ft-icon--"+t}">
265
+ <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
264
266
  ${r.unsafeHTML(this.resolvedIcon)}
265
267
  <slot ?hidden=${i}></slot>
266
268
  </i>
@@ -390,7 +392,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
390
392
  <div></div>
391
393
  <div></div>
392
394
  </div>
393
- `}}Fi.styles=Ai,i.customElement("ft-loader")(Fi);const Ui=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),_i={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Ui,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",ni.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Ui),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Di=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Ri={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Di,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Di)},Mi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Wi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Li=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Hi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Ki=[i.noTextSelect,e.css`
395
+ `}}Fi.styles=Ai,i.customElement("ft-loader")(Fi);const Ui=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),_i={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Ui,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",ni.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Ui),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Di=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Ri={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Di,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Di)},Mi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Wi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Li=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Hi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Ki=[e.css`
394
396
  :host {
395
397
  display: inline-block;
396
398
  max-width: 100%;
@@ -430,11 +432,10 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
430
432
  border: none;
431
433
  pointer-events: auto;
432
434
 
433
- --ft-button-internal-line-height: calc(${_i.fontSize} + 2px);
435
+ --ft-button-internal-line-height: max(calc(${_i.fontSize} + 2px), ${_i.iconSize});
434
436
  --ft-button-internal-color: ${_i.color};
435
437
  ${i.setVariable(mi.size,_i.iconSize)};
436
438
  ${i.setVariable(l.color,_i.rippleColor)};
437
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${_i.iconSize});
438
439
 
439
440
  border-radius: ${_i.borderRadius};
440
441
  padding: ${_i.verticalPadding} ${_i.horizontalPadding};
@@ -463,11 +464,11 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
463
464
  }
464
465
 
465
466
  .ft-button--round {
466
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${_i.verticalPadding});
467
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${_i.verticalPadding});
467
468
  }
468
469
 
469
470
  .ft-button--round.ft-button--dense {
470
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Wi});
471
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Wi});
471
472
  }
472
473
 
473
474
  .ft-button[disabled] {
@@ -493,7 +494,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
493
494
  display: block;
494
495
  margin: 0 ${_i.iconPadding};
495
496
  ${i.setVariable(ni.fontSize,"1em")};
496
- ${i.setVariable(ni.lineHeight,"var(--ft-button-internal-content-height)")};
497
+ ${i.setVariable(ni.lineHeight,"var(--ft-button-internal-line-height)")};
497
498
  }
498
499
 
499
500
  .ft-button--dense .ft-button--label {
@@ -528,7 +529,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
528
529
  ${i.setVariable(Zi.size,_i.iconSize)};
529
530
  ${i.setVariable(Zi.color,"var(--ft-button-internal-color)")};
530
531
  }
531
- `];var Pi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Gi extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
532
+ `,i.noTextSelect];var Pi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Gi extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
532
533
  <button part="button"
533
534
  class="${n.classMap(t)}"
534
535
  aria-label="${this.getLabel()}"
@@ -711,7 +712,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
711
712
  <div class="ft-chip--icon-container ft-no-text-select">
712
713
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
713
714
  </div>
714
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ee))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ee))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}oe.elementDefinitions={"ft-ripple":x,"ft-typography":yi,"ft-icon":zi,"ft-button":Gi},oe.styles=te,ie([o.property({type:Boolean})],oe.prototype,"highlighted",void 0),ie([o.property({type:Boolean})],oe.prototype,"removable",void 0),ie([o.property({type:Boolean})],oe.prototype,"disabled",void 0),ie([o.property({type:Boolean})],oe.prototype,"clickable",void 0),ie([o.property({type:Boolean})],oe.prototype,"iconClickable",void 0),ie([o.property({type:Boolean})],oe.prototype,"dense",void 0),ie([o.property({type:Boolean})],oe.prototype,"multiLine",void 0),ie([o.property()],oe.prototype,"label",void 0),ie([o.property()],oe.prototype,"iconLabel",void 0),ie([o.property()],oe.prototype,"icon",void 0),ie([o.property()],oe.prototype,"iconVariant",void 0),ie([o.property({type:Boolean})],oe.prototype,"trailingIcon",void 0),ie([o.query("ft-typography slot")],oe.prototype,"slottedContent",void 0),i.customElement("ft-chip")(oe);const ne={zIndex:i.FtCssVariableFactory.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:i.FtCssVariableFactory.extend("--ft-file-drop-hint-background-color",i.designSystemVariables.colorSurface),hintColor:i.FtCssVariableFactory.extend("--ft-file-drop-hint-color",i.designSystemVariables.colorPrimary),errorColor:i.FtCssVariableFactory.extend("--ft-file-drop-error-color",i.designSystemVariables.colorError),borderRadius:i.FtCssVariableFactory.extend("--ft-file-drop-border-radius",i.designSystemVariables.borderRadiusL),borderWidth:i.FtCssVariableFactory.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:i.FtCssVariableFactory.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:i.FtCssVariableFactory.extend("--ft-file-drop-visible-border-color",i.designSystemVariables.colorOutline),activeBorderColor:i.FtCssVariableFactory.extend("--ft-file-drop-active-border-color",i.designSystemVariables.colorPrimary)},re=e.css`
715
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ee))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ee))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}oe.elementDefinitions={"ft-ripple":x,"ft-typography":yi,"ft-icon":zi,"ft-button":Gi},oe.styles=te,ie([o.property({type:Boolean})],oe.prototype,"highlighted",void 0),ie([o.property({type:Boolean})],oe.prototype,"removable",void 0),ie([o.property({type:Boolean})],oe.prototype,"disabled",void 0),ie([o.property({type:Boolean})],oe.prototype,"clickable",void 0),ie([o.property({type:Boolean})],oe.prototype,"iconClickable",void 0),ie([o.property({type:Boolean})],oe.prototype,"dense",void 0),ie([o.property({type:Boolean})],oe.prototype,"multiLine",void 0),ie([o.property()],oe.prototype,"label",void 0),ie([o.property()],oe.prototype,"iconLabel",void 0),ie([o.property()],oe.prototype,"icon",void 0),ie([o.property()],oe.prototype,"iconVariant",void 0),ie([o.property({type:Boolean})],oe.prototype,"trailingIcon",void 0),ie([o.query("ft-typography slot")],oe.prototype,"slottedContent",void 0),i.customElement("ft-chip")(oe);const ne={zIndex:i.FtCssVariableFactory.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:i.FtCssVariableFactory.extend("--ft-file-drop-hint-background-color",i.designSystemVariables.colorSurface),hintColor:i.FtCssVariableFactory.extend("--ft-file-drop-hint-color",i.designSystemVariables.colorPrimary),errorColor:i.FtCssVariableFactory.extend("--ft-file-drop-error-color",i.designSystemVariables.colorError),borderRadius:i.FtCssVariableFactory.extend("--ft-file-drop-border-radius",i.designSystemVariables.borderRadiusL),borderWidth:i.FtCssVariableFactory.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:i.FtCssVariableFactory.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:i.FtCssVariableFactory.extend("--ft-file-drop-visible-border-color",i.designSystemVariables.colorOutline),activeBorderColor:i.FtCssVariableFactory.extend("--ft-file-drop-active-border-color",i.designSystemVariables.colorPrimary)},re=e.css`
715
716
  :host {
716
717
  display: block;
717
718
  position: relative;
@@ -56,7 +56,7 @@ const p=window,d=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"
56
56
  * Copyright 2017 Google LLC
57
57
  * SPDX-License-Identifier: BSD-3-Clause
58
58
  */
59
- var R;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:N}),(null!==(m=$.reactiveElementVersions)&&void 0!==m?m:$.reactiveElementVersions=[]).push("1.6.1");const z=window,M=z.trustedTypes,U=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,B="?"+F,L=`<${B}>`,I=document,T=()=>I.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,D="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,Z=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),G=new WeakMap,Q=I.createTreeWalker(I,129,null,!1),tt=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=_;for(let i=0;i<e;i++){const e=t[i];let a,l,c=-1,h=0;for(;h<e.length&&(s.lastIndex=h,l=s.exec(e),null!==l);)h=s.lastIndex,s===_?"!--"===l[1]?s=W:void 0!==l[1]?s=H:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Z):void 0!==l[3]&&(s=Z):s===Z?">"===l[0]?(s=null!=n?n:_,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Z:'"'===l[3]?V:K):s===V||s===K?s=Z:s===W||s===H?s=_:(s=Z,n=void 0);const p=s===Z&&t[i+1].startsWith("/>")?" ":"";r+=s===_?e+L:c>=0?(o.push(a),e.slice(0,c)+j+e.slice(c)+F+p):e+F+(-2===c?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,o]};class it{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=tt(t,i);if(this.el=it.createElement(l,e),Q.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(j)||i.startsWith(F)){const e=c[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+j).split(F),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?lt:"@"===i[1]?ct:rt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=M?M.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],T()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[i],T())}}}else if(8===o.nodeType)if(o.data===B)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,i){const e=I.createElement("template");return e.innerHTML=t,e}}function et(t,i,e=t,o){var n,r,s,a;if(i===X)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const c=A(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=et(t,l._$AS(t,i.values),l,o)),i}class ot{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:I).importNode(e,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new nt(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new ht(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class nt{constructor(t,i,e,o){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=et(this,t,i),A(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Y&&A(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new ot(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=G.get(t.strings);return void 0===i&&G.set(t.strings,i=new it(t)),i}T(t){P(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new nt(this.k(T()),this.k(T()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class rt{constructor(t,i,e,o,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=et(this,t,i,0),r=!A(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=et(this,o[e+s],i,s),a===X&&(a=this._$AH[s]),r||(r=!A(a)||a!==this._$AH[s]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const at=M?M.emptyScript:"";class lt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ct extends rt{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=et(this,t,i,0))&&void 0!==e?e:Y)===X)return;const o=this._$AH,n=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Y&&(o===Y||n);n&&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 ht{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){et(this,t)}}const pt=z.litHtmlPolyfillSupport;null==pt||pt(it,nt),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.7.3");
59
+ var R;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:N}),(null!==(m=$.reactiveElementVersions)&&void 0!==m?m:$.reactiveElementVersions=[]).push("1.6.1");const z=window,M=z.trustedTypes,U=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,B="?"+F,I=`<${B}>`,L=document,T=()=>L.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,D="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,Z=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),G=new WeakMap,Q=L.createTreeWalker(L,129,null,!1),tt=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=_;for(let i=0;i<e;i++){const e=t[i];let a,l,c=-1,h=0;for(;h<e.length&&(s.lastIndex=h,l=s.exec(e),null!==l);)h=s.lastIndex,s===_?"!--"===l[1]?s=W:void 0!==l[1]?s=H:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Z):void 0!==l[3]&&(s=Z):s===Z?">"===l[0]?(s=null!=n?n:_,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Z:'"'===l[3]?V:K):s===V||s===K?s=Z:s===W||s===H?s=_:(s=Z,n=void 0);const p=s===Z&&t[i+1].startsWith("/>")?" ":"";r+=s===_?e+I:c>=0?(o.push(a),e.slice(0,c)+j+e.slice(c)+F+p):e+F+(-2===c?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,o]};class it{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=tt(t,i);if(this.el=it.createElement(l,e),Q.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(j)||i.startsWith(F)){const e=c[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+j).split(F),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?lt:"@"===i[1]?ct:rt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=M?M.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],T()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[i],T())}}}else if(8===o.nodeType)if(o.data===B)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,i){const e=L.createElement("template");return e.innerHTML=t,e}}function et(t,i,e=t,o){var n,r,s,a;if(i===X)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const c=A(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=et(t,l._$AS(t,i.values),l,o)),i}class ot{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:L).importNode(e,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new nt(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new ht(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class nt{constructor(t,i,e,o){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=et(this,t,i),A(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Y&&A(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new ot(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=G.get(t.strings);return void 0===i&&G.set(t.strings,i=new it(t)),i}T(t){P(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new nt(this.k(T()),this.k(T()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class rt{constructor(t,i,e,o,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=et(this,t,i,0),r=!A(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=et(this,o[e+s],i,s),a===X&&(a=this._$AH[s]),r||(r=!A(a)||a!==this._$AH[s]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const at=M?M.emptyScript:"";class lt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ct extends rt{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=et(this,t,i,0))&&void 0!==e?e:Y)===X)return;const o=this._$AH,n=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Y&&(o===Y||n);n&&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 ht{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){et(this,t)}}const pt=z.litHtmlPolyfillSupport;null==pt||pt(it,nt),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.7.3");
60
60
  /**
61
61
  * @license
62
62
  * Copyright 2017 Google LLC
@@ -104,7 +104,7 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
104
104
  * @license
105
105
  * Copyright 2018 Google LLC
106
106
  * SPDX-License-Identifier: BSD-3-Clause
107
- */const Lt=Ft(class extends Bt{constructor(t){var i;if(super(t),t.type!==Ut||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(i)}const n=t.element.classList;this.it.forEach((t=>{t in i||(n.remove(t),this.it.delete(t))}));for(const t in i){const e=!!i[t];e===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}});const It=bt.extend("--ft-ripple-color",yt.colorContent),Tt={color:It,backgroundColor:bt.extend("--ft-ripple-background-color",It),opacityContentOnSurfacePressed:bt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(yt.opacityContentOnSurfaceSelected,"Design system")},At=bt.extend("--ft-ripple-color",yt.colorPrimary),Pt=At,Dt=bt.extend("--ft-ripple-background-color",At),_t=bt.extend("--ft-ripple-color",yt.colorSecondary),Wt=_t,Ht=bt.extend("--ft-ripple-background-color",_t),Zt=g`
107
+ */const It=Ft(class extends Bt{constructor(t){var i;if(super(t),t.type!==Ut||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(i)}const n=t.element.classList;this.it.forEach((t=>{t in i||(n.remove(t),this.it.delete(t))}));for(const t in i){const e=!!i[t];e===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}});const Lt=bt.extend("--ft-ripple-color",yt.colorContent),Tt={color:Lt,backgroundColor:bt.extend("--ft-ripple-background-color",Lt),opacityContentOnSurfacePressed:bt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(yt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},At=bt.extend("--ft-ripple-color",yt.colorPrimary),Pt=At,Dt=bt.extend("--ft-ripple-background-color",At),_t=bt.extend("--ft-ripple-color",yt.colorSecondary),Wt=_t,Ht=bt.extend("--ft-ripple-background-color",_t),Zt=g`
108
108
  :host {
109
109
  display: contents;
110
110
  }
@@ -117,6 +117,7 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
117
117
 
118
118
  .ft-ripple:not(.ft-ripple--unbounded) {
119
119
  overflow: hidden;
120
+ border-radius: ${Tt.borderRadius};
120
121
  }
121
122
 
122
123
  .ft-ripple .ft-ripple--background,
@@ -206,7 +207,7 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
206
207
  top: ${this.originY}px;
207
208
  }
208
209
  </style>
209
- <div class="${Lt(t)}">
210
+ <div class="${It(t)}">
210
211
  <div class="ft-ripple--background"></div>
211
212
  <div class="ft-ripple--effect"></div>
212
213
  </div>
@@ -216,7 +217,7 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
216
217
  * Copyright 2020 Google LLC
217
218
  * SPDX-License-Identifier: BSD-3-Clause
218
219
  */
219
- const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void 0:t._$litStatic$},Xt=t=>({_$litStatic$:t,r:Jt}),Yt=new Map,Gt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=i[c];c<o&&void 0!==(r=e[c],n=qt(r));)l+=n+i[++c],h=!0;c!==o&&a.push(r),s.push(l),c++}if(c===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=Yt.get(t))&&(s.raw=s,Yt.set(t,i=s)),e=a}return t(i,...e)})(q);var Qt;!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"}(Qt||(Qt={}));const ti=bt.extend("--ft-typography-font-family",yt.titleFont),ii=bt.extend("--ft-typography-font-family",yt.contentFont),ei={fontFamily:ii,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},oi=bt.extend("--ft-typography-title-font-family",ti),ni=bt.extend("--ft-typography-title-font-size",ei.fontSize,"20px"),ri=bt.extend("--ft-typography-title-font-weight",ei.fontWeight,"normal"),si=bt.extend("--ft-typography-title-letter-spacing",ei.letterSpacing,"0.15px"),ai=bt.extend("--ft-typography-title-line-height",ei.lineHeight,"1.2"),li=bt.extend("--ft-typography-title-text-transform",ei.textTransform,"inherit"),ci=bt.extend("--ft-typography-title-dense-font-family",ti),hi=bt.extend("--ft-typography-title-dense-font-size",ei.fontSize,"14px"),pi=bt.extend("--ft-typography-title-dense-font-weight",ei.fontWeight,"normal"),di=bt.extend("--ft-typography-title-dense-letter-spacing",ei.letterSpacing,"0.105px"),fi=bt.extend("--ft-typography-title-dense-line-height",ei.lineHeight,"1.7"),ui=bt.extend("--ft-typography-title-dense-text-transform",ei.textTransform,"inherit"),vi=bt.extend("--ft-typography-subtitle1-font-family",ii),bi=bt.extend("--ft-typography-subtitle1-font-size",ei.fontSize,"16px"),gi=bt.extend("--ft-typography-subtitle1-font-weight",ei.fontWeight,"600"),yi=bt.extend("--ft-typography-subtitle1-letter-spacing",ei.letterSpacing,"0.144px"),xi=bt.extend("--ft-typography-subtitle1-line-height",ei.lineHeight,"1.5"),mi=bt.extend("--ft-typography-subtitle1-text-transform",ei.textTransform,"inherit"),$i=bt.extend("--ft-typography-subtitle2-font-family",ii),wi=bt.extend("--ft-typography-subtitle2-font-size",ei.fontSize,"14px"),Oi=bt.extend("--ft-typography-subtitle2-font-weight",ei.fontWeight,"normal"),ki=bt.extend("--ft-typography-subtitle2-letter-spacing",ei.letterSpacing,"0.098px"),Si=bt.extend("--ft-typography-subtitle2-line-height",ei.lineHeight,"1.7"),Ci=bt.extend("--ft-typography-subtitle2-text-transform",ei.textTransform,"inherit"),Ei=bt.extend("--ft-typography-body1-font-family",ii),Ni=bt.extend("--ft-typography-body1-font-size",ei.fontSize,"16px"),Ri=bt.extend("--ft-typography-body1-font-weight",ei.fontWeight,"normal"),zi=bt.extend("--ft-typography-body1-letter-spacing",ei.letterSpacing,"0.496px"),Mi=bt.extend("--ft-typography-body1-line-height",ei.lineHeight,"1.5"),Ui=bt.extend("--ft-typography-body1-text-transform",ei.textTransform,"inherit"),ji={fontFamily:bt.extend("--ft-typography-body2-font-family",ii),fontSize:bt.extend("--ft-typography-body2-font-size",ei.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-body2-font-weight",ei.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body2-letter-spacing",ei.letterSpacing,"0.252px"),lineHeight:bt.extend("--ft-typography-body2-line-height",ei.lineHeight,"1.4"),textTransform:bt.extend("--ft-typography-body2-text-transform",ei.textTransform,"inherit")},Fi=bt.extend("--ft-typography-caption-font-family",ii),Bi=bt.extend("--ft-typography-caption-font-size",ei.fontSize,"12px"),Li=bt.extend("--ft-typography-caption-font-weight",ei.fontWeight,"normal"),Ii=bt.extend("--ft-typography-caption-letter-spacing",ei.letterSpacing,"0.396px"),Ti=bt.extend("--ft-typography-caption-line-height",ei.lineHeight,"1.33"),Ai=bt.extend("--ft-typography-caption-text-transform",ei.textTransform,"inherit"),Pi=bt.extend("--ft-typography-breadcrumb-font-family",ii),Di=bt.extend("--ft-typography-breadcrumb-font-size",ei.fontSize,"10px"),_i=bt.extend("--ft-typography-breadcrumb-font-weight",ei.fontWeight,"normal"),Wi=bt.extend("--ft-typography-breadcrumb-letter-spacing",ei.letterSpacing,"0.33px"),Hi=bt.extend("--ft-typography-breadcrumb-line-height",ei.lineHeight,"1.6"),Zi=bt.extend("--ft-typography-breadcrumb-text-transform",ei.textTransform,"inherit"),Ki=bt.extend("--ft-typography-overline-font-family",ii),Vi=bt.extend("--ft-typography-overline-font-size",ei.fontSize,"10px"),Ji=bt.extend("--ft-typography-overline-font-weight",ei.fontWeight,"normal"),qi=bt.extend("--ft-typography-overline-letter-spacing",ei.letterSpacing,"1.5px"),Xi=bt.extend("--ft-typography-overline-line-height",ei.lineHeight,"1.6"),Yi=bt.extend("--ft-typography-overline-text-transform",ei.textTransform,"uppercase"),Gi={fontFamily:bt.extend("--ft-typography-button-font-family",ii),fontSize:bt.extend("--ft-typography-button-font-size",ei.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",ei.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",ei.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",ei.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",ei.textTransform,"uppercase")},Qi=g`
220
+ const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void 0:t._$litStatic$},Xt=t=>({_$litStatic$:t,r:Jt}),Yt=new Map,Gt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=i[c];c<o&&void 0!==(r=e[c],n=qt(r));)l+=n+i[++c],h=!0;c!==o&&a.push(r),s.push(l),c++}if(c===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=Yt.get(t))&&(s.raw=s,Yt.set(t,i=s)),e=a}return t(i,...e)})(q);var Qt;!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"}(Qt||(Qt={}));const ti=bt.extend("--ft-typography-font-family",yt.titleFont),ii=bt.extend("--ft-typography-font-family",yt.contentFont),ei={fontFamily:ii,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},oi=bt.extend("--ft-typography-title-font-family",ti),ni=bt.extend("--ft-typography-title-font-size",ei.fontSize,"20px"),ri=bt.extend("--ft-typography-title-font-weight",ei.fontWeight,"normal"),si=bt.extend("--ft-typography-title-letter-spacing",ei.letterSpacing,"0.15px"),ai=bt.extend("--ft-typography-title-line-height",ei.lineHeight,"1.2"),li=bt.extend("--ft-typography-title-text-transform",ei.textTransform,"inherit"),ci=bt.extend("--ft-typography-title-dense-font-family",ti),hi=bt.extend("--ft-typography-title-dense-font-size",ei.fontSize,"14px"),pi=bt.extend("--ft-typography-title-dense-font-weight",ei.fontWeight,"normal"),di=bt.extend("--ft-typography-title-dense-letter-spacing",ei.letterSpacing,"0.105px"),fi=bt.extend("--ft-typography-title-dense-line-height",ei.lineHeight,"1.7"),ui=bt.extend("--ft-typography-title-dense-text-transform",ei.textTransform,"inherit"),vi=bt.extend("--ft-typography-subtitle1-font-family",ii),bi=bt.extend("--ft-typography-subtitle1-font-size",ei.fontSize,"16px"),gi=bt.extend("--ft-typography-subtitle1-font-weight",ei.fontWeight,"600"),yi=bt.extend("--ft-typography-subtitle1-letter-spacing",ei.letterSpacing,"0.144px"),xi=bt.extend("--ft-typography-subtitle1-line-height",ei.lineHeight,"1.5"),mi=bt.extend("--ft-typography-subtitle1-text-transform",ei.textTransform,"inherit"),$i=bt.extend("--ft-typography-subtitle2-font-family",ii),wi=bt.extend("--ft-typography-subtitle2-font-size",ei.fontSize,"14px"),Oi=bt.extend("--ft-typography-subtitle2-font-weight",ei.fontWeight,"normal"),ki=bt.extend("--ft-typography-subtitle2-letter-spacing",ei.letterSpacing,"0.098px"),Si=bt.extend("--ft-typography-subtitle2-line-height",ei.lineHeight,"1.7"),Ci=bt.extend("--ft-typography-subtitle2-text-transform",ei.textTransform,"inherit"),Ei=bt.extend("--ft-typography-body1-font-family",ii),Ni=bt.extend("--ft-typography-body1-font-size",ei.fontSize,"16px"),Ri=bt.extend("--ft-typography-body1-font-weight",ei.fontWeight,"normal"),zi=bt.extend("--ft-typography-body1-letter-spacing",ei.letterSpacing,"0.496px"),Mi=bt.extend("--ft-typography-body1-line-height",ei.lineHeight,"1.5"),Ui=bt.extend("--ft-typography-body1-text-transform",ei.textTransform,"inherit"),ji={fontFamily:bt.extend("--ft-typography-body2-font-family",ii),fontSize:bt.extend("--ft-typography-body2-font-size",ei.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-body2-font-weight",ei.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body2-letter-spacing",ei.letterSpacing,"0.252px"),lineHeight:bt.extend("--ft-typography-body2-line-height",ei.lineHeight,"1.4"),textTransform:bt.extend("--ft-typography-body2-text-transform",ei.textTransform,"inherit")},Fi=bt.extend("--ft-typography-caption-font-family",ii),Bi=bt.extend("--ft-typography-caption-font-size",ei.fontSize,"12px"),Ii=bt.extend("--ft-typography-caption-font-weight",ei.fontWeight,"normal"),Li=bt.extend("--ft-typography-caption-letter-spacing",ei.letterSpacing,"0.396px"),Ti=bt.extend("--ft-typography-caption-line-height",ei.lineHeight,"1.33"),Ai=bt.extend("--ft-typography-caption-text-transform",ei.textTransform,"inherit"),Pi=bt.extend("--ft-typography-breadcrumb-font-family",ii),Di=bt.extend("--ft-typography-breadcrumb-font-size",ei.fontSize,"10px"),_i=bt.extend("--ft-typography-breadcrumb-font-weight",ei.fontWeight,"normal"),Wi=bt.extend("--ft-typography-breadcrumb-letter-spacing",ei.letterSpacing,"0.33px"),Hi=bt.extend("--ft-typography-breadcrumb-line-height",ei.lineHeight,"1.6"),Zi=bt.extend("--ft-typography-breadcrumb-text-transform",ei.textTransform,"inherit"),Ki=bt.extend("--ft-typography-overline-font-family",ii),Vi=bt.extend("--ft-typography-overline-font-size",ei.fontSize,"10px"),Ji=bt.extend("--ft-typography-overline-font-weight",ei.fontWeight,"normal"),qi=bt.extend("--ft-typography-overline-letter-spacing",ei.letterSpacing,"1.5px"),Xi=bt.extend("--ft-typography-overline-line-height",ei.lineHeight,"1.6"),Yi=bt.extend("--ft-typography-overline-text-transform",ei.textTransform,"uppercase"),Gi={fontFamily:bt.extend("--ft-typography-button-font-family",ii),fontSize:bt.extend("--ft-typography-button-font-size",ei.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",ei.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",ei.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",ei.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",ei.textTransform,"uppercase")},Qi=g`
220
221
  .ft-typography--title {
221
222
  font-family: ${oi};
222
223
  font-size: ${ni};
@@ -275,8 +276,8 @@ const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void
275
276
  .ft-typography--caption {
276
277
  font-family: ${Fi};
277
278
  font-size: ${Bi};
278
- font-weight: ${Li};
279
- letter-spacing: ${Ii};
279
+ font-weight: ${Ii};
280
+ letter-spacing: ${Li};
280
281
  line-height: ${Ti};
281
282
  text-transform: ${Ai};
282
283
  }
@@ -359,6 +360,7 @@ class de extends Bt{constructor(t){if(super(t),this.et=Y,t.type!==jt)throw Error
359
360
 
360
361
  /* Ugly fix because font is broken */
361
362
  font-size: calc(0.75 * ${be.size});
363
+ line-height: ${be.size};
362
364
  position: relative;
363
365
  top: -4%;
364
366
  justify-content: center;
@@ -372,7 +374,7 @@ class de extends Bt{constructor(t){if(super(t),this.et=Y,t.type!==jt)throw Error
372
374
  font-family: ${be.materialFontFamily}, "Material Icons", sans-serif;
373
375
  }
374
376
  `;var ye;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ye||(ye={}));var xe=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class me extends St{constructor(){super(...arguments),this.resolvedIcon=Y}render(){const t=this.variant&&Object.values(ye).includes(this.variant)?this.variant:ye.fluid_topics,i=t!==ye.material||!!this.value;return q`
375
- <i class="ft-icon ${"ft-icon--"+t}">
377
+ <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
376
378
  ${fe(this.resolvedIcon)}
377
379
  <slot ?hidden=${i}></slot>
378
380
  </i>
@@ -508,7 +510,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
508
510
  <div></div>
509
511
  <div></div>
510
512
  </div>
511
- `}}Ue.styles=Me,h("ft-loader")(Ue);const je=bt.extend("--ft-button-color",yt.colorPrimary),Fe={backgroundColor:bt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",yt.borderRadiusL),color:je,fontSize:bt.extend("--ft-button-font-size",Gi.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",je),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(yt.colorOpacityDisabled,"Design system")},Be=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",yt.colorOnPrimary)),Le={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",yt.colorPrimary)),color:Be,rippleColor:bt.extend("--ft-button-primary-ripple-color",Be)},Ie=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",yt.borderRadiusM)),Te=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Ae=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Pe=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),De=[Ct,g`
513
+ `}}Ue.styles=Me,h("ft-loader")(Ue);const je=bt.extend("--ft-button-color",yt.colorPrimary),Fe={backgroundColor:bt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",yt.borderRadiusL),color:je,fontSize:bt.extend("--ft-button-font-size",Gi.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",je),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(yt.colorOpacityDisabled,"Design system")},Be=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",yt.colorOnPrimary)),Ie={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",yt.colorPrimary)),color:Be,rippleColor:bt.extend("--ft-button-primary-ripple-color",Be)},Le=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",yt.borderRadiusM)),Te=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Ae=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Pe=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),De=[g`
512
514
  :host {
513
515
  display: inline-block;
514
516
  max-width: 100%;
@@ -548,11 +550,10 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
548
550
  border: none;
549
551
  pointer-events: auto;
550
552
 
551
- --ft-button-internal-line-height: calc(${Fe.fontSize} + 2px);
553
+ --ft-button-internal-line-height: max(calc(${Fe.fontSize} + 2px), ${Fe.iconSize});
552
554
  --ft-button-internal-color: ${Fe.color};
553
555
  ${gt(be.size,Fe.iconSize)};
554
556
  ${gt(Tt.color,Fe.rippleColor)};
555
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fe.iconSize});
556
557
 
557
558
  border-radius: ${Fe.borderRadius};
558
559
  padding: ${Fe.verticalPadding} ${Fe.horizontalPadding};
@@ -568,7 +569,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
568
569
 
569
570
  .ft-button.ft-button--dense {
570
571
  padding: ${Te} ${Ae};
571
- border-radius: ${Ie};
572
+ border-radius: ${Le};
572
573
  gap: ${Pe};
573
574
  }
574
575
 
@@ -581,11 +582,11 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
581
582
  }
582
583
 
583
584
  .ft-button--round {
584
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Fe.verticalPadding});
585
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Fe.verticalPadding});
585
586
  }
586
587
 
587
588
  .ft-button--round.ft-button--dense {
588
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Te});
589
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Te});
589
590
  }
590
591
 
591
592
  .ft-button[disabled] {
@@ -594,9 +595,9 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
594
595
  }
595
596
 
596
597
  .ft-button.ft-button--primary {
597
- background-color: ${Le.backgroundColor};
598
- --ft-button-internal-color: ${Le.color};
599
- ${gt(Tt.color,Le.rippleColor)};
598
+ background-color: ${Ie.backgroundColor};
599
+ --ft-button-internal-color: ${Ie.color};
600
+ ${gt(Tt.color,Ie.rippleColor)};
600
601
  }
601
602
 
602
603
  .ft-button:focus {
@@ -611,7 +612,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
611
612
  display: block;
612
613
  margin: 0 ${Fe.iconPadding};
613
614
  ${gt(Gi.fontSize,"1em")};
614
- ${gt(Gi.lineHeight,"var(--ft-button-internal-content-height)")};
615
+ ${gt(Gi.lineHeight,"var(--ft-button-internal-line-height)")};
615
616
  }
616
617
 
617
618
  .ft-button--dense .ft-button--label {
@@ -646,9 +647,9 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
646
647
  ${gt(ze.size,Fe.iconSize)};
647
648
  ${gt(ze.color,"var(--ft-button-internal-color)")};
648
649
  }
649
- `];var _e=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class We extends St{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(q`
650
+ `,Ct];var _e=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class We extends St{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(q`
650
651
  <button part="button"
651
- class="${Lt(t)}"
652
+ class="${It(t)}"
652
653
  aria-label="${this.getLabel()}"
653
654
  ?disabled=${this.isDisabled()}>
654
655
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -807,7 +808,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
807
808
  order: -1;
808
809
  }
809
810
  `];var Ye=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ge extends CustomEvent{constructor(){super("icon-click")}}class Qe extends St{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Mt};return q`
810
- <div class="${Lt(t)}"
811
+ <div class="${It(t)}"
811
812
  aria-label="${this.getLabel()}"
812
813
  tabindex="${this.interactionsOnChip?0:-1}"
813
814
  @keyup=${this.onKeyUp}>
@@ -829,7 +830,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
829
830
  <div class="ft-chip--icon-container ft-no-text-select">
830
831
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
831
832
  </div>
832
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ge))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ge))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Qe.elementDefinitions={"ft-ripple":Vt,"ft-typography":pe,"ft-icon":me,"ft-button":We},Qe.styles=Xe,Ye([o({type:Boolean})],Qe.prototype,"highlighted",void 0),Ye([o({type:Boolean})],Qe.prototype,"removable",void 0),Ye([o({type:Boolean})],Qe.prototype,"disabled",void 0),Ye([o({type:Boolean})],Qe.prototype,"clickable",void 0),Ye([o({type:Boolean})],Qe.prototype,"iconClickable",void 0),Ye([o({type:Boolean})],Qe.prototype,"dense",void 0),Ye([o({type:Boolean})],Qe.prototype,"multiLine",void 0),Ye([o()],Qe.prototype,"label",void 0),Ye([o()],Qe.prototype,"iconLabel",void 0),Ye([o()],Qe.prototype,"icon",void 0),Ye([o()],Qe.prototype,"iconVariant",void 0),Ye([o({type:Boolean})],Qe.prototype,"trailingIcon",void 0),Ye([s("ft-typography slot")],Qe.prototype,"slottedContent",void 0),h("ft-chip")(Qe);const to={zIndex:bt.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:bt.extend("--ft-file-drop-hint-background-color",yt.colorSurface),hintColor:bt.extend("--ft-file-drop-hint-color",yt.colorPrimary),errorColor:bt.extend("--ft-file-drop-error-color",yt.colorError),borderRadius:bt.extend("--ft-file-drop-border-radius",yt.borderRadiusL),borderWidth:bt.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:bt.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:bt.extend("--ft-file-drop-visible-border-color",yt.colorOutline),activeBorderColor:bt.extend("--ft-file-drop-active-border-color",yt.colorPrimary)},io=g`
833
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ge))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ge))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Qe.elementDefinitions={"ft-ripple":Vt,"ft-typography":pe,"ft-icon":me,"ft-button":We},Qe.styles=Xe,Ye([o({type:Boolean})],Qe.prototype,"highlighted",void 0),Ye([o({type:Boolean})],Qe.prototype,"removable",void 0),Ye([o({type:Boolean})],Qe.prototype,"disabled",void 0),Ye([o({type:Boolean})],Qe.prototype,"clickable",void 0),Ye([o({type:Boolean})],Qe.prototype,"iconClickable",void 0),Ye([o({type:Boolean})],Qe.prototype,"dense",void 0),Ye([o({type:Boolean})],Qe.prototype,"multiLine",void 0),Ye([o()],Qe.prototype,"label",void 0),Ye([o()],Qe.prototype,"iconLabel",void 0),Ye([o()],Qe.prototype,"icon",void 0),Ye([o()],Qe.prototype,"iconVariant",void 0),Ye([o({type:Boolean})],Qe.prototype,"trailingIcon",void 0),Ye([s("ft-typography slot")],Qe.prototype,"slottedContent",void 0),h("ft-chip")(Qe);const to={zIndex:bt.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:bt.extend("--ft-file-drop-hint-background-color",yt.colorSurface),hintColor:bt.extend("--ft-file-drop-hint-color",yt.colorPrimary),errorColor:bt.extend("--ft-file-drop-error-color",yt.colorError),borderRadius:bt.extend("--ft-file-drop-border-radius",yt.borderRadiusL),borderWidth:bt.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:bt.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:bt.extend("--ft-file-drop-visible-border-color",yt.colorOutline),activeBorderColor:bt.extend("--ft-file-drop-active-border-color",yt.colorPrimary)},io=g`
833
834
  :host {
834
835
  display: block;
835
836
  position: relative;
@@ -909,7 +910,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
909
910
  }
910
911
  `;var eo=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class oo extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}}class no extends St{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}render(){let t={dragging:this.dragging,visible:this.visible};return q`
911
912
  <div id="container"
912
- class="${Lt(t)}"
913
+ class="${It(t)}"
913
914
  @dragenter=${this.onDragEnter}
914
915
  @dragover=${this.onDragOver}
915
916
  @drop=${this.onDrop}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-file-drop",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.1",
4
4
  "description": "Container that accepts dropping files",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-chip": "1.0.0-alpha.1",
23
- "@fluid-topics/ft-wc-utils": "1.0.0-alpha.1",
22
+ "@fluid-topics/ft-chip": "1.0.1",
23
+ "@fluid-topics/ft-wc-utils": "1.0.1",
24
24
  "lit": "2.7.2"
25
25
  },
26
- "gitHead": "bb54c217f788a915a443db6f496f02e176d05306"
26
+ "gitHead": "8e883d50248d276ce48981f8a1a0407e46400bd1"
27
27
  }