@fluid-topics/ft-tabs 0.3.8 → 0.3.11
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 +60 -60
- package/build/ft-tabs.min.js +38 -38
- package/package.json +6 -6
package/build/ft-tabs.light.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
!function(t,e,i,s,o,r,n){var l
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
!function(t,e,i,s,o,r,n){var a,l;!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=""}(a||(a={})),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=""}(l||(l={})),new Map([...["abw"].map((t=>[t,l.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,l.AUDIO])),...["avi"].map((t=>[t,l.AVI])),...["chm","xhs"].map((t=>[t,l.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,l.CODE])),...["csv"].map((t=>[t,l.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,l.DITA])),...["epub"].map((t=>[t,l.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,l.EXCEL])),...["flac"].map((t=>[t,l.FLAC])),...["gif"].map((t=>[t,l.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,l.GZIP])),...["html","htm","xhtml"].map((t=>[t,l.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,l.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,l.JPEG])),...["json"].map((t=>[t,l.JSON])),...["m4a","m4p"].map((t=>[t,l.M4A])),...["mov","qt"].map((t=>[t,l.MOV])),...["mp3"].map((t=>[t,l.MP3])),...["mp4","m4v"].map((t=>[t,l.MP4])),...["ogg","oga"].map((t=>[t,l.OGG])),...["pdf","ps"].map((t=>[t,l.PDF])),...["png"].map((t=>[t,l.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,l.POWERPOINT])),...["rar"].map((t=>[t,l.RAR])),...["stp"].map((t=>[t,l.STP])),...["txt","rtf","md","mdown"].map((t=>[t,l.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,l.VIDEO])),...["wav"].map((t=>[t,l.WAV])),...["wma"].map((t=>[t,l.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,l.WORD])),...["xml","xsl","rdf"].map((t=>[t,l.XML])),...["yaml","yml","x-yaml"].map((t=>[t,l.YAML])),...["zip"].map((t=>[t,l.ZIP]))]);var p,h=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};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(p||(p={}));const f=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),c=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),d=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),y=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),u=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset");class x extends e.FtLitElement{constructor(){super(...arguments),this.variant=p.fluid_topics,this.resolvedIcon=i.nothing}render(){return i.html`
|
|
2
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
3
|
+
${o.unsafeHTML(this.resolvedIcon)}
|
|
4
|
+
<slot ?hidden=${"material"!==this.variant}></slot>
|
|
5
|
+
</i>
|
|
6
|
+
`}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 p.file_format:this.resolvedIcon=null!==(t=l[s.toUpperCase()])&&void 0!==t?t:s;break;case p.fluid_topics:this.resolvedIcon=null!==(e=a[s.toUpperCase()])&&void 0!==e?e:s;break;default:this.resolvedIcon=i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}x.elementDefinitions={},x.styles=i.css`
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
}
|
|
5
10
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
:host, i.ft-icon {
|
|
12
|
+
width: ${f};
|
|
13
|
+
height: ${f};
|
|
14
|
+
text-align: center;
|
|
15
|
+
}
|
|
11
16
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
i.ft-icon {
|
|
18
|
+
font-size: ${f};
|
|
19
|
+
line-height: 1;
|
|
20
|
+
font-weight: normal;
|
|
21
|
+
text-transform: none;
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-variant: normal;
|
|
24
|
+
speak: none;
|
|
25
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
26
|
+
text-rendering: auto;
|
|
27
|
+
-webkit-font-smoothing: antialiased;
|
|
28
|
+
-moz-osx-font-smoothing: grayscale;
|
|
29
|
+
vertical-align: ${u};
|
|
30
|
+
}
|
|
26
31
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
.ft-icon--fluid-topics {
|
|
33
|
+
font-family: ${c}, ft-icons, fticons, sans-serif;
|
|
34
|
+
}
|
|
30
35
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
.ft-icon--file-format {
|
|
37
|
+
font-family: ${d}, ft-mime, sans-serif;
|
|
38
|
+
}
|
|
34
39
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
40
|
-
${o.unsafeHTML(this.getIcon())}
|
|
41
|
-
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
42
|
-
</i>
|
|
43
|
-
`}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:""}getIcon(){var t,e;let s=this.textContent;return this.variant===p.file_format?null!==(t=a[s.toUpperCase()])&&void 0!==t?t:s:this.variant===p.fluid_topics?null!==(e=l[s.toUpperCase()])&&void 0!==e?e:s:i.nothing}}u.elementDefinitions={},h([s.property()],u.prototype,"variant",void 0),h([s.query("slot")],u.prototype,"slottedContent",void 0),e.customElement("ft-icon")(u);var g=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(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 b extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.icon="",this.iconVariant=p.material,this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return i.html`
|
|
40
|
+
.ft-icon--material {
|
|
41
|
+
font-family: ${y}, "Material Icons", sans-serif;
|
|
42
|
+
}
|
|
43
|
+
`,h([s.property()],x.prototype,"variant",void 0),h([s.property()],x.prototype,"value",void 0),h([s.state()],x.prototype,"resolvedIcon",void 0),h([s.query("slot")],x.prototype,"slottedContent",void 0),e.customElement("ft-icon")(x);var g=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 v extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.icon="",this.iconVariant=p.material,this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return i.html`
|
|
44
44
|
<style>
|
|
45
45
|
:host {
|
|
46
46
|
display: ${i.unsafeCSS(this.active?"block":"none")};
|
|
47
47
|
}
|
|
48
48
|
</style>
|
|
49
49
|
<slot></slot>
|
|
50
|
-
`}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}
|
|
50
|
+
`}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}v.elementDefinitions={},g([s.property({type:String})],v.prototype,"label",void 0),g([s.property({type:String})],v.prototype,"icon",void 0),g([s.property()],v.prototype,"iconVariant",void 0),g([s.property({type:Boolean})],v.prototype,"active",void 0),g([s.property({type:Boolean})],v.prototype,"disabled",void 0),g([s.property({type:String,reflect:!0})],v.prototype,"id",void 0),g([s.property({type:String,reflect:!0,attribute:"aria-labelledby"})],v.prototype,"ariaLabelledBy",void 0);var b=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};const m=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),$=m,w=e.FtCssVariableFactory.extend("--ft-ripple-background-color",m),k=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),z=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),j=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),N=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),O=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),S=O,A=e.FtCssVariableFactory.extend("--ft-ripple-background-color",O),I=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),_=I,M=e.FtCssVariableFactory.extend("--ft-ripple-background-color",I);class T extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:s,y:o}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=s?s-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
|
|
51
51
|
<style>
|
|
52
52
|
.ft-ripple .ft-ripple--effect,
|
|
53
53
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -112,7 +112,7 @@ var C;T.elementDefinitions={},T.styles=i.css`
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
115
|
-
background-color: ${
|
|
115
|
+
background-color: ${S};
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.ft-ripple .ft-ripple--background {
|
|
@@ -159,19 +159,19 @@ var C;T.elementDefinitions={},T.styles=i.css`
|
|
|
159
159
|
opacity: ${k};
|
|
160
160
|
transform: translate(-50%, -50%) scale(1);
|
|
161
161
|
}
|
|
162
|
-
`,
|
|
162
|
+
`,b([s.property({type:Boolean})],T.prototype,"primary",void 0),b([s.property({type:Boolean})],T.prototype,"secondary",void 0),b([s.property({type:Boolean})],T.prototype,"unbounded",void 0),b([s.property({type:Boolean})],T.prototype,"activated",void 0),b([s.property({type:Boolean})],T.prototype,"selected",void 0),b([s.property({type:Boolean})],T.prototype,"disabled",void 0),b([s.state()],T.prototype,"hovered",void 0),b([s.state()],T.prototype,"focused",void 0),b([s.state()],T.prototype,"pressed",void 0),b([s.state()],T.prototype,"rippling",void 0),b([s.state()],T.prototype,"rippleSize",void 0),b([s.state()],T.prototype,"originX",void 0),b([s.state()],T.prototype,"originY",void 0),b([s.query(".ft-ripple")],T.prototype,"ripple",void 0),b([s.query(".ft-ripple--effect")],T.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(T);const B=globalThis.trustedTypes,E=B?B.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,D="?"+U,R=`<${D}>`,W=document,G=(t="")=>W.createComment(t),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Z=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q=/-->/g,F=/>/g,H=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),L=/'/g,V=/"/g,X=/^(?:script|style|textarea|title)$/i,Y=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),tt=new WeakMap,et=W.createTreeWalker(W,129,null,!1),it=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":"",n=P;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===P?"!--"===l[1]?n=q:void 0!==l[1]?n=F:void 0!==l[2]?(X.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=H):void 0!==l[3]&&(n=H):n===H?">"===l[0]?(n=null!=o?o:P,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?H:'"'===l[3]?V:L):n===V||n===L?n=H:n===q||n===F?n=P:(n=H,o=void 0);const f=n===H&&t[e+1].startsWith("/>")?" ":"";r+=n===P?i+R:p>=0?(s.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+U+f):i+U+(-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!==E?E.createHTML(a):a,s]};class st{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]=it(t,e);if(this.el=st.createElement(l,i),et.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=et.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(U)){const i=p[r++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?ht:"@"===e[1]?ft:at})}else a.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(X.test(s.tagName)){const t=s.textContent.split(U),e=t.length-1;if(e>0){s.textContent=B?B.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],G()),et.nextNode(),a.push({type:2,index:++o});s.append(t[e],G())}}}else if(8===s.nodeType)if(s.data===D)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(U,t+1));)a.push({type:7,index:o}),t+=U.length-1}o++}}static createElement(t,e){const i=W.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,s){var o,r,n,a;if(e===J)return e;let l=void 0!==s?null===(o=i._$Cl)||void 0===o?void 0:o[s]:i._$Cu;const p=K(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=ot(t,l._$AS(t,e.values),l,s)),e}class rt{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:W).importNode(i,!0);et.currentNode=o;let r=et.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new nt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ct(r,this,t)),this.v.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=et.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 nt{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=ot(this,t,e),K(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==J&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>Z(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&&K(this._$AH)?this._$AA.nextSibling.data=t:this.k(W.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=st.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 rt(o,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=tt.get(t.strings);return void 0===e&&tt.set(t.strings,e=new st(t)),e}S(t){Z(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 nt(this.j(G()),this.j(G()),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 at{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=ot(this,t,e,0),r=!K(t)||t!==this._$AH&&t!==J,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=ot(this,s[i+n],e,n),a===J&&(a=this._$AH[n]),r||(r=!K(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 lt extends at{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===Q?void 0:t}}const pt=B?B.emptyScript:"";class ht extends at{constructor(){super(...arguments),this.type=4}P(t){t&&t!==Q?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}}class ft extends at{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=ot(this,t,e,0))&&void 0!==i?i:Q)===J)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 ct{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){ot(this,t)}}const dt=window.litHtmlPolyfillSupport;null==dt||dt(st,nt),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
163
163
|
/**
|
|
164
164
|
* @license
|
|
165
165
|
* Copyright 2020 Google LLC
|
|
166
166
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
167
167
|
*/
|
|
168
|
-
const yt=Symbol.for(""),
|
|
168
|
+
const yt=Symbol.for(""),ut=t=>{if((null==t?void 0:t.r)===yt)return null==t?void 0:t._$litStatic$},xt=t=>({_$litStatic$:t,r:yt}),gt=new Map,vt=(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=ut(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=gt.get(t))&&(n.raw=n,gt.set(t,e=n)),i=a}return t(e,...i)})(Y);var bt,mt=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};!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"}(bt||(bt={}));const $t=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),wt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),kt={fontFamily:wt,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")},zt=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",$t),jt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",kt.fontSize,"20px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",kt.fontWeight,"normal"),Ot=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",kt.letterSpacing,"0.15px"),St=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",kt.lineHeight,"1.2"),At=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",kt.textTransform,"inherit"),It=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",$t),_t=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",kt.fontSize,"14px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",kt.fontWeight,"normal"),Tt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",kt.letterSpacing,"0.105px"),Ct=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",kt.lineHeight,"1.7"),Bt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",kt.textTransform,"inherit"),Et=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",wt),Ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",kt.fontSize,"16px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",kt.fontWeight,"600"),Rt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",kt.letterSpacing,"0.144px"),Wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",kt.lineHeight,"1.5"),Gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",kt.textTransform,"inherit"),Kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",wt),Zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",kt.fontSize,"14px"),Pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",kt.fontWeight,"normal"),qt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",kt.letterSpacing,"0.098px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",kt.lineHeight,"1.7"),Ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",kt.textTransform,"inherit"),Lt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",wt),Vt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",kt.fontSize,"16px"),Xt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",kt.fontWeight,"normal"),Yt=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",kt.letterSpacing,"0.496px"),Jt=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",kt.lineHeight,"1.5"),Qt=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",kt.textTransform,"inherit"),te=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",wt),ee=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",kt.fontSize,"14px"),ie=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",kt.fontWeight,"normal"),se=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",kt.letterSpacing,"0.252px"),oe=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",kt.lineHeight,"1.4"),re=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",kt.textTransform,"inherit"),ne=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",wt),ae=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",kt.fontSize,"12px"),le=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",kt.fontWeight,"normal"),pe=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",kt.letterSpacing,"0.396px"),he=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",kt.lineHeight,"1.33"),fe=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",kt.textTransform,"inherit"),ce=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",wt),de=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",kt.fontSize,"10px"),ye=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",kt.fontWeight,"normal"),ue=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",kt.letterSpacing,"0.33px"),xe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",kt.lineHeight,"1.6"),ge=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",kt.textTransform,"inherit"),ve=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",wt),be=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",kt.fontSize,"10px"),me=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",kt.fontWeight,"normal"),$e=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",kt.letterSpacing,"1.5px"),we=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",kt.lineHeight,"1.6"),ke=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",kt.textTransform,"uppercase"),ze=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",wt),je=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",kt.fontSize,"14px"),Ne=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",kt.fontWeight,"600"),Oe=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",kt.letterSpacing,"1.246px"),Se=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",kt.lineHeight,"1.15"),Ae=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",kt.textTransform,"uppercase"),Ie=i.css`
|
|
169
169
|
.ft-typography--title {
|
|
170
170
|
font-family: ${zt};
|
|
171
171
|
font-size: ${jt};
|
|
172
172
|
font-weight: ${Nt};
|
|
173
|
-
letter-spacing: ${
|
|
174
|
-
line-height: ${
|
|
173
|
+
letter-spacing: ${Ot};
|
|
174
|
+
line-height: ${St};
|
|
175
175
|
text-transform: ${At};
|
|
176
176
|
}
|
|
177
177
|
`,_e=i.css`
|
|
@@ -223,8 +223,8 @@ const yt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
|
|
|
223
223
|
`,Ee=i.css`
|
|
224
224
|
.ft-typography--caption {
|
|
225
225
|
font-family: ${ne};
|
|
226
|
-
font-size: ${
|
|
227
|
-
font-weight: ${
|
|
226
|
+
font-size: ${ae};
|
|
227
|
+
font-weight: ${le};
|
|
228
228
|
letter-spacing: ${pe};
|
|
229
229
|
line-height: ${he};
|
|
230
230
|
text-transform: ${fe};
|
|
@@ -234,14 +234,14 @@ const yt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
|
|
|
234
234
|
font-family: ${ce};
|
|
235
235
|
font-size: ${de};
|
|
236
236
|
font-weight: ${ye};
|
|
237
|
-
letter-spacing: ${
|
|
238
|
-
line-height: ${
|
|
237
|
+
letter-spacing: ${ue};
|
|
238
|
+
line-height: ${xe};
|
|
239
239
|
text-transform: ${ge};
|
|
240
240
|
}
|
|
241
241
|
`,De=i.css`
|
|
242
242
|
.ft-typography--overline {
|
|
243
|
-
font-family: ${
|
|
244
|
-
font-size: ${
|
|
243
|
+
font-family: ${ve};
|
|
244
|
+
font-size: ${be};
|
|
245
245
|
font-weight: ${me};
|
|
246
246
|
letter-spacing: ${$e};
|
|
247
247
|
line-height: ${we};
|
|
@@ -252,22 +252,22 @@ const yt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
|
|
|
252
252
|
font-family: ${ze};
|
|
253
253
|
font-size: ${je};
|
|
254
254
|
font-weight: ${Ne};
|
|
255
|
-
letter-spacing: ${
|
|
256
|
-
line-height: ${
|
|
255
|
+
letter-spacing: ${Oe};
|
|
256
|
+
line-height: ${Se};
|
|
257
257
|
text-transform: ${Ae};
|
|
258
258
|
}
|
|
259
|
-
`;class We extends e.FtLitElement{constructor(){super(...arguments),this.variant=
|
|
260
|
-
<${
|
|
259
|
+
`;class We extends e.FtLitElement{constructor(){super(...arguments),this.variant=bt.body1}render(){return this.element?vt`
|
|
260
|
+
<${xt(this.element)}
|
|
261
261
|
class="ft-typography ft-typography--${this.variant}">
|
|
262
262
|
<slot></slot>
|
|
263
|
-
</${
|
|
264
|
-
`:
|
|
263
|
+
</${xt(this.element)}>
|
|
264
|
+
`:vt`
|
|
265
265
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
266
266
|
`}}We.styles=[Ie,_e,Me,Te,Ce,Be,Ee,Ue,De,Re,i.css`
|
|
267
267
|
.ft-typography {
|
|
268
268
|
vertical-align: inherit;
|
|
269
269
|
}
|
|
270
|
-
`],mt([s.property()],We.prototype,"element",void 0),mt([s.property()],We.prototype,"variant",void 0),e.customElement("ft-typography")(We);var Ge,Ke=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,
|
|
270
|
+
`],mt([s.property()],We.prototype,"element",void 0),mt([s.property()],We.prototype,"variant",void 0),e.customElement("ft-typography")(We);var Ge,Ke=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};t.FtTabsAlignment=void 0,(Ge=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Ge.right="right",Ge.justify="justify";const Ze={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")};class Pe extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class qe 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`
|
|
271
271
|
<div class="${n.classMap(t)}" part="container">
|
|
272
272
|
<div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
|
|
273
273
|
${r.repeat(this.ftTabs,((t,e)=>i.html`
|
|
@@ -289,7 +289,7 @@ const yt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
|
|
|
289
289
|
</ft-icon>
|
|
290
290
|
<ft-typography class="ft-tabs--tab-label"
|
|
291
291
|
part="tab-label"
|
|
292
|
-
variant="${
|
|
292
|
+
variant="${bt.body2}">
|
|
293
293
|
${t.label}
|
|
294
294
|
</ft-typography>
|
|
295
295
|
</button>
|
|
@@ -300,7 +300,7 @@ const yt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
|
|
|
300
300
|
<slot @slotchange=${this.onContentChange}></slot>
|
|
301
301
|
</div>
|
|
302
302
|
</div>
|
|
303
|
-
`}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 Pe(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,l,
|
|
303
|
+
`}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 Pe(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}))}}qe.elementDefinitions={"ft-tab":v,"ft-ripple":T,"ft-typography":We,"ft-icon":x},qe.styles=i.css`
|
|
304
304
|
.ft-tabs {
|
|
305
305
|
display: flex;
|
|
306
306
|
flex-direction: column;
|
|
@@ -388,4 +388,4 @@ const yt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
|
|
|
388
388
|
flex-grow: 1;
|
|
389
389
|
overflow: auto;
|
|
390
390
|
}
|
|
391
|
-
`,Ke([s.property({type:Boolean})],qe.prototype,"dense",void 0),Ke([s.property({type:Boolean})],qe.prototype,"contentBefore",void 0),Ke([s.property()],qe.prototype,"alignTabs",void 0),Ke([s.state()],qe.prototype,"ftTabs",void 0),Ke([s.query("[role='tablist']")],qe.prototype,"tabsContainer",void 0),Ke([s.query("[aria-selected='true']")],qe.prototype,"activeTab",void 0),Ke([s.query(".ft-tabs--active-tab-indicator")],qe.prototype,"activeTabIndicator",void 0),Ke([s.property({type:Number,reflect:!0})],qe.prototype,"activeIndex",void 0),e.customElement("ft-tab")(
|
|
391
|
+
`,Ke([s.property({type:Boolean})],qe.prototype,"dense",void 0),Ke([s.property({type:Boolean})],qe.prototype,"contentBefore",void 0),Ke([s.property()],qe.prototype,"alignTabs",void 0),Ke([s.state()],qe.prototype,"ftTabs",void 0),Ke([s.query("[role='tablist']")],qe.prototype,"tabsContainer",void 0),Ke([s.query("[aria-selected='true']")],qe.prototype,"activeTab",void 0),Ke([s.query(".ft-tabs--active-tab-indicator")],qe.prototype,"activeTabIndicator",void 0),Ke([s.property({type:Number,reflect:!0})],qe.prototype,"activeIndex",void 0),e.customElement("ft-tab")(v),e.customElement("ft-tabs")(qe),t.FtTab=v,t.FtTabs=qe,t.FtTabsCssVariables=Ze,t.IndexChangeEvent=Pe,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat,ftGlobals.litClassMap);
|
package/build/ft-tabs.min.js
CHANGED
|
@@ -93,49 +93,49 @@ const vt=1,xt=2,bt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2017 Google LLC
|
|
95
95
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
96
|
-
*/class mt extends gt{constructor(t){if(super(t),this.it=H,t.type!==xt)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:[]}}}mt.directiveName="unsafeHTML",mt.resultType=1;const wt=bt(mt);var $t,Ot;!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=""}($t||($t={})),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=""}(Ot||(Ot={})),new Map([...["abw"].map((t=>[t,Ot.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,Ot.AUDIO])),...["avi"].map((t=>[t,Ot.AVI])),...["chm","xhs"].map((t=>[t,Ot.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,Ot.CODE])),...["csv"].map((t=>[t,Ot.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ot.DITA])),...["epub"].map((t=>[t,Ot.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ot.EXCEL])),...["flac"].map((t=>[t,Ot.FLAC])),...["gif"].map((t=>[t,Ot.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ot.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ot.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,Ot.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ot.JPEG])),...["json"].map((t=>[t,Ot.JSON])),...["m4a","m4p"].map((t=>[t,Ot.M4A])),...["mov","qt"].map((t=>[t,Ot.MOV])),...["mp3"].map((t=>[t,Ot.MP3])),...["mp4","m4v"].map((t=>[t,Ot.MP4])),...["ogg","oga"].map((t=>[t,Ot.OGG])),...["pdf","ps"].map((t=>[t,Ot.PDF])),...["png"].map((t=>[t,Ot.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ot.POWERPOINT])),...["rar"].map((t=>[t,Ot.RAR])),...["stp"].map((t=>[t,Ot.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ot.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,Ot.VIDEO])),...["wav"].map((t=>[t,Ot.WAV])),...["wma"].map((t=>[t,Ot.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ot.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ot.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ot.YAML])),...["zip"].map((t=>[t,Ot.ZIP]))]);var St,Nt=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};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(St||(St={}));const kt=ct.create("--ft-icon-font-size","SIZE","24px"),Ct=ct.extend("--ft-icon-fluid-topics-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Et=ct.extend("--ft-icon-file-format-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Rt=ct.extend("--ft-icon-material-font-family",ct.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Mt=ct.create("--ft-icon-vertical-align","UNKNOWN","unset");class Ut extends yt{constructor(){super(...arguments),this.variant=St.fluid_topics}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
*/class mt extends gt{constructor(t){if(super(t),this.it=H,t.type!==xt)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:[]}}}mt.directiveName="unsafeHTML",mt.resultType=1;const wt=bt(mt);var $t,Ot;!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=""}($t||($t={})),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=""}(Ot||(Ot={})),new Map([...["abw"].map((t=>[t,Ot.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,Ot.AUDIO])),...["avi"].map((t=>[t,Ot.AVI])),...["chm","xhs"].map((t=>[t,Ot.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,Ot.CODE])),...["csv"].map((t=>[t,Ot.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ot.DITA])),...["epub"].map((t=>[t,Ot.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ot.EXCEL])),...["flac"].map((t=>[t,Ot.FLAC])),...["gif"].map((t=>[t,Ot.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ot.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ot.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,Ot.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ot.JPEG])),...["json"].map((t=>[t,Ot.JSON])),...["m4a","m4p"].map((t=>[t,Ot.M4A])),...["mov","qt"].map((t=>[t,Ot.MOV])),...["mp3"].map((t=>[t,Ot.MP3])),...["mp4","m4v"].map((t=>[t,Ot.MP4])),...["ogg","oga"].map((t=>[t,Ot.OGG])),...["pdf","ps"].map((t=>[t,Ot.PDF])),...["png"].map((t=>[t,Ot.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ot.POWERPOINT])),...["rar"].map((t=>[t,Ot.RAR])),...["stp"].map((t=>[t,Ot.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ot.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,Ot.VIDEO])),...["wav"].map((t=>[t,Ot.WAV])),...["wma"].map((t=>[t,Ot.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ot.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ot.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ot.YAML])),...["zip"].map((t=>[t,Ot.ZIP]))]);var St,Nt=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};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(St||(St={}));const kt=ct.create("--ft-icon-font-size","SIZE","24px"),Ct=ct.extend("--ft-icon-fluid-topics-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Et=ct.extend("--ft-icon-file-format-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Rt=ct.extend("--ft-icon-material-font-family",ct.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Mt=ct.create("--ft-icon-vertical-align","UNKNOWN","unset");class Ut extends yt{constructor(){super(...arguments),this.variant=St.fluid_topics,this.resolvedIcon=H}render(){return W`
|
|
97
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
98
|
+
${wt(this.resolvedIcon)}
|
|
99
|
+
<slot ?hidden=${"material"!==this.variant}></slot>
|
|
100
|
+
</i>
|
|
101
|
+
`}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 St.file_format:this.resolvedIcon=null!==(t=Ot[i.toUpperCase()])&&void 0!==t?t:i;break;case St.fluid_topics:this.resolvedIcon=null!==(e=$t[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=H}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Ut.elementDefinitions={},Ut.styles=d`
|
|
102
|
+
:host {
|
|
103
|
+
display: inline-block;
|
|
104
|
+
}
|
|
100
105
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
:host, i.ft-icon {
|
|
107
|
+
width: ${kt};
|
|
108
|
+
height: ${kt};
|
|
109
|
+
text-align: center;
|
|
110
|
+
}
|
|
106
111
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
112
|
+
i.ft-icon {
|
|
113
|
+
font-size: ${kt};
|
|
114
|
+
line-height: 1;
|
|
115
|
+
font-weight: normal;
|
|
116
|
+
text-transform: none;
|
|
117
|
+
font-style: normal;
|
|
118
|
+
font-variant: normal;
|
|
119
|
+
speak: none;
|
|
120
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
121
|
+
text-rendering: auto;
|
|
122
|
+
-webkit-font-smoothing: antialiased;
|
|
123
|
+
-moz-osx-font-smoothing: grayscale;
|
|
124
|
+
vertical-align: ${Mt};
|
|
125
|
+
}
|
|
121
126
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
127
|
+
.ft-icon--fluid-topics {
|
|
128
|
+
font-family: ${Ct}, ft-icons, fticons, sans-serif;
|
|
129
|
+
}
|
|
125
130
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
131
|
+
.ft-icon--file-format {
|
|
132
|
+
font-family: ${Et}, ft-mime, sans-serif;
|
|
133
|
+
}
|
|
129
134
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
135
|
-
${wt(this.getIcon())}
|
|
136
|
-
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
137
|
-
</i>
|
|
138
|
-
`}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:""}getIcon(){var t,e;let i=this.textContent;return this.variant===St.file_format?null!==(t=Ot[i.toUpperCase()])&&void 0!==t?t:i:this.variant===St.fluid_topics?null!==(e=$t[i.toUpperCase()])&&void 0!==e?e:i:H}}Ut.elementDefinitions={},Nt([o()],Ut.prototype,"variant",void 0),Nt([r("slot")],Ut.prototype,"slottedContent",void 0),a("ft-icon")(Ut);var jt=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 Ft extends yt{constructor(){super(...arguments),this.label="",this.icon="",this.iconVariant=St.material,this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return W`
|
|
135
|
+
.ft-icon--material {
|
|
136
|
+
font-family: ${Rt}, "Material Icons", sans-serif;
|
|
137
|
+
}
|
|
138
|
+
`,Nt([o()],Ut.prototype,"variant",void 0),Nt([o()],Ut.prototype,"value",void 0),Nt([s()],Ut.prototype,"resolvedIcon",void 0),Nt([r("slot")],Ut.prototype,"slottedContent",void 0),a("ft-icon")(Ut);var jt=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 Ft extends yt{constructor(){super(...arguments),this.label="",this.icon="",this.iconVariant=St.material,this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return W`
|
|
139
139
|
<style>
|
|
140
140
|
:host {
|
|
141
141
|
display: ${f(this.active?"block":"none")};
|
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.11",
|
|
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.11",
|
|
23
|
+
"@fluid-topics/ft-ripple": "0.3.11",
|
|
24
|
+
"@fluid-topics/ft-typography": "0.3.11",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "0.3.11",
|
|
26
26
|
"lit": "2.2.8"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "35c790329a8e7f9902aad2ea8d41386e5c0b36c9"
|
|
29
29
|
}
|