@fluid-topics/ft-tabs 1.1.17 → 1.1.18
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 +2 -2
- package/build/ft-tabs.min.js +2 -2
- package/package.json +7 -7
package/build/ft-tabs.light.js
CHANGED
|
@@ -251,7 +251,7 @@ const ct=Symbol.for(""),pt=t=>{if(t?.r===ct)return t?._$litStatic$},ft=t=>({_$li
|
|
|
251
251
|
</${ft(this.element)}>
|
|
252
252
|
`:dt`
|
|
253
253
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
254
|
-
`}}Po.styles=[Uo,Wo,Eo,Lo,ko,Ko,Zo,zo,Do,Fo,Bo,...Ao],jo([r.property()],Po.prototype,"element",void 0),jo([r.property()],Po.prototype,"variant",void 0),o.customElement("ft-typography")(Po),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.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.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Ho||(Ho={})),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=""}(Go||(Go={})),new Map([...["abw"].map((t=>[t,Go.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,Go.AUDIO])),...["avi"].map((t=>[t,Go.AVI])),...["chm","xhs"].map((t=>[t,Go.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,Go.CODE])),...["csv"].map((t=>[t,Go.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Go.DITA])),...["epub"].map((t=>[t,Go.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Go.EXCEL])),...["flac"].map((t=>[t,Go.FLAC])),...["gif"].map((t=>[t,Go.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Go.GZIP])),...["html","htm","xhtml"].map((t=>[t,Go.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,Go.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Go.JPEG])),...["json"].map((t=>[t,Go.JSON])),...["m4a","m4p"].map((t=>[t,Go.M4A])),...["mov","qt"].map((t=>[t,Go.MOV])),...["mp3"].map((t=>[t,Go.MP3])),...["mp4","m4v"].map((t=>[t,Go.MP4])),...["ogg","oga"].map((t=>[t,Go.OGG])),...["pdf","ps"].map((t=>[t,Go.PDF])),...["png"].map((t=>[t,Go.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Go.POWERPOINT])),...["rar"].map((t=>[t,Go.RAR])),...["stp"].map((t=>[t,Go.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Go.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,Go.VIDEO])),...["wav"].map((t=>[t,Go.WAV])),...["wma"].map((t=>[t,Go.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Go.WORD])),...["xml","xsl","rdf"].map((t=>[t,Go.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Go.YAML])),...["zip"].map((t=>[t,Go.ZIP]))]),Go.ABW,Go.AUDIO,Go.AVI,Go.CHM,Go.CODE,Go.CSV,Go.DITA,Go.EPUB,Go.EXCEL,Go.FLAC,Go.GIF,Go.GZIP,Go.HTML,Go.IMAGE,Go.JPEG,Go.JSON,Go.M4A,Go.MOV,Go.MP3,Go.MP4,Go.OGG,Go.PDF,Go.PNG,Go.POWERPOINT,Go.RAR,Go.STP,Go.TEXT,Go.UNKNOWN,Go.VIDEO,Go.WAV,Go.WMA,Go.WORD,Go.XML,Go.YAML,Go.ZIP;const Mo=o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),To=o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),Yo=o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),_o=o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),Vo=o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset"),Xo=e.css`
|
|
254
|
+
`}}Po.styles=[Uo,Wo,Eo,Lo,ko,Ko,Zo,zo,Do,Fo,Bo,...Ao],jo([r.property()],Po.prototype,"element",void 0),jo([r.property()],Po.prototype,"variant",void 0),o.customElement("ft-typography")(Po),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.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.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE=""}(Ho||(Ho={})),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=""}(Go||(Go={})),new Map([...["abw"].map((t=>[t,Go.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,Go.AUDIO])),...["avi"].map((t=>[t,Go.AVI])),...["chm","xhs"].map((t=>[t,Go.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,Go.CODE])),...["csv"].map((t=>[t,Go.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Go.DITA])),...["epub"].map((t=>[t,Go.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Go.EXCEL])),...["flac"].map((t=>[t,Go.FLAC])),...["gif"].map((t=>[t,Go.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Go.GZIP])),...["html","htm","xhtml"].map((t=>[t,Go.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,Go.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Go.JPEG])),...["json"].map((t=>[t,Go.JSON])),...["m4a","m4p"].map((t=>[t,Go.M4A])),...["mov","qt"].map((t=>[t,Go.MOV])),...["mp3"].map((t=>[t,Go.MP3])),...["mp4","m4v"].map((t=>[t,Go.MP4])),...["ogg","oga"].map((t=>[t,Go.OGG])),...["pdf","ps"].map((t=>[t,Go.PDF])),...["png"].map((t=>[t,Go.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Go.POWERPOINT])),...["rar"].map((t=>[t,Go.RAR])),...["stp"].map((t=>[t,Go.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Go.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,Go.VIDEO])),...["wav"].map((t=>[t,Go.WAV])),...["wma"].map((t=>[t,Go.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Go.WORD])),...["xml","xsl","rdf"].map((t=>[t,Go.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Go.YAML])),...["zip"].map((t=>[t,Go.ZIP]))]),Go.ABW,Go.AUDIO,Go.AVI,Go.CHM,Go.CODE,Go.CSV,Go.DITA,Go.EPUB,Go.EXCEL,Go.FLAC,Go.GIF,Go.GZIP,Go.HTML,Go.IMAGE,Go.JPEG,Go.JSON,Go.M4A,Go.MOV,Go.MP3,Go.MP4,Go.OGG,Go.PDF,Go.PNG,Go.POWERPOINT,Go.RAR,Go.STP,Go.TEXT,Go.UNKNOWN,Go.VIDEO,Go.WAV,Go.WMA,Go.WORD,Go.XML,Go.YAML,Go.ZIP;const Mo=o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),To=o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),Yo=o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),_o=o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),Vo=o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset"),Xo=e.css`
|
|
255
255
|
:host, i.ft-icon {
|
|
256
256
|
display: inline-flex;
|
|
257
257
|
align-items: center;
|
|
@@ -444,7 +444,7 @@ const ct=Symbol.for(""),pt=t=>{if(t?.r===ct)return t?._$litStatic$},ft=t=>({_$li
|
|
|
444
444
|
</div>
|
|
445
445
|
</div>
|
|
446
446
|
</div>
|
|
447
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",cr(this.slottedElement,this.tooltip,{platform:{...lr,getOffsetParent:t=>lr.getOffsetParent(t,pr)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:a}=o,{mainAxis:i=!0,crossAxis:n=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=xe(t,o),p={x:e,y:r},f=await Ue(o,c),s=we(Oe(a)),d=ve(s);let h=p[d],y=p[s];if(i){const t="y"===d?"bottom":"right";h=me(h+f["y"===d?"top":"left"],h,h-f[t])}if(n){const t="y"===s?"bottom":"right";y=me(y+f["y"===s?"top":"left"],y,y-f[t])}const g=l.fn({...o,[d]:h,[s]:y});return{...g,data:{x:g.x-e,y:g.y-r}}}}),Ee({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}dr.elementDefinitions={"ft-typography":Po},dr.styles=pe,sr([r.property()],dr.prototype,"text",void 0),sr([r.property({type:Boolean})],dr.prototype,"manual",void 0),sr([r.property({type:Boolean})],dr.prototype,"inline",void 0),sr([r.property({type:Number})],dr.prototype,"delay",void 0),sr([r.property()],dr.prototype,"position",void 0),sr([r.queryAssignedNodes()],dr.prototype,"slotNodes",void 0),sr([r.query(".ft-tooltip--container")],dr.prototype,"container",void 0),sr([r.query(".ft-tooltip")],dr.prototype,"tooltip",void 0),sr([r.query(".ft-tooltip--content")],dr.prototype,"tooltipContent",void 0),sr([r.state()],dr.prototype,"visible",void 0),sr([r.eventOptions({passive:!0})],dr.prototype,"onTouch",null),sr([r.eventOptions({passive:!0})],dr.prototype,"onHover",null),sr([r.eventOptions({passive:!0})],dr.prototype,"onOut",null),sr([r.eventOptions({passive:!0})],dr.prototype,"onClick",null),o.customElement("ft-tooltip")(dr);var hr=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class yr extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class gr extends o.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new o.Debouncer(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new o.PostResizeEvent)})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const o={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},r=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return e.html`
|
|
447
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",cr(this.slottedElement,this.tooltip,{platform:{...lr,getOffsetParent:t=>lr.getOffsetParent(t,pr)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:a}=o,{mainAxis:i=!0,crossAxis:n=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=xe(t,o),p={x:e,y:r},f=await Ue(o,c),s=we(Oe(a)),d=ve(s);let h=p[d],y=p[s];if(i){const t="y"===d?"bottom":"right";h=me(h+f["y"===d?"top":"left"],h,h-f[t])}if(n){const t="y"===s?"bottom":"right";y=me(y+f["y"===s?"top":"left"],y,y-f[t])}const g=l.fn({...o,[d]:h,[s]:y});return{...g,data:{x:g.x-e,y:g.y-r}}}}),Ee({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}dr.elementDefinitions={"ft-typography":Po},dr.styles=pe,sr([r.property()],dr.prototype,"text",void 0),sr([r.property({type:Boolean})],dr.prototype,"manual",void 0),sr([r.property({type:Boolean})],dr.prototype,"inline",void 0),sr([r.property({type:Number})],dr.prototype,"delay",void 0),sr([r.property()],dr.prototype,"position",void 0),sr([r.queryAssignedNodes()],dr.prototype,"slotNodes",void 0),sr([r.query(".ft-tooltip--container")],dr.prototype,"container",void 0),sr([r.query(".ft-tooltip")],dr.prototype,"tooltip",void 0),sr([r.query(".ft-tooltip--content")],dr.prototype,"tooltipContent",void 0),sr([r.state()],dr.prototype,"visible",void 0),sr([r.eventOptions({passive:!0})],dr.prototype,"onTouch",null),sr([r.eventOptions({passive:!0})],dr.prototype,"onHover",null),sr([r.eventOptions({passive:!0})],dr.prototype,"onOut",null),sr([r.eventOptions({passive:!0})],dr.prototype,"onClick",null),o.customElement("ft-tooltip")(dr);var hr=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class yr extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class gr extends o.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new o.Debouncer(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new o.PostResizeEvent)})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const o={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},r=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return e.html`
|
|
448
448
|
<div class="${i.classMap(o)}" part="container">
|
|
449
449
|
<div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
|
|
450
450
|
${a.repeat(this.ftTabs,((t,o)=>this.addTooltipIfNecessary(t,e.html`
|
package/build/ft-tabs.min.js
CHANGED
|
@@ -392,7 +392,7 @@ const $o=Symbol.for(""),Io=t=>{if(t?.r===$o)return t?._$litStatic$},ko=t=>({_$li
|
|
|
392
392
|
* Copyright 2017 Google LLC
|
|
393
393
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
394
394
|
*/
|
|
395
|
-
class rr extends eo{constructor(t){if(super(t),this.et=tt,t.type!==Qe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this.vt=void 0,this.et=t;if(t===Q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}rr.directiveName="unsafeHTML",rr.resultType=1;const nr=to(rr);var ar,sr;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.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.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(ar||(ar={})),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=""}(sr||(sr={})),new Map([...["abw"].map((t=>[t,sr.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,sr.AUDIO])),...["avi"].map((t=>[t,sr.AVI])),...["chm","xhs"].map((t=>[t,sr.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,sr.CODE])),...["csv"].map((t=>[t,sr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,sr.DITA])),...["epub"].map((t=>[t,sr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,sr.EXCEL])),...["flac"].map((t=>[t,sr.FLAC])),...["gif"].map((t=>[t,sr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,sr.GZIP])),...["html","htm","xhtml"].map((t=>[t,sr.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,sr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,sr.JPEG])),...["json"].map((t=>[t,sr.JSON])),...["m4a","m4p"].map((t=>[t,sr.M4A])),...["mov","qt"].map((t=>[t,sr.MOV])),...["mp3"].map((t=>[t,sr.MP3])),...["mp4","m4v"].map((t=>[t,sr.MP4])),...["ogg","oga"].map((t=>[t,sr.OGG])),...["pdf","ps"].map((t=>[t,sr.PDF])),...["png"].map((t=>[t,sr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,sr.POWERPOINT])),...["rar"].map((t=>[t,sr.RAR])),...["stp"].map((t=>[t,sr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,sr.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,sr.VIDEO])),...["wav"].map((t=>[t,sr.WAV])),...["wma"].map((t=>[t,sr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,sr.WORD])),...["xml","xsl","rdf"].map((t=>[t,sr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,sr.YAML])),...["zip"].map((t=>[t,sr.ZIP]))]),sr.ABW,sr.AUDIO,sr.AVI,sr.CHM,sr.CODE,sr.CSV,sr.DITA,sr.EPUB,sr.EXCEL,sr.FLAC,sr.GIF,sr.GZIP,sr.HTML,sr.IMAGE,sr.JPEG,sr.JSON,sr.M4A,sr.MOV,sr.MP3,sr.MP4,sr.OGG,sr.PDF,sr.PNG,sr.POWERPOINT,sr.RAR,sr.STP,sr.TEXT,sr.UNKNOWN,sr.VIDEO,sr.WAV,sr.WMA,sr.WORD,sr.XML,sr.YAML,sr.ZIP;const lr=Se.create("--ft-icon-font-size","","SIZE","24px"),cr=Se.extend("--ft-icon-fluid-topics-font-family","",Se.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),pr=Se.extend("--ft-icon-file-format-font-family","",Se.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),fr=Se.extend("--ft-icon-material-font-family","",Se.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),hr=Se.create("--ft-icon-vertical-align","","UNKNOWN","unset"),dr=Nt`
|
|
395
|
+
class rr extends eo{constructor(t){if(super(t),this.et=tt,t.type!==Qe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this.vt=void 0,this.et=t;if(t===Q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}rr.directiveName="unsafeHTML",rr.resultType=1;const nr=to(rr);var ar,sr;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.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.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE=""}(ar||(ar={})),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=""}(sr||(sr={})),new Map([...["abw"].map((t=>[t,sr.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,sr.AUDIO])),...["avi"].map((t=>[t,sr.AVI])),...["chm","xhs"].map((t=>[t,sr.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,sr.CODE])),...["csv"].map((t=>[t,sr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,sr.DITA])),...["epub"].map((t=>[t,sr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,sr.EXCEL])),...["flac"].map((t=>[t,sr.FLAC])),...["gif"].map((t=>[t,sr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,sr.GZIP])),...["html","htm","xhtml"].map((t=>[t,sr.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,sr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,sr.JPEG])),...["json"].map((t=>[t,sr.JSON])),...["m4a","m4p"].map((t=>[t,sr.M4A])),...["mov","qt"].map((t=>[t,sr.MOV])),...["mp3"].map((t=>[t,sr.MP3])),...["mp4","m4v"].map((t=>[t,sr.MP4])),...["ogg","oga"].map((t=>[t,sr.OGG])),...["pdf","ps"].map((t=>[t,sr.PDF])),...["png"].map((t=>[t,sr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,sr.POWERPOINT])),...["rar"].map((t=>[t,sr.RAR])),...["stp"].map((t=>[t,sr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,sr.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,sr.VIDEO])),...["wav"].map((t=>[t,sr.WAV])),...["wma"].map((t=>[t,sr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,sr.WORD])),...["xml","xsl","rdf"].map((t=>[t,sr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,sr.YAML])),...["zip"].map((t=>[t,sr.ZIP]))]),sr.ABW,sr.AUDIO,sr.AVI,sr.CHM,sr.CODE,sr.CSV,sr.DITA,sr.EPUB,sr.EXCEL,sr.FLAC,sr.GIF,sr.GZIP,sr.HTML,sr.IMAGE,sr.JPEG,sr.JSON,sr.M4A,sr.MOV,sr.MP3,sr.MP4,sr.OGG,sr.PDF,sr.PNG,sr.POWERPOINT,sr.RAR,sr.STP,sr.TEXT,sr.UNKNOWN,sr.VIDEO,sr.WAV,sr.WMA,sr.WORD,sr.XML,sr.YAML,sr.ZIP;const lr=Se.create("--ft-icon-font-size","","SIZE","24px"),cr=Se.extend("--ft-icon-fluid-topics-font-family","",Se.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),pr=Se.extend("--ft-icon-file-format-font-family","",Se.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),fr=Se.extend("--ft-icon-material-font-family","",Se.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),hr=Se.create("--ft-icon-vertical-align","","UNKNOWN","unset"),dr=Nt`
|
|
396
396
|
:host, i.ft-icon {
|
|
397
397
|
display: inline-flex;
|
|
398
398
|
align-items: center;
|
|
@@ -585,7 +585,7 @@ class rr extends eo{constructor(t){if(super(t),this.et=tt,t.type!==Qe)throw Erro
|
|
|
585
585
|
</div>
|
|
586
586
|
</div>
|
|
587
587
|
</div>
|
|
588
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Rn(this.slottedElement,this.tooltip,{platform:{...Cn,getOffsetParent:t=>Cn.getOffsetParent(t,En)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=zr(t,e),c={x:o,y:i},p=await _r(e,l),f=Br(Fr(r)),h=Ar(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=Zr(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=Zr(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...e,[h]:d,[f]:u});return{...y,data:{x:y.x-o,y:y.y-i}}}}),Yr({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}In.elementDefinitions={"ft-typography":ir},In.styles=Rr,$n([C()],In.prototype,"text",void 0),$n([C({type:Boolean})],In.prototype,"manual",void 0),$n([C({type:Boolean})],In.prototype,"inline",void 0),$n([C({type:Number})],In.prototype,"delay",void 0),$n([C()],In.prototype,"position",void 0),$n([function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],In.prototype,"slotNodes",void 0),$n([$(".ft-tooltip--container")],In.prototype,"container",void 0),$n([$(".ft-tooltip")],In.prototype,"tooltip",void 0),$n([$(".ft-tooltip--content")],In.prototype,"tooltipContent",void 0),$n([R()],In.prototype,"visible",void 0),$n([E({passive:!0})],In.prototype,"onTouch",null),$n([E({passive:!0})],In.prototype,"onHover",null),$n([E({passive:!0})],In.prototype,"onOut",null),$n([E({passive:!0})],In.prototype,"onClick",null),k("ft-tooltip")(In);var kn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Wn extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class Ln extends Me{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new e(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new $e)})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const e={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},o=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return re`
|
|
588
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Rn(this.slottedElement,this.tooltip,{platform:{...Cn,getOffsetParent:t=>Cn.getOffsetParent(t,En)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=zr(t,e),c={x:o,y:i},p=await _r(e,l),f=Br(Fr(r)),h=Ar(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=Zr(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=Zr(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...e,[h]:d,[f]:u});return{...y,data:{x:y.x-o,y:y.y-i}}}}),Yr({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}In.elementDefinitions={"ft-typography":ir},In.styles=Rr,$n([C()],In.prototype,"text",void 0),$n([C({type:Boolean})],In.prototype,"manual",void 0),$n([C({type:Boolean})],In.prototype,"inline",void 0),$n([C({type:Number})],In.prototype,"delay",void 0),$n([C()],In.prototype,"position",void 0),$n([function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],In.prototype,"slotNodes",void 0),$n([$(".ft-tooltip--container")],In.prototype,"container",void 0),$n([$(".ft-tooltip")],In.prototype,"tooltip",void 0),$n([$(".ft-tooltip--content")],In.prototype,"tooltipContent",void 0),$n([R()],In.prototype,"visible",void 0),$n([E({passive:!0})],In.prototype,"onTouch",null),$n([E({passive:!0})],In.prototype,"onHover",null),$n([E({passive:!0})],In.prototype,"onOut",null),$n([E({passive:!0})],In.prototype,"onClick",null),k("ft-tooltip")(In);var kn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Wn extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class Ln extends Me{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new e(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new $e)})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const e={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},o=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return re`
|
|
589
589
|
<div class="${po(e)}" part="container">
|
|
590
590
|
<div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
|
|
591
591
|
${co(this.ftTabs,((t,e)=>this.addTooltipIfNecessary(t,re`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-tabs",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.18",
|
|
4
4
|
"description": "Generic tabs component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
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": "1.1.
|
|
23
|
-
"@fluid-topics/ft-ripple": "1.1.
|
|
24
|
-
"@fluid-topics/ft-tooltip": "1.1.
|
|
25
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.1.18",
|
|
23
|
+
"@fluid-topics/ft-ripple": "1.1.18",
|
|
24
|
+
"@fluid-topics/ft-tooltip": "1.1.18",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.1.18",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.1.18",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "30d914e4439747c7af8baebd0b9ebbc344de2ecf"
|
|
30
30
|
}
|