@fluid-topics/ft-reader-metadata 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-metadata.light.js +113 -113
- package/build/ft-reader-metadata.min.js +121 -121
- package/package.json +6 -6
|
@@ -135,7 +135,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.ft-tooltip {
|
|
138
|
-
position:
|
|
138
|
+
position: fixed;
|
|
139
139
|
box-sizing: border-box;
|
|
140
140
|
overflow: hidden;
|
|
141
141
|
width: max-content;
|
|
@@ -153,7 +153,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
153
153
|
position: relative;
|
|
154
154
|
word-break: break-word;
|
|
155
155
|
}
|
|
156
|
-
`,Io=["start","end"],Ro=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+Io[0],o+"-"+Io[1])),[]),ko=Math.min,Uo=Math.max,Eo=Math.round,Wo=t=>({x:t,y:t}),Lo={left:"right",right:"left",bottom:"top",top:"bottom"},zo={start:"end",end:"start"};function Ko(t,o,e){return Uo(t,ko(o,e))}function Zo(t,o){return"function"==typeof t?t(o):t}function Bo(t){return t.split("-")[0]}function Fo(t){return t.split("-")[1]}function Do(t){return"x"===t?"y":"x"}function Ao(t){return"y"===t?"height":"width"}function Ho(t){return["top","bottom"].includes(Bo(t))?"y":"x"}function Go(t){return Do(Ho(t))}function Po(t){return t.replace(/left|right|bottom|top/g,(t=>Lo[t]))}function jo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function To(t,o,e){let{reference:r,floating:i}=t;const n=Ho(o),a=Go(o),l=Ao(a),c=Bo(o),p="y"===n,s=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(c){case"top":h={x:s,y:r.y-i.height};break;case"bottom":h={x:s,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Fo(o)){case"start":h[a]-=d*(e&&p?-1:1);break;case"end":h[a]+=d*(e&&p?-1:1)}return h}async function Mo(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Zo(o,t),g=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),y=l[d?"floating"===f?"reference":"floating":f],u=jo(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:p,rootBoundary:s,strategy:c})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=jo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(u.top-O.top+g.top)/x.y,bottom:(O.bottom-u.bottom+g.bottom)/x.y,left:(u.left-O.left+g.left)/x.x,right:(O.right-u.right+g.right)/x.x}}function _o(t,o,e){return(t?[...e.filter((o=>Fo(o)===t)),...e.filter((o=>Fo(o)!==t))]:e.filter((t=>Bo(t)===t))).filter((e=>!t||(Fo(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>zo[t]))}(e)!==e)))}const Yo=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:c,elements:p}=o,{crossAxis:s=!1,alignment:f,allowedPlacements:d=Ro,autoAlignment:h=!0,...g}=Zo(t,o),y=void 0!==f||d===Ro?_o(f||null,h,d):d,u=await Mo(o,g),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=Fo(t),i=Go(t),n=Ao(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=Po(a)),[a,Po(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(p.floating)));if(l!==m)return{reset:{placement:y[0]}};const O=[u[Bo(m)],u[x[0]],u[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=Fo(t.placement);return[t.placement,o&&s?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),$=S.filter((t=>t[2].slice(0,Fo(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=$[0])?void 0:i[0])||S[0][0];return C!==l?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Vo(t){return Jo(t)?(t.nodeName||"").toLowerCase():"#document"}function Xo(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function qo(t){var o;return null==(o=(Jo(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Jo(t){return t instanceof Node||t instanceof Xo(t).Node}function Qo(t){return t instanceof Element||t instanceof Xo(t).Element}function te(t){return t instanceof HTMLElement||t instanceof Xo(t).HTMLElement}function oe(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Xo(t).ShadowRoot)}function ee(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=le(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function re(t){return["table","td","th"].includes(Vo(t))}function ie(t){const o=ne(),e=le(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function ne(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ae(t){return["html","body","#document"].includes(Vo(t))}function le(t){return Xo(t).getComputedStyle(t)}function ce(t){return Qo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pe(t){if("html"===Vo(t))return t;const o=t.assignedSlot||t.parentNode||oe(t)&&t.host||qo(t);return oe(o)?o.host:o}function se(t){const o=pe(t);return ae(o)?t.ownerDocument?t.ownerDocument.body:t.body:te(o)&&ee(o)?o:se(o)}function fe(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=se(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Xo(i);return n?o.concat(a,a.visualViewport||[],ee(i)?i:[],a.frameElement&&e?fe(a.frameElement):[]):o.concat(i,fe(i,[],e))}function de(t){const o=le(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=te(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=Eo(e)!==n||Eo(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function he(t){return Qo(t)?t:t.contextElement}function ge(t){const o=he(t);if(!te(o))return Wo(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=de(o);let a=(n?Eo(e.width):e.width)/r,l=(n?Eo(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const ye=Wo(0);function ue(t){const o=Xo(t);return ne()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:ye}function be(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=he(t);let a=Wo(1);o&&(r?Qo(r)&&(a=ge(r)):a=ge(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Xo(t))&&o}(n,e,r)?ue(n):Wo(0);let c=(i.left+l.x)/a.x,p=(i.top+l.y)/a.y,s=i.width/a.x,f=i.height/a.y;if(n){const t=Xo(n),o=r&&Qo(r)?Xo(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=ge(e),o=e.getBoundingClientRect(),r=le(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,p*=t.y,s*=t.x,f*=t.y,c+=i,p+=n,e=Xo(e).frameElement}}return jo({width:s,height:f,x:c,y:p})}function me(t){return be(qo(t)).left+ce(t).scrollLeft}function xe(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Xo(t),r=qo(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){n=i.width,a=i.height;const t=ne();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=qo(t),e=ce(t),r=t.ownerDocument.body,i=Uo(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=Uo(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+me(t);const l=-e.scrollTop;return"rtl"===le(r).direction&&(a+=Uo(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(qo(t));else if(Qo(o))r=function(t,o){const e=be(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=te(t)?ge(t):Wo(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=ue(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return jo(r)}function Oe(t,o){const e=pe(t);return!(e===o||!Qo(e)||ae(e))&&("fixed"===le(e).position||Oe(e,o))}function ve(t,o,e){const r=te(o),i=qo(o),n="fixed"===e,a=be(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const c=Wo(0);if(r||!r&&!n)if(("body"!==Vo(o)||ee(i))&&(l=ce(o)),r){const t=be(o,!0,n,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else i&&(c.x=me(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ne(t,o){return te(t)&&"fixed"!==le(t).position?o?o(t):t.offsetParent:null}function Se(t,o){const e=Xo(t);if(!te(t))return e;let r=Ne(t,o);for(;r&&re(r)&&"static"===le(r).position;)r=Ne(r,o);return r&&("html"===Vo(r)||"body"===Vo(r)&&"static"===le(r).position&&!ie(r))?e:r||function(t){let o=pe(t);for(;te(o)&&!ae(o);){if(ie(o))return o;o=pe(o)}return null}(t)||e}const $e={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=te(e),n=qo(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=Wo(1);const c=Wo(0);if((i||!i&&"fixed"!==r)&&(("body"!==Vo(e)||ee(n))&&(a=ce(e)),te(e))){const t=be(e);l=ge(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+c.x,y:o.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:qo,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=fe(t,[],!1).filter((t=>Qo(t)&&"body"!==Vo(t))),i=null;const n="fixed"===le(t).position;let a=n?pe(t):t;for(;Qo(a)&&!ae(a);){const o=le(a),e=ie(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||ee(a)&&!e&&Oe(t,a))?r=r.filter((t=>t!==a)):i=o,a=pe(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],l=n.reduce(((t,e)=>{const r=xe(o,e,i);return t.top=Uo(r.top,t.top),t.right=ko(r.right,t.right),t.bottom=ko(r.bottom,t.bottom),t.left=Uo(r.left,t.left),t}),xe(o,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Se,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||Se,n=this.getDimensions;return{reference:ve(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return de(t)},getScale:ge,isElement:Qo,isRTL:function(t){return"rtl"===le(t).direction}},Ce=(t,o,e)=>{const r=new Map,i={platform:$e,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(o));let p=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:s,y:f}=To(p,r,c),d=r,h={},g=0;for(let e=0;e<l.length;e++){const{name:n,fn:y}=l[e],{x:u,y:b,data:m,reset:x}=await y({x:s,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:p,platform:a,elements:{reference:t,floating:o}});s=null!=u?u:s,f=null!=b?b:f,h={...h,[n]:{...h[n],...m}},x&&g<=50&&(g++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(p=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:s,y:f}=To(p,d,c))),e=-1)}return{x:s,y:f,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};var we=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ie extends o.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 o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
156
|
+
`,Io=["start","end"],Ro=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+Io[0],o+"-"+Io[1])),[]),ko=Math.min,Uo=Math.max,Eo=Math.round,Wo=t=>({x:t,y:t}),Lo={left:"right",right:"left",bottom:"top",top:"bottom"},zo={start:"end",end:"start"};function Ko(t,o,e){return Uo(t,ko(o,e))}function Zo(t,o){return"function"==typeof t?t(o):t}function Bo(t){return t.split("-")[0]}function Fo(t){return t.split("-")[1]}function Do(t){return"x"===t?"y":"x"}function Ao(t){return"y"===t?"height":"width"}function Ho(t){return["top","bottom"].includes(Bo(t))?"y":"x"}function Go(t){return Do(Ho(t))}function Po(t){return t.replace(/left|right|bottom|top/g,(t=>Lo[t]))}function jo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function To(t,o,e){let{reference:r,floating:i}=t;const n=Ho(o),a=Go(o),l=Ao(a),c=Bo(o),p="y"===n,s=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(c){case"top":h={x:s,y:r.y-i.height};break;case"bottom":h={x:s,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Fo(o)){case"start":h[a]-=d*(e&&p?-1:1);break;case"end":h[a]+=d*(e&&p?-1:1)}return h}async function Mo(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Zo(o,t),g=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),y=l[d?"floating"===f?"reference":"floating":f],u=jo(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:p,rootBoundary:s,strategy:c})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=jo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(u.top-O.top+g.top)/x.y,bottom:(O.bottom-u.bottom+g.bottom)/x.y,left:(u.left-O.left+g.left)/x.x,right:(O.right-u.right+g.right)/x.x}}function _o(t,o,e){return(t?[...e.filter((o=>Fo(o)===t)),...e.filter((o=>Fo(o)!==t))]:e.filter((t=>Bo(t)===t))).filter((e=>!t||(Fo(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>zo[t]))}(e)!==e)))}const Yo=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:c,elements:p}=o,{crossAxis:s=!1,alignment:f,allowedPlacements:d=Ro,autoAlignment:h=!0,...g}=Zo(t,o),y=void 0!==f||d===Ro?_o(f||null,h,d):d,u=await Mo(o,g),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=Fo(t),i=Go(t),n=Ao(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=Po(a)),[a,Po(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(p.floating)));if(l!==m)return{reset:{placement:y[0]}};const O=[u[Bo(m)],u[x[0]],u[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=Fo(t.placement);return[t.placement,o&&s?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),$=S.filter((t=>t[2].slice(0,Fo(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=$[0])?void 0:i[0])||S[0][0];return C!==l?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Vo(t){return Jo(t)?(t.nodeName||"").toLowerCase():"#document"}function Xo(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function qo(t){var o;return null==(o=(Jo(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Jo(t){return t instanceof Node||t instanceof Xo(t).Node}function Qo(t){return t instanceof Element||t instanceof Xo(t).Element}function te(t){return t instanceof HTMLElement||t instanceof Xo(t).HTMLElement}function oe(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Xo(t).ShadowRoot)}function ee(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=le(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function re(t){return["table","td","th"].includes(Vo(t))}function ie(t){const o=ne(),e=le(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function ne(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ae(t){return["html","body","#document"].includes(Vo(t))}function le(t){return Xo(t).getComputedStyle(t)}function ce(t){return Qo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pe(t){if("html"===Vo(t))return t;const o=t.assignedSlot||t.parentNode||oe(t)&&t.host||qo(t);return oe(o)?o.host:o}function se(t){const o=pe(t);return ae(o)?t.ownerDocument?t.ownerDocument.body:t.body:te(o)&&ee(o)?o:se(o)}function fe(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=se(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Xo(i);return n?o.concat(a,a.visualViewport||[],ee(i)?i:[],a.frameElement&&e?fe(a.frameElement):[]):o.concat(i,fe(i,[],e))}function de(t){const o=le(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=te(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=Eo(e)!==n||Eo(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function he(t){return Qo(t)?t:t.contextElement}function ge(t){const o=he(t);if(!te(o))return Wo(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=de(o);let a=(n?Eo(e.width):e.width)/r,l=(n?Eo(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const ye=Wo(0);function ue(t){const o=Xo(t);return ne()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:ye}function be(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=he(t);let a=Wo(1);o&&(r?Qo(r)&&(a=ge(r)):a=ge(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Xo(t))&&o}(n,e,r)?ue(n):Wo(0);let c=(i.left+l.x)/a.x,p=(i.top+l.y)/a.y,s=i.width/a.x,f=i.height/a.y;if(n){const t=Xo(n),o=r&&Qo(r)?Xo(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=ge(e),o=e.getBoundingClientRect(),r=le(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,p*=t.y,s*=t.x,f*=t.y,c+=i,p+=n,e=Xo(e).frameElement}}return jo({width:s,height:f,x:c,y:p})}function me(t){return be(qo(t)).left+ce(t).scrollLeft}function xe(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Xo(t),r=qo(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){n=i.width,a=i.height;const t=ne();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=qo(t),e=ce(t),r=t.ownerDocument.body,i=Uo(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=Uo(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+me(t);const l=-e.scrollTop;return"rtl"===le(r).direction&&(a+=Uo(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(qo(t));else if(Qo(o))r=function(t,o){const e=be(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=te(t)?ge(t):Wo(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=ue(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return jo(r)}function Oe(t,o){const e=pe(t);return!(e===o||!Qo(e)||ae(e))&&("fixed"===le(e).position||Oe(e,o))}function ve(t,o,e){const r=te(o),i=qo(o),n="fixed"===e,a=be(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const c=Wo(0);if(r||!r&&!n)if(("body"!==Vo(o)||ee(i))&&(l=ce(o)),r){const t=be(o,!0,n,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else i&&(c.x=me(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ne(t,o){return te(t)&&"fixed"!==le(t).position?o?o(t):t.offsetParent:null}function Se(t,o){const e=Xo(t);if(!te(t))return e;let r=Ne(t,o);for(;r&&re(r)&&"static"===le(r).position;)r=Ne(r,o);return r&&("html"===Vo(r)||"body"===Vo(r)&&"static"===le(r).position&&!ie(r))?e:r||function(t){let o=pe(t);for(;te(o)&&!ae(o);){if(ie(o))return o;o=pe(o)}return null}(t)||e}const $e={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=te(e),n=qo(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=Wo(1);const c=Wo(0);if((i||!i&&"fixed"!==r)&&(("body"!==Vo(e)||ee(n))&&(a=ce(e)),te(e))){const t=be(e);l=ge(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+c.x,y:o.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:qo,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=fe(t,[],!1).filter((t=>Qo(t)&&"body"!==Vo(t))),i=null;const n="fixed"===le(t).position;let a=n?pe(t):t;for(;Qo(a)&&!ae(a);){const o=le(a),e=ie(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||ee(a)&&!e&&Oe(t,a))?r=r.filter((t=>t!==a)):i=o,a=pe(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],l=n.reduce(((t,e)=>{const r=xe(o,e,i);return t.top=Uo(r.top,t.top),t.right=ko(r.right,t.right),t.bottom=ko(r.bottom,t.bottom),t.left=Uo(r.left,t.left),t}),xe(o,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Se,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||Se,n=this.getDimensions;return{reference:ve(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return de(t)},getScale:ge,isElement:Qo,isRTL:function(t){return"rtl"===le(t).direction}},Ce=(t,o,e)=>{const r=new Map,i={platform:$e,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(o));let p=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:s,y:f}=To(p,r,c),d=r,h={},g=0;for(let e=0;e<l.length;e++){const{name:n,fn:y}=l[e],{x:u,y:b,data:m,reset:x}=await y({x:s,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:p,platform:a,elements:{reference:t,floating:o}});s=null!=u?u:s,f=null!=b?b:f,h={...h,[n]:{...h[n],...m}},x&&g<=50&&(g++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(p=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:s,y:f}=To(p,d,c))),e=-1)}return{x:s,y:f,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};function we(t){return function(t){for(let o=t;o;o=Ie(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=Ie(t);o;o=Ie(o)){if(!(o instanceof Element))continue;const t=getComputedStyle(o);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return o;if("BODY"===o.tagName)return o}}return null}(t)}function Ie(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Re=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ke extends o.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 o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
157
157
|
<div part="container"
|
|
158
158
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
159
159
|
@mouseenter=${this.onHover}
|
|
@@ -161,7 +161,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
161
161
|
@focusin=${this.onHover}
|
|
162
162
|
@focusout=${this.onOut}
|
|
163
163
|
@touchstart=${this.onTouch}>
|
|
164
|
-
<slot></slot>
|
|
164
|
+
<slot part="slot"></slot>
|
|
165
165
|
<div part="tooltip" role="tooltip" inert
|
|
166
166
|
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
167
167
|
?hidden=${!this.visible}>
|
|
@@ -171,7 +171,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
171
171
|
</div>
|
|
172
172
|
</div>
|
|
173
173
|
</div>
|
|
174
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ce(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=Zo(t,o),p={x:e,y:r},s=await Mo(o,c),f=Ho(Bo(i)),d=Do(f);let h=p[d],g=p[f];if(n){const t="y"===d?"bottom":"right";h=Ko(h+s["y"===d?"top":"left"],h,h-s[t])}if(a){const t="y"===f?"bottom":"right";g=Ko(g+s["y"===f?"top":"left"],g,g-s[t])}const y=l.fn({...o,[d]:h,[f]:g});return{...y,data:{x:y.x-e,y:y.y-r}}}}),Yo({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}
|
|
174
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ce(this.slottedElement,this.tooltip,{platform:{...$e,getOffsetParent:t=>$e.getOffsetParent(t,we)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=Zo(t,o),p={x:e,y:r},s=await Mo(o,c),f=Ho(Bo(i)),d=Do(f);let h=p[d],g=p[f];if(n){const t="y"===d?"bottom":"right";h=Ko(h+s["y"===d?"top":"left"],h,h-s[t])}if(a){const t="y"===f?"bottom":"right";g=Ko(g+s["y"===f?"top":"left"],g,g-s[t])}const y=l.fn({...o,[d]:h,[f]:g});return{...y,data:{x:y.x-e,y:y.y-r}}}}),Yo({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}ke.elementDefinitions={"ft-typography":xo},ke.styles=wo,Re([r.property()],ke.prototype,"text",void 0),Re([r.property({type:Boolean})],ke.prototype,"manual",void 0),Re([r.property({type:Boolean})],ke.prototype,"inline",void 0),Re([r.property({type:Number})],ke.prototype,"delay",void 0),Re([r.property()],ke.prototype,"position",void 0),Re([r.queryAssignedNodes()],ke.prototype,"slotNodes",void 0),Re([r.query(".ft-tooltip--container")],ke.prototype,"container",void 0),Re([r.query(".ft-tooltip")],ke.prototype,"tooltip",void 0),Re([r.query(".ft-tooltip--content")],ke.prototype,"tooltipContent",void 0),Re([r.state()],ke.prototype,"visible",void 0),Re([r.eventOptions({passive:!0})],ke.prototype,"onTouch",null),Re([r.eventOptions({passive:!0})],ke.prototype,"onHover",null),Re([r.eventOptions({passive:!0})],ke.prototype,"onOut",null),o.customElement("ft-tooltip")(ke);const Ue=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),Ee={color:Ue,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ue),opacityContentOnSurfacePressed:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},We=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),Le=We,ze=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",We),Ke=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),Ze=Ke,Be=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ke),Fe=e.css`
|
|
175
175
|
:host {
|
|
176
176
|
display: contents;
|
|
177
177
|
}
|
|
@@ -184,7 +184,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
184
184
|
|
|
185
185
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
186
186
|
overflow: hidden;
|
|
187
|
-
border-radius: ${
|
|
187
|
+
border-radius: ${Ee.borderRadius};
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
.ft-ripple .ft-ripple--background,
|
|
@@ -218,27 +218,27 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
.ft-ripple .ft-ripple--background {
|
|
221
|
-
background-color: ${
|
|
221
|
+
background-color: ${Ee.backgroundColor};
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
.ft-ripple .ft-ripple--effect {
|
|
225
|
-
background-color: ${
|
|
225
|
+
background-color: ${Ee.color};
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
229
|
-
background-color: ${
|
|
229
|
+
background-color: ${Be};
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
233
|
-
background-color: ${
|
|
233
|
+
background-color: ${Ze};
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
237
|
-
background-color: ${
|
|
237
|
+
background-color: ${ze};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
241
|
-
background-color: ${
|
|
241
|
+
background-color: ${Le};
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
.ft-ripple .ft-ripple--background {
|
|
@@ -268,22 +268,22 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
271
|
-
opacity: ${
|
|
271
|
+
opacity: ${Ee.opacityContentOnSurfaceHover};
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
275
|
-
opacity: ${
|
|
275
|
+
opacity: ${Ee.opacityContentOnSurfaceSelected};
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
279
|
-
opacity: ${
|
|
279
|
+
opacity: ${Ee.opacityContentOnSurfaceFocused};
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
283
|
-
opacity: ${
|
|
283
|
+
opacity: ${Ee.opacityContentOnSurfacePressed};
|
|
284
284
|
transform: translate(-50%, -50%) scale(1);
|
|
285
285
|
}
|
|
286
|
-
`;var
|
|
286
|
+
`;var De,Ae,He=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ge extends o.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:r,y:i}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
287
287
|
<style>
|
|
288
288
|
.ft-ripple .ft-ripple--effect {
|
|
289
289
|
left: ${this.originX}px;
|
|
@@ -294,7 +294,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
294
294
|
<div class="ft-ripple--background"></div>
|
|
295
295
|
<div class="ft-ripple--effect"></div>
|
|
296
296
|
</div>
|
|
297
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",e,n),t.addEventListener("touchstart",r,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",i,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",e,n),t.removeEventListener("touchstart",r,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",i,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ae.elementDefinitions={},Ae.styles=Ze,De([r.property({type:Boolean})],Ae.prototype,"primary",void 0),De([r.property({type:Boolean})],Ae.prototype,"secondary",void 0),De([r.property({type:Boolean})],Ae.prototype,"unbounded",void 0),De([r.property({type:Boolean})],Ae.prototype,"activated",void 0),De([r.property({type:Boolean})],Ae.prototype,"selected",void 0),De([r.property({type:Boolean})],Ae.prototype,"disabled",void 0),De([r.state()],Ae.prototype,"hovered",void 0),De([r.state()],Ae.prototype,"focused",void 0),De([r.state()],Ae.prototype,"pressed",void 0),De([r.state()],Ae.prototype,"rippling",void 0),De([r.state()],Ae.prototype,"originX",void 0),De([r.state()],Ae.prototype,"originY",void 0),De([r.query(".ft-ripple")],Ae.prototype,"ripple",void 0),De([r.query(".ft-ripple--effect")],Ae.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Ae),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Be||(Be={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Fe||(Fe={})),new Map([...["abw"].map((t=>[t,Fe.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Fe.AUDIO])),...["avi"].map((t=>[t,Fe.AVI])),...["chm","xhs"].map((t=>[t,Fe.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Fe.CODE])),...["csv"].map((t=>[t,Fe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Fe.DITA])),...["epub"].map((t=>[t,Fe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Fe.EXCEL])),...["flac"].map((t=>[t,Fe.FLAC])),...["gif"].map((t=>[t,Fe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Fe.GZIP])),...["html","htm","xhtml"].map((t=>[t,Fe.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Fe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Fe.JPEG])),...["json"].map((t=>[t,Fe.JSON])),...["m4a","m4p"].map((t=>[t,Fe.M4A])),...["mov","qt"].map((t=>[t,Fe.MOV])),...["mp3"].map((t=>[t,Fe.MP3])),...["mp4","m4v"].map((t=>[t,Fe.MP4])),...["ogg","oga"].map((t=>[t,Fe.OGG])),...["pdf","ps"].map((t=>[t,Fe.PDF])),...["png"].map((t=>[t,Fe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Fe.POWERPOINT])),...["rar"].map((t=>[t,Fe.RAR])),...["stp"].map((t=>[t,Fe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Fe.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Fe.VIDEO])),...["wav"].map((t=>[t,Fe.WAV])),...["wma"].map((t=>[t,Fe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Fe.WORD])),...["xml","xsl","rdf"].map((t=>[t,Fe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Fe.YAML])),...["zip"].map((t=>[t,Fe.ZIP]))]);const He={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ge=e.css`
|
|
297
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",e,n),t.addEventListener("touchstart",r,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",i,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",e,n),t.removeEventListener("touchstart",r,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",i,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ge.elementDefinitions={},Ge.styles=Fe,He([r.property({type:Boolean})],Ge.prototype,"primary",void 0),He([r.property({type:Boolean})],Ge.prototype,"secondary",void 0),He([r.property({type:Boolean})],Ge.prototype,"unbounded",void 0),He([r.property({type:Boolean})],Ge.prototype,"activated",void 0),He([r.property({type:Boolean})],Ge.prototype,"selected",void 0),He([r.property({type:Boolean})],Ge.prototype,"disabled",void 0),He([r.state()],Ge.prototype,"hovered",void 0),He([r.state()],Ge.prototype,"focused",void 0),He([r.state()],Ge.prototype,"pressed",void 0),He([r.state()],Ge.prototype,"rippling",void 0),He([r.state()],Ge.prototype,"originX",void 0),He([r.state()],Ge.prototype,"originY",void 0),He([r.query(".ft-ripple")],Ge.prototype,"ripple",void 0),He([r.query(".ft-ripple--effect")],Ge.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Ge),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(De||(De={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Ae||(Ae={})),new Map([...["abw"].map((t=>[t,Ae.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ae.AUDIO])),...["avi"].map((t=>[t,Ae.AVI])),...["chm","xhs"].map((t=>[t,Ae.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ae.CODE])),...["csv"].map((t=>[t,Ae.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ae.DITA])),...["epub"].map((t=>[t,Ae.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ae.EXCEL])),...["flac"].map((t=>[t,Ae.FLAC])),...["gif"].map((t=>[t,Ae.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ae.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ae.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ae.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ae.JPEG])),...["json"].map((t=>[t,Ae.JSON])),...["m4a","m4p"].map((t=>[t,Ae.M4A])),...["mov","qt"].map((t=>[t,Ae.MOV])),...["mp3"].map((t=>[t,Ae.MP3])),...["mp4","m4v"].map((t=>[t,Ae.MP4])),...["ogg","oga"].map((t=>[t,Ae.OGG])),...["pdf","ps"].map((t=>[t,Ae.PDF])),...["png"].map((t=>[t,Ae.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ae.POWERPOINT])),...["rar"].map((t=>[t,Ae.RAR])),...["stp"].map((t=>[t,Ae.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ae.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ae.VIDEO])),...["wav"].map((t=>[t,Ae.WAV])),...["wma"].map((t=>[t,Ae.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ae.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ae.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ae.YAML])),...["zip"].map((t=>[t,Ae.ZIP]))]);const Pe={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},je=e.css`
|
|
298
298
|
:host, i.ft-icon {
|
|
299
299
|
display: inline-flex;
|
|
300
300
|
align-items: center;
|
|
@@ -303,14 +303,14 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
:host {
|
|
306
|
-
width: ${
|
|
307
|
-
height: ${
|
|
306
|
+
width: ${Pe.size};
|
|
307
|
+
height: ${Pe.size};
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
i.ft-icon {
|
|
311
311
|
width: 100%;
|
|
312
312
|
height: 100%;
|
|
313
|
-
font-size: ${
|
|
313
|
+
font-size: ${Pe.size};
|
|
314
314
|
line-height: 1;
|
|
315
315
|
font-weight: normal;
|
|
316
316
|
text-transform: none;
|
|
@@ -321,33 +321,33 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
321
321
|
text-rendering: auto;
|
|
322
322
|
-webkit-font-smoothing: antialiased;
|
|
323
323
|
-moz-osx-font-smoothing: grayscale;
|
|
324
|
-
vertical-align: ${
|
|
324
|
+
vertical-align: ${Pe.verticalAlign};
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
i.ft-icon.ft-icon--fluid-topics {
|
|
328
|
-
font-family: ${
|
|
328
|
+
font-family: ${Pe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
329
329
|
|
|
330
330
|
/* Ugly fix because font is broken */
|
|
331
|
-
font-size: calc(0.75 * ${
|
|
332
|
-
line-height: ${
|
|
331
|
+
font-size: calc(0.75 * ${Pe.size});
|
|
332
|
+
line-height: ${Pe.size};
|
|
333
333
|
position: relative;
|
|
334
334
|
top: -4%;
|
|
335
335
|
justify-content: center;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
.ft-icon--file-format {
|
|
339
|
-
font-family: ${
|
|
339
|
+
font-family: ${Pe.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
.ft-icon--material {
|
|
343
|
-
font-family: ${
|
|
343
|
+
font-family: ${Pe.materialFontFamily}, "Material Icons", sans-serif;
|
|
344
344
|
}
|
|
345
|
-
`;var
|
|
345
|
+
`;var Te;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Te||(Te={}));var Me=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class _e extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Te).includes(this.variant)?this.variant:Te.fluid_topics,o=t!==Te.material||!!this.value;return e.html`
|
|
346
346
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
347
347
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
348
348
|
<slot ?hidden=${o}></slot>
|
|
349
349
|
</i>
|
|
350
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case
|
|
350
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case Te.file_format:this.resolvedIcon=null!==(t=Ae[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case Te.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=De[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}_e.elementDefinitions={},_e.styles=je,Me([r.property()],_e.prototype,"variant",void 0),Me([r.property()],_e.prototype,"value",void 0),Me([r.state()],_e.prototype,"resolvedIcon",void 0),Me([r.query("slot")],_e.prototype,"slottedContent",void 0),o.customElement("ft-icon")(_e);const Ye={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Ve=e.css`
|
|
351
351
|
:host {
|
|
352
352
|
line-height: 0;
|
|
353
353
|
}
|
|
@@ -356,8 +356,8 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
356
356
|
display: inline-block;
|
|
357
357
|
position: relative;
|
|
358
358
|
|
|
359
|
-
width: ${
|
|
360
|
-
height: ${
|
|
359
|
+
width: ${Ye.size};
|
|
360
|
+
height: ${Ye.size};
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
.ft-loader div {
|
|
@@ -366,7 +366,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
366
366
|
width: 25%;
|
|
367
367
|
height: 25%;
|
|
368
368
|
border-radius: 50%;
|
|
369
|
-
background: ${
|
|
369
|
+
background: ${Ye.color};
|
|
370
370
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
371
371
|
}
|
|
372
372
|
|
|
@@ -413,10 +413,10 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
413
413
|
transform: translate(0, 0);
|
|
414
414
|
}
|
|
415
415
|
100% {
|
|
416
|
-
transform: translate(calc(0.35 * ${
|
|
416
|
+
transform: translate(calc(0.35 * ${Ye.size}), 0);
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
`,
|
|
419
|
+
`,Xe=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),qe={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:Xe,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",io.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",Xe),verticalPadding:o.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},Je=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),Qe={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:Je,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Je)},tr=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),or=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),er=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),rr=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),ir=[e.css`
|
|
420
420
|
:host {
|
|
421
421
|
display: inline-block;
|
|
422
422
|
max-width: 100%;
|
|
@@ -427,7 +427,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
427
427
|
box-shadow: 0px 0px 0px transparent;
|
|
428
428
|
border: 0px solid transparent;
|
|
429
429
|
text-shadow: 0px 0px 0px transparent;
|
|
430
|
-
font-size: ${
|
|
430
|
+
font-size: ${qe.fontSize};
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
button:hover {
|
|
@@ -456,31 +456,31 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
456
456
|
border: none;
|
|
457
457
|
pointer-events: auto;
|
|
458
458
|
|
|
459
|
-
--ft-button-internal-line-height: max(calc(${
|
|
460
|
-
--ft-button-internal-color: ${
|
|
461
|
-
${o.setVariable(
|
|
462
|
-
${o.setVariable(
|
|
459
|
+
--ft-button-internal-line-height: max(calc(${qe.fontSize} + 2px), ${qe.iconSize});
|
|
460
|
+
--ft-button-internal-color: ${qe.color};
|
|
461
|
+
${o.setVariable(Pe.size,qe.iconSize)};
|
|
462
|
+
${o.setVariable(Ee.color,qe.rippleColor)};
|
|
463
463
|
|
|
464
|
-
border-radius: ${
|
|
465
|
-
padding: ${
|
|
466
|
-
background-color: ${
|
|
464
|
+
border-radius: ${qe.borderRadius};
|
|
465
|
+
padding: ${qe.verticalPadding} ${qe.horizontalPadding};
|
|
466
|
+
background-color: ${qe.backgroundColor};
|
|
467
467
|
color: var(--ft-button-internal-color);
|
|
468
468
|
-webkit-mask-image: radial-gradient(white, black);
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
.ft-button.ft-button--outlined {
|
|
472
472
|
border: 1px solid var(--ft-button-internal-color);
|
|
473
|
-
padding: calc(${
|
|
473
|
+
padding: calc(${qe.verticalPadding} - 1px) calc(${qe.horizontalPadding} - 1px);
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
.ft-button.ft-button--dense {
|
|
477
|
-
padding: ${
|
|
478
|
-
border-radius: ${
|
|
479
|
-
gap: ${
|
|
477
|
+
padding: ${or} ${er};
|
|
478
|
+
border-radius: ${tr};
|
|
479
|
+
gap: ${rr};
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
483
|
-
padding: calc(${
|
|
483
|
+
padding: calc(${or} - 1px) calc(${er} - 1px);
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
.ft-button:not([disabled]):hover {
|
|
@@ -488,22 +488,22 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
.ft-button--round {
|
|
491
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
491
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${qe.verticalPadding});
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
.ft-button--round.ft-button--dense {
|
|
495
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
495
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${or});
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
.ft-button[disabled] {
|
|
499
499
|
filter: grayscale(1);
|
|
500
|
-
opacity: ${
|
|
500
|
+
opacity: ${qe.opacityDisabled};
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
.ft-button.ft-button--primary {
|
|
504
|
-
background-color: ${
|
|
505
|
-
--ft-button-internal-color: ${
|
|
506
|
-
${o.setVariable(
|
|
504
|
+
background-color: ${Qe.backgroundColor};
|
|
505
|
+
--ft-button-internal-color: ${Qe.color};
|
|
506
|
+
${o.setVariable(Ee.color,Qe.rippleColor)};
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
.ft-button:focus {
|
|
@@ -516,13 +516,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
516
516
|
white-space: nowrap;
|
|
517
517
|
text-overflow: ellipsis;
|
|
518
518
|
display: block;
|
|
519
|
-
margin: 0 ${
|
|
519
|
+
margin: 0 ${qe.iconPadding};
|
|
520
520
|
${o.setVariable(io.fontSize,"1em")};
|
|
521
521
|
${o.setVariable(io.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
.ft-button--dense .ft-button--label {
|
|
525
|
-
margin: 0 ${
|
|
525
|
+
margin: 0 ${rr};
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
.ft-button--label[hidden] {
|
|
@@ -535,13 +535,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
.ft-button--label[hidden] + ft-icon {
|
|
538
|
-
margin: 0 calc(${
|
|
539
|
-
padding: 0 ${
|
|
538
|
+
margin: 0 calc(${qe.horizontalPadding} * -1);
|
|
539
|
+
padding: 0 ${qe.verticalPadding};
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
543
|
-
margin: 0 calc(${
|
|
544
|
-
padding: 0 ${
|
|
543
|
+
margin: 0 calc(${er} * -1);
|
|
544
|
+
padding: 0 ${or};
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -550,17 +550,17 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
ft-loader {
|
|
553
|
-
${o.setVariable(
|
|
554
|
-
${o.setVariable(
|
|
553
|
+
${o.setVariable(Ye.size,qe.iconSize)};
|
|
554
|
+
${o.setVariable(Ye.color,"var(--ft-button-internal-color)")};
|
|
555
555
|
}
|
|
556
|
-
`,o.noTextSelect];class
|
|
556
|
+
`,o.noTextSelect];class nr extends o.FtLitElement{render(){return e.html`
|
|
557
557
|
<div class="ft-loader">
|
|
558
558
|
<div></div>
|
|
559
559
|
<div></div>
|
|
560
560
|
<div></div>
|
|
561
561
|
<div></div>
|
|
562
562
|
</div>
|
|
563
|
-
`}}
|
|
563
|
+
`}}nr.styles=Ve,o.customElement("ft-loader")(nr);var ar=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class lr extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!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=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
|
|
564
564
|
<button part="button"
|
|
565
565
|
class="${i.classMap(this.buttonClasses)}"
|
|
566
566
|
aria-label="${this.getLabel()}"
|
|
@@ -583,7 +583,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
583
583
|
</ft-tooltip>
|
|
584
584
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
585
585
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
586
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
586
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}lr.elementDefinitions={"ft-ripple":Ge,"ft-tooltip":ke,"ft-typography":xo,"ft-icon":_e,"ft-loader":nr},ar([r.property({type:String,reflect:!0})],lr.prototype,"role",void 0),ar([r.property()],lr.prototype,"type",void 0),ar([r.property({type:Boolean})],lr.prototype,"disabled",void 0),ar([r.property()],lr.prototype,"label",void 0),ar([r.property()],lr.prototype,"icon",void 0),ar([r.property()],lr.prototype,"iconVariant",void 0),ar([r.property({type:Boolean})],lr.prototype,"trailingIcon",void 0),ar([r.property({type:Boolean})],lr.prototype,"loading",void 0),ar([r.property()],lr.prototype,"tooltipPosition",void 0),ar([r.property({type:Boolean})],lr.prototype,"hideTooltip",void 0),ar([r.property({type:Boolean})],lr.prototype,"forceTooltip",void 0),ar([r.query(".ft-button")],lr.prototype,"button",void 0),ar([r.query(".ft-button--label slot")],lr.prototype,"slottedContent",void 0);var cr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class pr extends lr{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"}}pr.styles=[o.safariEllipsisFix,ir],cr([r.property({type:Boolean})],pr.prototype,"primary",void 0),cr([r.property({type:Boolean})],pr.prototype,"outlined",void 0),cr([r.property({type:Boolean})],pr.prototype,"dense",void 0),cr([r.property({type:Boolean})],pr.prototype,"round",void 0);const sr=[e.css`
|
|
587
587
|
:host {
|
|
588
588
|
display: inline-block;
|
|
589
589
|
max-width: 100%;
|
|
@@ -662,13 +662,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
662
662
|
/** Primary styles **/
|
|
663
663
|
|
|
664
664
|
.ft-button--primary {
|
|
665
|
-
${o.setVariable(
|
|
665
|
+
${o.setVariable(Ye.color,nt.primaryIconColor)};
|
|
666
666
|
|
|
667
|
-
${o.setVariable(
|
|
668
|
-
${o.setVariable(
|
|
669
|
-
${o.setVariable(
|
|
670
|
-
${o.setVariable(
|
|
671
|
-
${o.setVariable(
|
|
667
|
+
${o.setVariable(Ee.color,nt.primaryStateLayerColor)};
|
|
668
|
+
${o.setVariable(Ee.opacityContentOnSurfaceHover,nt.primaryStateLayerOpacityHover)};
|
|
669
|
+
${o.setVariable(Ee.opacityContentOnSurfaceFocused,nt.primaryStateLayerOpacityFocus)};
|
|
670
|
+
${o.setVariable(Ee.opacityContentOnSurfaceSelected,nt.primaryStateLayerOpacityActive)};
|
|
671
|
+
${o.setVariable(Ee.opacityContentOnSurfacePressed,nt.primaryStateLayerOpacityActive)};
|
|
672
672
|
|
|
673
673
|
background-color: ${nt.primaryBackgroundColor};
|
|
674
674
|
color: ${nt.primaryColor};
|
|
@@ -686,13 +686,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
686
686
|
/** Secondary styles **/
|
|
687
687
|
|
|
688
688
|
.ft-button--secondary {
|
|
689
|
-
${o.setVariable(
|
|
689
|
+
${o.setVariable(Ye.color,nt.secondaryIconColor)};
|
|
690
690
|
|
|
691
|
-
${o.setVariable(
|
|
692
|
-
${o.setVariable(
|
|
693
|
-
${o.setVariable(
|
|
694
|
-
${o.setVariable(
|
|
695
|
-
${o.setVariable(
|
|
691
|
+
${o.setVariable(Ee.color,nt.secondaryStateLayerColor)};
|
|
692
|
+
${o.setVariable(Ee.opacityContentOnSurfaceHover,nt.secondaryStateLayerOpacityHover)};
|
|
693
|
+
${o.setVariable(Ee.opacityContentOnSurfaceFocused,nt.secondaryStateLayerOpacityFocus)};
|
|
694
|
+
${o.setVariable(Ee.opacityContentOnSurfaceSelected,nt.secondaryStateLayerOpacityActive)};
|
|
695
|
+
${o.setVariable(Ee.opacityContentOnSurfacePressed,nt.secondaryStateLayerOpacityActive)};
|
|
696
696
|
|
|
697
697
|
background-color: ${nt.secondaryBackgroundColor};
|
|
698
698
|
color: ${nt.secondaryColor};
|
|
@@ -711,13 +711,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
711
711
|
/** Tertiary styles **/
|
|
712
712
|
|
|
713
713
|
.ft-button--tertiary {
|
|
714
|
-
${o.setVariable(
|
|
714
|
+
${o.setVariable(Ye.color,nt.tertiaryIconColor)};
|
|
715
715
|
|
|
716
|
-
${o.setVariable(
|
|
717
|
-
${o.setVariable(
|
|
718
|
-
${o.setVariable(
|
|
719
|
-
${o.setVariable(
|
|
720
|
-
${o.setVariable(
|
|
716
|
+
${o.setVariable(Ee.color,nt.tertiaryStateLayerColor)};
|
|
717
|
+
${o.setVariable(Ee.opacityContentOnSurfaceHover,nt.tertiaryStateLayerOpacityHover)};
|
|
718
|
+
${o.setVariable(Ee.opacityContentOnSurfaceFocused,nt.tertiaryStateLayerOpacityFocus)};
|
|
719
|
+
${o.setVariable(Ee.opacityContentOnSurfaceSelected,nt.tertiaryStateLayerOpacityActive)};
|
|
720
|
+
${o.setVariable(Ee.opacityContentOnSurfacePressed,nt.tertiaryStateLayerOpacityActive)};
|
|
721
721
|
|
|
722
722
|
background-color: ${nt.tertiaryBackgroundColor};
|
|
723
723
|
color: ${nt.tertiaryColor};
|
|
@@ -735,13 +735,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
735
735
|
/** Neutral styles **/
|
|
736
736
|
|
|
737
737
|
.ft-button--neutral {
|
|
738
|
-
${o.setVariable(
|
|
738
|
+
${o.setVariable(Ye.color,nt.neutralIconColor)};
|
|
739
739
|
|
|
740
|
-
${o.setVariable(
|
|
741
|
-
${o.setVariable(
|
|
742
|
-
${o.setVariable(
|
|
743
|
-
${o.setVariable(
|
|
744
|
-
${o.setVariable(
|
|
740
|
+
${o.setVariable(Ee.backgroundColor,nt.neutralStateLayerColor)};
|
|
741
|
+
${o.setVariable(Ee.opacityContentOnSurfaceHover,nt.neutralStateLayerOpacityHover)};
|
|
742
|
+
${o.setVariable(Ee.opacityContentOnSurfaceFocused,nt.neutralStateLayerOpacityFocus)};
|
|
743
|
+
${o.setVariable(Ee.opacityContentOnSurfaceSelected,nt.neutralStateLayerOpacityActive)};
|
|
744
|
+
${o.setVariable(Ee.opacityContentOnSurfacePressed,nt.neutralStateLayerOpacityActive)};
|
|
745
745
|
|
|
746
746
|
background-color: ${nt.neutralBackgroundColor};
|
|
747
747
|
color: ${nt.neutralColor};
|
|
@@ -759,8 +759,8 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
759
759
|
/** Large styles **/
|
|
760
760
|
|
|
761
761
|
.ft-button--large {
|
|
762
|
-
${o.setVariable(
|
|
763
|
-
${o.setVariable(
|
|
762
|
+
${o.setVariable(Pe.size,nt.largeIconSize)};
|
|
763
|
+
${o.setVariable(Ye.size,nt.largeIconSize)};
|
|
764
764
|
|
|
765
765
|
height: ${nt.largeHeight};
|
|
766
766
|
padding: 0 ${nt.largeHorizontalPadding};
|
|
@@ -782,8 +782,8 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
782
782
|
/** Small styles **/
|
|
783
783
|
|
|
784
784
|
.ft-button--small {
|
|
785
|
-
${o.setVariable(
|
|
786
|
-
${o.setVariable(
|
|
785
|
+
${o.setVariable(Pe.size,nt.smallIconSize)};
|
|
786
|
+
${o.setVariable(Ye.size,nt.smallIconSize)};
|
|
787
787
|
|
|
788
788
|
height: ${nt.smallHeight};
|
|
789
789
|
padding: 0 ${nt.smallHorizontalPadding};
|
|
@@ -801,7 +801,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
801
801
|
width: ${nt.smallIconOnlyWidth};
|
|
802
802
|
padding: unset;
|
|
803
803
|
}
|
|
804
|
-
`,o.noTextSelect];var
|
|
804
|
+
`,o.noTextSelect];var fr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class dr extends lr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Q.caption1medium:Q.body2medium}}dr.styles=[o.safariEllipsisFix,sr],fr([r.property({type:Boolean})],dr.prototype,"primary",void 0),fr([r.property({type:Boolean})],dr.prototype,"secondary",void 0),fr([r.property({type:Boolean})],dr.prototype,"tertiary",void 0),fr([r.property({type:Boolean})],dr.prototype,"neutral",void 0),fr([r.property({type:Boolean})],dr.prototype,"small",void 0),o.customElement("ft-button")(pr),o.customElement("ftds-button")(dr);const hr=o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnSurface),gr={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorSurface),color:hr,fontSize:o.FtCssVariableFactory.extend("--ft-chip-font-size","",Dt.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:o.FtCssVariableFactory.extend("--ft-chip-ripple-color","",hr),horizontalPadding:o.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},yr=o.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnPrimary)),ur={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorPrimary)),color:yr,rippleColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",yr)},br=o.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),mr=o.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),xr=[o.noTextSelect,e.css`
|
|
805
805
|
:host {
|
|
806
806
|
display: inline-block;
|
|
807
807
|
max-width: 100%;
|
|
@@ -817,20 +817,20 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
817
817
|
box-sizing: border-box;
|
|
818
818
|
pointer-events: auto;
|
|
819
819
|
|
|
820
|
-
--ft-chip-internal-font-size: ${
|
|
820
|
+
--ft-chip-internal-font-size: ${gr.fontSize};
|
|
821
821
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
822
|
-
${o.setVariable(
|
|
823
|
-
--ft-chip-internal-vertical-padding: ${
|
|
824
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
822
|
+
${o.setVariable(Pe.size,gr.iconSize)};
|
|
823
|
+
--ft-chip-internal-vertical-padding: ${gr.verticalPadding};
|
|
824
|
+
--ft-chip-internal-horizontal-padding: ${gr.horizontalPadding};
|
|
825
825
|
--ft-chip-internal-icon-padding: 3px;
|
|
826
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
826
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${gr.iconSize});
|
|
827
827
|
|
|
828
|
-
border: 1px solid ${
|
|
829
|
-
color: ${
|
|
830
|
-
${o.setVariable(
|
|
828
|
+
border: 1px solid ${gr.colorOutline};
|
|
829
|
+
color: ${gr.color};
|
|
830
|
+
${o.setVariable(Ee.color,gr.rippleColor)};
|
|
831
831
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
832
832
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
833
|
-
background-color: ${
|
|
833
|
+
background-color: ${gr.backgroundColor};
|
|
834
834
|
line-height: var(--ft-chip-internal-content-height);
|
|
835
835
|
}
|
|
836
836
|
|
|
@@ -840,8 +840,8 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
840
840
|
|
|
841
841
|
.ft-chip--dense {
|
|
842
842
|
--ft-chip-internal-icon-padding: 3px;
|
|
843
|
-
--ft-chip-internal-vertical-padding: ${
|
|
844
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
843
|
+
--ft-chip-internal-vertical-padding: ${mr};
|
|
844
|
+
--ft-chip-internal-horizontal-padding: ${br};
|
|
845
845
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
846
846
|
}
|
|
847
847
|
|
|
@@ -853,15 +853,15 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
853
853
|
cursor: default;
|
|
854
854
|
pointer-events: none;
|
|
855
855
|
filter: grayscale(1);
|
|
856
|
-
opacity: ${
|
|
856
|
+
opacity: ${gr.opacityDisabled};
|
|
857
857
|
}
|
|
858
858
|
|
|
859
859
|
.ft-chip--highlighted {
|
|
860
860
|
border: none;
|
|
861
861
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
862
|
-
background-color: ${
|
|
863
|
-
${o.setVariable(
|
|
864
|
-
color: ${
|
|
862
|
+
background-color: ${ur.backgroundColor};
|
|
863
|
+
${o.setVariable(Ee.color,ur.rippleColor)};
|
|
864
|
+
color: ${ur.color};
|
|
865
865
|
}
|
|
866
866
|
|
|
867
867
|
.ft-chip--clickable {
|
|
@@ -891,9 +891,9 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
.ft-chip--icon-button {
|
|
894
|
-
${o.setVariable(
|
|
895
|
-
${o.setVariable(
|
|
896
|
-
${o.setVariable(
|
|
894
|
+
${o.setVariable(qe.iconSize,gr.iconSize)};
|
|
895
|
+
${o.setVariable(qe.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
896
|
+
${o.setVariable(qe.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
897
897
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
898
898
|
}
|
|
899
899
|
|
|
@@ -938,7 +938,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
938
938
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
939
939
|
order: -1;
|
|
940
940
|
}
|
|
941
|
-
`];var
|
|
941
|
+
`];var Or=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class vr extends CustomEvent{constructor(){super("icon-click")}}class Nr extends o.FtLitElement{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":o.isSafari};return e.html`
|
|
942
942
|
<div class="${i.classMap(t)}"
|
|
943
943
|
aria-label="${this.getLabel()}"
|
|
944
944
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -961,7 +961,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
961
961
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
962
962
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
963
963
|
</div>
|
|
964
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
964
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new vr))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new vr))}getLabel(){return this.label||this.textContent}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Nr.elementDefinitions={"ft-ripple":Ge,"ft-typography":xo,"ft-icon":_e,"ft-button":pr},Nr.styles=xr,Or([r.property({type:Boolean})],Nr.prototype,"highlighted",void 0),Or([r.property({type:Boolean})],Nr.prototype,"removable",void 0),Or([r.property({type:Boolean})],Nr.prototype,"disabled",void 0),Or([r.property({type:Boolean})],Nr.prototype,"clickable",void 0),Or([r.property({type:Boolean})],Nr.prototype,"iconClickable",void 0),Or([r.property({type:Boolean})],Nr.prototype,"dense",void 0),Or([r.property({type:Boolean})],Nr.prototype,"multiLine",void 0),Or([r.property()],Nr.prototype,"label",void 0),Or([r.property()],Nr.prototype,"iconLabel",void 0),Or([r.property()],Nr.prototype,"icon",void 0),Or([r.property()],Nr.prototype,"iconVariant",void 0),Or([r.property({type:Boolean})],Nr.prototype,"trailingIcon",void 0),Or([r.query("ft-typography slot")],Nr.prototype,"slottedContent",void 0),o.customElement("ft-chip")(Nr);var Sr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class $r extends f{constructor(){super(...arguments),this.editorMode=!1}render(){return e.html`
|
|
965
965
|
<ft-tooltip text="${this.tooltipText}">
|
|
966
966
|
<ft-chip>
|
|
967
967
|
${this.renderContent()}
|
|
@@ -974,4 +974,4 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
|
|
|
974
974
|
display: none !important;
|
|
975
975
|
}
|
|
976
976
|
</style>
|
|
977
|
-
`}get valueText(){var t,o;return null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==o?o:""}get tooltipText(){var t,o;return this.metadata?`${null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==o?o:this.metadata.key}: ${this.valueText}`:""}}
|
|
977
|
+
`}get valueText(){var t,o;return null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==o?o:""}get tooltipText(){var t,o;return this.metadata?`${null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==o?o:this.metadata.key}: ${this.valueText}`:""}}$r.elementDefinitions={"ft-tooltip":ke,"ft-chip":Nr},$r.styles=a,Sr([r.property(),o.reduxReactive()],$r.prototype,"key",void 0),Sr([r.property({attribute:!1})],$r.prototype,"editorMode",void 0),Sr([o.redux({selector:(t,o)=>{var e,r;return null===(r=null===(e=t.map)||void 0===e?void 0:e.metadata)||void 0===r?void 0:r.find((t=>t.key===o.key))}})],$r.prototype,"metadata",void 0),o.customElement("ft-reader-metadata")($r),t.FtReaderMetadata=$r,t.FtReaderMetadataCssVariables={},t.styles=a}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|