@fluid-topics/ft-floating-menu 0.3.45 → 0.3.46
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-item.css.js +15 -8
- package/build/ft-floating-menu-item.d.ts +2 -0
- package/build/ft-floating-menu-item.js +9 -3
- package/build/ft-floating-menu-item.properties.d.ts +2 -0
- package/build/ft-floating-menu.css.d.ts +3 -0
- package/build/ft-floating-menu.css.js +21 -19
- package/build/ft-floating-menu.d.ts +7 -5
- package/build/ft-floating-menu.js +20 -33
- package/build/ft-floating-menu.light.js +74 -63
- package/build/ft-floating-menu.min.js +209 -198
- package/build/ft-floating-menu.properties.d.ts +6 -2
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,i,e,o,n,s){const r={textColor:i.FtCssVariableFactory.extend("--ft-floating-menu-text-color",i.designSystemVariables.colorOnSurfaceHigh),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),menuElevation:i.FtCssVariableFactory.external(i.designSystemVariables.elevation02,"Design system"),borderRadiusS:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system")},l=e.css`
|
|
1
|
+
!function(t,i,e,o,n,s){const r={zIndex:i.FtCssVariableFactory.create("--ft-floating-menu-z-index","NUMBER","8"),maxWidth:i.FtCssVariableFactory.create("--ft-floating-menu-max-width","SIZE","300px"),maxHeight:i.FtCssVariableFactory.create("--ft-floating-menu-max-height","SIZE","500px"),textColor:i.FtCssVariableFactory.extend("--ft-floating-menu-text-color",i.designSystemVariables.colorOnSurfaceHigh),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),menuElevation:i.FtCssVariableFactory.external(i.designSystemVariables.elevation02,"Design system"),borderRadiusS:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system")},l=e.css`
|
|
2
2
|
.ft-floating-menu {
|
|
3
3
|
color: ${r.textColor};
|
|
4
4
|
position: relative;
|
|
@@ -6,32 +6,22 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.ft-floating-menu--options {
|
|
9
|
+
display: none;
|
|
10
|
+
position: absolute;
|
|
11
|
+
overflow: auto;
|
|
12
|
+
max-width: ${r.maxWidth};
|
|
13
|
+
max-height: ${r.maxHeight};
|
|
9
14
|
box-shadow: ${r.menuElevation};
|
|
10
15
|
background-color: ${r.colorSurface};
|
|
11
16
|
border-radius: ${r.borderRadiusS};
|
|
12
17
|
color: ${r.textColor};
|
|
13
|
-
|
|
14
|
-
list-style: none;
|
|
15
|
-
max-width: calc(100vw - 32px);
|
|
16
|
-
max-height: calc(100vh - 32px);
|
|
17
|
-
margin: 0;
|
|
18
|
-
padding-left: 0;
|
|
19
|
-
position: absolute;
|
|
20
|
-
transform: scale(1);
|
|
21
|
-
transform-origin: left top;
|
|
22
|
-
overflow: auto;
|
|
23
|
-
top: 0;
|
|
24
|
-
transition: opacity 0.03s linear 0s, transform 0.12s cubic-bezier(0, 0, 0.2, 1) 0s, height 250ms cubic-bezier(0, 0, 0.2, 1) 0s;
|
|
25
|
-
opacity: 0;
|
|
26
|
-
will-change: transform, opacity;
|
|
27
|
-
z-index: 8;
|
|
18
|
+
z-index: ${r.zIndex};
|
|
28
19
|
}
|
|
29
20
|
|
|
30
21
|
.ft-floating-menu--open .ft-floating-menu--options {
|
|
31
|
-
display:
|
|
32
|
-
opacity: 1;
|
|
22
|
+
display: block;
|
|
33
23
|
}
|
|
34
|
-
|
|
24
|
+
|
|
35
25
|
.ft-floating-menu--left .ft-floating-menu--options {
|
|
36
26
|
left: 0;
|
|
37
27
|
}
|
|
@@ -40,8 +30,17 @@
|
|
|
40
30
|
right: 0;
|
|
41
31
|
}
|
|
42
32
|
|
|
33
|
+
.ft-floating-menu--center .ft-floating-menu--options {
|
|
34
|
+
left: 50%;
|
|
35
|
+
transform: translateX(-50%);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ft-floating-menu--top .ft-floating-menu--options {
|
|
39
|
+
bottom: calc(100% + 4px);
|
|
40
|
+
}
|
|
41
|
+
|
|
43
42
|
.ft-floating-menu--bottom .ft-floating-menu--options {
|
|
44
|
-
top: 100
|
|
43
|
+
top: calc(100% + 4px);
|
|
45
44
|
}
|
|
46
45
|
`,a=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),p={color:a,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",a),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},f=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),h=f,d=i.FtCssVariableFactory.extend("--ft-ripple-background-color",f),c=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),u=c,g=i.FtCssVariableFactory.extend("--ft-ripple-background-color",c),x=e.css`
|
|
47
46
|
:host {
|
|
@@ -149,13 +148,13 @@
|
|
|
149
148
|
<div class="ft-ripple--background"></div>
|
|
150
149
|
<div class="ft-ripple--effect"></div>
|
|
151
150
|
</div>
|
|
152
|
-
`}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,A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,E=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,_=/"/g,F=/^(?:script|style|textarea|title)$/i,M=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),U=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),D=new WeakMap,W=C.createTreeWalker(C,129,null,!1),Z=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=A;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===A?"!--"===a[1]?r=B:void 0!==a[1]?r=E:void 0!==a[2]?(F.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=I):void 0!==a[3]&&(r=I):r===I?">"===a[0]?(r=null!=n?n:A,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?I:'"'===a[3]?_:T):r===_||r===T?r=I:r===B||r===E?r=A:(r=I,n=void 0);const h=r===I&&t[i+1].startsWith("/>")?" ":"";s+=r===A?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]=Z(t,i);if(this.el=H.createElement(a,e),W.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=W.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]?q:"?"===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()),W.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===U)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);W.currentNode=n;let s=W.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=W.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!==U&&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!==U,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===U&&(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 q extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===R?void 0:t}}const V=$?$.emptyScript:"";class X extends P{constructor(){super(...arguments),this.type=4}j(t){t&&t!==R?this.element.setAttribute(this.name,V):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)===U)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()}}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,M=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),U=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===U)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!==U&&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!==U,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===U&&(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)===U)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");
|
|
153
152
|
/**
|
|
154
153
|
* @license
|
|
155
154
|
* Copyright 2020 Google LLC
|
|
156
155
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
157
156
|
*/
|
|
158
|
-
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)})(M);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"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",at.letterSpacing,"0.105px"),vt=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"),
|
|
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)})(M);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"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",at.letterSpacing,"0.105px"),vt=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"),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",at.lineHeight,"1.5"),Ut=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`
|
|
159
158
|
.ft-typography--title {
|
|
160
159
|
font-family: ${pt};
|
|
161
160
|
font-size: ${ft};
|
|
@@ -187,15 +186,15 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
187
186
|
font-family: ${Ot};
|
|
188
187
|
font-size: ${jt};
|
|
189
188
|
font-weight: ${Nt};
|
|
190
|
-
letter-spacing: ${
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
189
|
+
letter-spacing: ${Et};
|
|
190
|
+
line-height: ${It};
|
|
191
|
+
text-transform: ${Tt};
|
|
193
192
|
}
|
|
194
193
|
|
|
195
194
|
`,ui=e.css`
|
|
196
195
|
.ft-typography--body1 {
|
|
197
|
-
font-family: ${
|
|
198
|
-
font-size: ${
|
|
196
|
+
font-family: ${At};
|
|
197
|
+
font-size: ${Bt};
|
|
199
198
|
font-weight: ${_t};
|
|
200
199
|
letter-spacing: ${Ft};
|
|
201
200
|
line-height: ${Mt};
|
|
@@ -205,8 +204,8 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
205
204
|
.ft-typography--body2 {
|
|
206
205
|
font-family: ${Rt};
|
|
207
206
|
font-size: ${Dt};
|
|
208
|
-
font-weight: ${
|
|
209
|
-
letter-spacing: ${
|
|
207
|
+
font-weight: ${Zt};
|
|
208
|
+
letter-spacing: ${Wt};
|
|
210
209
|
line-height: ${Ht};
|
|
211
210
|
text-transform: ${Kt};
|
|
212
211
|
}
|
|
@@ -215,8 +214,8 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
215
214
|
font-family: ${Gt};
|
|
216
215
|
font-size: ${Lt};
|
|
217
216
|
font-weight: ${Pt};
|
|
218
|
-
letter-spacing: ${
|
|
219
|
-
line-height: ${
|
|
217
|
+
letter-spacing: ${Vt};
|
|
218
|
+
line-height: ${qt};
|
|
220
219
|
text-transform: ${Xt};
|
|
221
220
|
}
|
|
222
221
|
`,yi=e.css`
|
|
@@ -289,7 +288,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
289
288
|
position: relative;
|
|
290
289
|
word-break: break-word;
|
|
291
290
|
}
|
|
292
|
-
`;var
|
|
291
|
+
`;var Ei=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 Ii extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
293
292
|
<div part="container"
|
|
294
293
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
295
294
|
@mouseenter=${this.onHover}
|
|
@@ -307,7 +306,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
307
306
|
</div>
|
|
308
307
|
</div>
|
|
309
308
|
</div>
|
|
310
|
-
`}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, ${ji})`}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())}}
|
|
309
|
+
`}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, ${ji})`}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())}}Ii.elementDefinitions={"ft-typography":wi},Ii.styles=Ni,Ei([o.property()],Ii.prototype,"text",void 0),Ei([o.property({type:Boolean})],Ii.prototype,"manual",void 0),Ei([o.property({type:Boolean})],Ii.prototype,"inline",void 0),Ei([o.property({type:Number})],Ii.prototype,"delay",void 0),Ei([o.property()],Ii.prototype,"position",void 0),Ei([o.queryAssignedNodes("",!0)],Ii.prototype,"slotNodes",void 0),Ei([o.query(".ft-tooltip--container")],Ii.prototype,"container",void 0),Ei([o.query("slot")],Ii.prototype,"target",void 0),Ei([o.query(".ft-tooltip")],Ii.prototype,"tooltip",void 0),Ei([o.query(".ft-tooltip--content")],Ii.prototype,"tooltipContent",void 0),Ei([o.state()],Ii.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ii);const Ti={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ai=e.css`
|
|
311
310
|
:host {
|
|
312
311
|
line-height: 0;
|
|
313
312
|
}
|
|
@@ -316,8 +315,8 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
316
315
|
display: inline-block;
|
|
317
316
|
position: relative;
|
|
318
317
|
|
|
319
|
-
width: ${
|
|
320
|
-
height: ${
|
|
318
|
+
width: ${Ti.size};
|
|
319
|
+
height: ${Ti.size};
|
|
321
320
|
}
|
|
322
321
|
|
|
323
322
|
.ft-loader div {
|
|
@@ -326,7 +325,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
326
325
|
width: 25%;
|
|
327
326
|
height: 25%;
|
|
328
327
|
border-radius: 50%;
|
|
329
|
-
background: ${
|
|
328
|
+
background: ${Ti.color};
|
|
330
329
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
331
330
|
}
|
|
332
331
|
|
|
@@ -373,17 +372,17 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
373
372
|
transform: translate(0, 0);
|
|
374
373
|
}
|
|
375
374
|
100% {
|
|
376
|
-
transform: translate(calc(0.35 * ${
|
|
375
|
+
transform: translate(calc(0.35 * ${Ti.size}), 0);
|
|
377
376
|
}
|
|
378
377
|
}
|
|
379
|
-
`;class
|
|
378
|
+
`;class Bi extends i.FtLitElement{render(){return e.html`
|
|
380
379
|
<div class="ft-loader">
|
|
381
380
|
<div></div>
|
|
382
381
|
<div></div>
|
|
383
382
|
<div></div>
|
|
384
383
|
<div></div>
|
|
385
384
|
</div>
|
|
386
|
-
`}}var _i,Fi;
|
|
385
|
+
`}}var _i,Fi;Bi.styles=Ai,i.customElement("ft-loader")(Bi),function(t){t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",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.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",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=""}(_i||(_i={})),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=""}(Fi||(Fi={})),new Map([...["abw"].map((t=>[t,Fi.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,Fi.AUDIO])),...["avi"].map((t=>[t,Fi.AVI])),...["chm","xhs"].map((t=>[t,Fi.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,Fi.CODE])),...["csv"].map((t=>[t,Fi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Fi.DITA])),...["epub"].map((t=>[t,Fi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Fi.EXCEL])),...["flac"].map((t=>[t,Fi.FLAC])),...["gif"].map((t=>[t,Fi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Fi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Fi.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,Fi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Fi.JPEG])),...["json"].map((t=>[t,Fi.JSON])),...["m4a","m4p"].map((t=>[t,Fi.M4A])),...["mov","qt"].map((t=>[t,Fi.MOV])),...["mp3"].map((t=>[t,Fi.MP3])),...["mp4","m4v"].map((t=>[t,Fi.MP4])),...["ogg","oga"].map((t=>[t,Fi.OGG])),...["pdf","ps"].map((t=>[t,Fi.PDF])),...["png"].map((t=>[t,Fi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Fi.POWERPOINT])),...["rar"].map((t=>[t,Fi.RAR])),...["stp"].map((t=>[t,Fi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Fi.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,Fi.VIDEO])),...["wav"].map((t=>[t,Fi.WAV])),...["wma"].map((t=>[t,Fi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Fi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Fi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Fi.YAML])),...["zip"].map((t=>[t,Fi.ZIP]))]);const Mi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ui=e.css`
|
|
387
386
|
:host {
|
|
388
387
|
display: inline-block;
|
|
389
388
|
}
|
|
@@ -420,12 +419,12 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
420
419
|
.ft-icon--material {
|
|
421
420
|
font-family: ${Mi.materialFontFamily}, "Material Icons", sans-serif;
|
|
422
421
|
}
|
|
423
|
-
`;var Ri;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ri||(Ri={}));var Di=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
|
|
422
|
+
`;var Ri;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ri||(Ri={}));var Di=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 Zi extends i.FtLitElement{constructor(){super(...arguments),this.variant=Ri.fluid_topics,this.resolvedIcon=e.nothing}render(){const t="material"!==this.variant||this.value;return e.html`
|
|
424
423
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
425
424
|
${s.unsafeHTML(this.resolvedIcon)}
|
|
426
425
|
<slot ?hidden=${t}></slot>
|
|
427
426
|
</i>
|
|
428
|
-
`}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 o=this.value||this.textContent;switch(this.variant){case Ri.file_format:this.resolvedIcon=null!==(t=Fi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ri.fluid_topics:this.resolvedIcon=null!==(i=_i[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||e.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}
|
|
427
|
+
`}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 o=this.value||this.textContent;switch(this.variant){case Ri.file_format:this.resolvedIcon=null!==(t=Fi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ri.fluid_topics:this.resolvedIcon=null!==(i=_i[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||e.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Zi.elementDefinitions={},Zi.styles=Ui,Di([o.property()],Zi.prototype,"variant",void 0),Di([o.property()],Zi.prototype,"value",void 0),Di([o.state()],Zi.prototype,"resolvedIcon",void 0),Di([o.query("slot")],Zi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Zi);const Wi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Wi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",pi.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Wi),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Ki=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Gi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Ki,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Ki)},Li=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Pi=[i.noTextSelect,e.css`
|
|
429
428
|
:host {
|
|
430
429
|
display: inline-block;
|
|
431
430
|
max-width: 100%;
|
|
@@ -555,10 +554,10 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
555
554
|
}
|
|
556
555
|
|
|
557
556
|
ft-loader {
|
|
558
|
-
${i.setVariable(
|
|
559
|
-
${i.setVariable(
|
|
557
|
+
${i.setVariable(Ti.size,Hi.iconSize)};
|
|
558
|
+
${i.setVariable(Ti.color,"var(--ft-button-internal-color)")};
|
|
560
559
|
}
|
|
561
|
-
`];var
|
|
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-button--safari-fix":i.isSafari,"ft-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
|
|
562
561
|
<button part="button"
|
|
563
562
|
class="${n.classMap(t)}"
|
|
564
563
|
aria-label="${this.getLabel()}"
|
|
@@ -580,7 +579,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
580
579
|
</ft-tooltip>
|
|
581
580
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
582
581
|
<ft-loader></ft-loader> `:this.icon?e.html`
|
|
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}}
|
|
582
|
+
<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":v,"ft-tooltip":Ii,"ft-typography":wi,"ft-icon":Zi,"ft-loader":Bi},qi.styles=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`
|
|
584
583
|
.ft-floating-menu-item {
|
|
585
584
|
cursor: pointer;
|
|
586
585
|
display: flex;
|
|
@@ -588,44 +587,56 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
588
587
|
align-items: center;
|
|
589
588
|
justify-content: flex-start;
|
|
590
589
|
overflow: hidden;
|
|
591
|
-
padding:
|
|
590
|
+
padding: 4px 16px;
|
|
592
591
|
outline: none;
|
|
593
|
-
height: 48px;
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
ft-typography {
|
|
597
|
-
white-space: nowrap;
|
|
592
|
+
min-height: 48px;
|
|
593
|
+
gap: 16px;
|
|
598
594
|
}
|
|
599
595
|
|
|
600
596
|
.ft-floating-menu-item ft-icon {
|
|
601
|
-
--ft-icon-font-size: 24px;
|
|
602
597
|
color: ${Xi.iconColor};
|
|
603
598
|
margin-left: 0;
|
|
604
|
-
|
|
599
|
+
flex-shrink: 0;
|
|
600
|
+
flex-grow: 0;
|
|
605
601
|
}
|
|
606
|
-
|
|
602
|
+
|
|
603
|
+
.ft-floating-menu-item ft-typography {
|
|
604
|
+
flex-shrink: 1;
|
|
605
|
+
flex-grow: 1;
|
|
606
|
+
width: max-content;
|
|
607
|
+
text-overflow: ellipsis;
|
|
608
|
+
overflow: hidden;
|
|
609
|
+
word-break: break-word;
|
|
610
|
+
hyphens: auto;
|
|
611
|
+
}
|
|
612
|
+
`;var Ji=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 CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class te extends i.FtLitElement{constructor(){super(...arguments),this.value=""}render(){var t;return e.html`
|
|
607
613
|
<div class="ft-floating-menu-item"
|
|
608
614
|
@click=${this.onClick}>
|
|
609
615
|
<ft-ripple></ft-ripple>
|
|
610
|
-
${this.icon?e.html
|
|
616
|
+
${this.icon?e.html`
|
|
617
|
+
<ft-icon variant="${null!==(t=this.iconVariant)&&void 0!==t?t:"material"}">${this.icon}</ft-icon>
|
|
618
|
+
`:e.nothing}
|
|
611
619
|
<ft-typography variant="body2">
|
|
612
620
|
<slot></slot>
|
|
613
621
|
</ft-typography>
|
|
614
622
|
</div>
|
|
615
|
-
`}onClick(t){this.dispatchEvent(new Qi(this.value))}}te.elementDefinitions={"ft-icon":
|
|
616
|
-
<div class="${n.classMap(
|
|
617
|
-
<ft-button
|
|
623
|
+
`}onClick(t){this.dispatchEvent(new Qi(this.value))}}te.elementDefinitions={"ft-icon":Zi,"ft-ripple":v,"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.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`
|
|
624
|
+
<div class="${n.classMap(o)}">
|
|
625
|
+
<ft-button id="actions-button"
|
|
626
|
+
part="button"
|
|
618
627
|
dense round
|
|
619
628
|
icon="${this.icon}"
|
|
620
|
-
|
|
621
|
-
@click=${this.onClick}
|
|
629
|
+
.iconVariant=${this.iconVariant}
|
|
622
630
|
.label=${this.label}
|
|
623
|
-
|
|
624
|
-
|
|
631
|
+
.tooltipPosition=${this.tooltipPosition}
|
|
632
|
+
?disabled=${this.disabled}
|
|
633
|
+
@click=${this.onClick}>
|
|
634
|
+
${this.text}
|
|
625
635
|
</ft-button>
|
|
626
636
|
<div class="ft-floating-menu--options"
|
|
637
|
+
part="options"
|
|
627
638
|
@select="${this.onClickItem}">
|
|
628
639
|
<slot></slot>
|
|
629
640
|
</div>
|
|
630
641
|
</div>
|
|
631
|
-
`}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)}
|
|
642
|
+
`}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)}}ee.elementDefinitions={"ft-button":qi,"ft-floating-menu-item":te},ee.styles=l,ie([o.state()],ee.prototype,"menuOpen",void 0),ie([o.query(".ft-floating-menu")],ee.prototype,"container",void 0),ie([o.query(".ft-floating-menu--options")],ee.prototype,"menuContainer",void 0),ie([o.query("ft-button")],ee.prototype,"button",void 0),ie([o.property()],ee.prototype,"label",void 0),ie([o.property()],ee.prototype,"tooltipPosition",void 0),ie([o.property()],ee.prototype,"iconVariant",void 0),ie([o.property()],ee.prototype,"icon",void 0),ie([o.property()],ee.prototype,"text",void 0),ie([o.property()],ee.prototype,"horizontalAlignment",void 0),ie([o.property()],ee.prototype,"verticalAlignment",void 0),ie([o.property({type:Boolean})],ee.prototype,"disabled",void 0),i.customElement("ft-floating-menu")(ee),i.customElement("ft-floating-menu-item")(te),t.FtFloatingMenu=ee,t.FtFloatingMenuCssVariables=r,t.FtFloatingMenuItem=te,t.FtFloatingMenuItemCssVariables=Xi,t.FtFloatingMenuItemSelect=Qi,t.itemStyles=Yi,t.styles=l,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|