@fluid-topics/ft-snap-scroll 0.2.4 → 0.2.6
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-snap-scroll.inline-styles.js +133 -133
- package/build/ft-snap-scroll.light.js +125 -125
- package/build/ft-snap-scroll.min.js +132 -132
- package/package.json +4 -4
|
@@ -110,115 +110,115 @@ var g;x.elementDefinitions={},x.styles=e.css`
|
|
|
110
110
|
opacity: ${a.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`,r([o.property({type:Boolean})],x.prototype,"primary",void 0),r([o.property({type:Boolean})],x.prototype,"secondary",void 0),r([o.property({type:Boolean})],x.prototype,"unbounded",void 0),r([o.property({type:Boolean})],x.prototype,"activated",void 0),r([o.property({type:Boolean})],x.prototype,"selected",void 0),r([o.property({type:Boolean})],x.prototype,"disabled",void 0),r([o.state()],x.prototype,"hovered",void 0),r([o.state()],x.prototype,"focused",void 0),r([o.state()],x.prototype,"pressed",void 0),r([o.state()],x.prototype,"rippling",void 0),r([o.state()],x.prototype,"rippleSize",void 0),r([o.state()],x.prototype,"originX",void 0),r([o.state()],x.prototype,"originY",void 0),r([o.query(".ft-ripple")],x.prototype,"ripple",void 0),r([o.query(".ft-ripple--effect")],x.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(x);const b=globalThis.trustedTypes,y=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,m="?"+v,$=`<${m}>`,w=document,k=(t="")=>w.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,
|
|
113
|
+
`,r([o.property({type:Boolean})],x.prototype,"primary",void 0),r([o.property({type:Boolean})],x.prototype,"secondary",void 0),r([o.property({type:Boolean})],x.prototype,"unbounded",void 0),r([o.property({type:Boolean})],x.prototype,"activated",void 0),r([o.property({type:Boolean})],x.prototype,"selected",void 0),r([o.property({type:Boolean})],x.prototype,"disabled",void 0),r([o.state()],x.prototype,"hovered",void 0),r([o.state()],x.prototype,"focused",void 0),r([o.state()],x.prototype,"pressed",void 0),r([o.state()],x.prototype,"rippling",void 0),r([o.state()],x.prototype,"rippleSize",void 0),r([o.state()],x.prototype,"originX",void 0),r([o.state()],x.prototype,"originY",void 0),r([o.query(".ft-ripple")],x.prototype,"ripple",void 0),r([o.query(".ft-ripple--effect")],x.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(x);const b=globalThis.trustedTypes,y=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,m="?"+v,$=`<${m}>`,w=document,k=(t="")=>w.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,j=/>/g,T=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,E=/'/g,N=/"/g,I=/^(?:script|style|textarea|title)$/i,_=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),B=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),M=new WeakMap,A=w.createTreeWalker(w,129,null,!1),R=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=C;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===C?"!--"===a[1]?r=O:void 0!==a[1]?r=j:void 0!==a[2]?(I.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=T):void 0!==a[3]&&(r=T):r===T?">"===a[0]?(r=null!=s?s:C,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?T:'"'===a[3]?N:E):r===N||r===E?r=T:r===O||r===j?r=C:(r=T,s=void 0);const f=r===T&&t[i+1].startsWith("/>")?" ":"";n+=r===C?e+$:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+v+f):e+v+(-2===p?(o.push(void 0),i):f)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(l):l,o]};class U{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=R(t,i);if(this.el=U.createElement(a,e),A.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=A.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(v)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(v),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?L:"?"===i[1]?K:"@"===i[1]?q:W})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(I.test(o.tagName)){const t=o.textContent.split(v),i=t.length-1;if(i>0){o.textContent=b?b.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],k()),A.nextNode(),l.push({type:2,index:++s});o.append(t[i],k())}}}else if(8===o.nodeType)if(o.data===m)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(v,t+1));)l.push({type:7,index:s}),t+=v.length-1}s++}}static createElement(t,i){const e=w.createElement("template");return e.innerHTML=t,e}}function Z(t,i,e=t,o){var s,n,r,l;if(i===B)return i;let a=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const p=z(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.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)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=Z(t,a._$AS(t,i.values),a,o)),i}class D{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:w).importNode(e,!0);A.currentNode=s;let n=A.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new H(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new P(n,this,t)),this.v.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=A.nextNode(),r++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class H{constructor(t,i,e,o){var s;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}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=Z(this,t,i),z(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==B&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return S(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==F&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(w.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=U.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new D(s,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=M.get(t.strings);return void 0===i&&M.set(t.strings,i=new U(t)),i}S(t){S(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new H(this.M(k()),this.M(k()),this,this.options)):e=i[o],e._$AI(s),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._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class W{constructor(t,i,e,o,s){this.type=1,this._$AH=F,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=Z(this,t,i,0),n=!z(t)||t!==this._$AH&&t!==B,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Z(this,o[e+r],i,r),l===B&&(l=this._$AH[r]),n||(n=!z(l)||l!==this._$AH[r]),l===F?t=F:t!==F&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.C(t)}C(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class L extends W{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===F?void 0:t}}const G=b?b.emptyScript:"";class K extends W{constructor(){super(...arguments),this.type=4}C(t){t&&t!==F?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class q extends W{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Z(this,t,i,0))&&void 0!==e?e:F)===B)return;const o=this._$AH,s=t===F&&o!==F||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==F&&(o===F||s);s&&this.element.removeEventListener(this.name,this,o),n&&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 P{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){Z(this,t)}}const V=window.litHtmlPolyfillSupport;null==V||V(U,H),(null!==(g=globalThis.litHtmlVersions)&&void 0!==g?g:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
114
114
|
/**
|
|
115
115
|
* @license
|
|
116
116
|
* Copyright 2020 Google LLC
|
|
117
117
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
118
|
*/
|
|
119
|
-
const X=t=>({_$litStatic$:t}),
|
|
119
|
+
const X=Symbol.for(""),Y=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===X)return null===(e=t)||void 0===e?void 0:e._$litStatic$},J=t=>({_$litStatic$:t,r:X}),Q=new Map,tt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(n=e[p],s=Y(n));)a+=s+i[++p],h=!0;l.push(n),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=Q.get(t))&&(r.raw=r,Q.set(t,i=r)),e=l}return t(i,...e)})(_);var it,et=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!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"}(it||(it={}));const ot=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),st=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),nt={fontFamily:st,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},rt=i.FtCssVariable.extend("--ft-typography-title-font-family",ot),lt=i.FtCssVariable.extend("--ft-typography-title-font-size",nt.fontSize,"20px"),at=i.FtCssVariable.extend("--ft-typography-title-font-weight",nt.fontWeight,"normal"),pt=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",nt.letterSpacing,"0.15px"),ht=i.FtCssVariable.extend("--ft-typography-title-line-height",nt.lineHeight,"24px"),ft=i.FtCssVariable.extend("--ft-typography-title-text-transform",nt.textTransform,"inherit"),ct=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",ot),dt=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",nt.fontSize,"14px"),ut=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",nt.fontWeight,"normal"),xt=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",nt.letterSpacing,"0.105px"),gt=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",nt.lineHeight,"24px"),bt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",nt.textTransform,"inherit"),yt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",st),vt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",nt.fontSize,"16px"),mt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",nt.fontWeight,"600"),$t=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",nt.letterSpacing,"0.144px"),wt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",nt.lineHeight,"24px"),kt=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",nt.textTransform,"inherit"),zt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",st),St=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",nt.fontSize,"14px"),Ct=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",nt.fontWeight,"normal"),Ot=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",nt.letterSpacing,"0.098px"),jt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",nt.lineHeight,"24px"),Tt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",nt.textTransform,"inherit"),Et=i.FtCssVariable.extend("--ft-typography-body1-font-family",st),Nt=i.FtCssVariable.extend("--ft-typography-body1-font-size",nt.fontSize,"16px"),It=i.FtCssVariable.extend("--ft-typography-body1-font-weight",nt.fontWeight,"normal"),_t=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",nt.letterSpacing,"0.496px"),Bt=i.FtCssVariable.extend("--ft-typography-body1-line-height",nt.lineHeight,"24px"),Ft=i.FtCssVariable.extend("--ft-typography-body1-text-transform",nt.textTransform,"inherit"),Mt=i.FtCssVariable.extend("--ft-typography-body2-font-family",st),At=i.FtCssVariable.extend("--ft-typography-body2-font-size",nt.fontSize,"14px"),Rt=i.FtCssVariable.extend("--ft-typography-body2-font-weight",nt.fontWeight,"normal"),Ut=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",nt.letterSpacing,"0.252px"),Zt=i.FtCssVariable.extend("--ft-typography-body2-line-height",nt.lineHeight,"20px"),Dt=i.FtCssVariable.extend("--ft-typography-body2-text-transform",nt.textTransform,"inherit"),Ht=i.FtCssVariable.extend("--ft-typography-caption-font-family",st),Wt=i.FtCssVariable.extend("--ft-typography-caption-font-size",nt.fontSize,"12px"),Lt=i.FtCssVariable.extend("--ft-typography-caption-font-weight",nt.fontWeight,"normal"),Gt=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",nt.letterSpacing,"0.396px"),Kt=i.FtCssVariable.extend("--ft-typography-caption-line-height",nt.lineHeight,"16px"),qt=i.FtCssVariable.extend("--ft-typography-caption-text-transform",nt.textTransform,"inherit"),Pt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",st),Vt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",nt.fontSize,"10px"),Xt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",nt.fontWeight,"normal"),Yt=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",nt.letterSpacing,"0.33px"),Jt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",nt.lineHeight,"16px"),Qt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",nt.textTransform,"inherit"),ti=i.FtCssVariable.extend("--ft-typography-overline-font-family",st),ii=i.FtCssVariable.extend("--ft-typography-overline-font-size",nt.fontSize,"10px"),ei=i.FtCssVariable.extend("--ft-typography-overline-font-weight",nt.fontWeight,"normal"),oi=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",nt.letterSpacing,"1.5px"),si=i.FtCssVariable.extend("--ft-typography-overline-line-height",nt.lineHeight,"16px"),ni=i.FtCssVariable.extend("--ft-typography-overline-text-transform",nt.textTransform,"uppercase"),ri={fontFamily:i.FtCssVariable.extend("--ft-typography-button-font-family",st),fontSize:i.FtCssVariable.extend("--ft-typography-button-font-size",nt.fontSize,"14px"),fontWeight:i.FtCssVariable.extend("--ft-typography-button-font-weight",nt.fontWeight,"600"),letterSpacing:i.FtCssVariable.extend("--ft-typography-button-letter-spacing",nt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariable.extend("--ft-typography-button-line-height",nt.lineHeight,"16px"),textTransform:i.FtCssVariable.extend("--ft-typography-button-text-transform",nt.textTransform,"uppercase")},li=e.css`
|
|
120
120
|
.ft-typography--title {
|
|
121
|
-
font-family: ${
|
|
122
|
-
font-size: ${
|
|
123
|
-
font-weight: ${
|
|
124
|
-
letter-spacing: ${
|
|
125
|
-
line-height: ${
|
|
126
|
-
text-transform: ${
|
|
121
|
+
font-family: ${rt};
|
|
122
|
+
font-size: ${lt};
|
|
123
|
+
font-weight: ${at};
|
|
124
|
+
letter-spacing: ${pt};
|
|
125
|
+
line-height: ${ht};
|
|
126
|
+
text-transform: ${ft};
|
|
127
127
|
}
|
|
128
|
-
`,
|
|
128
|
+
`,ai=e.css`
|
|
129
129
|
.ft-typography--title-dense {
|
|
130
|
-
font-family: ${
|
|
131
|
-
font-size: ${
|
|
132
|
-
font-weight: ${
|
|
133
|
-
letter-spacing: ${
|
|
134
|
-
line-height: ${
|
|
135
|
-
text-transform: ${
|
|
130
|
+
font-family: ${ct};
|
|
131
|
+
font-size: ${dt};
|
|
132
|
+
font-weight: ${ut};
|
|
133
|
+
letter-spacing: ${xt};
|
|
134
|
+
line-height: ${gt};
|
|
135
|
+
text-transform: ${bt};
|
|
136
136
|
}
|
|
137
|
-
`,
|
|
137
|
+
`,pi=e.css`
|
|
138
138
|
.ft-typography--subtitle1 {
|
|
139
|
-
font-family: ${
|
|
140
|
-
font-size: ${
|
|
141
|
-
font-weight: ${
|
|
142
|
-
letter-spacing: ${
|
|
143
|
-
line-height: ${
|
|
144
|
-
text-transform: ${
|
|
139
|
+
font-family: ${yt};
|
|
140
|
+
font-size: ${vt};
|
|
141
|
+
font-weight: ${mt};
|
|
142
|
+
letter-spacing: ${$t};
|
|
143
|
+
line-height: ${wt};
|
|
144
|
+
text-transform: ${kt};
|
|
145
145
|
}
|
|
146
|
-
`,
|
|
146
|
+
`,hi=e.css`
|
|
147
147
|
.ft-typography--subtitle2 {
|
|
148
|
-
font-family: ${
|
|
149
|
-
font-size: ${
|
|
150
|
-
font-weight: ${
|
|
151
|
-
letter-spacing: ${
|
|
152
|
-
line-height: ${
|
|
153
|
-
text-transform: ${
|
|
148
|
+
font-family: ${zt};
|
|
149
|
+
font-size: ${St};
|
|
150
|
+
font-weight: ${Ct};
|
|
151
|
+
letter-spacing: ${Ot};
|
|
152
|
+
line-height: ${jt};
|
|
153
|
+
text-transform: ${Tt};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
`,
|
|
156
|
+
`,fi=e.css`
|
|
157
157
|
.ft-typography--body1 {
|
|
158
|
-
font-family: ${
|
|
159
|
-
font-size: ${
|
|
160
|
-
font-weight: ${
|
|
161
|
-
letter-spacing: ${
|
|
162
|
-
line-height: ${
|
|
163
|
-
text-transform: ${
|
|
158
|
+
font-family: ${Et};
|
|
159
|
+
font-size: ${Nt};
|
|
160
|
+
font-weight: ${It};
|
|
161
|
+
letter-spacing: ${_t};
|
|
162
|
+
line-height: ${Bt};
|
|
163
|
+
text-transform: ${Ft};
|
|
164
164
|
}
|
|
165
|
-
`,
|
|
165
|
+
`,ci=e.css`
|
|
166
166
|
.ft-typography--body2 {
|
|
167
|
-
font-family: ${
|
|
168
|
-
font-size: ${
|
|
169
|
-
font-weight: ${
|
|
170
|
-
letter-spacing: ${
|
|
171
|
-
line-height: ${
|
|
172
|
-
text-transform: ${
|
|
167
|
+
font-family: ${Mt};
|
|
168
|
+
font-size: ${At};
|
|
169
|
+
font-weight: ${Rt};
|
|
170
|
+
letter-spacing: ${Ut};
|
|
171
|
+
line-height: ${Zt};
|
|
172
|
+
text-transform: ${Dt};
|
|
173
173
|
}
|
|
174
|
-
`,
|
|
174
|
+
`,di=e.css`
|
|
175
175
|
.ft-typography--caption {
|
|
176
|
-
font-family: ${
|
|
177
|
-
font-size: ${
|
|
178
|
-
font-weight: ${
|
|
179
|
-
letter-spacing: ${
|
|
180
|
-
line-height: ${
|
|
181
|
-
text-transform: ${
|
|
176
|
+
font-family: ${Ht};
|
|
177
|
+
font-size: ${Wt};
|
|
178
|
+
font-weight: ${Lt};
|
|
179
|
+
letter-spacing: ${Gt};
|
|
180
|
+
line-height: ${Kt};
|
|
181
|
+
text-transform: ${qt};
|
|
182
182
|
}
|
|
183
|
-
`,
|
|
183
|
+
`,ui=e.css`
|
|
184
184
|
.ft-typography--breadcrumb {
|
|
185
|
-
font-family: ${
|
|
186
|
-
font-size: ${
|
|
187
|
-
font-weight: ${
|
|
188
|
-
letter-spacing: ${
|
|
189
|
-
line-height: ${
|
|
190
|
-
text-transform: ${
|
|
185
|
+
font-family: ${Pt};
|
|
186
|
+
font-size: ${Vt};
|
|
187
|
+
font-weight: ${Xt};
|
|
188
|
+
letter-spacing: ${Yt};
|
|
189
|
+
line-height: ${Jt};
|
|
190
|
+
text-transform: ${Qt};
|
|
191
191
|
}
|
|
192
|
-
`,
|
|
192
|
+
`,xi=e.css`
|
|
193
193
|
.ft-typography--overline {
|
|
194
|
-
font-family: ${
|
|
195
|
-
font-size: ${
|
|
196
|
-
font-weight: ${
|
|
197
|
-
letter-spacing: ${
|
|
198
|
-
line-height: ${
|
|
199
|
-
text-transform: ${
|
|
194
|
+
font-family: ${ti};
|
|
195
|
+
font-size: ${ii};
|
|
196
|
+
font-weight: ${ei};
|
|
197
|
+
letter-spacing: ${oi};
|
|
198
|
+
line-height: ${si};
|
|
199
|
+
text-transform: ${ni};
|
|
200
200
|
}
|
|
201
|
-
`,
|
|
201
|
+
`,gi=e.css`
|
|
202
202
|
.ft-typography--button {
|
|
203
|
-
font-family: ${
|
|
204
|
-
font-size: ${
|
|
205
|
-
font-weight: ${
|
|
206
|
-
letter-spacing: ${
|
|
207
|
-
line-height: ${
|
|
208
|
-
text-transform: ${
|
|
203
|
+
font-family: ${ri.fontFamily};
|
|
204
|
+
font-size: ${ri.fontSize};
|
|
205
|
+
font-weight: ${ri.fontWeight};
|
|
206
|
+
letter-spacing: ${ri.letterSpacing};
|
|
207
|
+
line-height: ${ri.lineHeight};
|
|
208
|
+
text-transform: ${ri.textTransform};
|
|
209
209
|
}
|
|
210
|
-
`;class
|
|
211
|
-
<${
|
|
210
|
+
`;class bi extends i.FtLitElement{constructor(){super(...arguments),this.variant=it.body1}render(){return this.element?tt`
|
|
211
|
+
<${J(this.element)}
|
|
212
212
|
class="ft-typography ft-typography--${this.variant}">
|
|
213
213
|
<slot></slot>
|
|
214
|
-
</${
|
|
215
|
-
`:
|
|
214
|
+
</${J(this.element)}>
|
|
215
|
+
`:tt`
|
|
216
216
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
217
|
-
`}}
|
|
217
|
+
`}}bi.styles=[li,ai,pi,hi,fi,ci,di,ui,xi,gi,e.css`
|
|
218
218
|
.ft-typography {
|
|
219
219
|
vertical-align: inherit;
|
|
220
220
|
}
|
|
221
|
-
`],
|
|
221
|
+
`],et([o.property()],bi.prototype,"element",void 0),et([o.property()],bi.prototype,"variant",void 0),i.customElement("ft-typography")(bi);var yi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const vi=i.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),mi=i.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),$i=i.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),wi=i.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),ki=i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system");class zi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}render(){return e.html`
|
|
222
222
|
<div part="container"
|
|
223
223
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
224
224
|
@mouseenter=${this.onHover}
|
|
@@ -233,7 +233,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
233
233
|
</div>
|
|
234
234
|
<slot></slot>
|
|
235
235
|
</div>
|
|
236
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=i.height+"px",s.left=o+"px";break;case"left":s.top=e+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=e+"px",s.left=i.width+"px"}s.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}
|
|
236
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=i.height+"px",s.left=o+"px";break;case"left":s.top=e+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=e+"px",s.left=i.width+"px"}s.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}zi.elementDefinitions={"ft-typography":bi},zi.styles=e.css`
|
|
237
237
|
.ft-tooltip--container {
|
|
238
238
|
display: block;
|
|
239
239
|
position: relative;
|
|
@@ -251,21 +251,21 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
251
251
|
width: max-content;
|
|
252
252
|
max-width: 150px;
|
|
253
253
|
text-align: center;
|
|
254
|
-
padding: ${
|
|
255
|
-
z-index: ${
|
|
254
|
+
padding: ${vi};
|
|
255
|
+
z-index: ${wi};
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
.ft-tooltip--content {
|
|
259
259
|
padding: 4px 8px;
|
|
260
|
-
border-radius: ${
|
|
261
|
-
background-color: ${
|
|
262
|
-
color: ${
|
|
260
|
+
border-radius: ${ki};
|
|
261
|
+
background-color: ${$i};
|
|
262
|
+
color: ${mi};
|
|
263
263
|
top: -500px;
|
|
264
264
|
left: -500px;
|
|
265
265
|
position: relative;
|
|
266
266
|
word-break: break-word;
|
|
267
267
|
}
|
|
268
|
-
`,
|
|
268
|
+
`,yi([o.property()],zi.prototype,"text",void 0),yi([o.property({type:Boolean})],zi.prototype,"manual",void 0),yi([o.property({type:Boolean})],zi.prototype,"inline",void 0),yi([o.property({type:Number})],zi.prototype,"delay",void 0),yi([o.property()],zi.prototype,"position",void 0),yi([o.queryAssignedNodes("",!0)],zi.prototype,"slotNodes",void 0),yi([o.query(".ft-tooltip--container")],zi.prototype,"container",void 0),yi([o.query("slot")],zi.prototype,"target",void 0),yi([o.query(".ft-tooltip")],zi.prototype,"tooltip",void 0),yi([o.query(".ft-tooltip--content")],zi.prototype,"tooltipContent",void 0),yi([o.state()],zi.prototype,"visible",void 0),i.customElement("ft-tooltip")(zi);const Si={color:i.FtCssVariable.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class Ci extends i.FtLitElement{static get styles(){return e.css`
|
|
269
269
|
:host {
|
|
270
270
|
line-height: 0;
|
|
271
271
|
}
|
|
@@ -274,8 +274,8 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
274
274
|
display: inline-block;
|
|
275
275
|
position: relative;
|
|
276
276
|
|
|
277
|
-
width: ${
|
|
278
|
-
height: ${
|
|
277
|
+
width: ${Si.size};
|
|
278
|
+
height: ${Si.size};
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
.ft-loader div {
|
|
@@ -284,7 +284,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
284
284
|
width: 25%;
|
|
285
285
|
height: 25%;
|
|
286
286
|
border-radius: 50%;
|
|
287
|
-
background: ${
|
|
287
|
+
background: ${Si.color};
|
|
288
288
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
289
289
|
}
|
|
290
290
|
|
|
@@ -331,7 +331,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
331
331
|
transform: translate(0, 0);
|
|
332
332
|
}
|
|
333
333
|
100% {
|
|
334
|
-
transform: translate(calc(0.35 * ${
|
|
334
|
+
transform: translate(calc(0.35 * ${Si.size}), 0);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
`}render(){return e.html`
|
|
@@ -341,21 +341,21 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
341
341
|
<div></div>
|
|
342
342
|
<div></div>
|
|
343
343
|
</div>
|
|
344
|
-
`}}var
|
|
344
|
+
`}}var Oi,ji;i.customElement("ft-loader")(Ci),function(t){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="\f06e",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=""}(Oi||(Oi={})),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=""}(ji||(ji={})),new Map([...["abw"].map((t=>[t,ji.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,ji.AUDIO])),...["avi"].map((t=>[t,ji.AVI])),...["chm","xhs"].map((t=>[t,ji.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,ji.CODE])),...["csv"].map((t=>[t,ji.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ji.DITA])),...["epub"].map((t=>[t,ji.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ji.EXCEL])),...["flac"].map((t=>[t,ji.FLAC])),...["gif"].map((t=>[t,ji.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ji.GZIP])),...["html","htm","xhtml"].map((t=>[t,ji.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,ji.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ji.JPEG])),...["json"].map((t=>[t,ji.JSON])),...["m4a","m4p"].map((t=>[t,ji.M4A])),...["mov","qt"].map((t=>[t,ji.MOV])),...["mp3"].map((t=>[t,ji.MP3])),...["mp4","m4v"].map((t=>[t,ji.MP4])),...["ogg","oga"].map((t=>[t,ji.OGG])),...["pdf","ps"].map((t=>[t,ji.PDF])),...["png"].map((t=>[t,ji.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ji.POWERPOINT])),...["rar"].map((t=>[t,ji.RAR])),...["stp"].map((t=>[t,ji.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ji.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,ji.VIDEO])),...["wav"].map((t=>[t,ji.WAV])),...["wma"].map((t=>[t,ji.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ji.WORD])),...["xml","xsl","rdf"].map((t=>[t,ji.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ji.YAML])),...["zip"].map((t=>[t,ji.ZIP]))]);var Ti,Ei=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ti||(Ti={}));const Ni={size:i.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariable.extend("--ft-icon-file-format-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariable.extend("--ft-icon-material-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class Ii extends i.FtLitElement{constructor(){super(...arguments),this.variant=Ti.fluid_topics}render(){return e.html`
|
|
345
345
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
346
346
|
${n.unsafeHTML(this.getIcon())}
|
|
347
347
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
348
348
|
</i>
|
|
349
|
-
`}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:""}getIcon(){var t,i;let o=this.textContent;return this.variant===
|
|
349
|
+
`}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:""}getIcon(){var t,i;let o=this.textContent;return this.variant===Ti.file_format?null!==(t=ji[o.toUpperCase()])&&void 0!==t?t:o:this.variant===Ti.fluid_topics?null!==(i=Oi[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}Ii.elementDefinitions={},Ii.styles=e.css`
|
|
350
350
|
:host, i.ft-icon {
|
|
351
351
|
display: inline-block;
|
|
352
|
-
width: ${
|
|
353
|
-
height: ${
|
|
352
|
+
width: ${Ni.size};
|
|
353
|
+
height: ${Ni.size};
|
|
354
354
|
text-align: center;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
i.ft-icon {
|
|
358
|
-
font-size: ${
|
|
358
|
+
font-size: ${Ni.size};
|
|
359
359
|
line-height: 1;
|
|
360
360
|
font-weight: normal;
|
|
361
361
|
text-transform: none;
|
|
@@ -369,17 +369,17 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
.ft-icon--fluid-topics {
|
|
372
|
-
font-family: ${
|
|
372
|
+
font-family: ${Ni.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
.ft-icon--file-format {
|
|
376
|
-
font-family: ${
|
|
376
|
+
font-family: ${Ni.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
.ft-icon--material {
|
|
380
|
-
font-family: ${
|
|
380
|
+
font-family: ${Ni.materialFontFamily}, "Material Icons", sans-serif;
|
|
381
381
|
}
|
|
382
|
-
`,
|
|
382
|
+
`,Ei([o.property()],Ii.prototype,"variant",void 0),Ei([o.query("slot")],Ii.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ii);var _i=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const Bi=i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Fi={backgroundColor:i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Bi,fontSize:i.FtCssVariable.extend("--ft-button-font-size",ri.fontSize),iconSize:i.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariable.extend("--ft-button-ripple-color",Bi),opacityDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Mi=i.FtCssVariable.extend("--ft-button-primary-color",i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Ai={backgroundColor:i.FtCssVariable.extend("--ft-button-primary-background-color",i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Mi,rippleColor:i.FtCssVariable.extend("--ft-button-primary-ripple-color",Mi)},Ri=i.FtCssVariable.extend("--ft-button-dense-border-radius",i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM));class Ui 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.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[i.noTextSelect,e.css`
|
|
383
383
|
:host {
|
|
384
384
|
display: inline-block;
|
|
385
385
|
max-width: 100%;
|
|
@@ -418,18 +418,18 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
418
418
|
border: none;
|
|
419
419
|
pointer-events: auto;
|
|
420
420
|
|
|
421
|
-
--ft-button-internal-font-size: ${
|
|
421
|
+
--ft-button-internal-font-size: ${Fi.fontSize};
|
|
422
422
|
--ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
|
|
423
|
-
--ft-button-internal-color: ${
|
|
424
|
-
${i.setVariable(
|
|
423
|
+
--ft-button-internal-color: ${Fi.color};
|
|
424
|
+
${i.setVariable(Ni.size,Fi.iconSize)};
|
|
425
425
|
--ft-button-internal-vertical-padding: 6px;
|
|
426
426
|
--ft-button-internal-horizontal-padding: 8px;
|
|
427
|
-
${i.setVariable(a.color,
|
|
428
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
427
|
+
${i.setVariable(a.color,Fi.rippleColor)};
|
|
428
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fi.iconSize});
|
|
429
429
|
|
|
430
|
-
border-radius: ${
|
|
430
|
+
border-radius: ${Fi.borderRadius};
|
|
431
431
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
432
|
-
background-color: ${
|
|
432
|
+
background-color: ${Fi.backgroundColor};
|
|
433
433
|
color: var(--ft-button-internal-color);
|
|
434
434
|
-webkit-mask-image: radial-gradient(white, black);
|
|
435
435
|
}
|
|
@@ -441,7 +441,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
441
441
|
.ft-button--dense {
|
|
442
442
|
--ft-button-internal-vertical-padding: 2px;
|
|
443
443
|
--ft-button-internal-horizontal-padding: 4px;
|
|
444
|
-
border-radius: ${
|
|
444
|
+
border-radius: ${Ri};
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
.ft-button--round {
|
|
@@ -450,13 +450,13 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
450
450
|
|
|
451
451
|
.ft-button[disabled] {
|
|
452
452
|
filter: grayscale(1);
|
|
453
|
-
opacity: ${
|
|
453
|
+
opacity: ${Fi.opacityDisabled};
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
.ft-button.ft-button--primary {
|
|
457
|
-
background-color: ${
|
|
458
|
-
--ft-button-internal-color: ${
|
|
459
|
-
${i.setVariable(a.color,
|
|
457
|
+
background-color: ${Ai.backgroundColor};
|
|
458
|
+
--ft-button-internal-color: ${Ai.color};
|
|
459
|
+
${i.setVariable(a.color,Ai.rippleColor)};
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
.ft-button.ft-button--outlined {
|
|
@@ -475,8 +475,8 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
475
475
|
text-overflow: ellipsis;
|
|
476
476
|
display: block;
|
|
477
477
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
478
|
-
${i.setVariable(
|
|
479
|
-
${i.setVariable(
|
|
478
|
+
${i.setVariable(ri.fontSize,"var(--ft-button-internal-font-size)")};
|
|
479
|
+
${i.setVariable(ri.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -509,8 +509,8 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
ft-loader {
|
|
512
|
-
${i.setVariable(
|
|
513
|
-
${i.setVariable(
|
|
512
|
+
${i.setVariable(Si.size,Fi.iconSize)};
|
|
513
|
+
${i.setVariable(Si.color,"var(--ft-button-internal-color)")};
|
|
514
514
|
}
|
|
515
515
|
`]}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.addTooltip(e.html`
|
|
516
516
|
<button part="button"
|
|
@@ -534,7 +534,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
534
534
|
</ft-tooltip>
|
|
535
535
|
`}resolveIcon(){return this.loading?e.html`
|
|
536
536
|
<ft-loader></ft-loader> `:this.icon?e.html`
|
|
537
|
-
<ft-icon variant="material">${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}}
|
|
537
|
+
<ft-icon variant="material">${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}}Ui.elementDefinitions={"ft-ripple":x,"ft-tooltip":zi,"ft-typography":bi,"ft-icon":Ii,"ft-loader":Ci},_i([o.property({type:Boolean})],Ui.prototype,"primary",void 0),_i([o.property({type:Boolean})],Ui.prototype,"outlined",void 0),_i([o.property({type:Boolean})],Ui.prototype,"disabled",void 0),_i([o.property({type:Boolean})],Ui.prototype,"dense",void 0),_i([o.property({type:Boolean})],Ui.prototype,"round",void 0),_i([o.property({type:String})],Ui.prototype,"label",void 0),_i([o.property({type:String})],Ui.prototype,"icon",void 0),_i([o.property({type:Boolean})],Ui.prototype,"trailingIcon",void 0),_i([o.property({type:Boolean})],Ui.prototype,"loading",void 0),_i([o.property({type:String})],Ui.prototype,"tooltipPosition",void 0),_i([o.query(".ft-button")],Ui.prototype,"button",void 0),_i([o.query(".ft-button--label slot")],Ui.prototype,"slottedContent",void 0),i.customElement("ft-button")(Ui);var Zi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const Di={buttonsColor:i.FtCssVariable.extend("--ft-snap-scroll-buttons-color",i.designSystemVariables.colorPrimary),buttonsZIndex:i.FtCssVariable.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:i.FtCssVariable.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:i.FtCssVariable.external(i.designSystemVariables.colorSurface,"Design system")};class Hi extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class Wi extends i.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new i.Debouncer(200),this.updateScrollDebouncer=new i.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let i=this.elements[t];if(i){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(i[this.offsetAttribute]<e||i[this.offsetAttribute]+i[this.sizeAttribute]>t)&&this.scrollToElement(i)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=s.classMap({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":i.isSafari}),o=this.controls&&this.withScroll;return e.html`
|
|
538
538
|
<div part="container" class="${t}">
|
|
539
539
|
<ft-button
|
|
540
540
|
class="ft-snap-scroll--previous"
|
|
@@ -558,7 +558,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
558
558
|
@click=${this.next}
|
|
559
559
|
></ft-button>
|
|
560
560
|
</div>
|
|
561
|
-
`}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new
|
|
561
|
+
`}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Hi(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}Wi.elementDefinitions={"ft-button":Ui},Wi.styles=e.css`
|
|
562
562
|
.ft-snap-scroll {
|
|
563
563
|
box-sizing: border-box;
|
|
564
564
|
position: relative;
|
|
@@ -593,7 +593,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
593
593
|
flex-wrap: nowrap;
|
|
594
594
|
align-items: flex-start;
|
|
595
595
|
justify-content: flex-start;
|
|
596
|
-
gap: ${
|
|
596
|
+
gap: ${Di.gap};
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -636,11 +636,11 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
636
636
|
.ft-snap-scroll--next {
|
|
637
637
|
position: absolute;
|
|
638
638
|
display: flex;
|
|
639
|
-
z-index: ${
|
|
639
|
+
z-index: ${Di.buttonsZIndex};
|
|
640
640
|
opacity: 1;
|
|
641
641
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
642
|
-
${i.setVariable(
|
|
643
|
-
${i.setVariable(
|
|
642
|
+
${i.setVariable(Fi.backgroundColor,"transparent")};
|
|
643
|
+
${i.setVariable(Fi.color,Di.buttonsColor)};
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -653,34 +653,34 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
|
|
|
653
653
|
top: 0;
|
|
654
654
|
left: -1px;
|
|
655
655
|
bottom: 0;
|
|
656
|
-
background: linear-gradient(to right, ${
|
|
656
|
+
background: linear-gradient(to right, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
660
660
|
top: -1px;
|
|
661
661
|
left: 0;
|
|
662
662
|
right: 0;
|
|
663
|
-
background: linear-gradient(to bottom, ${
|
|
663
|
+
background: linear-gradient(to bottom, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
667
667
|
top: 0;
|
|
668
668
|
right: -1px;
|
|
669
669
|
bottom: 0;
|
|
670
|
-
background: linear-gradient(to left, ${
|
|
670
|
+
background: linear-gradient(to left, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
671
671
|
}
|
|
672
672
|
|
|
673
673
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
674
674
|
left: 0;
|
|
675
675
|
right: 0;
|
|
676
676
|
bottom: -1px;
|
|
677
|
-
background: linear-gradient(to top, ${
|
|
677
|
+
background: linear-gradient(to top, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
681
681
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
682
682
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
683
683
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
684
|
-
background-color: ${
|
|
684
|
+
background-color: ${Di.colorSurface};
|
|
685
685
|
}
|
|
686
|
-
`,
|
|
686
|
+
`,Zi([o.property({type:Boolean})],Wi.prototype,"horizontal",void 0),Zi([o.property({type:Boolean})],Wi.prototype,"hideScrollbar",void 0),Zi([o.property({type:Boolean})],Wi.prototype,"controls",void 0),Zi([o.property({type:Boolean})],Wi.prototype,"limitSize",void 0),Zi([o.state()],Wi.prototype,"elements",void 0),Zi([o.state()],Wi.prototype,"currentElement",void 0),Zi([o.state()],Wi.prototype,"withScroll",void 0),Zi([o.state()],Wi.prototype,"startReached",void 0),Zi([o.state()],Wi.prototype,"endReached",void 0),Zi([o.query(".ft-snap-scroll--content")],Wi.prototype,"contentSlot",void 0),i.customElement("ft-snap-scroll")(Wi),t.CurrentElementChange=Hi,t.FtSnapScroll=Wi,t.FtSnapScrollCssVariables=Di,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|