@fluid-topics/ft-tabs 0.3.15 → 0.3.16
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.min.js +22 -10
- package/package.json +6 -6
package/build/ft-tabs.min.js
CHANGED
|
@@ -57,7 +57,7 @@ const l=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShad
|
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:O}),(null!==(v=globalThis.reactiveElementVersions)&&void 0!==v?v:globalThis.reactiveElementVersions=[]).push("1.3.4");const
|
|
60
|
+
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:O}),(null!==(v=globalThis.reactiveElementVersions)&&void 0!==v?v:globalThis.reactiveElementVersions=[]).push("1.3.4");const k=globalThis.trustedTypes,N=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,E="?"+C,R=`<${E}>`,M=document,U=(t="")=>M.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,z=t=>F(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,L=/>/g,T=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),P=/'/g,D=/"/g,_=/^(?:script|style|textarea|title)$/i,W=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),K=new WeakMap,V=M.createTreeWalker(M,129,null,!1),Z=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=A;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===A?"!--"===l[1]?n=B:void 0!==l[1]?n=L:void 0!==l[2]?(_.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=T):void 0!==l[3]&&(n=T):n===T?">"===l[0]?(n=null!=s?s:A,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?T:'"'===l[3]?D:P):n===D||n===P?n=T:n===B||n===L?n=A:(n=T,s=void 0);const c=n===T&&t[e+1].startsWith("/>")?" ":"";r+=n===A?i+R:p>=0?(o.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+C+c):i+C+(-2===p?(o.push(void 0),e):c)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(a):a,o]};class J{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,p]=Z(t,e);if(this.el=J.createElement(l,i),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=V.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(C)){const i=p[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(C),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?Q:"?"===e[1]?et:"@"===e[1]?it:G})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(C),e=t.length-1;if(e>0){o.textContent=k?k.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),V.nextNode(),a.push({type:2,index:++s});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===E)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(C,t+1));)a.push({type:7,index:s}),t+=C.length-1}s++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function q(t,e,i=t,o){var s,r,n,a;if(e===I)return e;let l=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=j(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,o)),void 0!==o?(null!==(n=(a=i)._$Cl)&&void 0!==n?n:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=q(t,l._$AS(t,e.values),l,o)),e}class X{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:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);V.currentNode=s;let r=V.nextNode(),n=0,a=0,l=o[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Y(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=o[++a]}n!==(null==l?void 0:l.index)&&(r=V.nextNode(),n++)}return s}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 Y{constructor(t,e,i,o){var s;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}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=q(this,t,e),j(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==I&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):z(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!==H&&j(this._$AH)?this._$AA.nextSibling.data=t:this.k(M.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=J.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new X(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new J(t)),e}S(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new Y(this.j(U()),this.j(U()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$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 G{constructor(t,e,i,o,s){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,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,o){const s=this.strings;let r=!1;if(void 0===s)t=q(this,t,e,0),r=!j(t)||t!==this._$AH&&t!==I,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=q(this,o[i+n],e,n),a===I&&(a=this._$AH[n]),r||(r=!j(a)||a!==this._$AH[n]),a===H?t=H:t!==H&&(t+=(null!=a?a:"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.P(t)}P(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends G{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===H?void 0:t}}const tt=k?k.emptyScript:"";class et extends G{constructor(){super(...arguments),this.type=4}P(t){t&&t!==H?this.element.setAttribute(this.name,tt):this.element.removeAttribute(this.name)}}class it extends G{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=q(this,t,e,0))&&void 0!==i?i:H)===I)return;const o=this._$AH,s=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==H&&(o===H||s);s&&this.element.removeEventListener(this.name,this,o),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){q(this,t)}}const st={A:"$lit$",C,M:E,L:1,R:Z,V:X,D:z,I:q,H:Y,N:G,U:et,B:it,F:Q,W:ot},rt=window.litHtmlPolyfillSupport;
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
@@ -82,6 +82,18 @@ var nt,at;null==rt||rt(J,Y),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
82
82
|
-ms-user-select: none;
|
|
83
83
|
user-select: none;
|
|
84
84
|
}
|
|
85
|
+
`,d`
|
|
86
|
+
.ft-word-wrap {
|
|
87
|
+
white-space: normal;
|
|
88
|
+
word-wrap: break-word;
|
|
89
|
+
-ms-word-break: break-all;
|
|
90
|
+
word-break: break-all;
|
|
91
|
+
word-break: break-word;
|
|
92
|
+
-ms-hyphens: auto;
|
|
93
|
+
-moz-hyphens: auto;
|
|
94
|
+
-webkit-hyphens: auto;
|
|
95
|
+
hyphens: auto
|
|
96
|
+
}
|
|
85
97
|
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(dt=null===(ft=window.safari)||void 0===ft?void 0:ft.pushNotification)||void 0===dt||dt.toString()),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ut||(ut={}));var xt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class bt extends vt{constructor(){super(...arguments),this.label="",this.icon="",this.iconVariant=ut.material,this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return W`
|
|
86
98
|
<style>
|
|
87
99
|
:host {
|
|
@@ -100,7 +112,7 @@ const gt=1,mt=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class $t{constructo
|
|
|
100
112
|
* @license
|
|
101
113
|
* Copyright 2020 Google LLC
|
|
102
114
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
103
|
-
*/const{H:Ot}=st,St=()=>document.createComment(""),
|
|
115
|
+
*/const{H:Ot}=st,St=()=>document.createComment(""),kt=(t,e,i)=>{var o;const s=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(St(),r),o=s.insertBefore(St(),r);i=new Ot(e,o,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,r),t=e}}}return i},Nt=(t,e,i=t)=>(t._$AI(e,i),t),Ct={},Et=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Rt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Mt=wt(class extends $t{constructor(t){if(super(t),t.type!==mt)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],r=[];let n=0;for(const e of t)s[n]=o?o(e,n):n,r[n]=i(e,n),n++;return{values:r,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=a,n;const l=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],p=[];let h,c,f=0,d=r.length-1,u=0,y=n.length-1;for(;f<=d&&u<=y;)if(null===r[f])f++;else if(null===r[d])d--;else if(l[f]===a[u])p[u]=Nt(r[f],n[u]),f++,u++;else if(l[d]===a[y])p[y]=Nt(r[d],n[y]),d--,y--;else if(l[f]===a[y])p[y]=Nt(r[f],n[y]),kt(t,p[y+1],r[f]),f++,y--;else if(l[d]===a[u])p[u]=Nt(r[d],n[u]),kt(t,r[f],r[d]),d--,u++;else if(void 0===h&&(h=Rt(a,u,y),c=Rt(l,f,d)),h.has(l[f]))if(h.has(l[d])){const e=c.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=kt(t,r[f]);Nt(e,n[u]),p[u]=e}else p[u]=Nt(i,n[u]),kt(t,r[f],i),r[e]=null;u++}else Et(r[d]),d--;else Et(r[f]),f++;for(;u<=y;){const e=kt(t,p[y+1]);Nt(e,n[u]),p[u++]=e}for(;f<=d;){const t=r[f++];null!==t&&Et(t)}return this.ut=a,((t,e=Ct)=>{t._$AH=e})(t,p),I}}),Ut=wt(class extends $t{constructor(t){var e;if(super(t),t.type!==gt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return I}}),jt=ht.extend("--ft-ripple-color",ct.colorContent),Ft=jt,zt=ht.extend("--ft-ripple-background-color",jt),At=ht.external(ct.opacityContentOnSurfacePressed,"Design system"),Bt=ht.external(ct.opacityContentOnSurfaceHover,"Design system"),Lt=ht.external(ct.opacityContentOnSurfaceFocused,"Design system"),Tt=ht.external(ct.opacityContentOnSurfaceSelected,"Design system"),Pt=ht.extend("--ft-ripple-color",ct.colorPrimary),Dt=Pt,_t=ht.extend("--ft-ripple-background-color",Pt),Wt=ht.extend("--ft-ripple-color",ct.colorSecondary),It=Wt,Ht=ht.extend("--ft-ripple-background-color",Wt),Kt=d`
|
|
104
116
|
:host {
|
|
105
117
|
display: contents;
|
|
106
118
|
}
|
|
@@ -217,7 +229,7 @@ const gt=1,mt=2,wt=t=>(...e)=>({_$litDirective$:t,values:e});class $t{constructo
|
|
|
217
229
|
* Copyright 2020 Google LLC
|
|
218
230
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
219
231
|
*/
|
|
220
|
-
const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void 0:t._$litStatic$},Xt=t=>({_$litStatic$:t,r:Jt}),Yt=new Map,Gt=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(r=i[p],s=qt(r));)l+=s+e[++p],h=!0;a.push(r),n.push(l),p++}if(p===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=Yt.get(t))&&(n.raw=n,Yt.set(t,e=n)),i=a}return t(e,...i)})(W);var Qt;!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"}(Qt||(Qt={}));const te=ht.extend("--ft-typography-font-family",ct.titleFont),ee=ht.extend("--ft-typography-font-family",ct.contentFont),ie={fontFamily:ee,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},oe=ht.extend("--ft-typography-title-font-family",te),se=ht.extend("--ft-typography-title-font-size",ie.fontSize,"20px"),re=ht.extend("--ft-typography-title-font-weight",ie.fontWeight,"normal"),ne=ht.extend("--ft-typography-title-letter-spacing",ie.letterSpacing,"0.15px"),ae=ht.extend("--ft-typography-title-line-height",ie.lineHeight,"1.2"),le=ht.extend("--ft-typography-title-text-transform",ie.textTransform,"inherit"),pe=ht.extend("--ft-typography-title-dense-font-family",te),he=ht.extend("--ft-typography-title-dense-font-size",ie.fontSize,"14px"),ce=ht.extend("--ft-typography-title-dense-font-weight",ie.fontWeight,"normal"),fe=ht.extend("--ft-typography-title-dense-letter-spacing",ie.letterSpacing,"0.105px"),de=ht.extend("--ft-typography-title-dense-line-height",ie.lineHeight,"1.7"),ue=ht.extend("--ft-typography-title-dense-text-transform",ie.textTransform,"inherit"),ye=ht.extend("--ft-typography-subtitle1-font-family",ee),ve=ht.extend("--ft-typography-subtitle1-font-size",ie.fontSize,"16px"),xe=ht.extend("--ft-typography-subtitle1-font-weight",ie.fontWeight,"600"),be=ht.extend("--ft-typography-subtitle1-letter-spacing",ie.letterSpacing,"0.144px"),ge=ht.extend("--ft-typography-subtitle1-line-height",ie.lineHeight,"1.5"),me=ht.extend("--ft-typography-subtitle1-text-transform",ie.textTransform,"inherit"),we=ht.extend("--ft-typography-subtitle2-font-family",ee),$e=ht.extend("--ft-typography-subtitle2-font-size",ie.fontSize,"14px"),Oe=ht.extend("--ft-typography-subtitle2-font-weight",ie.fontWeight,"normal"),Se=ht.extend("--ft-typography-subtitle2-letter-spacing",ie.letterSpacing,"0.098px"),
|
|
232
|
+
const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void 0:t._$litStatic$},Xt=t=>({_$litStatic$:t,r:Jt}),Yt=new Map,Gt=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(r=i[p],s=qt(r));)l+=s+e[++p],h=!0;a.push(r),n.push(l),p++}if(p===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=Yt.get(t))&&(n.raw=n,Yt.set(t,e=n)),i=a}return t(e,...i)})(W);var Qt;!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"}(Qt||(Qt={}));const te=ht.extend("--ft-typography-font-family",ct.titleFont),ee=ht.extend("--ft-typography-font-family",ct.contentFont),ie={fontFamily:ee,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},oe=ht.extend("--ft-typography-title-font-family",te),se=ht.extend("--ft-typography-title-font-size",ie.fontSize,"20px"),re=ht.extend("--ft-typography-title-font-weight",ie.fontWeight,"normal"),ne=ht.extend("--ft-typography-title-letter-spacing",ie.letterSpacing,"0.15px"),ae=ht.extend("--ft-typography-title-line-height",ie.lineHeight,"1.2"),le=ht.extend("--ft-typography-title-text-transform",ie.textTransform,"inherit"),pe=ht.extend("--ft-typography-title-dense-font-family",te),he=ht.extend("--ft-typography-title-dense-font-size",ie.fontSize,"14px"),ce=ht.extend("--ft-typography-title-dense-font-weight",ie.fontWeight,"normal"),fe=ht.extend("--ft-typography-title-dense-letter-spacing",ie.letterSpacing,"0.105px"),de=ht.extend("--ft-typography-title-dense-line-height",ie.lineHeight,"1.7"),ue=ht.extend("--ft-typography-title-dense-text-transform",ie.textTransform,"inherit"),ye=ht.extend("--ft-typography-subtitle1-font-family",ee),ve=ht.extend("--ft-typography-subtitle1-font-size",ie.fontSize,"16px"),xe=ht.extend("--ft-typography-subtitle1-font-weight",ie.fontWeight,"600"),be=ht.extend("--ft-typography-subtitle1-letter-spacing",ie.letterSpacing,"0.144px"),ge=ht.extend("--ft-typography-subtitle1-line-height",ie.lineHeight,"1.5"),me=ht.extend("--ft-typography-subtitle1-text-transform",ie.textTransform,"inherit"),we=ht.extend("--ft-typography-subtitle2-font-family",ee),$e=ht.extend("--ft-typography-subtitle2-font-size",ie.fontSize,"14px"),Oe=ht.extend("--ft-typography-subtitle2-font-weight",ie.fontWeight,"normal"),Se=ht.extend("--ft-typography-subtitle2-letter-spacing",ie.letterSpacing,"0.098px"),ke=ht.extend("--ft-typography-subtitle2-line-height",ie.lineHeight,"1.7"),Ne=ht.extend("--ft-typography-subtitle2-text-transform",ie.textTransform,"inherit"),Ce=ht.extend("--ft-typography-body1-font-family",ee),Ee=ht.extend("--ft-typography-body1-font-size",ie.fontSize,"16px"),Re=ht.extend("--ft-typography-body1-font-weight",ie.fontWeight,"normal"),Me=ht.extend("--ft-typography-body1-letter-spacing",ie.letterSpacing,"0.496px"),Ue=ht.extend("--ft-typography-body1-line-height",ie.lineHeight,"1.5"),je=ht.extend("--ft-typography-body1-text-transform",ie.textTransform,"inherit"),Fe=ht.extend("--ft-typography-body2-font-family",ee),ze=ht.extend("--ft-typography-body2-font-size",ie.fontSize,"14px"),Ae=ht.extend("--ft-typography-body2-font-weight",ie.fontWeight,"normal"),Be=ht.extend("--ft-typography-body2-letter-spacing",ie.letterSpacing,"0.252px"),Le=ht.extend("--ft-typography-body2-line-height",ie.lineHeight,"1.4"),Te=ht.extend("--ft-typography-body2-text-transform",ie.textTransform,"inherit"),Pe=ht.extend("--ft-typography-caption-font-family",ee),De=ht.extend("--ft-typography-caption-font-size",ie.fontSize,"12px"),_e=ht.extend("--ft-typography-caption-font-weight",ie.fontWeight,"normal"),We=ht.extend("--ft-typography-caption-letter-spacing",ie.letterSpacing,"0.396px"),Ie=ht.extend("--ft-typography-caption-line-height",ie.lineHeight,"1.33"),He=ht.extend("--ft-typography-caption-text-transform",ie.textTransform,"inherit"),Ke=ht.extend("--ft-typography-breadcrumb-font-family",ee),Ve=ht.extend("--ft-typography-breadcrumb-font-size",ie.fontSize,"10px"),Ze=ht.extend("--ft-typography-breadcrumb-font-weight",ie.fontWeight,"normal"),Je=ht.extend("--ft-typography-breadcrumb-letter-spacing",ie.letterSpacing,"0.33px"),qe=ht.extend("--ft-typography-breadcrumb-line-height",ie.lineHeight,"1.6"),Xe=ht.extend("--ft-typography-breadcrumb-text-transform",ie.textTransform,"inherit"),Ye=ht.extend("--ft-typography-overline-font-family",ee),Ge=ht.extend("--ft-typography-overline-font-size",ie.fontSize,"10px"),Qe=ht.extend("--ft-typography-overline-font-weight",ie.fontWeight,"normal"),ti=ht.extend("--ft-typography-overline-letter-spacing",ie.letterSpacing,"1.5px"),ei=ht.extend("--ft-typography-overline-line-height",ie.lineHeight,"1.6"),ii=ht.extend("--ft-typography-overline-text-transform",ie.textTransform,"uppercase"),oi=ht.extend("--ft-typography-button-font-family",ee),si=ht.extend("--ft-typography-button-font-size",ie.fontSize,"14px"),ri=ht.extend("--ft-typography-button-font-weight",ie.fontWeight,"600"),ni=ht.extend("--ft-typography-button-letter-spacing",ie.letterSpacing,"1.246px"),ai=ht.extend("--ft-typography-button-line-height",ie.lineHeight,"1.15"),li=ht.extend("--ft-typography-button-text-transform",ie.textTransform,"uppercase"),pi=d`
|
|
221
233
|
.ft-typography--title {
|
|
222
234
|
font-family: ${oe};
|
|
223
235
|
font-size: ${se};
|
|
@@ -250,8 +262,8 @@ const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void
|
|
|
250
262
|
font-size: ${$e};
|
|
251
263
|
font-weight: ${Oe};
|
|
252
264
|
letter-spacing: ${Se};
|
|
253
|
-
line-height: ${
|
|
254
|
-
text-transform: ${
|
|
265
|
+
line-height: ${ke};
|
|
266
|
+
text-transform: ${Ne};
|
|
255
267
|
}
|
|
256
268
|
|
|
257
269
|
`,di=d`
|
|
@@ -325,19 +337,19 @@ const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void
|
|
|
325
337
|
* Copyright 2017 Google LLC
|
|
326
338
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
327
339
|
*/
|
|
328
|
-
class $i extends $t{constructor(t){if(super(t),this.it=H,t.type!==mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||null==t)return this._t=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}$i.directiveName="unsafeHTML",$i.resultType=1;const Oi=wt($i);var Si,
|
|
340
|
+
class $i extends $t{constructor(t){if(super(t),this.it=H,t.type!==mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||null==t)return this._t=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}$i.directiveName="unsafeHTML",$i.resultType=1;const Oi=wt($i);var Si,ki;!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=""}(Si||(Si={})),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=""}(ki||(ki={})),new Map([...["abw"].map((t=>[t,ki.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,ki.AUDIO])),...["avi"].map((t=>[t,ki.AVI])),...["chm","xhs"].map((t=>[t,ki.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,ki.CODE])),...["csv"].map((t=>[t,ki.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ki.DITA])),...["epub"].map((t=>[t,ki.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ki.EXCEL])),...["flac"].map((t=>[t,ki.FLAC])),...["gif"].map((t=>[t,ki.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ki.GZIP])),...["html","htm","xhtml"].map((t=>[t,ki.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,ki.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ki.JPEG])),...["json"].map((t=>[t,ki.JSON])),...["m4a","m4p"].map((t=>[t,ki.M4A])),...["mov","qt"].map((t=>[t,ki.MOV])),...["mp3"].map((t=>[t,ki.MP3])),...["mp4","m4v"].map((t=>[t,ki.MP4])),...["ogg","oga"].map((t=>[t,ki.OGG])),...["pdf","ps"].map((t=>[t,ki.PDF])),...["png"].map((t=>[t,ki.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ki.POWERPOINT])),...["rar"].map((t=>[t,ki.RAR])),...["stp"].map((t=>[t,ki.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ki.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,ki.VIDEO])),...["wav"].map((t=>[t,ki.WAV])),...["wma"].map((t=>[t,ki.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ki.WORD])),...["xml","xsl","rdf"].map((t=>[t,ki.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ki.YAML])),...["zip"].map((t=>[t,ki.ZIP]))]);const Ni=ht.create("--ft-icon-font-size","SIZE","24px"),Ci=ht.extend("--ft-icon-fluid-topics-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ei=ht.extend("--ft-icon-file-format-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ri=ht.extend("--ft-icon-material-font-family",ht.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Mi=ht.create("--ft-icon-vertical-align","UNKNOWN","unset"),Ui=d`
|
|
329
341
|
:host {
|
|
330
342
|
display: inline-block;
|
|
331
343
|
}
|
|
332
344
|
|
|
333
345
|
:host, i.ft-icon {
|
|
334
|
-
width: ${
|
|
335
|
-
height: ${
|
|
346
|
+
width: ${Ni};
|
|
347
|
+
height: ${Ni};
|
|
336
348
|
text-align: center;
|
|
337
349
|
}
|
|
338
350
|
|
|
339
351
|
i.ft-icon {
|
|
340
|
-
font-size: ${
|
|
352
|
+
font-size: ${Ni};
|
|
341
353
|
line-height: 1;
|
|
342
354
|
font-weight: normal;
|
|
343
355
|
text-transform: none;
|
|
@@ -367,7 +379,7 @@ class $i extends $t{constructor(t){if(super(t),this.it=H,t.type!==mt)throw Error
|
|
|
367
379
|
${Oi(this.resolvedIcon)}
|
|
368
380
|
<slot ?hidden=${t}></slot>
|
|
369
381
|
</i>
|
|
370
|
-
`}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 i=this.value||this.textContent;switch(this.variant){case ut.file_format:this.resolvedIcon=null!==(t=
|
|
382
|
+
`}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 i=this.value||this.textContent;switch(this.variant){case ut.file_format:this.resolvedIcon=null!==(t=ki[i.toUpperCase()])&&void 0!==t?t:i;break;case ut.fluid_topics:this.resolvedIcon=null!==(e=Si[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||H}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}zi.elementDefinitions={},zi.styles=Ui,Fi([o()],zi.prototype,"variant",void 0),Fi([o()],zi.prototype,"value",void 0),Fi([s()],zi.prototype,"resolvedIcon",void 0),Fi([r("slot")],zi.prototype,"slottedContent",void 0),a("ft-icon")(zi),t.FtTabsAlignment=void 0,(ji=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",ji.right="right",ji.justify="justify";const Ai={colorSurface:ht.external(ct.colorSurface,"Design system"),colorPrimary:ht.external(ct.colorPrimary,"Design system"),colorOnSurfaceMedium:ht.external(ct.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ht.external(ct.colorOnSurfaceDisabled,"Design system")},Bi=d`
|
|
371
383
|
.ft-tabs {
|
|
372
384
|
display: flex;
|
|
373
385
|
flex-direction: column;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-tabs",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"description": "Generic tabs component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "0.3.
|
|
23
|
-
"@fluid-topics/ft-ripple": "0.3.
|
|
24
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.16",
|
|
23
|
+
"@fluid-topics/ft-ripple": "0.3.16",
|
|
24
|
+
"@fluid-topics/ft-typography": "0.3.16",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "0.3.16",
|
|
26
26
|
"lit": "2.2.8"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "0d05a101f09cb5819ee10930772a873e7e0cc87b"
|
|
29
29
|
}
|