@fluid-topics/ft-tabs 0.3.18 → 0.3.20
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-tabs.light.js +96 -96
- package/build/ft-tabs.min.js +134 -134
- package/package.json +6 -6
package/build/ft-tabs.light.js
CHANGED
|
@@ -111,127 +111,127 @@
|
|
|
111
111
|
<div class="ft-ripple--background"></div>
|
|
112
112
|
<div class="ft-ripple--effect"></div>
|
|
113
113
|
</div>
|
|
114
|
-
`}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 e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.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 e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),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 e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),s=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",s),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),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",i),t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),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 e=t,i=t;let s,o;return null!=e.x?({x:s,y:o}=e):null!=i.touches&&(s=i.touches[0].clientX,o=i.touches[0].clientY),{x:s,y:o}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}N.elementDefinitions={},N.styles=k,j([s.property({type:Boolean})],N.prototype,"primary",void 0),j([s.property({type:Boolean})],N.prototype,"secondary",void 0),j([s.property({type:Boolean})],N.prototype,"unbounded",void 0),j([s.property({type:Boolean})],N.prototype,"activated",void 0),j([s.property({type:Boolean})],N.prototype,"selected",void 0),j([s.property({type:Boolean})],N.prototype,"disabled",void 0),j([s.state()],N.prototype,"hovered",void 0),j([s.state()],N.prototype,"focused",void 0),j([s.state()],N.prototype,"pressed",void 0),j([s.state()],N.prototype,"rippling",void 0),j([s.state()],N.prototype,"rippleSize",void 0),j([s.state()],N.prototype,"originX",void 0),j([s.state()],N.prototype,"originY",void 0),j([s.query(".ft-ripple")],N.prototype,"ripple",void 0),j([s.query(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(N);const O=globalThis.trustedTypes,S=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,A=`lit$${(Math.random()+"").slice(9)}$`,I="?"+A,_=`<${I}>`,M=document,T=(t="")=>M.createComment(t),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,D=/>/g,R=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,G=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),P=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),F=new WeakMap,H=M.createTreeWalker(M,129,null,!1),L=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":"",n=E;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,l=n.exec(i),null!==l);)h=n.lastIndex,n===E?"!--"===l[1]?n=U:void 0!==l[1]?n=D:void 0!==l[2]?(K.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=R):void 0!==l[3]&&(n=R):n===R?">"===l[0]?(n=null!=o?o:E,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?R:'"'===l[3]?G:W):n===G||n===W?n=R:n===U||n===D?n=E:(n=R,o=void 0);const f=n===R&&t[e+1].startsWith("/>")?" ":"";r+=n===E?i+_:p>=0?(s.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+A+f):i+A+(-2===p?(s.push(void 0),e):f)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(a):a,s]};class V{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,p]=L(t,e);if(this.el=V.createElement(l,i),H.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=H.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(A)){const i=p[r++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+"$lit$").split(A),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?tt:"?"===e[1]?it:"@"===e[1]?st:Q})}else a.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(K.test(s.tagName)){const t=s.textContent.split(A),e=t.length-1;if(e>0){s.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],T()),H.nextNode(),a.push({type:2,index:++o});s.append(t[e],T())}}}else if(8===s.nodeType)if(s.data===I)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(A,t+1));)a.push({type:7,index:o}),t+=A.length-1}o++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function X(t,e,i=t,s){var o,r,n,a;if(e===P)return e;let l=void 0!==s?null===(o=i._$Cl)||void 0===o?void 0:o[s]:i._$Cu;const p=C(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,s)),void 0!==s?(null!==(n=(a=i)._$Cl)&&void 0!==n?n:a._$Cl=[])[s]=l:i._$Cu=l),void 0!==l&&(e=X(t,l._$AS(t,e.values),l,s)),e}class Y{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);H.currentNode=o;let r=H.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new J(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ot(r,this,t)),this.v.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=H.nextNode(),n++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class J{constructor(t,e,i,s){var o;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$C_=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=X(this,t,e),C(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==P&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>B(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==q&&C(this._$AH)?this._$AA.nextSibling.data=t:this.k(M.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new Y(o,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new V(t)),e}S(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new J(this.j(T()),this.j(T()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Q{constructor(t,e,i,s,o){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=X(this,t,e,0),r=!C(t)||t!==this._$AH&&t!==P,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=X(this,s[i+n],e,n),a===P&&(a=this._$AH[n]),r||(r=!C(a)||a!==this._$AH[n]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.P(t)}P(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===q?void 0:t}}const et=O?O.emptyScript:"";class it extends Q{constructor(){super(...arguments),this.type=4}P(t){t&&t!==q?this.element.setAttribute(this.name,et):this.element.removeAttribute(this.name)}}class st extends Q{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=X(this,t,e,0))&&void 0!==i?i:q)===P)return;const s=this._$AH,o=t===q&&s!==q||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==q&&(s===q||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const rt=window.litHtmlPolyfillSupport;null==rt||rt(V,J),(null!==(z=globalThis.litHtmlVersions)&&void 0!==z?z:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
114
|
+
`}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 e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.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 e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),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 e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),s=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",s),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),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",i),t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),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 e=t,i=t;let s,o;return null!=e.x?({x:s,y:o}=e):null!=i.touches&&(s=i.touches[0].clientX,o=i.touches[0].clientY),{x:s,y:o}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}N.elementDefinitions={},N.styles=k,j([s.property({type:Boolean})],N.prototype,"primary",void 0),j([s.property({type:Boolean})],N.prototype,"secondary",void 0),j([s.property({type:Boolean})],N.prototype,"unbounded",void 0),j([s.property({type:Boolean})],N.prototype,"activated",void 0),j([s.property({type:Boolean})],N.prototype,"selected",void 0),j([s.property({type:Boolean})],N.prototype,"disabled",void 0),j([s.state()],N.prototype,"hovered",void 0),j([s.state()],N.prototype,"focused",void 0),j([s.state()],N.prototype,"pressed",void 0),j([s.state()],N.prototype,"rippling",void 0),j([s.state()],N.prototype,"rippleSize",void 0),j([s.state()],N.prototype,"originX",void 0),j([s.state()],N.prototype,"originY",void 0),j([s.query(".ft-ripple")],N.prototype,"ripple",void 0),j([s.query(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(N);const O=window,S=O.trustedTypes,A=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,I=`lit$${(Math.random()+"").slice(9)}$`,_="?"+I,M=`<${_}>`,C=document,B=(t="")=>C.createComment(t),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,R=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),G=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),F=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),L=new WeakMap,P=C.createTreeWalker(C,129,null,!1),V=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":"",n=U;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,l=n.exec(i),null!==l);)h=n.lastIndex,n===U?"!--"===l[1]?n=D:void 0!==l[1]?n=R:void 0!==l[2]?(Z.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=W):void 0!==l[3]&&(n=W):n===W?">"===l[0]?(n=null!=o?o:U,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?W:'"'===l[3]?K:G):n===K||n===G?n=W:n===D||n===R?n=U:(n=W,o=void 0);const f=n===W&&t[e+1].startsWith("/>")?" ":"";r+=n===U?i+M:p>=0?(s.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+I+f):i+I+(-2===p?(s.push(void 0),e):f)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==A?A.createHTML(a):a,s]};class X{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,p]=V(t,e);if(this.el=X.createElement(l,i),P.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=P.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(I)){const i=p[r++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+"$lit$").split(I),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?st:"@"===e[1]?ot:tt})}else a.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(Z.test(s.tagName)){const t=s.textContent.split(I),e=t.length-1;if(e>0){s.textContent=S?S.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],B()),P.nextNode(),a.push({type:2,index:++o});s.append(t[e],B())}}}else if(8===s.nodeType)if(s.data===_)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(I,t+1));)a.push({type:7,index:o}),t+=I.length-1}o++}}static createElement(t,e){const i=C.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,s){var o,r,n,a;if(e===F)return e;let l=void 0!==s?null===(o=i._$Co)||void 0===o?void 0:o[s]:i._$Cl;const p=E(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,s)),void 0!==s?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[s]=l:i._$Cl=l),void 0!==l&&(e=Y(t,l._$AS(t,e.values),l,s)),e}class J{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:C).importNode(i,!0);P.currentNode=o;let r=P.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Q(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new rt(r,this,t)),this.u.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=P.nextNode(),n++)}return o}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,s){var o;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cm=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),E(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==F&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==H&&E(this._$AH)?this._$AA.nextSibling.data=t:this.T(C.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=X.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.p(i);else{const t=new J(o,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new X(t)),e}k(t){T(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new Q(this.O(B()),this.O(B()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,i,s,o){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=Y(this,t,e,0),r=!E(t)||t!==this._$AH&&t!==F,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=Y(this,s[i+n],e,n),a===F&&(a=this._$AH[n]),r||(r=!E(a)||a!==this._$AH[n]),a===H?t=H:t!==H&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}const it=S?S.emptyScript:"";class st extends tt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==H?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class ot extends tt{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Y(this,t,e,0))&&void 0!==i?i:H)===F)return;const s=this._$AH,o=t===H&&s!==H||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==H&&(s===H||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class rt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const nt=O.litHtmlPolyfillSupport;null==nt||nt(X,Q),(null!==(z=O.litHtmlVersions)&&void 0!==z?z:O.litHtmlVersions=[]).push("2.4.0");
|
|
115
115
|
/**
|
|
116
116
|
* @license
|
|
117
117
|
* Copyright 2020 Google LLC
|
|
118
118
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
119
119
|
*/
|
|
120
|
-
const
|
|
120
|
+
const at=Symbol.for(""),lt=t=>{if((null==t?void 0:t.r)===at)return null==t?void 0:t._$litStatic$},pt=t=>({_$litStatic$:t,r:at}),ht=new Map,ft=(t=>(e,...i)=>{const s=i.length;let o,r;const n=[],a=[];let l,p=0,h=!1;for(;p<s;){for(l=e[p];p<s&&void 0!==(r=i[p],o=lt(r));)l+=o+e[++p],h=!0;a.push(r),n.push(l),p++}if(p===s&&n.push(e[s]),h){const t=n.join("$$lit$$");void 0===(e=ht.get(t))&&(n.raw=n,ht.set(t,e=n)),i=a}return t(e,...i)})(q);var ct;!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"}(ct||(ct={}));const dt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),yt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),ut={fontFamily:yt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},xt=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",dt),gt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",ut.fontSize,"20px"),vt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ut.fontWeight,"normal"),bt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ut.letterSpacing,"0.15px"),mt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",ut.lineHeight,"1.2"),$t=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ut.textTransform,"inherit"),wt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",dt),kt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ut.fontSize,"14px"),zt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ut.fontWeight,"normal"),jt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ut.letterSpacing,"0.105px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ut.lineHeight,"1.7"),Ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ut.textTransform,"inherit"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",yt),At=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ut.fontSize,"16px"),It=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ut.fontWeight,"600"),_t=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ut.letterSpacing,"0.144px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ut.lineHeight,"1.5"),Ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ut.textTransform,"inherit"),Bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",yt),Et=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ut.fontSize,"14px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ut.fontWeight,"normal"),Ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ut.letterSpacing,"0.098px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ut.lineHeight,"1.7"),Rt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ut.textTransform,"inherit"),Wt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",yt),Gt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ut.fontSize,"16px"),Kt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ut.fontWeight,"normal"),Zt=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ut.letterSpacing,"0.496px"),qt=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ut.lineHeight,"1.5"),Ft=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ut.textTransform,"inherit"),Ht=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",yt),Lt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ut.fontSize,"14px"),Pt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ut.fontWeight,"normal"),Vt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ut.letterSpacing,"0.252px"),Xt=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ut.lineHeight,"1.4"),Yt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ut.textTransform,"inherit"),Jt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",yt),Qt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ut.fontSize,"12px"),te=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ut.fontWeight,"normal"),ee=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ut.letterSpacing,"0.396px"),ie=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ut.lineHeight,"1.33"),se=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ut.textTransform,"inherit"),oe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",yt),re=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ut.fontSize,"10px"),ne=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ut.fontWeight,"normal"),ae=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ut.letterSpacing,"0.33px"),le=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ut.lineHeight,"1.6"),pe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ut.textTransform,"inherit"),he=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",yt),fe=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ut.fontSize,"10px"),ce=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ut.fontWeight,"normal"),de=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ut.letterSpacing,"1.5px"),ye=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ut.lineHeight,"1.6"),ue=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ut.textTransform,"uppercase"),xe=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",yt),ge=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",ut.fontSize,"14px"),ve=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ut.fontWeight,"600"),be=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ut.letterSpacing,"1.246px"),me=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",ut.lineHeight,"1.15"),$e=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ut.textTransform,"uppercase"),we=i.css`
|
|
121
121
|
.ft-typography--title {
|
|
122
|
-
font-family: ${
|
|
123
|
-
font-size: ${
|
|
124
|
-
font-weight: ${
|
|
125
|
-
letter-spacing: ${
|
|
126
|
-
line-height: ${
|
|
127
|
-
text-transform: ${
|
|
128
|
-
}
|
|
129
|
-
`,we=i.css`
|
|
130
|
-
.ft-typography--title-dense {
|
|
131
|
-
font-family: ${$t};
|
|
132
|
-
font-size: ${wt};
|
|
133
|
-
font-weight: ${kt};
|
|
134
|
-
letter-spacing: ${zt};
|
|
135
|
-
line-height: ${jt};
|
|
136
|
-
text-transform: ${Nt};
|
|
122
|
+
font-family: ${xt};
|
|
123
|
+
font-size: ${gt};
|
|
124
|
+
font-weight: ${vt};
|
|
125
|
+
letter-spacing: ${bt};
|
|
126
|
+
line-height: ${mt};
|
|
127
|
+
text-transform: ${$t};
|
|
137
128
|
}
|
|
138
129
|
`,ke=i.css`
|
|
139
|
-
.ft-typography--
|
|
140
|
-
font-family: ${
|
|
141
|
-
font-size: ${
|
|
142
|
-
font-weight: ${
|
|
143
|
-
letter-spacing: ${
|
|
144
|
-
line-height: ${
|
|
145
|
-
text-transform: ${
|
|
130
|
+
.ft-typography--title-dense {
|
|
131
|
+
font-family: ${wt};
|
|
132
|
+
font-size: ${kt};
|
|
133
|
+
font-weight: ${zt};
|
|
134
|
+
letter-spacing: ${jt};
|
|
135
|
+
line-height: ${Nt};
|
|
136
|
+
text-transform: ${Ot};
|
|
146
137
|
}
|
|
147
138
|
`,ze=i.css`
|
|
148
|
-
.ft-typography--
|
|
149
|
-
font-family: ${
|
|
150
|
-
font-size: ${
|
|
151
|
-
font-weight: ${
|
|
152
|
-
letter-spacing: ${
|
|
153
|
-
line-height: ${
|
|
154
|
-
text-transform: ${
|
|
139
|
+
.ft-typography--subtitle1 {
|
|
140
|
+
font-family: ${St};
|
|
141
|
+
font-size: ${At};
|
|
142
|
+
font-weight: ${It};
|
|
143
|
+
letter-spacing: ${_t};
|
|
144
|
+
line-height: ${Mt};
|
|
145
|
+
text-transform: ${Ct};
|
|
155
146
|
}
|
|
156
|
-
|
|
157
147
|
`,je=i.css`
|
|
158
|
-
.ft-typography--
|
|
159
|
-
font-family: ${
|
|
160
|
-
font-size: ${
|
|
161
|
-
font-weight: ${
|
|
162
|
-
letter-spacing: ${
|
|
163
|
-
line-height: ${
|
|
164
|
-
text-transform: ${
|
|
148
|
+
.ft-typography--subtitle2 {
|
|
149
|
+
font-family: ${Bt};
|
|
150
|
+
font-size: ${Et};
|
|
151
|
+
font-weight: ${Tt};
|
|
152
|
+
letter-spacing: ${Ut};
|
|
153
|
+
line-height: ${Dt};
|
|
154
|
+
text-transform: ${Rt};
|
|
165
155
|
}
|
|
156
|
+
|
|
166
157
|
`,Ne=i.css`
|
|
167
|
-
.ft-typography--
|
|
168
|
-
font-family: ${
|
|
169
|
-
font-size: ${
|
|
170
|
-
font-weight: ${
|
|
171
|
-
letter-spacing: ${
|
|
172
|
-
line-height: ${
|
|
173
|
-
text-transform: ${
|
|
158
|
+
.ft-typography--body1 {
|
|
159
|
+
font-family: ${Wt};
|
|
160
|
+
font-size: ${Gt};
|
|
161
|
+
font-weight: ${Kt};
|
|
162
|
+
letter-spacing: ${Zt};
|
|
163
|
+
line-height: ${qt};
|
|
164
|
+
text-transform: ${Ft};
|
|
174
165
|
}
|
|
175
166
|
`,Oe=i.css`
|
|
176
|
-
.ft-typography--
|
|
177
|
-
font-family: ${
|
|
178
|
-
font-size: ${
|
|
179
|
-
font-weight: ${
|
|
180
|
-
letter-spacing: ${
|
|
181
|
-
line-height: ${
|
|
182
|
-
text-transform: ${
|
|
167
|
+
.ft-typography--body2 {
|
|
168
|
+
font-family: ${Ht};
|
|
169
|
+
font-size: ${Lt};
|
|
170
|
+
font-weight: ${Pt};
|
|
171
|
+
letter-spacing: ${Vt};
|
|
172
|
+
line-height: ${Xt};
|
|
173
|
+
text-transform: ${Yt};
|
|
183
174
|
}
|
|
184
175
|
`,Se=i.css`
|
|
185
|
-
.ft-typography--
|
|
186
|
-
font-family: ${
|
|
187
|
-
font-size: ${
|
|
188
|
-
font-weight: ${
|
|
189
|
-
letter-spacing: ${
|
|
190
|
-
line-height: ${
|
|
191
|
-
text-transform: ${
|
|
176
|
+
.ft-typography--caption {
|
|
177
|
+
font-family: ${Jt};
|
|
178
|
+
font-size: ${Qt};
|
|
179
|
+
font-weight: ${te};
|
|
180
|
+
letter-spacing: ${ee};
|
|
181
|
+
line-height: ${ie};
|
|
182
|
+
text-transform: ${se};
|
|
192
183
|
}
|
|
193
184
|
`,Ae=i.css`
|
|
194
|
-
.ft-typography--
|
|
195
|
-
font-family: ${
|
|
196
|
-
font-size: ${
|
|
197
|
-
font-weight: ${
|
|
198
|
-
letter-spacing: ${
|
|
199
|
-
line-height: ${
|
|
200
|
-
text-transform: ${
|
|
185
|
+
.ft-typography--breadcrumb {
|
|
186
|
+
font-family: ${oe};
|
|
187
|
+
font-size: ${re};
|
|
188
|
+
font-weight: ${ne};
|
|
189
|
+
letter-spacing: ${ae};
|
|
190
|
+
line-height: ${le};
|
|
191
|
+
text-transform: ${pe};
|
|
201
192
|
}
|
|
202
193
|
`,Ie=i.css`
|
|
203
|
-
.ft-typography--
|
|
204
|
-
font-family: ${
|
|
205
|
-
font-size: ${
|
|
206
|
-
font-weight: ${
|
|
207
|
-
letter-spacing: ${
|
|
208
|
-
line-height: ${
|
|
209
|
-
text-transform: ${
|
|
194
|
+
.ft-typography--overline {
|
|
195
|
+
font-family: ${he};
|
|
196
|
+
font-size: ${fe};
|
|
197
|
+
font-weight: ${ce};
|
|
198
|
+
letter-spacing: ${de};
|
|
199
|
+
line-height: ${ye};
|
|
200
|
+
text-transform: ${ue};
|
|
210
201
|
}
|
|
211
202
|
`,_e=i.css`
|
|
203
|
+
.ft-typography--button {
|
|
204
|
+
font-family: ${xe};
|
|
205
|
+
font-size: ${ge};
|
|
206
|
+
font-weight: ${ve};
|
|
207
|
+
letter-spacing: ${be};
|
|
208
|
+
line-height: ${me};
|
|
209
|
+
text-transform: ${$e};
|
|
210
|
+
}
|
|
211
|
+
`,Me=i.css`
|
|
212
212
|
.ft-typography {
|
|
213
213
|
vertical-align: inherit;
|
|
214
214
|
}
|
|
215
|
-
`;var
|
|
216
|
-
<${
|
|
215
|
+
`;var Ce,Be,Ee=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Te extends e.FtLitElement{constructor(){super(...arguments),this.variant=ct.body1}render(){return this.element?ft`
|
|
216
|
+
<${pt(this.element)}
|
|
217
217
|
class="ft-typography ft-typography--${this.variant}">
|
|
218
218
|
<slot></slot>
|
|
219
|
-
</${
|
|
220
|
-
`:
|
|
219
|
+
</${pt(this.element)}>
|
|
220
|
+
`:ft`
|
|
221
221
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
222
|
-
`}}
|
|
222
|
+
`}}Te.styles=[we,ke,ze,je,Ne,Oe,Se,Ae,Ie,_e,Me],Ee([s.property()],Te.prototype,"element",void 0),Ee([s.property()],Te.prototype,"variant",void 0),e.customElement("ft-typography")(Te),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=""}(Ce||(Ce={})),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=""}(Be||(Be={})),new Map([...["abw"].map((t=>[t,Be.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,Be.AUDIO])),...["avi"].map((t=>[t,Be.AVI])),...["chm","xhs"].map((t=>[t,Be.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,Be.CODE])),...["csv"].map((t=>[t,Be.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Be.DITA])),...["epub"].map((t=>[t,Be.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Be.EXCEL])),...["flac"].map((t=>[t,Be.FLAC])),...["gif"].map((t=>[t,Be.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Be.GZIP])),...["html","htm","xhtml"].map((t=>[t,Be.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,Be.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Be.JPEG])),...["json"].map((t=>[t,Be.JSON])),...["m4a","m4p"].map((t=>[t,Be.M4A])),...["mov","qt"].map((t=>[t,Be.MOV])),...["mp3"].map((t=>[t,Be.MP3])),...["mp4","m4v"].map((t=>[t,Be.MP4])),...["ogg","oga"].map((t=>[t,Be.OGG])),...["pdf","ps"].map((t=>[t,Be.PDF])),...["png"].map((t=>[t,Be.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Be.POWERPOINT])),...["rar"].map((t=>[t,Be.RAR])),...["stp"].map((t=>[t,Be.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Be.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,Be.VIDEO])),...["wav"].map((t=>[t,Be.WAV])),...["wma"].map((t=>[t,Be.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Be.WORD])),...["xml","xsl","rdf"].map((t=>[t,Be.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Be.YAML])),...["zip"].map((t=>[t,Be.ZIP]))]);const Ue=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),De=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Re=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),We=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ge=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),Ke=i.css`
|
|
223
223
|
:host {
|
|
224
224
|
display: inline-block;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
:host, i.ft-icon {
|
|
228
|
-
width: ${
|
|
229
|
-
height: ${
|
|
228
|
+
width: ${Ue};
|
|
229
|
+
height: ${Ue};
|
|
230
230
|
text-align: center;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
i.ft-icon {
|
|
234
|
-
font-size: ${
|
|
234
|
+
font-size: ${Ue};
|
|
235
235
|
line-height: 1;
|
|
236
236
|
font-weight: normal;
|
|
237
237
|
text-transform: none;
|
|
@@ -242,30 +242,30 @@ const nt=Symbol.for(""),at=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
242
242
|
text-rendering: auto;
|
|
243
243
|
-webkit-font-smoothing: antialiased;
|
|
244
244
|
-moz-osx-font-smoothing: grayscale;
|
|
245
|
-
vertical-align: ${
|
|
245
|
+
vertical-align: ${Ge};
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
.ft-icon--fluid-topics {
|
|
249
|
-
font-family: ${
|
|
249
|
+
font-family: ${De}, ft-icons, fticons, sans-serif;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.ft-icon--file-format {
|
|
253
|
-
font-family: ${
|
|
253
|
+
font-family: ${Re}, ft-mime, sans-serif;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
.ft-icon--material {
|
|
257
|
-
font-family: ${
|
|
257
|
+
font-family: ${We}, "Material Icons", sans-serif;
|
|
258
258
|
}
|
|
259
|
-
`;var
|
|
259
|
+
`;var Ze,qe=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Fe extends e.FtLitElement{constructor(){super(...arguments),this.variant=a.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
|
|
260
260
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
261
261
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
262
262
|
<slot ?hidden=${t}></slot>
|
|
263
263
|
</i>
|
|
264
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let s=this.value||this.textContent;switch(this.variant){case a.file_format:this.resolvedIcon=null!==(t=
|
|
264
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let s=this.value||this.textContent;switch(this.variant){case a.file_format:this.resolvedIcon=null!==(t=Be[s.toUpperCase()])&&void 0!==t?t:s;break;case a.fluid_topics:this.resolvedIcon=null!==(e=Ce[s.toUpperCase()])&&void 0!==e?e:s;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Fe.elementDefinitions={},Fe.styles=Ke,qe([s.property()],Fe.prototype,"variant",void 0),qe([s.property()],Fe.prototype,"value",void 0),qe([s.state()],Fe.prototype,"resolvedIcon",void 0),qe([s.query("slot")],Fe.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Fe),t.FtTabsAlignment=void 0,(Ze=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Ze.right="right",Ze.justify="justify";const He={colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Le=i.css`
|
|
265
265
|
.ft-tabs {
|
|
266
266
|
display: flex;
|
|
267
267
|
flex-direction: column;
|
|
268
|
-
background-color: ${
|
|
268
|
+
background-color: ${He.colorSurface};
|
|
269
269
|
height: 100%;
|
|
270
270
|
}
|
|
271
271
|
|
|
@@ -305,15 +305,15 @@ const nt=Symbol.for(""),at=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
305
305
|
outline: none;
|
|
306
306
|
font-size: 16px;
|
|
307
307
|
line-height: 1;
|
|
308
|
-
color: ${
|
|
308
|
+
color: ${He.colorOnSurfaceMedium};
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
[role='tab'][aria-selected='true'] {
|
|
312
|
-
color: ${
|
|
312
|
+
color: ${He.colorPrimary};
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
[role='tab'][disabled] {
|
|
316
|
-
color: ${
|
|
316
|
+
color: ${He.colorOnSurfaceDisabled};
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
.ft-tabs--align-justify [role='tab'] {
|
|
@@ -340,7 +340,7 @@ const nt=Symbol.for(""),at=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
340
340
|
position: absolute;
|
|
341
341
|
height: 3px;
|
|
342
342
|
border-radius: 2px;
|
|
343
|
-
background-color: ${
|
|
343
|
+
background-color: ${He.colorPrimary};
|
|
344
344
|
transition: width 200ms ease, left 200ms ease, top 200ms ease;
|
|
345
345
|
}
|
|
346
346
|
|
|
@@ -349,7 +349,7 @@ const nt=Symbol.for(""),at=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
349
349
|
flex-grow: 1;
|
|
350
350
|
overflow: auto;
|
|
351
351
|
}
|
|
352
|
-
`;var
|
|
352
|
+
`;var Pe=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ve extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class Xe extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new e.Debouncer(20),this.scheduleRequestUpdate=()=>this.updateDebouncer.run((()=>this.requestUpdate())),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){const t={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense};return i.html`
|
|
353
353
|
<div class="${r.classMap(t)}" part="container">
|
|
354
354
|
<div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
|
|
355
355
|
${o.repeat(this.ftTabs,((t,e)=>i.html`
|
|
@@ -371,7 +371,7 @@ const nt=Symbol.for(""),at=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
371
371
|
</ft-icon>
|
|
372
372
|
<ft-typography class="ft-tabs--tab-label"
|
|
373
373
|
part="tab-label"
|
|
374
|
-
variant="${
|
|
374
|
+
variant="${ct.body2}">
|
|
375
375
|
${t.label}
|
|
376
376
|
</ft-typography>
|
|
377
377
|
</button>
|
|
@@ -382,4 +382,4 @@ const nt=Symbol.for(""),at=t=>{if((null==t?void 0:t.r)===nt)return null==t?void
|
|
|
382
382
|
<slot @slotchange=${this.onContentChange}></slot>
|
|
383
383
|
</div>
|
|
384
384
|
</div>
|
|
385
|
-
`}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("tabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new
|
|
385
|
+
`}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("tabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new Ve(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,e,i,s,o,r,n,a,l,p;this.activeTabIndicator&&(this.activeTabIndicator.style.width=(null!==(e=null===(t=this.activeTab)||void 0===t?void 0:t.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(s=null===(i=this.activeTab)||void 0===i?void 0:i.offsetLeft)&&void 0!==s?s:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(r=null===(o=this.activeTab)||void 0===o?void 0:o.offsetTop)&&void 0!==r?r:0)+"px":this.activeTabIndicator.style.top=(null!==(a=null===(n=this.activeTab)||void 0===n?void 0:n.offsetTop)&&void 0!==a?a:0)+(null!==(p=null===(l=this.activeTab)||void 0===l?void 0:l.clientHeight)&&void 0!==p?p:0)-this.activeTabIndicator.clientHeight+"px")}updateTabs(){this.ftTabs.forEach(((t,e)=>{t.active=e==this.activeIndex}))}}Xe.elementDefinitions={"ft-tab":p,"ft-ripple":N,"ft-typography":Te,"ft-icon":Fe},Xe.styles=Le,Pe([s.property({type:Boolean})],Xe.prototype,"dense",void 0),Pe([s.property({type:Boolean})],Xe.prototype,"contentBefore",void 0),Pe([s.property()],Xe.prototype,"alignTabs",void 0),Pe([s.state()],Xe.prototype,"ftTabs",void 0),Pe([s.query("[role='tablist']")],Xe.prototype,"tabsContainer",void 0),Pe([s.query("[aria-selected='true']")],Xe.prototype,"activeTab",void 0),Pe([s.query(".ft-tabs--active-tab-indicator")],Xe.prototype,"activeTabIndicator",void 0),Pe([s.property({type:Number,reflect:!0})],Xe.prototype,"activeIndex",void 0);e.customElement("ft-tab")(p),e.customElement("ft-tabs")(Xe),t.FtTab=p,t.FtTabCssVariables={},t.FtTabs=Xe,t.FtTabsCssVariables=He,t.IndexChangeEvent=Ve,t.styles=Le,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|