@fluid-topics/ft-floating-menu 0.3.54 → 0.3.55
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-floating-menu.light.js +13 -23
- package/build/ft-floating-menu.min.js +169 -168
- package/package.json +7 -7
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
opacity: ${p.opacityContentOnSurfacePressed};
|
|
132
132
|
transform: translate(-50%, -50%) scale(1);
|
|
133
133
|
}
|
|
134
|
-
`;var y,
|
|
134
|
+
`;var y,v=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class b extends i.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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.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.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
135
135
|
<style>
|
|
136
136
|
.ft-ripple .ft-ripple--effect,
|
|
137
137
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -148,13 +148,13 @@
|
|
|
148
148
|
<div class="ft-ripple--background"></div>
|
|
149
149
|
<div class="ft-ripple--effect"></div>
|
|
150
150
|
</div>
|
|
151
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}v.elementDefinitions={},v.styles=x,b([o.property({type:Boolean})],v.prototype,"primary",void 0),b([o.property({type:Boolean})],v.prototype,"secondary",void 0),b([o.property({type:Boolean})],v.prototype,"unbounded",void 0),b([o.property({type:Boolean})],v.prototype,"activated",void 0),b([o.property({type:Boolean})],v.prototype,"selected",void 0),b([o.property({type:Boolean})],v.prototype,"disabled",void 0),b([o.state()],v.prototype,"hovered",void 0),b([o.state()],v.prototype,"focused",void 0),b([o.state()],v.prototype,"pressed",void 0),b([o.state()],v.prototype,"rippling",void 0),b([o.state()],v.prototype,"rippleSize",void 0),b([o.state()],v.prototype,"originX",void 0),b([o.state()],v.prototype,"originY",void 0),b([o.query(".ft-ripple")],v.prototype,"ripple",void 0),b([o.query(".ft-ripple--effect")],v.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(v);const m=window,$=m.trustedTypes,w=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,k=`lit$${(Math.random()+"").slice(9)}$`,z="?"+k,S=`<${z}>`,C=document,O=(t="")=>C.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,T=/>/g,A=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),B=/'/g,_=/"/g,F=/^(?:script|style|textarea|title)$/i,U=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),M=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),D=new WeakMap,Z=C.createTreeWalker(C,129,null,!1),W=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=E;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,f=0;for(;f<e.length&&(r.lastIndex=f,a=r.exec(e),null!==a);)f=r.lastIndex,r===E?"!--"===a[1]?r=I:void 0!==a[1]?r=T:void 0!==a[2]?(F.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=A):void 0!==a[3]&&(r=A):r===A?">"===a[0]?(r=null!=n?n:E,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?A:'"'===a[3]?_:B):r===_||r===B?r=A:r===I||r===T?r=E:(r=A,n=void 0);const h=r===A&&t[i+1].startsWith("/>")?" ":"";s+=r===E?e+S:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+k+h):e+k+(-2===p?(o.push(void 0),i):h)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(l):l,o]};class H{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=W(t,i);if(this.el=H.createElement(a,e),Z.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Z.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(k)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(k),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?X:"@"===i[1]?Y:P})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split(k),i=t.length-1;if(i>0){o.textContent=$?$.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],O()),Z.nextNode(),l.push({type:2,index:++n});o.append(t[i],O())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(k,t+1));)l.push({type:7,index:n}),t+=k.length-1}n++}}static createElement(t,i){const e=C.createElement("template");return e.innerHTML=t,e}}function K(t,i,e=t,o){var n,s,r,l;if(i===M)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=j(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=K(t,a._$AS(t,i.values),a,o)),i}class G{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:C).importNode(e,!0);Z.currentNode=n;let s=Z.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new L(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new J(s,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=Z.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class L{constructor(t,i,e,o){var n;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=K(this,t,i),j(t)?t===R||null==t||""===t?(this._$AH!==R&&this._$AR(),this._$AH=R):t!==this._$AH&&t!==M&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>N(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==R&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(C.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=H.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new G(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=D.get(t.strings);return void 0===i&&D.set(t.strings,i=new H(t)),i}k(t){N(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new L(this.O(O()),this.O(O()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class P{constructor(t,i,e,o,n){this.type=1,this._$AH=R,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=K(this,t,i,0),s=!j(t)||t!==this._$AH&&t!==M,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=K(this,o[e+r],i,r),l===M&&(l=this._$AH[r]),s||(s=!j(l)||l!==this._$AH[r]),l===R?t=R:t!==R&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===R?void 0:t}}const q=$?$.emptyScript:"";class X extends P{constructor(){super(...arguments),this.type=4}j(t){t&&t!==R?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Y extends P{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=K(this,t,i,0))&&void 0!==e?e:R)===M)return;const o=this._$AH,n=t===R&&o!==R||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==R&&(o===R||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const Q=m.litHtmlPolyfillSupport;null==Q||Q(H,L),(null!==(y=m.litHtmlVersions)&&void 0!==y?y:m.litHtmlVersions=[]).push("2.4.0");
|
|
151
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}b.elementDefinitions={},b.styles=x,v([o.property({type:Boolean})],b.prototype,"primary",void 0),v([o.property({type:Boolean})],b.prototype,"secondary",void 0),v([o.property({type:Boolean})],b.prototype,"unbounded",void 0),v([o.property({type:Boolean})],b.prototype,"activated",void 0),v([o.property({type:Boolean})],b.prototype,"selected",void 0),v([o.property({type:Boolean})],b.prototype,"disabled",void 0),v([o.state()],b.prototype,"hovered",void 0),v([o.state()],b.prototype,"focused",void 0),v([o.state()],b.prototype,"pressed",void 0),v([o.state()],b.prototype,"rippling",void 0),v([o.state()],b.prototype,"rippleSize",void 0),v([o.state()],b.prototype,"originX",void 0),v([o.state()],b.prototype,"originY",void 0),v([o.query(".ft-ripple")],b.prototype,"ripple",void 0),v([o.query(".ft-ripple--effect")],b.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(b);const m=window,$=m.trustedTypes,w=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,k=`lit$${(Math.random()+"").slice(9)}$`,z="?"+k,S=`<${z}>`,C=document,O=(t="")=>C.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,T=/>/g,A=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),B=/'/g,_=/"/g,F=/^(?:script|style|textarea|title)$/i,U=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),M=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),D=new WeakMap,Z=C.createTreeWalker(C,129,null,!1),W=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=E;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,f=0;for(;f<e.length&&(r.lastIndex=f,a=r.exec(e),null!==a);)f=r.lastIndex,r===E?"!--"===a[1]?r=I:void 0!==a[1]?r=T:void 0!==a[2]?(F.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=A):void 0!==a[3]&&(r=A):r===A?">"===a[0]?(r=null!=n?n:E,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?A:'"'===a[3]?_:B):r===_||r===B?r=A:r===I||r===T?r=E:(r=A,n=void 0);const h=r===A&&t[i+1].startsWith("/>")?" ":"";s+=r===E?e+S:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+k+h):e+k+(-2===p?(o.push(void 0),i):h)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(l):l,o]};class H{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=W(t,i);if(this.el=H.createElement(a,e),Z.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Z.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(k)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(k),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?X:"@"===i[1]?Y:P})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split(k),i=t.length-1;if(i>0){o.textContent=$?$.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],O()),Z.nextNode(),l.push({type:2,index:++n});o.append(t[i],O())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(k,t+1));)l.push({type:7,index:n}),t+=k.length-1}n++}}static createElement(t,i){const e=C.createElement("template");return e.innerHTML=t,e}}function K(t,i,e=t,o){var n,s,r,l;if(i===M)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=j(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=K(t,a._$AS(t,i.values),a,o)),i}class G{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:C).importNode(e,!0);Z.currentNode=n;let s=Z.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new L(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new J(s,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=Z.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class L{constructor(t,i,e,o){var n;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=K(this,t,i),j(t)?t===R||null==t||""===t?(this._$AH!==R&&this._$AR(),this._$AH=R):t!==this._$AH&&t!==M&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>N(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==R&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(C.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=H.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new G(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=D.get(t.strings);return void 0===i&&D.set(t.strings,i=new H(t)),i}k(t){N(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new L(this.O(O()),this.O(O()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class P{constructor(t,i,e,o,n){this.type=1,this._$AH=R,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=K(this,t,i,0),s=!j(t)||t!==this._$AH&&t!==M,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=K(this,o[e+r],i,r),l===M&&(l=this._$AH[r]),s||(s=!j(l)||l!==this._$AH[r]),l===R?t=R:t!==R&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===R?void 0:t}}const q=$?$.emptyScript:"";class X extends P{constructor(){super(...arguments),this.type=4}j(t){t&&t!==R?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Y extends P{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=K(this,t,i,0))&&void 0!==e?e:R)===M)return;const o=this._$AH,n=t===R&&o!==R||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==R&&(o===R||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const Q=m.litHtmlPolyfillSupport;null==Q||Q(H,L),(null!==(y=m.litHtmlVersions)&&void 0!==y?y:m.litHtmlVersions=[]).push("2.4.0");
|
|
152
152
|
/**
|
|
153
153
|
* @license
|
|
154
154
|
* Copyright 2020 Google LLC
|
|
155
155
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
156
156
|
*/
|
|
157
|
-
const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void 0:t._$litStatic$},et=t=>({_$litStatic$:t,r:tt}),ot=new Map,nt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,f=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=it(s));)a+=n+i[++p],f=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),f){const t=r.join("$$lit$$");void 0===(i=ot.get(t))&&(r.raw=r,ot.set(t,i=r)),e=l}return t(i,...e)})(U);var st;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(st||(st={}));const rt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),at={fontFamily:lt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",rt),ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",at.fontSize,"20px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",at.fontWeight,"normal"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",at.letterSpacing,"0.15px"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",at.lineHeight,"1.2"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",at.textTransform,"inherit"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",rt),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",at.fontSize,"14px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",at.fontWeight,"normal"),
|
|
157
|
+
const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void 0:t._$litStatic$},et=t=>({_$litStatic$:t,r:tt}),ot=new Map,nt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,f=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=it(s));)a+=n+i[++p],f=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),f){const t=r.join("$$lit$$");void 0===(i=ot.get(t))&&(r.raw=r,ot.set(t,i=r)),e=l}return t(i,...e)})(U);var st;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(st||(st={}));const rt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),at={fontFamily:lt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",rt),ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",at.fontSize,"20px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",at.fontWeight,"normal"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",at.letterSpacing,"0.15px"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",at.lineHeight,"1.2"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",at.textTransform,"inherit"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",rt),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",at.fontSize,"14px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",at.fontWeight,"normal"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",at.letterSpacing,"0.105px"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",at.lineHeight,"1.7"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",at.textTransform,"inherit"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",lt),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",at.fontSize,"16px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",at.fontWeight,"600"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",at.letterSpacing,"0.144px"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",at.lineHeight,"1.5"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",at.textTransform,"inherit"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",lt),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",at.fontSize,"14px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",at.fontWeight,"normal"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",at.letterSpacing,"0.098px"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",at.lineHeight,"1.7"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",at.textTransform,"inherit"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",lt),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",at.fontSize,"16px"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",at.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",at.letterSpacing,"0.496px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",at.lineHeight,"1.5"),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",at.textTransform,"inherit"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",lt),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",at.fontSize,"14px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",at.fontWeight,"normal"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",at.letterSpacing,"0.252px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",at.lineHeight,"1.4"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",at.textTransform,"inherit"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",lt),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",at.fontSize,"12px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",at.fontWeight,"normal"),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",at.letterSpacing,"0.396px"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",at.lineHeight,"1.33"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",at.textTransform,"inherit"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",lt),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",at.fontSize,"10px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",at.fontWeight,"normal"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",at.letterSpacing,"0.33px"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",at.lineHeight,"1.6"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",at.textTransform,"inherit"),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",lt),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",at.fontSize,"10px"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",at.fontWeight,"normal"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",at.letterSpacing,"1.5px"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",at.lineHeight,"1.6"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",at.textTransform,"uppercase"),pi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",at.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",at.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",at.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",at.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",at.textTransform,"uppercase")},fi=e.css`
|
|
158
158
|
.ft-typography--title {
|
|
159
159
|
font-family: ${pt};
|
|
160
160
|
font-size: ${ft};
|
|
@@ -168,8 +168,8 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
168
168
|
font-family: ${gt};
|
|
169
169
|
font-size: ${xt};
|
|
170
170
|
font-weight: ${yt};
|
|
171
|
-
letter-spacing: ${
|
|
172
|
-
line-height: ${
|
|
171
|
+
letter-spacing: ${vt};
|
|
172
|
+
line-height: ${bt};
|
|
173
173
|
text-transform: ${mt};
|
|
174
174
|
}
|
|
175
175
|
`,di=e.css`
|
|
@@ -227,7 +227,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
227
227
|
line-height: ${ii};
|
|
228
228
|
text-transform: ${ei};
|
|
229
229
|
}
|
|
230
|
-
`,
|
|
230
|
+
`,vi=e.css`
|
|
231
231
|
.ft-typography--overline {
|
|
232
232
|
font-family: ${oi};
|
|
233
233
|
font-size: ${ni};
|
|
@@ -236,7 +236,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
236
236
|
line-height: ${li};
|
|
237
237
|
text-transform: ${ai};
|
|
238
238
|
}
|
|
239
|
-
`,
|
|
239
|
+
`,bi=e.css`
|
|
240
240
|
.ft-typography--button {
|
|
241
241
|
font-family: ${pi.fontFamily};
|
|
242
242
|
font-size: ${pi.fontSize};
|
|
@@ -256,7 +256,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
256
256
|
</${et(this.element)}>
|
|
257
257
|
`:nt`
|
|
258
258
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
259
|
-
`}}wi.styles=[fi,hi,di,ci,ui,gi,xi,yi,bi,
|
|
259
|
+
`}}wi.styles=[fi,hi,di,ci,ui,gi,xi,yi,vi,bi,mi],$i([o.property()],wi.prototype,"element",void 0),$i([o.property()],wi.prototype,"variant",void 0),i.customElement("ft-typography")(wi);const ki=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),zi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Si=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Ci=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Oi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),ji=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ni=e.css`
|
|
260
260
|
.ft-tooltip--container {
|
|
261
261
|
display: block;
|
|
262
262
|
position: relative;
|
|
@@ -533,17 +533,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
533
533
|
${i.setVariable(pi.fontSize,"1em")};
|
|
534
534
|
${i.setVariable(pi.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
535
535
|
}
|
|
536
|
-
|
|
537
|
-
.ft-button--safari-fix .ft-button--label {
|
|
538
|
-
margin-right: 0;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
.ft-button--safari-fix .ft-button--label:after {
|
|
542
|
-
content: "\\0000a0";
|
|
543
|
-
display: inline-block;
|
|
544
|
-
width: 0;
|
|
545
|
-
}
|
|
546
|
-
|
|
536
|
+
|
|
547
537
|
.ft-button--label[hidden] {
|
|
548
538
|
display: none;
|
|
549
539
|
}
|
|
@@ -567,7 +557,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
567
557
|
${i.setVariable(Ti.size,Hi.iconSize)};
|
|
568
558
|
${i.setVariable(Ti.color,"var(--ft-button-internal-color)")};
|
|
569
559
|
}
|
|
570
|
-
`];var Vi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class qi extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ri.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-
|
|
560
|
+
`];var Vi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class qi extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ri.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
|
|
571
561
|
<button part="button"
|
|
572
562
|
class="${n.classMap(t)}"
|
|
573
563
|
aria-label="${this.getLabel()}"
|
|
@@ -576,7 +566,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
576
566
|
<ft-typography part="label"
|
|
577
567
|
variant="button"
|
|
578
568
|
element="span"
|
|
579
|
-
class="ft-button--label"
|
|
569
|
+
class="ft-button--label ${i.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
580
570
|
?hidden=${!this.hasTextContent()}>
|
|
581
571
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
582
572
|
</ft-typography>
|
|
@@ -590,7 +580,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
590
580
|
</ft-tooltip>
|
|
591
581
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
592
582
|
<ft-loader></ft-loader> `:this.icon?e.html`
|
|
593
|
-
<ft-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}}qi.elementDefinitions={"ft-ripple":
|
|
583
|
+
<ft-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}}qi.elementDefinitions={"ft-ripple":b,"ft-tooltip":Ii,"ft-typography":wi,"ft-icon":Zi,"ft-loader":Bi},qi.styles=[i.safariEllipsisFix,Pi],Vi([o.property({type:Boolean})],qi.prototype,"primary",void 0),Vi([o.property({type:Boolean})],qi.prototype,"outlined",void 0),Vi([o.property({type:Boolean})],qi.prototype,"disabled",void 0),Vi([o.property({type:Boolean})],qi.prototype,"dense",void 0),Vi([o.property({type:Boolean})],qi.prototype,"round",void 0),Vi([o.property({type:String})],qi.prototype,"label",void 0),Vi([o.property({type:String})],qi.prototype,"icon",void 0),Vi([o.property({type:String})],qi.prototype,"iconVariant",void 0),Vi([o.property({type:Boolean})],qi.prototype,"trailingIcon",void 0),Vi([o.property({type:Boolean})],qi.prototype,"loading",void 0),Vi([o.property({type:String})],qi.prototype,"tooltipPosition",void 0),Vi([o.property({type:Boolean})],qi.prototype,"hideTooltip",void 0),Vi([o.property({type:Boolean})],qi.prototype,"forceTooltip",void 0),Vi([o.query(".ft-button")],qi.prototype,"button",void 0),Vi([o.query(".ft-button--label slot")],qi.prototype,"slottedContent",void 0),i.customElement("ft-button")(qi);const Xi={iconColor:i.FtCssVariableFactory.extend("--ft-floating-menu-icon-color",i.designSystemVariables.colorOnSurfaceMedium)},Yi=e.css`
|
|
594
584
|
.ft-floating-menu-item {
|
|
595
585
|
cursor: pointer;
|
|
596
586
|
display: flex;
|
|
@@ -631,7 +621,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
631
621
|
<slot></slot>
|
|
632
622
|
</ft-typography>
|
|
633
623
|
</div>
|
|
634
|
-
`}onClick(t){this.dispatchEvent(new Qi(this.value))}}te.elementDefinitions={"ft-icon":Zi,"ft-ripple":
|
|
624
|
+
`}onClick(t){this.dispatchEvent(new Qi(this.value))}}te.elementDefinitions={"ft-icon":Zi,"ft-ripple":b,"ft-typography":wi},te.styles=Yi,Ji([o.property()],te.prototype,"iconVariant",void 0),Ji([o.property()],te.prototype,"icon",void 0),Ji([o.property()],te.prototype,"value",void 0);var ie=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ee extends i.FtLitElement{constructor(){super(...arguments),this.menuOpen=!1,this.iconVariant=Ri.fluid_topics,this.icon="SHORTCUT_MENU",this.disabled=!1,this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){var t,i;const o={"ft-floating-menu":!0,"ft-floating-menu--open":this.menuOpen,["ft-floating-menu--"+(null!==(t=this.horizontalAlignment)&&void 0!==t?t:"left").toLowerCase()]:!0,["ft-floating-menu--"+(null!==(i=this.verticalAlignment)&&void 0!==i?i:"bottom").toLowerCase()]:!0};return e.html`
|
|
635
625
|
<div class="${n.classMap(o)}">
|
|
636
626
|
<ft-button id="actions-button"
|
|
637
627
|
part="button"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let p=e.call(o,t);p||(p=c(t),i.call(o,t,p)),this===window.customElements&&(r.set(n,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let i=t.getRootNode();if(!h(i)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},c=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=p(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):s.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,n),e.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let y=[document];const x=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){y.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const b=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){y.push(this),e.set.call(this,t),y.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let p=e.call(o,t);p||(p=c(t),i.call(o,t,p)),this===window.customElements&&(r.set(n,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let i=t.getRootNode();if(!h(i)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},c=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=p(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):s.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,n),e.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let y=[document];const x=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){y.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const b=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){y.push(this),e.set.call(this,t),y.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(Oe){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -81,7 +81,7 @@ var ht,pt;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
81
81
|
-ms-user-select: none;
|
|
82
82
|
user-select: none;
|
|
83
83
|
}
|
|
84
|
-
`;
|
|
84
|
+
`;y`
|
|
85
85
|
.ft-word-wrap {
|
|
86
86
|
white-space: normal;
|
|
87
87
|
word-wrap: break-word;
|
|
@@ -93,9 +93,20 @@ var ht,pt;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
93
93
|
-webkit-hyphens: auto;
|
|
94
94
|
hyphens: auto
|
|
95
95
|
}
|
|
96
|
-
`;const
|
|
96
|
+
`;const gt=y`
|
|
97
|
+
.ft-safari-ellipsis-fix {
|
|
98
|
+
margin-right: 0;
|
|
99
|
+
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ft-safari-ellipsis-fix:after {
|
|
103
|
+
content: "\\0000a0";
|
|
104
|
+
display: inline-block;
|
|
105
|
+
width: 0;
|
|
106
|
+
}
|
|
107
|
+
`;var mt,wt,$t;const Ot=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==($t=null===(wt=null===(mt=window.safari)||void 0===mt?void 0:mt.pushNotification)||void 0===wt?void 0:wt.toString())&&void 0!==$t?$t:""),kt={zIndex:dt.create("--ft-floating-menu-z-index","NUMBER","8"),maxWidth:dt.create("--ft-floating-menu-max-width","SIZE","300px"),maxHeight:dt.create("--ft-floating-menu-max-height","SIZE","500px"),textColor:dt.extend("--ft-floating-menu-text-color",vt.colorOnSurfaceHigh),colorSurface:dt.external(vt.colorSurface,"Design system"),menuElevation:dt.external(vt.elevation02,"Design system"),borderRadiusS:dt.external(vt.borderRadiusS,"Design system")},St=y`
|
|
97
108
|
.ft-floating-menu {
|
|
98
|
-
color: ${
|
|
109
|
+
color: ${kt.textColor};
|
|
99
110
|
position: relative;
|
|
100
111
|
display: inline-block;
|
|
101
112
|
}
|
|
@@ -104,13 +115,13 @@ var ht,pt;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
104
115
|
display: none;
|
|
105
116
|
position: absolute;
|
|
106
117
|
overflow: auto;
|
|
107
|
-
max-width: ${
|
|
108
|
-
max-height: ${
|
|
109
|
-
box-shadow: ${
|
|
110
|
-
background-color: ${
|
|
111
|
-
border-radius: ${
|
|
112
|
-
color: ${
|
|
113
|
-
z-index: ${
|
|
118
|
+
max-width: ${kt.maxWidth};
|
|
119
|
+
max-height: ${kt.maxHeight};
|
|
120
|
+
box-shadow: ${kt.menuElevation};
|
|
121
|
+
background-color: ${kt.colorSurface};
|
|
122
|
+
border-radius: ${kt.borderRadiusS};
|
|
123
|
+
color: ${kt.textColor};
|
|
124
|
+
z-index: ${kt.zIndex};
|
|
114
125
|
}
|
|
115
126
|
|
|
116
127
|
.ft-floating-menu--open .ft-floating-menu--options {
|
|
@@ -142,12 +153,12 @@ var ht,pt;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
142
153
|
* @license
|
|
143
154
|
* Copyright 2017 Google LLC
|
|
144
155
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
145
|
-
*/,
|
|
156
|
+
*/,Ct=1,Nt=2,Et=t=>(...i)=>({_$litDirective$:t,values:i});class Rt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
|
|
146
157
|
/**
|
|
147
158
|
* @license
|
|
148
159
|
* Copyright 2018 Google LLC
|
|
149
160
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
150
|
-
*/const
|
|
161
|
+
*/const Mt=Et(class extends Rt{constructor(t){var i;if(super(t),t.type!==Ct||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const n=t.element.classList;this.nt.forEach((t=>{t in i||(n.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return V}}),zt=dt.extend("--ft-ripple-color",vt.colorContent),Ut={color:zt,backgroundColor:dt.extend("--ft-ripple-background-color",zt),opacityContentOnSurfacePressed:dt.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(vt.opacityContentOnSurfaceSelected,"Design system")},Ft=dt.extend("--ft-ripple-color",vt.colorPrimary),jt=Ft,Bt=dt.extend("--ft-ripple-background-color",Ft),At=dt.extend("--ft-ripple-color",vt.colorSecondary),Tt=At,Lt=dt.extend("--ft-ripple-background-color",At),Pt=y`
|
|
151
162
|
:host {
|
|
152
163
|
display: contents;
|
|
153
164
|
}
|
|
@@ -169,27 +180,27 @@ var ht,pt;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
169
180
|
}
|
|
170
181
|
|
|
171
182
|
.ft-ripple .ft-ripple--background {
|
|
172
|
-
background-color: ${
|
|
183
|
+
background-color: ${Ut.backgroundColor};
|
|
173
184
|
}
|
|
174
185
|
|
|
175
186
|
.ft-ripple .ft-ripple--effect {
|
|
176
|
-
background-color: ${
|
|
187
|
+
background-color: ${Ut.color};
|
|
177
188
|
}
|
|
178
189
|
|
|
179
190
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
180
|
-
background-color: ${
|
|
191
|
+
background-color: ${Lt};
|
|
181
192
|
}
|
|
182
193
|
|
|
183
194
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
184
|
-
background-color: ${
|
|
195
|
+
background-color: ${Tt};
|
|
185
196
|
}
|
|
186
197
|
|
|
187
198
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
188
|
-
background-color: ${
|
|
199
|
+
background-color: ${Bt};
|
|
189
200
|
}
|
|
190
201
|
|
|
191
202
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
192
|
-
background-color: ${
|
|
203
|
+
background-color: ${jt};
|
|
193
204
|
}
|
|
194
205
|
|
|
195
206
|
.ft-ripple .ft-ripple--background {
|
|
@@ -221,22 +232,22 @@ var ht,pt;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
221
232
|
}
|
|
222
233
|
|
|
223
234
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
224
|
-
opacity: ${
|
|
235
|
+
opacity: ${Ut.opacityContentOnSurfaceHover};
|
|
225
236
|
}
|
|
226
237
|
|
|
227
238
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
228
|
-
opacity: ${
|
|
239
|
+
opacity: ${Ut.opacityContentOnSurfaceSelected};
|
|
229
240
|
}
|
|
230
241
|
|
|
231
242
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
232
|
-
opacity: ${
|
|
243
|
+
opacity: ${Ut.opacityContentOnSurfaceFocused};
|
|
233
244
|
}
|
|
234
245
|
|
|
235
246
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
236
|
-
opacity: ${
|
|
247
|
+
opacity: ${Ut.opacityContentOnSurfacePressed};
|
|
237
248
|
transform: translate(-50%, -50%) scale(1);
|
|
238
249
|
}
|
|
239
|
-
`;var
|
|
250
|
+
`;var _t=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Dt extends xt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Z`
|
|
240
251
|
<style>
|
|
241
252
|
.ft-ripple .ft-ripple--effect,
|
|
242
253
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -249,119 +260,119 @@ var ht,pt;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
249
260
|
top: ${this.originY}px;
|
|
250
261
|
}
|
|
251
262
|
</style>
|
|
252
|
-
<div class="${
|
|
263
|
+
<div class="${Mt(t)}">
|
|
253
264
|
<div class="ft-ripple--background"></div>
|
|
254
265
|
<div class="ft-ripple--effect"></div>
|
|
255
266
|
</div>
|
|
256
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
|
|
267
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Dt.elementDefinitions={},Dt.styles=Pt,_t([o({type:Boolean})],Dt.prototype,"primary",void 0),_t([o({type:Boolean})],Dt.prototype,"secondary",void 0),_t([o({type:Boolean})],Dt.prototype,"unbounded",void 0),_t([o({type:Boolean})],Dt.prototype,"activated",void 0),_t([o({type:Boolean})],Dt.prototype,"selected",void 0),_t([o({type:Boolean})],Dt.prototype,"disabled",void 0),_t([n()],Dt.prototype,"hovered",void 0),_t([n()],Dt.prototype,"focused",void 0),_t([n()],Dt.prototype,"pressed",void 0),_t([n()],Dt.prototype,"rippling",void 0),_t([n()],Dt.prototype,"rippleSize",void 0),_t([n()],Dt.prototype,"originX",void 0),_t([n()],Dt.prototype,"originY",void 0),_t([r(".ft-ripple")],Dt.prototype,"ripple",void 0),_t([r(".ft-ripple--effect")],Dt.prototype,"rippleEffect",void 0),h("ft-ripple")(Dt);
|
|
257
268
|
/**
|
|
258
269
|
* @license
|
|
259
270
|
* Copyright 2020 Google LLC
|
|
260
271
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
261
272
|
*/
|
|
262
|
-
const
|
|
273
|
+
const It=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===It)return null==t?void 0:t._$litStatic$},Ht=t=>({_$litStatic$:t,r:It}),Kt=new Map,Zt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=Wt(s));)l+=n+i[++h],p=!0;a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=Kt.get(t))&&(r.raw=r,Kt.set(t,i=r)),e=a}return t(i,...e)})(Z);var Vt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Vt||(Vt={}));const Jt=dt.extend("--ft-typography-font-family",vt.titleFont),qt=dt.extend("--ft-typography-font-family",vt.contentFont),Xt={fontFamily:qt,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Yt=dt.extend("--ft-typography-title-font-family",Jt),Gt=dt.extend("--ft-typography-title-font-size",Xt.fontSize,"20px"),Qt=dt.extend("--ft-typography-title-font-weight",Xt.fontWeight,"normal"),ti=dt.extend("--ft-typography-title-letter-spacing",Xt.letterSpacing,"0.15px"),ii=dt.extend("--ft-typography-title-line-height",Xt.lineHeight,"1.2"),ei=dt.extend("--ft-typography-title-text-transform",Xt.textTransform,"inherit"),oi=dt.extend("--ft-typography-title-dense-font-family",Jt),ni=dt.extend("--ft-typography-title-dense-font-size",Xt.fontSize,"14px"),si=dt.extend("--ft-typography-title-dense-font-weight",Xt.fontWeight,"normal"),ri=dt.extend("--ft-typography-title-dense-letter-spacing",Xt.letterSpacing,"0.105px"),ai=dt.extend("--ft-typography-title-dense-line-height",Xt.lineHeight,"1.7"),li=dt.extend("--ft-typography-title-dense-text-transform",Xt.textTransform,"inherit"),hi=dt.extend("--ft-typography-subtitle1-font-family",qt),pi=dt.extend("--ft-typography-subtitle1-font-size",Xt.fontSize,"16px"),ci=dt.extend("--ft-typography-subtitle1-font-weight",Xt.fontWeight,"600"),fi=dt.extend("--ft-typography-subtitle1-letter-spacing",Xt.letterSpacing,"0.144px"),di=dt.extend("--ft-typography-subtitle1-line-height",Xt.lineHeight,"1.5"),ui=dt.extend("--ft-typography-subtitle1-text-transform",Xt.textTransform,"inherit"),vi=dt.extend("--ft-typography-subtitle2-font-family",qt),yi=dt.extend("--ft-typography-subtitle2-font-size",Xt.fontSize,"14px"),xi=dt.extend("--ft-typography-subtitle2-font-weight",Xt.fontWeight,"normal"),bi=dt.extend("--ft-typography-subtitle2-letter-spacing",Xt.letterSpacing,"0.098px"),gi=dt.extend("--ft-typography-subtitle2-line-height",Xt.lineHeight,"1.7"),mi=dt.extend("--ft-typography-subtitle2-text-transform",Xt.textTransform,"inherit"),wi=dt.extend("--ft-typography-body1-font-family",qt),$i=dt.extend("--ft-typography-body1-font-size",Xt.fontSize,"16px"),Oi=dt.extend("--ft-typography-body1-font-weight",Xt.fontWeight,"normal"),ki=dt.extend("--ft-typography-body1-letter-spacing",Xt.letterSpacing,"0.496px"),Si=dt.extend("--ft-typography-body1-line-height",Xt.lineHeight,"1.5"),Ci=dt.extend("--ft-typography-body1-text-transform",Xt.textTransform,"inherit"),Ni=dt.extend("--ft-typography-body2-font-family",qt),Ei=dt.extend("--ft-typography-body2-font-size",Xt.fontSize,"14px"),Ri=dt.extend("--ft-typography-body2-font-weight",Xt.fontWeight,"normal"),Mi=dt.extend("--ft-typography-body2-letter-spacing",Xt.letterSpacing,"0.252px"),zi=dt.extend("--ft-typography-body2-line-height",Xt.lineHeight,"1.4"),Ui=dt.extend("--ft-typography-body2-text-transform",Xt.textTransform,"inherit"),Fi=dt.extend("--ft-typography-caption-font-family",qt),ji=dt.extend("--ft-typography-caption-font-size",Xt.fontSize,"12px"),Bi=dt.extend("--ft-typography-caption-font-weight",Xt.fontWeight,"normal"),Ai=dt.extend("--ft-typography-caption-letter-spacing",Xt.letterSpacing,"0.396px"),Ti=dt.extend("--ft-typography-caption-line-height",Xt.lineHeight,"1.33"),Li=dt.extend("--ft-typography-caption-text-transform",Xt.textTransform,"inherit"),Pi=dt.extend("--ft-typography-breadcrumb-font-family",qt),_i=dt.extend("--ft-typography-breadcrumb-font-size",Xt.fontSize,"10px"),Di=dt.extend("--ft-typography-breadcrumb-font-weight",Xt.fontWeight,"normal"),Ii=dt.extend("--ft-typography-breadcrumb-letter-spacing",Xt.letterSpacing,"0.33px"),Wi=dt.extend("--ft-typography-breadcrumb-line-height",Xt.lineHeight,"1.6"),Hi=dt.extend("--ft-typography-breadcrumb-text-transform",Xt.textTransform,"inherit"),Ki=dt.extend("--ft-typography-overline-font-family",qt),Zi=dt.extend("--ft-typography-overline-font-size",Xt.fontSize,"10px"),Vi=dt.extend("--ft-typography-overline-font-weight",Xt.fontWeight,"normal"),Ji=dt.extend("--ft-typography-overline-letter-spacing",Xt.letterSpacing,"1.5px"),qi=dt.extend("--ft-typography-overline-line-height",Xt.lineHeight,"1.6"),Xi=dt.extend("--ft-typography-overline-text-transform",Xt.textTransform,"uppercase"),Yi={fontFamily:dt.extend("--ft-typography-button-font-family",qt),fontSize:dt.extend("--ft-typography-button-font-size",Xt.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-button-font-weight",Xt.fontWeight,"600"),letterSpacing:dt.extend("--ft-typography-button-letter-spacing",Xt.letterSpacing,"1.246px"),lineHeight:dt.extend("--ft-typography-button-line-height",Xt.lineHeight,"1.15"),textTransform:dt.extend("--ft-typography-button-text-transform",Xt.textTransform,"uppercase")},Gi=y`
|
|
263
274
|
.ft-typography--title {
|
|
264
|
-
font-family: ${
|
|
265
|
-
font-size: ${
|
|
266
|
-
font-weight: ${
|
|
267
|
-
letter-spacing: ${
|
|
268
|
-
line-height: ${
|
|
269
|
-
text-transform: ${
|
|
270
|
-
}
|
|
271
|
-
`,Gi=y`
|
|
272
|
-
.ft-typography--title-dense {
|
|
273
|
-
font-family: ${ei};
|
|
274
|
-
font-size: ${oi};
|
|
275
|
-
font-weight: ${ni};
|
|
276
|
-
letter-spacing: ${si};
|
|
277
|
-
line-height: ${ri};
|
|
278
|
-
text-transform: ${ai};
|
|
275
|
+
font-family: ${Yt};
|
|
276
|
+
font-size: ${Gt};
|
|
277
|
+
font-weight: ${Qt};
|
|
278
|
+
letter-spacing: ${ti};
|
|
279
|
+
line-height: ${ii};
|
|
280
|
+
text-transform: ${ei};
|
|
279
281
|
}
|
|
280
282
|
`,Qi=y`
|
|
281
|
-
.ft-typography--
|
|
282
|
-
font-family: ${
|
|
283
|
-
font-size: ${
|
|
284
|
-
font-weight: ${
|
|
285
|
-
letter-spacing: ${
|
|
286
|
-
line-height: ${
|
|
287
|
-
text-transform: ${
|
|
283
|
+
.ft-typography--title-dense {
|
|
284
|
+
font-family: ${oi};
|
|
285
|
+
font-size: ${ni};
|
|
286
|
+
font-weight: ${si};
|
|
287
|
+
letter-spacing: ${ri};
|
|
288
|
+
line-height: ${ai};
|
|
289
|
+
text-transform: ${li};
|
|
288
290
|
}
|
|
289
291
|
`,te=y`
|
|
290
|
-
.ft-typography--
|
|
291
|
-
font-family: ${
|
|
292
|
-
font-size: ${
|
|
293
|
-
font-weight: ${
|
|
294
|
-
letter-spacing: ${
|
|
295
|
-
line-height: ${
|
|
296
|
-
text-transform: ${
|
|
292
|
+
.ft-typography--subtitle1 {
|
|
293
|
+
font-family: ${hi};
|
|
294
|
+
font-size: ${pi};
|
|
295
|
+
font-weight: ${ci};
|
|
296
|
+
letter-spacing: ${fi};
|
|
297
|
+
line-height: ${di};
|
|
298
|
+
text-transform: ${ui};
|
|
297
299
|
}
|
|
298
|
-
|
|
299
300
|
`,ie=y`
|
|
300
|
-
.ft-typography--
|
|
301
|
-
font-family: ${
|
|
302
|
-
font-size: ${
|
|
303
|
-
font-weight: ${
|
|
304
|
-
letter-spacing: ${
|
|
305
|
-
line-height: ${
|
|
306
|
-
text-transform: ${
|
|
301
|
+
.ft-typography--subtitle2 {
|
|
302
|
+
font-family: ${vi};
|
|
303
|
+
font-size: ${yi};
|
|
304
|
+
font-weight: ${xi};
|
|
305
|
+
letter-spacing: ${bi};
|
|
306
|
+
line-height: ${gi};
|
|
307
|
+
text-transform: ${mi};
|
|
307
308
|
}
|
|
309
|
+
|
|
308
310
|
`,ee=y`
|
|
309
|
-
.ft-typography--
|
|
310
|
-
font-family: ${
|
|
311
|
-
font-size: ${
|
|
312
|
-
font-weight: ${
|
|
313
|
-
letter-spacing: ${
|
|
314
|
-
line-height: ${
|
|
315
|
-
text-transform: ${
|
|
311
|
+
.ft-typography--body1 {
|
|
312
|
+
font-family: ${wi};
|
|
313
|
+
font-size: ${$i};
|
|
314
|
+
font-weight: ${Oi};
|
|
315
|
+
letter-spacing: ${ki};
|
|
316
|
+
line-height: ${Si};
|
|
317
|
+
text-transform: ${Ci};
|
|
316
318
|
}
|
|
317
319
|
`,oe=y`
|
|
318
|
-
.ft-typography--
|
|
319
|
-
font-family: ${
|
|
320
|
-
font-size: ${
|
|
321
|
-
font-weight: ${
|
|
322
|
-
letter-spacing: ${
|
|
323
|
-
line-height: ${
|
|
324
|
-
text-transform: ${
|
|
320
|
+
.ft-typography--body2 {
|
|
321
|
+
font-family: ${Ni};
|
|
322
|
+
font-size: ${Ei};
|
|
323
|
+
font-weight: ${Ri};
|
|
324
|
+
letter-spacing: ${Mi};
|
|
325
|
+
line-height: ${zi};
|
|
326
|
+
text-transform: ${Ui};
|
|
325
327
|
}
|
|
326
328
|
`,ne=y`
|
|
327
|
-
.ft-typography--
|
|
328
|
-
font-family: ${
|
|
329
|
-
font-size: ${
|
|
330
|
-
font-weight: ${
|
|
331
|
-
letter-spacing: ${
|
|
332
|
-
line-height: ${
|
|
333
|
-
text-transform: ${
|
|
329
|
+
.ft-typography--caption {
|
|
330
|
+
font-family: ${Fi};
|
|
331
|
+
font-size: ${ji};
|
|
332
|
+
font-weight: ${Bi};
|
|
333
|
+
letter-spacing: ${Ai};
|
|
334
|
+
line-height: ${Ti};
|
|
335
|
+
text-transform: ${Li};
|
|
334
336
|
}
|
|
335
337
|
`,se=y`
|
|
336
|
-
.ft-typography--
|
|
337
|
-
font-family: ${
|
|
338
|
-
font-size: ${
|
|
339
|
-
font-weight: ${
|
|
340
|
-
letter-spacing: ${
|
|
341
|
-
line-height: ${
|
|
342
|
-
text-transform: ${
|
|
338
|
+
.ft-typography--breadcrumb {
|
|
339
|
+
font-family: ${Pi};
|
|
340
|
+
font-size: ${_i};
|
|
341
|
+
font-weight: ${Di};
|
|
342
|
+
letter-spacing: ${Ii};
|
|
343
|
+
line-height: ${Wi};
|
|
344
|
+
text-transform: ${Hi};
|
|
343
345
|
}
|
|
344
346
|
`,re=y`
|
|
345
|
-
.ft-typography--
|
|
346
|
-
font-family: ${
|
|
347
|
-
font-size: ${
|
|
348
|
-
font-weight: ${
|
|
349
|
-
letter-spacing: ${
|
|
350
|
-
line-height: ${
|
|
351
|
-
text-transform: ${Xi
|
|
347
|
+
.ft-typography--overline {
|
|
348
|
+
font-family: ${Ki};
|
|
349
|
+
font-size: ${Zi};
|
|
350
|
+
font-weight: ${Vi};
|
|
351
|
+
letter-spacing: ${Ji};
|
|
352
|
+
line-height: ${qi};
|
|
353
|
+
text-transform: ${Xi};
|
|
352
354
|
}
|
|
353
355
|
`,ae=y`
|
|
356
|
+
.ft-typography--button {
|
|
357
|
+
font-family: ${Yi.fontFamily};
|
|
358
|
+
font-size: ${Yi.fontSize};
|
|
359
|
+
font-weight: ${Yi.fontWeight};
|
|
360
|
+
letter-spacing: ${Yi.letterSpacing};
|
|
361
|
+
line-height: ${Yi.lineHeight};
|
|
362
|
+
text-transform: ${Yi.textTransform};
|
|
363
|
+
}
|
|
364
|
+
`,le=y`
|
|
354
365
|
.ft-typography {
|
|
355
366
|
vertical-align: inherit;
|
|
356
367
|
}
|
|
357
|
-
`;var
|
|
358
|
-
<${
|
|
368
|
+
`;var he=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class pe extends xt{constructor(){super(...arguments),this.variant=Vt.body1}render(){return this.element?Zt`
|
|
369
|
+
<${Ht(this.element)}
|
|
359
370
|
class="ft-typography ft-typography--${this.variant}">
|
|
360
371
|
<slot></slot>
|
|
361
|
-
</${
|
|
362
|
-
`:
|
|
372
|
+
</${Ht(this.element)}>
|
|
373
|
+
`:Zt`
|
|
363
374
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
364
|
-
`}}
|
|
375
|
+
`}}pe.styles=[Gi,Qi,te,ie,ee,oe,ne,se,re,ae,le],he([o()],pe.prototype,"element",void 0),he([o()],pe.prototype,"variant",void 0),h("ft-typography")(pe);const ce=dt.create("--ft-tooltip-distance","SIZE","4px"),fe=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),de=dt.create("--ft-tooltip-background-color","COLOR","#666666"),ue=dt.create("--ft-tooltip-z-index","NUMBER","1"),ve=dt.external(vt.borderRadiusS,"Design system"),ye=dt.create("--ft-tooltip-max-width","SIZE","150px"),xe=y`
|
|
365
376
|
.ft-tooltip--container {
|
|
366
377
|
display: block;
|
|
367
378
|
position: relative;
|
|
@@ -377,23 +388,23 @@ const Dt=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void
|
|
|
377
388
|
box-sizing: border-box;
|
|
378
389
|
overflow: hidden;
|
|
379
390
|
width: max-content;
|
|
380
|
-
max-width: ${
|
|
391
|
+
max-width: ${ye};
|
|
381
392
|
text-align: center;
|
|
382
|
-
padding: ${
|
|
383
|
-
z-index: ${
|
|
393
|
+
padding: ${ce};
|
|
394
|
+
z-index: ${ue};
|
|
384
395
|
}
|
|
385
396
|
|
|
386
397
|
.ft-tooltip--content {
|
|
387
398
|
padding: 4px 8px;
|
|
388
|
-
border-radius: ${
|
|
389
|
-
background-color: ${
|
|
390
|
-
color: ${
|
|
399
|
+
border-radius: ${ve};
|
|
400
|
+
background-color: ${de};
|
|
401
|
+
color: ${fe};
|
|
391
402
|
top: -500px;
|
|
392
403
|
left: -500px;
|
|
393
404
|
position: relative;
|
|
394
405
|
word-break: break-word;
|
|
395
406
|
}
|
|
396
|
-
`;var
|
|
407
|
+
`;var be=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ge extends xt{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 i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Z`
|
|
397
408
|
<div part="container"
|
|
398
409
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
399
410
|
@mouseenter=${this.onHover}
|
|
@@ -411,13 +422,13 @@ const Dt=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void
|
|
|
411
422
|
</div>
|
|
412
423
|
</div>
|
|
413
424
|
</div>
|
|
414
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${
|
|
425
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${ye})`}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())}}ge.elementDefinitions={"ft-typography":pe},ge.styles=xe,be([o()],ge.prototype,"text",void 0),be([o({type:Boolean})],ge.prototype,"manual",void 0),be([o({type:Boolean})],ge.prototype,"inline",void 0),be([o({type:Number})],ge.prototype,"delay",void 0),be([o()],ge.prototype,"position",void 0),be([
|
|
415
426
|
/**
|
|
416
427
|
* @license
|
|
417
428
|
* Copyright 2017 Google LLC
|
|
418
429
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
419
430
|
*/
|
|
420
|
-
function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):s({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==s?void 0:s.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],
|
|
431
|
+
function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):s({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==s?void 0:s.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],ge.prototype,"slotNodes",void 0),be([r(".ft-tooltip--container")],ge.prototype,"container",void 0),be([r("slot")],ge.prototype,"target",void 0),be([r(".ft-tooltip")],ge.prototype,"tooltip",void 0),be([r(".ft-tooltip--content")],ge.prototype,"tooltipContent",void 0),be([n()],ge.prototype,"visible",void 0),h("ft-tooltip")(ge);const me={color:dt.extend("--ft-loader-color",vt.colorPrimary),size:dt.create("--ft-loader-size","SIZE","80px")},we=y`
|
|
421
432
|
:host {
|
|
422
433
|
line-height: 0;
|
|
423
434
|
}
|
|
@@ -426,8 +437,8 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
|
|
|
426
437
|
display: inline-block;
|
|
427
438
|
position: relative;
|
|
428
439
|
|
|
429
|
-
width: ${
|
|
430
|
-
height: ${
|
|
440
|
+
width: ${me.size};
|
|
441
|
+
height: ${me.size};
|
|
431
442
|
}
|
|
432
443
|
|
|
433
444
|
.ft-loader div {
|
|
@@ -436,7 +447,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
|
|
|
436
447
|
width: 25%;
|
|
437
448
|
height: 25%;
|
|
438
449
|
border-radius: 50%;
|
|
439
|
-
background: ${
|
|
450
|
+
background: ${me.color};
|
|
440
451
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
441
452
|
}
|
|
442
453
|
|
|
@@ -483,23 +494,23 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
|
|
|
483
494
|
transform: translate(0, 0);
|
|
484
495
|
}
|
|
485
496
|
100% {
|
|
486
|
-
transform: translate(calc(0.35 * ${
|
|
497
|
+
transform: translate(calc(0.35 * ${me.size}), 0);
|
|
487
498
|
}
|
|
488
499
|
}
|
|
489
|
-
`;class
|
|
500
|
+
`;class $e extends xt{render(){return Z`
|
|
490
501
|
<div class="ft-loader">
|
|
491
502
|
<div></div>
|
|
492
503
|
<div></div>
|
|
493
504
|
<div></div>
|
|
494
505
|
<div></div>
|
|
495
506
|
</div>
|
|
496
|
-
`}}
|
|
507
|
+
`}}$e.styles=we,h("ft-loader")($e);
|
|
497
508
|
/**
|
|
498
509
|
* @license
|
|
499
510
|
* Copyright 2017 Google LLC
|
|
500
511
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
501
512
|
*/
|
|
502
|
-
class
|
|
513
|
+
class Oe extends Rt{constructor(t){if(super(t),this.it=J,t.type!==Nt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Oe.directiveName="unsafeHTML",Oe.resultType=1;const ke=Et(Oe);var Se,Ce;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",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.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",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=""}(Se||(Se={})),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=""}(Ce||(Ce={})),new Map([...["abw"].map((t=>[t,Ce.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,Ce.AUDIO])),...["avi"].map((t=>[t,Ce.AVI])),...["chm","xhs"].map((t=>[t,Ce.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,Ce.CODE])),...["csv"].map((t=>[t,Ce.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ce.DITA])),...["epub"].map((t=>[t,Ce.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ce.EXCEL])),...["flac"].map((t=>[t,Ce.FLAC])),...["gif"].map((t=>[t,Ce.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ce.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ce.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,Ce.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ce.JPEG])),...["json"].map((t=>[t,Ce.JSON])),...["m4a","m4p"].map((t=>[t,Ce.M4A])),...["mov","qt"].map((t=>[t,Ce.MOV])),...["mp3"].map((t=>[t,Ce.MP3])),...["mp4","m4v"].map((t=>[t,Ce.MP4])),...["ogg","oga"].map((t=>[t,Ce.OGG])),...["pdf","ps"].map((t=>[t,Ce.PDF])),...["png"].map((t=>[t,Ce.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ce.POWERPOINT])),...["rar"].map((t=>[t,Ce.RAR])),...["stp"].map((t=>[t,Ce.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ce.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,Ce.VIDEO])),...["wav"].map((t=>[t,Ce.WAV])),...["wma"].map((t=>[t,Ce.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ce.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ce.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ce.YAML])),...["zip"].map((t=>[t,Ce.ZIP]))]);const Ne={size:dt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:dt.extend("--ft-icon-fluid-topics-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.extend("--ft-icon-file-format-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:dt.extend("--ft-icon-material-font-family",dt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:dt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ee=y`
|
|
503
514
|
:host, i.ft-icon {
|
|
504
515
|
display: inline-flex;
|
|
505
516
|
align-items: center;
|
|
@@ -508,14 +519,14 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
508
519
|
}
|
|
509
520
|
|
|
510
521
|
:host {
|
|
511
|
-
width: ${
|
|
512
|
-
height: ${
|
|
522
|
+
width: ${Ne.size};
|
|
523
|
+
height: ${Ne.size};
|
|
513
524
|
}
|
|
514
525
|
|
|
515
526
|
i.ft-icon {
|
|
516
527
|
width: 100%;
|
|
517
528
|
height: 100%;
|
|
518
|
-
font-size: ${
|
|
529
|
+
font-size: ${Ne.size};
|
|
519
530
|
line-height: 1;
|
|
520
531
|
font-weight: normal;
|
|
521
532
|
text-transform: none;
|
|
@@ -526,32 +537,32 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
526
537
|
text-rendering: auto;
|
|
527
538
|
-webkit-font-smoothing: antialiased;
|
|
528
539
|
-moz-osx-font-smoothing: grayscale;
|
|
529
|
-
vertical-align: ${
|
|
540
|
+
vertical-align: ${Ne.verticalAlign};
|
|
530
541
|
}
|
|
531
542
|
|
|
532
543
|
i.ft-icon.ft-icon--fluid-topics {
|
|
533
|
-
font-family: ${
|
|
544
|
+
font-family: ${Ne.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
534
545
|
|
|
535
546
|
/* Ugly fix because font is broken */
|
|
536
|
-
font-size: calc(0.9 * ${
|
|
547
|
+
font-size: calc(0.9 * ${Ne.size});
|
|
537
548
|
position: relative;
|
|
538
549
|
top: -5%;
|
|
539
550
|
justify-content: center;
|
|
540
551
|
}
|
|
541
552
|
|
|
542
553
|
.ft-icon--file-format {
|
|
543
|
-
font-family: ${
|
|
554
|
+
font-family: ${Ne.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
544
555
|
}
|
|
545
556
|
|
|
546
557
|
.ft-icon--material {
|
|
547
|
-
font-family: ${
|
|
558
|
+
font-family: ${Ne.materialFontFamily}, "Material Icons", sans-serif;
|
|
548
559
|
}
|
|
549
|
-
`;var
|
|
560
|
+
`;var Re;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Re||(Re={}));var Me=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ze extends xt{constructor(){super(...arguments),this.variant=Re.fluid_topics,this.resolvedIcon=J}render(){const t="material"!==this.variant||this.value;return Z`
|
|
550
561
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
551
|
-
${
|
|
562
|
+
${ke(this.resolvedIcon)}
|
|
552
563
|
<slot ?hidden=${t}></slot>
|
|
553
564
|
</i>
|
|
554
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case
|
|
565
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Re.file_format:this.resolvedIcon=null!==(t=Ce[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Re.fluid_topics:this.resolvedIcon=null!==(i=Se[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ze.elementDefinitions={},ze.styles=Ee,Me([o()],ze.prototype,"variant",void 0),Me([o()],ze.prototype,"value",void 0),Me([n()],ze.prototype,"resolvedIcon",void 0),Me([r("slot")],ze.prototype,"slottedContent",void 0),h("ft-icon")(ze);const Ue=dt.extend("--ft-button-color",vt.colorPrimary),Fe={backgroundColor:dt.extend("--ft-button-background-color",vt.colorSurface),borderRadius:dt.extend("--ft-button-border-radius",vt.borderRadiusL),color:Ue,fontSize:dt.extend("--ft-button-font-size",Yi.fontSize),iconSize:dt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:dt.extend("--ft-button-ripple-color",Ue),opacityDisabled:dt.external(vt.colorOpacityDisabled,"Design system")},je=dt.extend("--ft-button-primary-color",dt.extend("--ft-button-color",vt.colorOnPrimary)),Be={backgroundColor:dt.extend("--ft-button-primary-background-color",dt.extend("--ft-button-background-color",vt.colorPrimary)),color:je,rippleColor:dt.extend("--ft-button-primary-ripple-color",je)},Ae=dt.extend("--ft-button-dense-border-radius",dt.extend("--ft-button-border-radius",vt.borderRadiusM)),Te=[bt,y`
|
|
555
566
|
:host {
|
|
556
567
|
display: inline-block;
|
|
557
568
|
max-width: 100%;
|
|
@@ -562,7 +573,7 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
562
573
|
box-shadow: 0px 0px 0px transparent;
|
|
563
574
|
border: 0px solid transparent;
|
|
564
575
|
text-shadow: 0px 0px 0px transparent;
|
|
565
|
-
font-size: ${
|
|
576
|
+
font-size: ${Fe.fontSize};
|
|
566
577
|
}
|
|
567
578
|
|
|
568
579
|
button:hover {
|
|
@@ -591,17 +602,17 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
591
602
|
border: none;
|
|
592
603
|
pointer-events: auto;
|
|
593
604
|
|
|
594
|
-
--ft-button-internal-line-height: calc(${
|
|
595
|
-
--ft-button-internal-color: ${
|
|
596
|
-
${ut(
|
|
605
|
+
--ft-button-internal-line-height: calc(${Fe.fontSize} + 2px);
|
|
606
|
+
--ft-button-internal-color: ${Fe.color};
|
|
607
|
+
${ut(Ne.size,Fe.iconSize)};
|
|
597
608
|
--ft-button-internal-vertical-padding: 6px;
|
|
598
609
|
--ft-button-internal-horizontal-padding: 8px;
|
|
599
|
-
${ut(
|
|
600
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
610
|
+
${ut(Ut.color,Fe.rippleColor)};
|
|
611
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fe.iconSize});
|
|
601
612
|
|
|
602
|
-
border-radius: ${
|
|
613
|
+
border-radius: ${Fe.borderRadius};
|
|
603
614
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
604
|
-
background-color: ${
|
|
615
|
+
background-color: ${Fe.backgroundColor};
|
|
605
616
|
color: var(--ft-button-internal-color);
|
|
606
617
|
-webkit-mask-image: radial-gradient(white, black);
|
|
607
618
|
}
|
|
@@ -613,7 +624,7 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
613
624
|
.ft-button--dense {
|
|
614
625
|
--ft-button-internal-vertical-padding: 2px;
|
|
615
626
|
--ft-button-internal-horizontal-padding: 4px;
|
|
616
|
-
border-radius: ${
|
|
627
|
+
border-radius: ${Ae};
|
|
617
628
|
}
|
|
618
629
|
|
|
619
630
|
.ft-button--round {
|
|
@@ -622,13 +633,13 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
622
633
|
|
|
623
634
|
.ft-button[disabled] {
|
|
624
635
|
filter: grayscale(1);
|
|
625
|
-
opacity: ${
|
|
636
|
+
opacity: ${Fe.opacityDisabled};
|
|
626
637
|
}
|
|
627
638
|
|
|
628
639
|
.ft-button.ft-button--primary {
|
|
629
|
-
background-color: ${
|
|
630
|
-
--ft-button-internal-color: ${
|
|
631
|
-
${ut(
|
|
640
|
+
background-color: ${Be.backgroundColor};
|
|
641
|
+
--ft-button-internal-color: ${Be.color};
|
|
642
|
+
${ut(Ut.color,Be.rippleColor)};
|
|
632
643
|
}
|
|
633
644
|
|
|
634
645
|
.ft-button.ft-button--outlined {
|
|
@@ -647,20 +658,10 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
647
658
|
text-overflow: ellipsis;
|
|
648
659
|
display: block;
|
|
649
660
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
650
|
-
${ut(
|
|
651
|
-
${ut(
|
|
661
|
+
${ut(Yi.fontSize,"1em")};
|
|
662
|
+
${ut(Yi.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
652
663
|
}
|
|
653
|
-
|
|
654
|
-
.ft-button--safari-fix .ft-button--label {
|
|
655
|
-
margin-right: 0;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
.ft-button--safari-fix .ft-button--label:after {
|
|
659
|
-
content: "\\0000a0";
|
|
660
|
-
display: inline-block;
|
|
661
|
-
width: 0;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
+
|
|
664
665
|
.ft-button--label[hidden] {
|
|
665
666
|
display: none;
|
|
666
667
|
}
|
|
@@ -681,19 +682,19 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
681
682
|
}
|
|
682
683
|
|
|
683
684
|
ft-loader {
|
|
684
|
-
${ut(
|
|
685
|
-
${ut(
|
|
685
|
+
${ut(me.size,Fe.iconSize)};
|
|
686
|
+
${ut(me.color,"var(--ft-button-internal-color)")};
|
|
686
687
|
}
|
|
687
|
-
`];var
|
|
688
|
+
`];var Le=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Pe extends xt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Re.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(Z`
|
|
688
689
|
<button part="button"
|
|
689
|
-
class="${
|
|
690
|
+
class="${Mt(t)}"
|
|
690
691
|
aria-label="${this.getLabel()}"
|
|
691
692
|
?disabled=${this.isDisabled()}>
|
|
692
693
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
693
694
|
<ft-typography part="label"
|
|
694
695
|
variant="button"
|
|
695
696
|
element="span"
|
|
696
|
-
class="ft-button--label"
|
|
697
|
+
class="ft-button--label ${Ot?"ft-safari-ellipsis-fix":""}"
|
|
697
698
|
?hidden=${!this.hasTextContent()}>
|
|
698
699
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
699
700
|
</ft-typography>
|
|
@@ -707,7 +708,7 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
707
708
|
</ft-tooltip>
|
|
708
709
|
`:t}resolveIcon(){return this.loading?Z`
|
|
709
710
|
<ft-loader></ft-loader> `:this.icon?Z`
|
|
710
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:J}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}}
|
|
711
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:J}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}}Pe.elementDefinitions={"ft-ripple":Dt,"ft-tooltip":ge,"ft-typography":pe,"ft-icon":ze,"ft-loader":$e},Pe.styles=[gt,Te],Le([o({type:Boolean})],Pe.prototype,"primary",void 0),Le([o({type:Boolean})],Pe.prototype,"outlined",void 0),Le([o({type:Boolean})],Pe.prototype,"disabled",void 0),Le([o({type:Boolean})],Pe.prototype,"dense",void 0),Le([o({type:Boolean})],Pe.prototype,"round",void 0),Le([o({type:String})],Pe.prototype,"label",void 0),Le([o({type:String})],Pe.prototype,"icon",void 0),Le([o({type:String})],Pe.prototype,"iconVariant",void 0),Le([o({type:Boolean})],Pe.prototype,"trailingIcon",void 0),Le([o({type:Boolean})],Pe.prototype,"loading",void 0),Le([o({type:String})],Pe.prototype,"tooltipPosition",void 0),Le([o({type:Boolean})],Pe.prototype,"hideTooltip",void 0),Le([o({type:Boolean})],Pe.prototype,"forceTooltip",void 0),Le([r(".ft-button")],Pe.prototype,"button",void 0),Le([r(".ft-button--label slot")],Pe.prototype,"slottedContent",void 0),h("ft-button")(Pe);const _e={iconColor:dt.extend("--ft-floating-menu-icon-color",vt.colorOnSurfaceMedium)},De=y`
|
|
711
712
|
.ft-floating-menu-item {
|
|
712
713
|
cursor: pointer;
|
|
713
714
|
display: flex;
|
|
@@ -722,7 +723,7 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
722
723
|
}
|
|
723
724
|
|
|
724
725
|
.ft-floating-menu-item ft-icon {
|
|
725
|
-
color: ${
|
|
726
|
+
color: ${_e.iconColor};
|
|
726
727
|
margin-left: 0;
|
|
727
728
|
flex-shrink: 0;
|
|
728
729
|
flex-grow: 0;
|
|
@@ -737,7 +738,7 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
737
738
|
word-break: break-word;
|
|
738
739
|
hyphens: auto;
|
|
739
740
|
}
|
|
740
|
-
`;var
|
|
741
|
+
`;var Ie=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class We extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class He extends xt{constructor(){super(...arguments),this.value=""}render(){var t;return Z`
|
|
741
742
|
<div class="ft-floating-menu-item"
|
|
742
743
|
@click=${this.onClick}>
|
|
743
744
|
<ft-ripple></ft-ripple>
|
|
@@ -748,8 +749,8 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
748
749
|
<slot></slot>
|
|
749
750
|
</ft-typography>
|
|
750
751
|
</div>
|
|
751
|
-
`}onClick(t){this.dispatchEvent(new
|
|
752
|
-
<div class="${
|
|
752
|
+
`}onClick(t){this.dispatchEvent(new We(this.value))}}He.elementDefinitions={"ft-icon":ze,"ft-ripple":Dt,"ft-typography":pe},He.styles=De,Ie([o()],He.prototype,"iconVariant",void 0),Ie([o()],He.prototype,"icon",void 0),Ie([o()],He.prototype,"value",void 0);var Ke=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ze extends xt{constructor(){super(...arguments),this.menuOpen=!1,this.iconVariant=Re.fluid_topics,this.icon="SHORTCUT_MENU",this.disabled=!1,this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){var t,i;const e={"ft-floating-menu":!0,"ft-floating-menu--open":this.menuOpen,["ft-floating-menu--"+(null!==(t=this.horizontalAlignment)&&void 0!==t?t:"left").toLowerCase()]:!0,["ft-floating-menu--"+(null!==(i=this.verticalAlignment)&&void 0!==i?i:"bottom").toLowerCase()]:!0};return Z`
|
|
753
|
+
<div class="${Mt(e)}">
|
|
753
754
|
<ft-button id="actions-button"
|
|
754
755
|
part="button"
|
|
755
756
|
dense round
|
|
@@ -767,4 +768,4 @@ class $e extends Et{constructor(t){if(super(t),this.it=J,t.type!==Ct)throw Error
|
|
|
767
768
|
<slot></slot>
|
|
768
769
|
</div>
|
|
769
770
|
</div>
|
|
770
|
-
`}onClick(t){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(t){this.menuOpen=!1}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}
|
|
771
|
+
`}onClick(t){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(t){this.menuOpen=!1}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ze.elementDefinitions={"ft-button":Pe,"ft-floating-menu-item":He},Ze.styles=St,Ke([n()],Ze.prototype,"menuOpen",void 0),Ke([r(".ft-floating-menu")],Ze.prototype,"container",void 0),Ke([r(".ft-floating-menu--options")],Ze.prototype,"menuContainer",void 0),Ke([r("ft-button")],Ze.prototype,"button",void 0),Ke([o()],Ze.prototype,"label",void 0),Ke([o()],Ze.prototype,"tooltipPosition",void 0),Ke([o()],Ze.prototype,"iconVariant",void 0),Ke([o()],Ze.prototype,"icon",void 0),Ke([o()],Ze.prototype,"text",void 0),Ke([o()],Ze.prototype,"horizontalAlignment",void 0),Ke([o()],Ze.prototype,"verticalAlignment",void 0),Ke([o({type:Boolean})],Ze.prototype,"disabled",void 0),h("ft-floating-menu")(Ze),h("ft-floating-menu-item")(He),t.FtFloatingMenu=Ze,t.FtFloatingMenuCssVariables=kt,t.FtFloatingMenuItem=He,t.FtFloatingMenuItemCssVariables=_e,t.FtFloatingMenuItemSelect=We,t.itemStyles=De,t.styles=St,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-floating-menu",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.55",
|
|
4
4
|
"description": "Floating menu component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "0.3.
|
|
23
|
-
"@fluid-topics/ft-icon": "0.3.
|
|
24
|
-
"@fluid-topics/ft-ripple": "0.3.
|
|
25
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-button": "0.3.55",
|
|
23
|
+
"@fluid-topics/ft-icon": "0.3.55",
|
|
24
|
+
"@fluid-topics/ft-ripple": "0.3.55",
|
|
25
|
+
"@fluid-topics/ft-typography": "0.3.55",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "0.3.55",
|
|
27
27
|
"lit": "2.2.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "4106f01e238edeb1c85fba22d6d50a18757e0b3e"
|
|
30
30
|
}
|