@fluid-topics/ft-filterable-table 1.2.58 → 1.2.60
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.
|
@@ -826,7 +826,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
826
826
|
<slot></slot>
|
|
827
827
|
</ft-typography>
|
|
828
828
|
</div>
|
|
829
|
-
`}focus(e){var a;(a=this.container)===null||a===void 0||a.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new Lo(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};bt.elementDefinitions={"ft-ripple":W,"ft-typography":at,"ft-icon":J};bt.styles=$a;Je([(0,Qt.property)()],bt.prototype,"value",void 0);Je([(0,Qt.property)()],bt.prototype,"helper",void 0);Je([(0,Qt.query)(".ft-text-field-suggestion")],bt.prototype,"container",void 0);Je([(0,Qt.queryAssignedNodes)()],bt.prototype,"assignedNodes",void 0);var B=function(o,e,a,n){var i=arguments.length,c=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(o,e,a,n);else for(var p=o.length-1;p>=0;p--)(s=o[p])&&(c=(i<3?s(c):i>3?s(e,a,c):s(e,a))||c);return i>3&&c&&Object.defineProperty(e,a,c),c},R=class extends(0,Ft.toFtFormComponent)(Ft.FtLitElement
|
|
829
|
+
`}focus(e){var a;(a=this.container)===null||a===void 0||a.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new Lo(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};bt.elementDefinitions={"ft-ripple":W,"ft-typography":at,"ft-icon":J};bt.styles=$a;Je([(0,Qt.property)()],bt.prototype,"value",void 0);Je([(0,Qt.property)()],bt.prototype,"helper",void 0);Je([(0,Qt.query)(".ft-text-field-suggestion")],bt.prototype,"container",void 0);Je([(0,Qt.queryAssignedNodes)()],bt.prototype,"assignedNodes",void 0);var B=function(o,e,a,n){var i=arguments.length,c=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(o,e,a,n);else for(var p=o.length-1;p>=0;p--)(s=o[p])&&(c=(i<3?s(c):i>3?s(e,a,c):s(e,a))||c);return i>3&&c&&Object.defineProperty(e,a,c),c},R=class extends(0,Ft.toFtFormComponent)(Ft.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Xt.EYE_SLASH,this.passwordRevealedIcon=Xt.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let a=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",a)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},a=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(c=>c.label).includes(this.value),i=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||a;return tt.html`
|
|
830
830
|
<div class="${(0,Pa.classMap)(e)}">
|
|
831
831
|
<div class="ft-text-field--main-panel"
|
|
832
832
|
@keydown=${this.handleKeyboardNavigation}
|
|
@@ -1130,7 +1130,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1130
1130
|
position: relative;
|
|
1131
1131
|
word-break: break-word;
|
|
1132
1132
|
}
|
|
1133
|
-
`;var Ua=["top","right","bottom","left"],Ha=["start","end"],Bo=Ua.reduce((o,e)=>o.concat(e,e+"-"+Ha[0],e+"-"+Ha[1]),[]),Ga=Math.min,Fa=Math.max;var Un={left:"right",right:"left",bottom:"top",top:"bottom"},Gn={start:"end",end:"start"};function ko(o,e,a){return Fa(o,Ga(e,a))}function to(o,e){return typeof o=="function"?o(e):o}function he(o){return o.split("-")[0]}function Mt(o){return o.split("-")[1]}function Wo(o){return o==="x"?"y":"x"}function zo(o){return o==="y"?"height":"width"}function eo(o){return["top","bottom"].includes(he(o))?"y":"x"}function To(o){return Wo(eo(o))}function Ma(o,e,a){a===void 0&&(a=!1);let n=Mt(o),i=To(o),c=zo(i),s=i==="x"?n===(a?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[c]>e.floating[c]&&(s=Io(s)),[s,Io(s)]}function Za(o){return o.replace(/start|end/g,e=>Gn[e])}function Io(o){return o.replace(/left|right|bottom|top/g,e=>Un[e])}function Fn(o){return{top:0,right:0,bottom:0,left:0,...o}}function Va(o){return typeof o!="number"?Fn(o):{top:o,right:o,bottom:o,left:o}}function Jt(o){let{x:e,y:a,width:n,height:i}=o;return{width:n,height:i,top:a,left:e,right:e+n,bottom:a+i,x:e,y:a}}function Ka(o,e,a){let{reference:n,floating:i}=o,c=eo(e),s=To(e),p=zo(s),f=he(e),y=c==="y",S=n.x+n.width/2-i.width/2,x=n.y+n.height/2-i.height/2,P=n[p]/2-i[p]/2,E;switch(f){case"top":E={x:S,y:n.y-i.height};break;case"bottom":E={x:S,y:n.y+n.height};break;case"right":E={x:n.x+n.width,y:x};break;case"left":E={x:n.x-i.width,y:x};break;default:E={x:n.x,y:n.y}}switch(Mt(e)){case"start":E[s]-=P*(a&&y?-1:1);break;case"end":E[s]+=P*(a&&y?-1:1);break}return E}var ja=async(o,e,a)=>{let{placement:n="bottom",strategy:i="absolute",middleware:c=[],platform:s}=a,p=c.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(e)),y=await s.getElementRects({reference:o,floating:e,strategy:i}),{x:S,y:x}=Ka(y,n,f),P=n,E={},k=0;for(let Z=0;Z<p.length;Z++){let{name:X,fn:V}=p[Z],{x:q,y:ct,data:zt,reset:lt}=await V({x:S,y:x,initialPlacement:n,placement:P,strategy:i,middlewareData:E,rects:y,platform:s,elements:{reference:o,floating:e}});S=q??S,x=ct??x,E={...E,[X]:{...E[X],...zt}},lt&&k<=50&&(k++,typeof lt=="object"&&(lt.placement&&(P=lt.placement),lt.rects&&(y=lt.rects===!0?await s.getElementRects({reference:o,floating:e,strategy:i}):lt.rects),{x:S,y:x}=Ka(y,P,f)),Z=-1)}return{x:S,y:x,placement:P,strategy:i,middlewareData:E}};async function _o(o,e){var a;e===void 0&&(e={});let{x:n,y:i,platform:c,rects:s,elements:p,strategy:f}=o,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:x="floating",altBoundary:P=!1,padding:E=0}=to(e,o),k=Va(E),X=p[P?x==="floating"?"reference":"floating":x],V=Jt(await c.getClippingRect({element:(a=await(c.isElement==null?void 0:c.isElement(X)))==null||a?X:X.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:y,rootBoundary:S,strategy:f})),q=x==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,ct=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),zt=await(c.isElement==null?void 0:c.isElement(ct))?await(c.getScale==null?void 0:c.getScale(ct))||{x:1,y:1}:{x:1,y:1},lt=Jt(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:q,offsetParent:ct,strategy:f}):q);return{top:(V.top-lt.top+k.top)/zt.y,bottom:(lt.bottom-V.bottom+k.bottom)/zt.y,left:(V.left-lt.left+k.left)/zt.x,right:(lt.right-V.right+k.right)/zt.x}}function Mn(o,e,a){return(o?[...a.filter(i=>Mt(i)===o),...a.filter(i=>Mt(i)!==o)]:a.filter(i=>he(i)===i)).filter(i=>o?Mt(i)===o||(e?Za(i)!==i:!1):!0)}var Do=function(o){return o===void 0&&(o={}),{name:"autoPlacement",options:o,async fn(e){var a,n,i;let{rects:c,middlewareData:s,placement:p,platform:f,elements:y}=e,{crossAxis:S=!1,alignment:x,allowedPlacements:P=Bo,autoAlignment:E=!0,...k}=to(o,e),Z=x!==void 0||P===Bo?Mn(x||null,E,P):P,X=await _o(e,k),V=((a=s.autoPlacement)==null?void 0:a.index)||0,q=Z[V];if(q==null)return{};let ct=Ma(q,c,await(f.isRTL==null?void 0:f.isRTL(y.floating)));if(p!==q)return{reset:{placement:Z[0]}};let zt=[X[he(q)],X[ct[0]],X[ct[1]]],lt=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:q,overflows:zt}],Zo=Z[V+1];if(Zo)return{data:{index:V+1,overflows:lt},reset:{placement:Zo}};let Vo=lt.map(Ct=>{let Ce=Mt(Ct.placement);return[Ct.placement,Ce&&S?Ct.overflows.slice(0,2).reduce(($n,Rn)=>$n+Rn,0):Ct.overflows[0],Ct.overflows]}).sort((Ct,Ce)=>Ct[1]-Ce[1]),Ko=((i=Vo.filter(Ct=>Ct[2].slice(0,Mt(Ct[0])?2:3).every(Ce=>Ce<=0))[0])==null?void 0:i[0])||Vo[0][0];return Ko!==p?{data:{index:V+1,overflows:lt},reset:{placement:Ko}}:{}}}};var Ho=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(e){let{x:a,y:n,placement:i}=e,{mainAxis:c=!0,crossAxis:s=!1,limiter:p={fn:X=>{let{x:V,y:q}=X;return{x:V,y:q}}},...f}=to(o,e),y={x:a,y:n},S=await _o(e,f),x=eo(he(i)),P=Wo(x),E=y[P],k=y[x];if(c){let X=P==="y"?"top":"left",V=P==="y"?"bottom":"right",q=E+S[X],ct=E-S[V];E=ko(q,E,ct)}if(s){let X=x==="y"?"top":"left",V=x==="y"?"bottom":"right",q=k+S[X],ct=k-S[V];k=ko(q,k,ct)}let Z=p.fn({...e,[P]:E,[x]:k});return{...Z,data:{x:Z.x-a,y:Z.y-n,enabled:{[P]:c,[x]:s}}}}}};var Uo=Math.min,me=Math.max,We=Math.round;var Pt=o=>({x:o,y:o});function It(o){return Xa(o)?(o.nodeName||"").toLowerCase():"#document"}function ft(o){var e;return(o==null||(e=o.ownerDocument)==null?void 0:e.defaultView)||window}function Bt(o){var e;return(e=(Xa(o)?o.ownerDocument:o.document)||window.document)==null?void 0:e.documentElement}function Xa(o){return o instanceof Node||o instanceof ft(o).Node}function $t(o){return o instanceof Element||o instanceof ft(o).Element}function vt(o){return o instanceof HTMLElement||o instanceof ft(o).HTMLElement}function Ya(o){return typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof ft(o).ShadowRoot}function be(o){let{overflow:e,overflowX:a,overflowY:n,display:i}=gt(o);return/auto|scroll|overlay|hidden|clip/.test(e+n+a)&&!["inline","contents"].includes(i)}function qa(o){return["table","td","th"].includes(It(o))}function ro(o){let e=ao(),a=gt(o);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!e&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!e&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(a.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(a.contain||"").includes(n))}function Qa(o){let e=te(o);for(;vt(e)&&!ze(e);){if(ro(e))return e;e=te(e)}return null}function ao(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ze(o){return["html","body","#document"].includes(It(o))}function gt(o){return ft(o).getComputedStyle(o)}function Te(o){return $t(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function te(o){if(It(o)==="html")return o;let e=o.assignedSlot||o.parentNode||Ya(o)&&o.host||Bt(o);return Ya(e)?e.host:e}function Ja(o){let e=te(o);return ze(e)?o.ownerDocument?o.ownerDocument.body:o.body:vt(e)&&be(e)?e:Ja(e)}function oo(o,e,a){var n;e===void 0&&(e=[]),a===void 0&&(a=!0);let i=Ja(o),c=i===((n=o.ownerDocument)==null?void 0:n.body),s=ft(i);return c?e.concat(s,s.visualViewport||[],be(i)?i:[],s.frameElement&&a?oo(s.frameElement):[]):e.concat(i,oo(i,[],a))}function on(o){let e=gt(o),a=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=vt(o),c=i?o.offsetWidth:a,s=i?o.offsetHeight:n,p=We(a)!==c||We(n)!==s;return p&&(a=c,n=s),{width:a,height:n,$:p}}function rn(o){return $t(o)?o:o.contextElement}function xe(o){let e=rn(o);if(!vt(e))return Pt(1);let a=e.getBoundingClientRect(),{width:n,height:i,$:c}=on(e),s=(c?We(a.width):a.width)/n,p=(c?We(a.height):a.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var Kn=Pt(0);function an(o){let e=ft(o);return!ao()||!e.visualViewport?Kn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function jn(o,e,a){return e===void 0&&(e=!1),!a||e&&a!==ft(o)?!1:e}function _e(o,e,a,n){e===void 0&&(e=!1),a===void 0&&(a=!1);let i=o.getBoundingClientRect(),c=rn(o),s=Pt(1);e&&(n?$t(n)&&(s=xe(n)):s=xe(o));let p=jn(c,a,n)?an(c):Pt(0),f=(i.left+p.x)/s.x,y=(i.top+p.y)/s.y,S=i.width/s.x,x=i.height/s.y;if(c){let P=ft(c),E=n&&$t(n)?ft(n):n,k=P.frameElement;for(;k&&n&&E!==P;){let Z=xe(k),X=k.getBoundingClientRect(),V=gt(k),q=X.left+(k.clientLeft+parseFloat(V.paddingLeft))*Z.x,ct=X.top+(k.clientTop+parseFloat(V.paddingTop))*Z.y;f*=Z.x,y*=Z.y,S*=Z.x,x*=Z.y,f+=q,y+=ct,k=ft(k).frameElement}}return Jt({width:S,height:x,x:f,y})}function Yn(o){let{rect:e,offsetParent:a,strategy:n}=o,i=vt(a),c=Bt(a);if(a===c)return e;let s={scrollLeft:0,scrollTop:0},p=Pt(1),f=Pt(0);if((i||!i&&n!=="fixed")&&((It(a)!=="body"||be(c))&&(s=Te(a)),vt(a))){let y=_e(a);p=xe(a),f.x=y.x+a.clientLeft,f.y=y.y+a.clientTop}return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-s.scrollLeft*p.x+f.x,y:e.y*p.y-s.scrollTop*p.y+f.y}}function Xn(o){return Array.from(o.getClientRects())}function nn(o){return _e(Bt(o)).left+Te(o).scrollLeft}function qn(o){let e=Bt(o),a=Te(o),n=o.ownerDocument.body,i=me(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),c=me(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-a.scrollLeft+nn(o),p=-a.scrollTop;return gt(n).direction==="rtl"&&(s+=me(e.clientWidth,n.clientWidth)-i),{width:i,height:c,x:s,y:p}}function Qn(o,e){let a=ft(o),n=Bt(o),i=a.visualViewport,c=n.clientWidth,s=n.clientHeight,p=0,f=0;if(i){c=i.width,s=i.height;let y=ao();(!y||y&&e==="fixed")&&(p=i.offsetLeft,f=i.offsetTop)}return{width:c,height:s,x:p,y:f}}function Jn(o,e){let a=_e(o,!0,e==="fixed"),n=a.top+o.clientTop,i=a.left+o.clientLeft,c=vt(o)?xe(o):Pt(1),s=o.clientWidth*c.x,p=o.clientHeight*c.y,f=i*c.x,y=n*c.y;return{width:s,height:p,x:f,y}}function tn(o,e,a){let n;if(e==="viewport")n=Qn(o,a);else if(e==="document")n=qn(Bt(o));else if($t(e))n=Jn(e,a);else{let i=an(o);n={...e,x:e.x-i.x,y:e.y-i.y}}return Jt(n)}function ln(o,e){let a=te(o);return a===e||!$t(a)||ze(a)?!1:gt(a).position==="fixed"||ln(a,e)}function ti(o,e){let a=e.get(o);if(a)return a;let n=oo(o,[],!1).filter(p=>$t(p)&&It(p)!=="body"),i=null,c=gt(o).position==="fixed",s=c?te(o):o;for(;$t(s)&&!ze(s);){let p=gt(s),f=ro(s);!f&&p.position==="fixed"&&(i=null),(c?!f&&!i:!f&&p.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||be(s)&&!f&&ln(o,s))?n=n.filter(S=>S!==s):i=p,s=te(s)}return e.set(o,n),n}function ei(o){let{element:e,boundary:a,rootBoundary:n,strategy:i}=o,s=[...a==="clippingAncestors"?ti(e,this._c):[].concat(a),n],p=s[0],f=s.reduce((y,S)=>{let x=tn(e,S,i);return y.top=me(x.top,y.top),y.right=Uo(x.right,y.right),y.bottom=Uo(x.bottom,y.bottom),y.left=me(x.left,y.left),y},tn(e,p,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function oi(o){return on(o)}function ri(o,e,a){let n=vt(e),i=Bt(e),c=a==="fixed",s=_e(o,!0,c,e),p={scrollLeft:0,scrollTop:0},f=Pt(0);if(n||!n&&!c)if((It(e)!=="body"||be(i))&&(p=Te(e)),n){let y=_e(e,!0,c,e);f.x=y.x+e.clientLeft,f.y=y.y+e.clientTop}else i&&(f.x=nn(i));return{x:s.left+p.scrollLeft-f.x,y:s.top+p.scrollTop-f.y,width:s.width,height:s.height}}function en(o,e){return!vt(o)||gt(o).position==="fixed"?null:e?e(o):o.offsetParent}function cn(o,e){let a=ft(o);if(!vt(o))return a;let n=en(o,e);for(;n&&qa(n)&>(n).position==="static";)n=en(n,e);return n&&(It(n)==="html"||It(n)==="body"&>(n).position==="static"&&!ro(n))?a:n||Qa(o)||a}var ai=async function(o){let{reference:e,floating:a,strategy:n}=o,i=this.getOffsetParent||cn,c=this.getDimensions;return{reference:ri(e,await i(a),n),floating:{x:0,y:0,...await c(a)}}};function ni(o){return gt(o).direction==="rtl"}var no={convertOffsetParentRelativeRectToViewportRelativeRect:Yn,getDocumentElement:Bt,getClippingRect:ei,getOffsetParent:cn,getElementRects:ai,getClientRects:Xn,getDimensions:oi,getScale:xe,isElement:$t,isRTL:ni};var sn=(o,e,a)=>{let n=new Map,i={platform:no,...a},c={...i.platform,_c:n};return ja(o,e,{...i,platform:c})};function dn(o){return ii(o)}function Go(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function ii(o){for(let e=o;e;e=Go(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Go(o);e;e=Go(e)){if(!(e instanceof Element))continue;let a=getComputedStyle(e);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||e.tagName==="BODY"))return e}return null}async function pn(o,e,a){return sn(o,e,{platform:{...no,getOffsetParent:n=>no.getOffsetParent(n,dn)},middleware:[Ho({crossAxis:!0}),Do({allowedPlacements:[a]})]})}var ut=function(o,e,a,n){var i=arguments.length,c=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(o,e,a,n);else for(var p=o.length-1;p>=0;p--)(s=o[p])&&(c=(i<3?s(c):i>3?s(e,a,c):s(e,a))||c);return i>3&&c&&Object.defineProperty(e,a,c),c},F=class extends De.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new De.Debouncer,this.revealDebouncer=new De.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return fn.html`
|
|
1133
|
+
`;var Ua=["top","right","bottom","left"],Ha=["start","end"],Bo=Ua.reduce((o,e)=>o.concat(e,e+"-"+Ha[0],e+"-"+Ha[1]),[]),Ga=Math.min,Fa=Math.max;var Un={left:"right",right:"left",bottom:"top",top:"bottom"},Gn={start:"end",end:"start"};function ko(o,e,a){return Fa(o,Ga(e,a))}function to(o,e){return typeof o=="function"?o(e):o}function he(o){return o.split("-")[0]}function Mt(o){return o.split("-")[1]}function Wo(o){return o==="x"?"y":"x"}function zo(o){return o==="y"?"height":"width"}function eo(o){return["top","bottom"].includes(he(o))?"y":"x"}function To(o){return Wo(eo(o))}function Ma(o,e,a){a===void 0&&(a=!1);let n=Mt(o),i=To(o),c=zo(i),s=i==="x"?n===(a?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[c]>e.floating[c]&&(s=Io(s)),[s,Io(s)]}function Za(o){return o.replace(/start|end/g,e=>Gn[e])}function Io(o){return o.replace(/left|right|bottom|top/g,e=>Un[e])}function Fn(o){return{top:0,right:0,bottom:0,left:0,...o}}function Va(o){return typeof o!="number"?Fn(o):{top:o,right:o,bottom:o,left:o}}function Jt(o){let{x:e,y:a,width:n,height:i}=o;return{width:n,height:i,top:a,left:e,right:e+n,bottom:a+i,x:e,y:a}}function Ka(o,e,a){let{reference:n,floating:i}=o,c=eo(e),s=To(e),p=zo(s),f=he(e),y=c==="y",S=n.x+n.width/2-i.width/2,x=n.y+n.height/2-i.height/2,P=n[p]/2-i[p]/2,E;switch(f){case"top":E={x:S,y:n.y-i.height};break;case"bottom":E={x:S,y:n.y+n.height};break;case"right":E={x:n.x+n.width,y:x};break;case"left":E={x:n.x-i.width,y:x};break;default:E={x:n.x,y:n.y}}switch(Mt(e)){case"start":E[s]-=P*(a&&y?-1:1);break;case"end":E[s]+=P*(a&&y?-1:1);break}return E}var ja=async(o,e,a)=>{let{placement:n="bottom",strategy:i="absolute",middleware:c=[],platform:s}=a,p=c.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(e)),y=await s.getElementRects({reference:o,floating:e,strategy:i}),{x:S,y:x}=Ka(y,n,f),P=n,E={},k=0;for(let Z=0;Z<p.length;Z++){let{name:X,fn:V}=p[Z],{x:q,y:ct,data:zt,reset:it}=await V({x:S,y:x,initialPlacement:n,placement:P,strategy:i,middlewareData:E,rects:y,platform:s,elements:{reference:o,floating:e}});S=q??S,x=ct??x,E={...E,[X]:{...E[X],...zt}},it&&k<=50&&(k++,typeof it=="object"&&(it.placement&&(P=it.placement),it.rects&&(y=it.rects===!0?await s.getElementRects({reference:o,floating:e,strategy:i}):it.rects),{x:S,y:x}=Ka(y,P,f)),Z=-1)}return{x:S,y:x,placement:P,strategy:i,middlewareData:E}};async function _o(o,e){var a;e===void 0&&(e={});let{x:n,y:i,platform:c,rects:s,elements:p,strategy:f}=o,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:x="floating",altBoundary:P=!1,padding:E=0}=to(e,o),k=Va(E),X=p[P?x==="floating"?"reference":"floating":x],V=Jt(await c.getClippingRect({element:(a=await(c.isElement==null?void 0:c.isElement(X)))==null||a?X:X.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:y,rootBoundary:S,strategy:f})),q=x==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,ct=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),zt=await(c.isElement==null?void 0:c.isElement(ct))?await(c.getScale==null?void 0:c.getScale(ct))||{x:1,y:1}:{x:1,y:1},it=Jt(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:q,offsetParent:ct,strategy:f}):q);return{top:(V.top-it.top+k.top)/zt.y,bottom:(it.bottom-V.bottom+k.bottom)/zt.y,left:(V.left-it.left+k.left)/zt.x,right:(it.right-V.right+k.right)/zt.x}}function Mn(o,e,a){return(o?[...a.filter(i=>Mt(i)===o),...a.filter(i=>Mt(i)!==o)]:a.filter(i=>he(i)===i)).filter(i=>o?Mt(i)===o||(e?Za(i)!==i:!1):!0)}var Do=function(o){return o===void 0&&(o={}),{name:"autoPlacement",options:o,async fn(e){var a,n,i;let{rects:c,middlewareData:s,placement:p,platform:f,elements:y}=e,{crossAxis:S=!1,alignment:x,allowedPlacements:P=Bo,autoAlignment:E=!0,...k}=to(o,e),Z=x!==void 0||P===Bo?Mn(x||null,E,P):P,X=await _o(e,k),V=((a=s.autoPlacement)==null?void 0:a.index)||0,q=Z[V];if(q==null)return{};let ct=Ma(q,c,await(f.isRTL==null?void 0:f.isRTL(y.floating)));if(p!==q)return{reset:{placement:Z[0]}};let zt=[X[he(q)],X[ct[0]],X[ct[1]]],it=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:q,overflows:zt}],Zo=Z[V+1];if(Zo)return{data:{index:V+1,overflows:it},reset:{placement:Zo}};let Vo=it.map(Ct=>{let Ce=Mt(Ct.placement);return[Ct.placement,Ce&&S?Ct.overflows.slice(0,2).reduce(($n,Rn)=>$n+Rn,0):Ct.overflows[0],Ct.overflows]}).sort((Ct,Ce)=>Ct[1]-Ce[1]),Ko=((i=Vo.filter(Ct=>Ct[2].slice(0,Mt(Ct[0])?2:3).every(Ce=>Ce<=0))[0])==null?void 0:i[0])||Vo[0][0];return Ko!==p?{data:{index:V+1,overflows:it},reset:{placement:Ko}}:{}}}};var Ho=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(e){let{x:a,y:n,placement:i}=e,{mainAxis:c=!0,crossAxis:s=!1,limiter:p={fn:X=>{let{x:V,y:q}=X;return{x:V,y:q}}},...f}=to(o,e),y={x:a,y:n},S=await _o(e,f),x=eo(he(i)),P=Wo(x),E=y[P],k=y[x];if(c){let X=P==="y"?"top":"left",V=P==="y"?"bottom":"right",q=E+S[X],ct=E-S[V];E=ko(q,E,ct)}if(s){let X=x==="y"?"top":"left",V=x==="y"?"bottom":"right",q=k+S[X],ct=k-S[V];k=ko(q,k,ct)}let Z=p.fn({...e,[P]:E,[x]:k});return{...Z,data:{x:Z.x-a,y:Z.y-n,enabled:{[P]:c,[x]:s}}}}}};var Uo=Math.min,me=Math.max,We=Math.round;var Pt=o=>({x:o,y:o});function It(o){return Xa(o)?(o.nodeName||"").toLowerCase():"#document"}function ft(o){var e;return(o==null||(e=o.ownerDocument)==null?void 0:e.defaultView)||window}function Bt(o){var e;return(e=(Xa(o)?o.ownerDocument:o.document)||window.document)==null?void 0:e.documentElement}function Xa(o){return o instanceof Node||o instanceof ft(o).Node}function $t(o){return o instanceof Element||o instanceof ft(o).Element}function vt(o){return o instanceof HTMLElement||o instanceof ft(o).HTMLElement}function Ya(o){return typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof ft(o).ShadowRoot}function be(o){let{overflow:e,overflowX:a,overflowY:n,display:i}=gt(o);return/auto|scroll|overlay|hidden|clip/.test(e+n+a)&&!["inline","contents"].includes(i)}function qa(o){return["table","td","th"].includes(It(o))}function ro(o){let e=ao(),a=gt(o);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!e&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!e&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(a.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(a.contain||"").includes(n))}function Qa(o){let e=te(o);for(;vt(e)&&!ze(e);){if(ro(e))return e;e=te(e)}return null}function ao(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ze(o){return["html","body","#document"].includes(It(o))}function gt(o){return ft(o).getComputedStyle(o)}function Te(o){return $t(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function te(o){if(It(o)==="html")return o;let e=o.assignedSlot||o.parentNode||Ya(o)&&o.host||Bt(o);return Ya(e)?e.host:e}function Ja(o){let e=te(o);return ze(e)?o.ownerDocument?o.ownerDocument.body:o.body:vt(e)&&be(e)?e:Ja(e)}function oo(o,e,a){var n;e===void 0&&(e=[]),a===void 0&&(a=!0);let i=Ja(o),c=i===((n=o.ownerDocument)==null?void 0:n.body),s=ft(i);return c?e.concat(s,s.visualViewport||[],be(i)?i:[],s.frameElement&&a?oo(s.frameElement):[]):e.concat(i,oo(i,[],a))}function on(o){let e=gt(o),a=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=vt(o),c=i?o.offsetWidth:a,s=i?o.offsetHeight:n,p=We(a)!==c||We(n)!==s;return p&&(a=c,n=s),{width:a,height:n,$:p}}function rn(o){return $t(o)?o:o.contextElement}function xe(o){let e=rn(o);if(!vt(e))return Pt(1);let a=e.getBoundingClientRect(),{width:n,height:i,$:c}=on(e),s=(c?We(a.width):a.width)/n,p=(c?We(a.height):a.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var Kn=Pt(0);function an(o){let e=ft(o);return!ao()||!e.visualViewport?Kn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function jn(o,e,a){return e===void 0&&(e=!1),!a||e&&a!==ft(o)?!1:e}function _e(o,e,a,n){e===void 0&&(e=!1),a===void 0&&(a=!1);let i=o.getBoundingClientRect(),c=rn(o),s=Pt(1);e&&(n?$t(n)&&(s=xe(n)):s=xe(o));let p=jn(c,a,n)?an(c):Pt(0),f=(i.left+p.x)/s.x,y=(i.top+p.y)/s.y,S=i.width/s.x,x=i.height/s.y;if(c){let P=ft(c),E=n&&$t(n)?ft(n):n,k=P.frameElement;for(;k&&n&&E!==P;){let Z=xe(k),X=k.getBoundingClientRect(),V=gt(k),q=X.left+(k.clientLeft+parseFloat(V.paddingLeft))*Z.x,ct=X.top+(k.clientTop+parseFloat(V.paddingTop))*Z.y;f*=Z.x,y*=Z.y,S*=Z.x,x*=Z.y,f+=q,y+=ct,k=ft(k).frameElement}}return Jt({width:S,height:x,x:f,y})}function Yn(o){let{rect:e,offsetParent:a,strategy:n}=o,i=vt(a),c=Bt(a);if(a===c)return e;let s={scrollLeft:0,scrollTop:0},p=Pt(1),f=Pt(0);if((i||!i&&n!=="fixed")&&((It(a)!=="body"||be(c))&&(s=Te(a)),vt(a))){let y=_e(a);p=xe(a),f.x=y.x+a.clientLeft,f.y=y.y+a.clientTop}return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-s.scrollLeft*p.x+f.x,y:e.y*p.y-s.scrollTop*p.y+f.y}}function Xn(o){return Array.from(o.getClientRects())}function nn(o){return _e(Bt(o)).left+Te(o).scrollLeft}function qn(o){let e=Bt(o),a=Te(o),n=o.ownerDocument.body,i=me(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),c=me(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-a.scrollLeft+nn(o),p=-a.scrollTop;return gt(n).direction==="rtl"&&(s+=me(e.clientWidth,n.clientWidth)-i),{width:i,height:c,x:s,y:p}}function Qn(o,e){let a=ft(o),n=Bt(o),i=a.visualViewport,c=n.clientWidth,s=n.clientHeight,p=0,f=0;if(i){c=i.width,s=i.height;let y=ao();(!y||y&&e==="fixed")&&(p=i.offsetLeft,f=i.offsetTop)}return{width:c,height:s,x:p,y:f}}function Jn(o,e){let a=_e(o,!0,e==="fixed"),n=a.top+o.clientTop,i=a.left+o.clientLeft,c=vt(o)?xe(o):Pt(1),s=o.clientWidth*c.x,p=o.clientHeight*c.y,f=i*c.x,y=n*c.y;return{width:s,height:p,x:f,y}}function tn(o,e,a){let n;if(e==="viewport")n=Qn(o,a);else if(e==="document")n=qn(Bt(o));else if($t(e))n=Jn(e,a);else{let i=an(o);n={...e,x:e.x-i.x,y:e.y-i.y}}return Jt(n)}function ln(o,e){let a=te(o);return a===e||!$t(a)||ze(a)?!1:gt(a).position==="fixed"||ln(a,e)}function ti(o,e){let a=e.get(o);if(a)return a;let n=oo(o,[],!1).filter(p=>$t(p)&&It(p)!=="body"),i=null,c=gt(o).position==="fixed",s=c?te(o):o;for(;$t(s)&&!ze(s);){let p=gt(s),f=ro(s);!f&&p.position==="fixed"&&(i=null),(c?!f&&!i:!f&&p.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||be(s)&&!f&&ln(o,s))?n=n.filter(S=>S!==s):i=p,s=te(s)}return e.set(o,n),n}function ei(o){let{element:e,boundary:a,rootBoundary:n,strategy:i}=o,s=[...a==="clippingAncestors"?ti(e,this._c):[].concat(a),n],p=s[0],f=s.reduce((y,S)=>{let x=tn(e,S,i);return y.top=me(x.top,y.top),y.right=Uo(x.right,y.right),y.bottom=Uo(x.bottom,y.bottom),y.left=me(x.left,y.left),y},tn(e,p,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function oi(o){return on(o)}function ri(o,e,a){let n=vt(e),i=Bt(e),c=a==="fixed",s=_e(o,!0,c,e),p={scrollLeft:0,scrollTop:0},f=Pt(0);if(n||!n&&!c)if((It(e)!=="body"||be(i))&&(p=Te(e)),n){let y=_e(e,!0,c,e);f.x=y.x+e.clientLeft,f.y=y.y+e.clientTop}else i&&(f.x=nn(i));return{x:s.left+p.scrollLeft-f.x,y:s.top+p.scrollTop-f.y,width:s.width,height:s.height}}function en(o,e){return!vt(o)||gt(o).position==="fixed"?null:e?e(o):o.offsetParent}function cn(o,e){let a=ft(o);if(!vt(o))return a;let n=en(o,e);for(;n&&qa(n)&>(n).position==="static";)n=en(n,e);return n&&(It(n)==="html"||It(n)==="body"&>(n).position==="static"&&!ro(n))?a:n||Qa(o)||a}var ai=async function(o){let{reference:e,floating:a,strategy:n}=o,i=this.getOffsetParent||cn,c=this.getDimensions;return{reference:ri(e,await i(a),n),floating:{x:0,y:0,...await c(a)}}};function ni(o){return gt(o).direction==="rtl"}var no={convertOffsetParentRelativeRectToViewportRelativeRect:Yn,getDocumentElement:Bt,getClippingRect:ei,getOffsetParent:cn,getElementRects:ai,getClientRects:Xn,getDimensions:oi,getScale:xe,isElement:$t,isRTL:ni};var sn=(o,e,a)=>{let n=new Map,i={platform:no,...a},c={...i.platform,_c:n};return ja(o,e,{...i,platform:c})};function dn(o){return ii(o)}function Go(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function ii(o){for(let e=o;e;e=Go(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Go(o);e;e=Go(e)){if(!(e instanceof Element))continue;let a=getComputedStyle(e);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||e.tagName==="BODY"))return e}return null}async function pn(o,e,a){return sn(o,e,{platform:{...no,getOffsetParent:n=>no.getOffsetParent(n,dn)},middleware:[Ho({crossAxis:!0}),Do({allowedPlacements:[a]})]})}var ut=function(o,e,a,n){var i=arguments.length,c=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(o,e,a,n);else for(var p=o.length-1;p>=0;p--)(s=o[p])&&(c=(i<3?s(c):i>3?s(e,a,c):s(e,a))||c);return i>3&&c&&Object.defineProperty(e,a,c),c},F=class extends De.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new De.Debouncer,this.revealDebouncer=new De.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return fn.html`
|
|
1134
1134
|
<div part="container"
|
|
1135
1135
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
1136
1136
|
@mouseenter=${this.onHover}
|
|
@@ -1155,7 +1155,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1155
1155
|
<div></div>
|
|
1156
1156
|
<div></div>
|
|
1157
1157
|
</div>
|
|
1158
|
-
`}};ee.styles=Ba;(0,hn.customElement)("ft-loader")(ee);var Zt=h(z()),Fo=h(Tt()),ot=h(yt()),
|
|
1158
|
+
`}};ee.styles=Ba;(0,hn.customElement)("ft-loader")(ee);var Zt=h(z()),Fo=h(Tt()),ot=h(yt()),lt=function(o,e,a,n){var i=arguments.length,c=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(o,e,a,n);else for(var p=o.length-1;p>=0;p--)(s=o[p])&&(c=(i<3?s(c):i>3?s(e,a,c):s(e,a))||c);return i>3&&c&&Object.defineProperty(e,a,c),c},U=class extends(0,Vt.toFtFormComponent)(Vt.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var a;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((a=this.form)===null||a===void 0||a.requestSubmit())})}render(){var e,a,n;let i=Zt.html`
|
|
1159
1159
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1160
1160
|
<ft-typography part="label"
|
|
1161
1161
|
variant=${this.typographyVariant}
|
|
@@ -1192,7 +1192,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1192
1192
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
1193
1193
|
`:Zt.html`
|
|
1194
1194
|
<slot part="icon" name="icon"></slot>
|
|
1195
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,a){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,a)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Vt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};U.elementDefinitions={"ft-ripple":W,"ft-tooltip":F,"ft-typography":at,"ft-icon":J,"ft-loader":ee};
|
|
1195
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(e,a){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,a)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Vt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};U.elementDefinitions={"ft-ripple":W,"ft-tooltip":F,"ft-typography":at,"ft-icon":J,"ft-loader":ee};lt([(0,ot.property)()],U.prototype,"href",void 0);lt([(0,ot.property)()],U.prototype,"target",void 0);lt([(0,ot.property)()],U.prototype,"type",void 0);lt([(0,ot.property)({type:Boolean})],U.prototype,"disabled",void 0);lt([(0,ot.property)()],U.prototype,"label",void 0);lt([(0,ot.property)()],U.prototype,"icon",void 0);lt([(0,ot.property)()],U.prototype,"iconVariant",void 0);lt([(0,ot.property)({type:Boolean})],U.prototype,"trailingIcon",void 0);lt([(0,ot.property)({type:Boolean})],U.prototype,"loading",void 0);lt([(0,ot.property)({attribute:"aria-label"})],U.prototype,"ariaLabel",void 0);lt([(0,ot.property)()],U.prototype,"tooltipPosition",void 0);lt([(0,ot.property)({type:Boolean})],U.prototype,"hideTooltip",void 0);lt([(0,ot.property)({type:Boolean})],U.prototype,"forceTooltip",void 0);lt([(0,ot.query)(".ft-button")],U.prototype,"button",void 0);lt([(0,ot.query)(".ft-button--label slot")],U.prototype,"slottedContent",void 0);lt([(0,ot.query)("[part=tooltip]")],U.prototype,"tooltip",void 0);var io=function(o,e,a,n){var i=arguments.length,c=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(o,e,a,n);else for(var p=o.length-1;p>=0;p--)(s=o[p])&&(c=(i<3?s(c):i>3?s(e,a,c):s(e,a))||c);return i>3&&c&&Object.defineProperty(e,a,c),c},kt=class extends U{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}};kt.styles=[mn.safariEllipsisFix,Ta];io([(0,He.property)({type:Boolean})],kt.prototype,"primary",void 0);io([(0,He.property)({type:Boolean})],kt.prototype,"outlined",void 0);io([(0,He.property)({type:Boolean})],kt.prototype,"dense",void 0);io([(0,He.property)({type:Boolean})],kt.prototype,"round",void 0);var Ue=h(yt());var co=h(I());var bn=h(z()),u=h(I());var xn=[bn.css`
|
|
1196
1196
|
:host {
|
|
1197
1197
|
display: inline-block;
|
|
1198
1198
|
max-width: 100%;
|