@fluid-topics/ft-icon
Advanced tools
Comparing version 0.3.34 to 0.3.35
@@ -44,6 +44,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
case FtIconVariants.file_format: | ||
this.resolvedIcon = (_a = FtFileFormatIcons[content.toUpperCase()]) !== null && _a !== void 0 ? _a : content; | ||
this.resolvedIcon = (_a = FtFileFormatIcons[content.replace("-", "_").toUpperCase()]) !== null && _a !== void 0 ? _a : content; | ||
break; | ||
case FtIconVariants.fluid_topics: | ||
this.resolvedIcon = (_b = FtIcons[content.toUpperCase()]) !== null && _b !== void 0 ? _b : content; | ||
this.resolvedIcon = (_b = FtIcons[content.replace("-", "_").toUpperCase()]) !== null && _b !== void 0 ? _b : content; | ||
break; | ||
@@ -56,5 +56,3 @@ default: | ||
super.firstUpdated(_changedProperties); | ||
setTimeout(() => { | ||
this.resolveIcon(); | ||
}); | ||
setTimeout(() => this.resolveIcon()); | ||
} | ||
@@ -61,0 +59,0 @@ } |
@@ -1,2 +0,2 @@ | ||
!function(e,t,a,i,o){var x,p;e.FtIcons=void 0,(x=e.FtIcons||(e.FtIcons={})).THIN_ARROW_UP="",x.CONTEXTUAL="",x.UNSTRUCTURED_DOC="",x.RESET="",x.THIN_ARROW_LEFT="",x.THIN_ARROW_RIGHT="",x.MY_COLLECTIONS="",x.OFFLINE_SETTINGS="",x.MY_LIBRARY="",x.RATE_PLAIN="",x.RATE="",x.FEEDBACK_PLAIN="",x.STAR_PLAIN="",x.STAR="",x.THUMBS_DOWN_PLAIN="",x.THUMBS_DOWN="",x.THUMBS_UP_PLAIN="",x.THUMBS_UP="",x.PAUSE="",x.PLAY="",x.RELATIVES_PLAIN="",x.RELATIVES="",x.SHORTCUT_MENU="",x.PRINT="",x.DEFAULT_ROLES="",x.ACCOUNT_SETTINGS="",x.ONLINE="",x.OFFLINE="",x.UPLOAD="",x.BOOK_PLAIN="",x.SYNC="",x.SHARED_PBK="",x.COLLECTIONS="",x.SEARCH_IN_PUBLICATION="",x.BOOKS="",x.LOCKER="",x.ARROW_DOWN="",x.ARROW_LEFT="",x.ARROW_RIGHT="",x.ARROW_UP="",x.SAVE="",x.MAILS_AND_NOTIFICATIONS="",x.DOT="",x.MINUS="",x.PLUS="",x.FILTERS="",x.STRIPE_ARROW_RIGHT="",x.STRIPE_ARROW_LEFT="",x.ATTACHMENTS="",x.ADD_BOOKMARK="",x.BOOKMARK="",x.EXPORT="",x.MENU="",x.TAG="",x.TAG_PLAIN="",x.COPY_TO_CLIPBOARD="",x.COLUMNS="",x.ARTICLE="",x.CLOSE_PLAIN="",x.CHECK_PLAIN="",x.LOGOUT="",x.SIGN_IN="",x.THIN_ARROW="",x.TRIANGLE_BOTTOM="",x.TRIANGLE_LEFT="",x.TRIANGLE_RIGHT="",x.TRIANGLE_TOP="",x.FACET_HAS_DESCENDANT="",x.MINUS_PLAIN="",x.PLUS_PLAIN="",x.INFO="",x.ICON_EXPAND="",x.ICON_COLLAPSE="",x.ADD_TO_PBK="",x.ALERT="",x.ADD_ALERT="",x.BACK_TO_SEARCH="",x.DOWNLOAD="",x.EDIT="",x.FEEDBACK="",x.MODIFY_PBK="",x.SCHEDULED="",x.SEARCH="",x.SHARE="󨃱",x.TOC="",x.WRITE_UGC="",x.TRASH="",x.EXTLINK="",x.CALENDAR="",x.BOOK="",x.DOWNLOAD_PLAIN="",x.CHECK="",x.TOPICS="",x.EYE="\f06e",x.DISC="",x.CIRCLE="",x.SHARED="",x.SORT_UNSORTED="",x.SORT_UP="",x.SORT_DOWN="",x.WORKING="",x.CLOSE="",x.ZOOM_OUT="",x.ZOOM_IN="",x.ZOOM_REALSIZE="",x.ZOOM_FULLSCREEN="",x.ADMIN_RESTRICTED="",x.ADMIN_THEME="",x.WARNING="",x.CONTEXT="",x.SEARCH_HOME="",x.STEPS="",x.HOME="",x.TRANSLATE="",x.USER="",x.ADMIN="",x.ANALYTICS="",x.ADMIN_KHUB="",x.ADMIN_USERS="",x.ADMIN_INTEGRATION="",x.ADMIN_PORTAL="",e.FtFileFormatIcons=void 0,(p=e.FtFileFormatIcons||(e.FtFileFormatIcons={})).UNKNOWN="",p.ABW="",p.AUDIO="",p.AVI="",p.CHM="",p.CODE="",p.CSV="",p.DITA="",p.EPUB="",p.EXCEL="",p.FLAC="",p.GIF="",p.GZIP="",p.HTML="",p.IMAGE="",p.JPEG="",p.JSON="",p.M4A="",p.MOV="",p.MP3="",p.MP4="",p.OGG="",p.PDF="",p.PNG="",p.POWERPOINT="",p.RAR="",p.STP="",p.TEXT="",p.VIDEO="",p.WAV="",p.WMA="",p.WORD="",p.XML="",p.YAML="",p.ZIP="";const n=new Map([...["abw"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.AUDIO])),...["avi"].map((t=>[t,e.FtFileFormatIcons.AVI])),...["chm","xhs"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.CODE])),...["csv"].map((t=>[t,e.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,e.FtFileFormatIcons.DITA])),...["epub"].map((t=>[t,e.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,e.FtFileFormatIcons.EXCEL])),...["flac"].map((t=>[t,e.FtFileFormatIcons.FLAC])),...["gif"].map((t=>[t,e.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,e.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,e.FtFileFormatIcons.JPEG])),...["json"].map((t=>[t,e.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((t=>[t,e.FtFileFormatIcons.M4A])),...["mov","qt"].map((t=>[t,e.FtFileFormatIcons.MOV])),...["mp3"].map((t=>[t,e.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((t=>[t,e.FtFileFormatIcons.MP4])),...["ogg","oga"].map((t=>[t,e.FtFileFormatIcons.OGG])),...["pdf","ps"].map((t=>[t,e.FtFileFormatIcons.PDF])),...["png"].map((t=>[t,e.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,e.FtFileFormatIcons.POWERPOINT])),...["rar"].map((t=>[t,e.FtFileFormatIcons.RAR])),...["stp"].map((t=>[t,e.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.VIDEO])),...["wav"].map((t=>[t,e.FtFileFormatIcons.WAV])),...["wma"].map((t=>[t,e.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,e.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((t=>[t,e.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((t=>[t,e.FtFileFormatIcons.YAML])),...["zip"].map((t=>[t,e.FtFileFormatIcons.ZIP]))]),l=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const s={size:t.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:t.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:t.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:t.FtCssVariableFactory.extend("--ft-icon-material-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:t.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},c=a.css` | ||
!function(e,t,a,i,o){var x,p;e.FtIcons=void 0,(x=e.FtIcons||(e.FtIcons={})).DESKTOP="",x.MOBILE_LANDSCAPE="",x.MOBILE_PORTRAIT="",x.TABLET_LANDSCAPE="",x.TABLET_PORTRAIT="",x.THIN_ARROW_UP="",x.CONTEXTUAL="",x.UNSTRUCTURED_DOC="",x.RESET="",x.THIN_ARROW_LEFT="",x.THIN_ARROW_RIGHT="",x.MY_COLLECTIONS="",x.OFFLINE_SETTINGS="",x.MY_LIBRARY="",x.RATE_PLAIN="",x.RATE="",x.FEEDBACK_PLAIN="",x.STAR_PLAIN="",x.STAR="",x.THUMBS_DOWN_PLAIN="",x.THUMBS_DOWN="",x.THUMBS_UP_PLAIN="",x.THUMBS_UP="",x.PAUSE="",x.PLAY="",x.RELATIVES_PLAIN="",x.RELATIVES="",x.SHORTCUT_MENU="",x.PRINT="",x.DEFAULT_ROLES="",x.ACCOUNT_SETTINGS="",x.ONLINE="",x.OFFLINE="",x.UPLOAD="",x.BOOK_PLAIN="",x.SYNC="",x.SHARED_PBK="",x.COLLECTIONS="",x.SEARCH_IN_PUBLICATION="",x.BOOKS="",x.LOCKER="",x.ARROW_DOWN="",x.ARROW_LEFT="",x.ARROW_RIGHT="",x.ARROW_UP="",x.SAVE="",x.MAILS_AND_NOTIFICATIONS="",x.DOT="",x.MINUS="",x.PLUS="",x.FILTERS="",x.STRIPE_ARROW_RIGHT="",x.STRIPE_ARROW_LEFT="",x.ATTACHMENTS="",x.ADD_BOOKMARK="",x.BOOKMARK="",x.EXPORT="",x.MENU="",x.TAG="",x.TAG_PLAIN="",x.COPY_TO_CLIPBOARD="",x.COLUMNS="",x.ARTICLE="",x.CLOSE_PLAIN="",x.CHECK_PLAIN="",x.LOGOUT="",x.SIGN_IN="",x.THIN_ARROW="",x.TRIANGLE_BOTTOM="",x.TRIANGLE_LEFT="",x.TRIANGLE_RIGHT="",x.TRIANGLE_TOP="",x.FACET_HAS_DESCENDANT="",x.MINUS_PLAIN="",x.PLUS_PLAIN="",x.INFO="",x.ICON_EXPAND="",x.ICON_COLLAPSE="",x.ADD_TO_PBK="",x.ALERT="",x.ADD_ALERT="",x.BACK_TO_SEARCH="",x.DOWNLOAD="",x.EDIT="",x.FEEDBACK="",x.MODIFY_PBK="",x.SCHEDULED="",x.SEARCH="",x.SHARE="󨃱",x.TOC="",x.WRITE_UGC="",x.TRASH="",x.EXTLINK="",x.CALENDAR="",x.BOOK="",x.DOWNLOAD_PLAIN="",x.CHECK="",x.TOPICS="",x.EYE="\f06e",x.DISC="",x.CIRCLE="",x.SHARED="",x.SORT_UNSORTED="",x.SORT_UP="",x.SORT_DOWN="",x.WORKING="",x.CLOSE="",x.ZOOM_OUT="",x.ZOOM_IN="",x.ZOOM_REALSIZE="",x.ZOOM_FULLSCREEN="",x.ADMIN_RESTRICTED="",x.ADMIN_THEME="",x.WARNING="",x.CONTEXT="",x.SEARCH_HOME="",x.STEPS="",x.HOME="",x.TRANSLATE="",x.USER="",x.ADMIN="",x.ANALYTICS="",x.ADMIN_KHUB="",x.ADMIN_USERS="",x.ADMIN_INTEGRATION="",x.ADMIN_PORTAL="",e.FtFileFormatIcons=void 0,(p=e.FtFileFormatIcons||(e.FtFileFormatIcons={})).UNKNOWN="",p.ABW="",p.AUDIO="",p.AVI="",p.CHM="",p.CODE="",p.CSV="",p.DITA="",p.EPUB="",p.EXCEL="",p.FLAC="",p.GIF="",p.GZIP="",p.HTML="",p.IMAGE="",p.JPEG="",p.JSON="",p.M4A="",p.MOV="",p.MP3="",p.MP4="",p.OGG="",p.PDF="",p.PNG="",p.POWERPOINT="",p.RAR="",p.STP="",p.TEXT="",p.VIDEO="",p.WAV="",p.WMA="",p.WORD="",p.XML="",p.YAML="",p.ZIP="";const n=new Map([...["abw"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.AUDIO])),...["avi"].map((t=>[t,e.FtFileFormatIcons.AVI])),...["chm","xhs"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.CODE])),...["csv"].map((t=>[t,e.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,e.FtFileFormatIcons.DITA])),...["epub"].map((t=>[t,e.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,e.FtFileFormatIcons.EXCEL])),...["flac"].map((t=>[t,e.FtFileFormatIcons.FLAC])),...["gif"].map((t=>[t,e.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,e.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,e.FtFileFormatIcons.JPEG])),...["json"].map((t=>[t,e.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((t=>[t,e.FtFileFormatIcons.M4A])),...["mov","qt"].map((t=>[t,e.FtFileFormatIcons.MOV])),...["mp3"].map((t=>[t,e.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((t=>[t,e.FtFileFormatIcons.MP4])),...["ogg","oga"].map((t=>[t,e.FtFileFormatIcons.OGG])),...["pdf","ps"].map((t=>[t,e.FtFileFormatIcons.PDF])),...["png"].map((t=>[t,e.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,e.FtFileFormatIcons.POWERPOINT])),...["rar"].map((t=>[t,e.FtFileFormatIcons.RAR])),...["stp"].map((t=>[t,e.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((t=>[t,e.FtFileFormatIcons.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,e.FtFileFormatIcons.VIDEO])),...["wav"].map((t=>[t,e.FtFileFormatIcons.WAV])),...["wma"].map((t=>[t,e.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,e.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((t=>[t,e.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((t=>[t,e.FtFileFormatIcons.YAML])),...["zip"].map((t=>[t,e.FtFileFormatIcons.ZIP]))]),l=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const s={size:t.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:t.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:t.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:t.FtCssVariableFactory.extend("--ft-icon-material-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:t.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},c=a.css` | ||
:host { | ||
@@ -43,2 +43,2 @@ display: inline-block; | ||
</i> | ||
`}get textContent(){var e,t;return null!==(t=null===(e=this.slottedContent)||void 0===e?void 0:e.assignedNodes().map((e=>e.textContent)).join("").trim())&&void 0!==t?t:""}update(e){super.update(e),["value","variant"].some((t=>e.has(t)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case e.FtIconVariants.file_format:this.resolvedIcon=null!==(t=e.FtFileFormatIcons[o.toUpperCase()])&&void 0!==t?t:o;break;case e.FtIconVariants.fluid_topics:this.resolvedIcon=null!==(i=e.FtIcons[o.toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||a.nothing}}firstUpdated(e){super.firstUpdated(e),setTimeout((()=>{this.resolveIcon()}))}}f.elementDefinitions={},f.styles=c,d([i.property()],f.prototype,"variant",void 0),d([i.property()],f.prototype,"value",void 0),d([i.state()],f.prototype,"resolvedIcon",void 0),d([i.query("slot")],f.prototype,"slottedContent",void 0),t.customElement("ft-icon")(f),e.FtIcon=f,e.FtIconCssVariables=s,e.resolveFileFormatIcon=function(t,a){var i,o,x,p;t=(null!=t?t:"").toLowerCase(),a=(null!=a?a:"").toLowerCase();const[s,c]=((null!==(i=l.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(p=null!==(x=null!==(o=n.get(c))&&void 0!==o?o:n.get(a))&&void 0!==x?x:n.get(s))&&void 0!==p?p:e.FtFileFormatIcons.UNKNOWN},e.styles=c,Object.defineProperty(e,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML); | ||
`}get textContent(){var e,t;return null!==(t=null===(e=this.slottedContent)||void 0===e?void 0:e.assignedNodes().map((e=>e.textContent)).join("").trim())&&void 0!==t?t:""}update(e){super.update(e),["value","variant"].some((t=>e.has(t)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case e.FtIconVariants.file_format:this.resolvedIcon=null!==(t=e.FtFileFormatIcons[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case e.FtIconVariants.fluid_topics:this.resolvedIcon=null!==(i=e.FtIcons[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||a.nothing}}firstUpdated(e){super.firstUpdated(e),setTimeout((()=>this.resolveIcon()))}}f.elementDefinitions={},f.styles=c,d([i.property()],f.prototype,"variant",void 0),d([i.property()],f.prototype,"value",void 0),d([i.state()],f.prototype,"resolvedIcon",void 0),d([i.query("slot")],f.prototype,"slottedContent",void 0),t.customElement("ft-icon")(f),e.FtIcon=f,e.FtIconCssVariables=s,e.resolveFileFormatIcon=function(t,a){var i,o,x,p;t=(null!=t?t:"").toLowerCase(),a=(null!=a?a:"").toLowerCase();const[s,c]=((null!==(i=l.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(p=null!==(x=null!==(o=n.get(c))&&void 0!==o?o:n.get(a))&&void 0!==x?x:n.get(s))&&void 0!==p?p:e.FtFileFormatIcons.UNKNOWN},e.styles=c,Object.defineProperty(e,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML); |
@@ -99,3 +99,3 @@ !function(t){ | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/class ft extends xt{constructor(t){if(super(t),this.it=D,t.type!==ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===D||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:[]}}}ft.directiveName="unsafeHTML",ft.resultType=1;const vt=(t=>(...e)=>({_$litDirective$:t,values:e}))(ft);var mt,bt;t.FtIcons=void 0,(mt=t.FtIcons||(t.FtIcons={})).THIN_ARROW_UP="",mt.CONTEXTUAL="",mt.UNSTRUCTURED_DOC="",mt.RESET="",mt.THIN_ARROW_LEFT="",mt.THIN_ARROW_RIGHT="",mt.MY_COLLECTIONS="",mt.OFFLINE_SETTINGS="",mt.MY_LIBRARY="",mt.RATE_PLAIN="",mt.RATE="",mt.FEEDBACK_PLAIN="",mt.STAR_PLAIN="",mt.STAR="",mt.THUMBS_DOWN_PLAIN="",mt.THUMBS_DOWN="",mt.THUMBS_UP_PLAIN="",mt.THUMBS_UP="",mt.PAUSE="",mt.PLAY="",mt.RELATIVES_PLAIN="",mt.RELATIVES="",mt.SHORTCUT_MENU="",mt.PRINT="",mt.DEFAULT_ROLES="",mt.ACCOUNT_SETTINGS="",mt.ONLINE="",mt.OFFLINE="",mt.UPLOAD="",mt.BOOK_PLAIN="",mt.SYNC="",mt.SHARED_PBK="",mt.COLLECTIONS="",mt.SEARCH_IN_PUBLICATION="",mt.BOOKS="",mt.LOCKER="",mt.ARROW_DOWN="",mt.ARROW_LEFT="",mt.ARROW_RIGHT="",mt.ARROW_UP="",mt.SAVE="",mt.MAILS_AND_NOTIFICATIONS="",mt.DOT="",mt.MINUS="",mt.PLUS="",mt.FILTERS="",mt.STRIPE_ARROW_RIGHT="",mt.STRIPE_ARROW_LEFT="",mt.ATTACHMENTS="",mt.ADD_BOOKMARK="",mt.BOOKMARK="",mt.EXPORT="",mt.MENU="",mt.TAG="",mt.TAG_PLAIN="",mt.COPY_TO_CLIPBOARD="",mt.COLUMNS="",mt.ARTICLE="",mt.CLOSE_PLAIN="",mt.CHECK_PLAIN="",mt.LOGOUT="",mt.SIGN_IN="",mt.THIN_ARROW="",mt.TRIANGLE_BOTTOM="",mt.TRIANGLE_LEFT="",mt.TRIANGLE_RIGHT="",mt.TRIANGLE_TOP="",mt.FACET_HAS_DESCENDANT="",mt.MINUS_PLAIN="",mt.PLUS_PLAIN="",mt.INFO="",mt.ICON_EXPAND="",mt.ICON_COLLAPSE="",mt.ADD_TO_PBK="",mt.ALERT="",mt.ADD_ALERT="",mt.BACK_TO_SEARCH="",mt.DOWNLOAD="",mt.EDIT="",mt.FEEDBACK="",mt.MODIFY_PBK="",mt.SCHEDULED="",mt.SEARCH="",mt.SHARE="󨃱",mt.TOC="",mt.WRITE_UGC="",mt.TRASH="",mt.EXTLINK="",mt.CALENDAR="",mt.BOOK="",mt.DOWNLOAD_PLAIN="",mt.CHECK="",mt.TOPICS="",mt.EYE="\f06e",mt.DISC="",mt.CIRCLE="",mt.SHARED="",mt.SORT_UNSORTED="",mt.SORT_UP="",mt.SORT_DOWN="",mt.WORKING="",mt.CLOSE="",mt.ZOOM_OUT="",mt.ZOOM_IN="",mt.ZOOM_REALSIZE="",mt.ZOOM_FULLSCREEN="",mt.ADMIN_RESTRICTED="",mt.ADMIN_THEME="",mt.WARNING="",mt.CONTEXT="",mt.SEARCH_HOME="",mt.STEPS="",mt.HOME="",mt.TRANSLATE="",mt.USER="",mt.ADMIN="",mt.ANALYTICS="",mt.ADMIN_KHUB="",mt.ADMIN_USERS="",mt.ADMIN_INTEGRATION="",mt.ADMIN_PORTAL="",t.FtFileFormatIcons=void 0,(bt=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="",bt.ABW="",bt.AUDIO="",bt.AVI="",bt.CHM="",bt.CODE="",bt.CSV="",bt.DITA="",bt.EPUB="",bt.EXCEL="",bt.FLAC="",bt.GIF="",bt.GZIP="",bt.HTML="",bt.IMAGE="",bt.JPEG="",bt.JSON="",bt.M4A="",bt.MOV="",bt.MP3="",bt.MP4="",bt.OGG="",bt.PDF="",bt.PNG="",bt.POWERPOINT="",bt.RAR="",bt.STP="",bt.TEXT="",bt.VIDEO="",bt.WAV="",bt.WMA="",bt.WORD="",bt.XML="",bt.YAML="",bt.ZIP="";const wt=new Map([...["abw"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.AUDIO])),...["avi"].map((e=>[e,t.FtFileFormatIcons.AVI])),...["chm","xhs"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.CODE])),...["csv"].map((e=>[e,t.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((e=>[e,t.FtFileFormatIcons.DITA])),...["epub"].map((e=>[e,t.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((e=>[e,t.FtFileFormatIcons.EXCEL])),...["flac"].map((e=>[e,t.FtFileFormatIcons.FLAC])),...["gif"].map((e=>[e,t.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((e=>[e,t.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((e=>[e,t.FtFileFormatIcons.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((e=>[e,t.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((e=>[e,t.FtFileFormatIcons.JPEG])),...["json"].map((e=>[e,t.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((e=>[e,t.FtFileFormatIcons.M4A])),...["mov","qt"].map((e=>[e,t.FtFileFormatIcons.MOV])),...["mp3"].map((e=>[e,t.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((e=>[e,t.FtFileFormatIcons.MP4])),...["ogg","oga"].map((e=>[e,t.FtFileFormatIcons.OGG])),...["pdf","ps"].map((e=>[e,t.FtFileFormatIcons.PDF])),...["png"].map((e=>[e,t.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((e=>[e,t.FtFileFormatIcons.POWERPOINT])),...["rar"].map((e=>[e,t.FtFileFormatIcons.RAR])),...["stp"].map((e=>[e,t.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.VIDEO])),...["wav"].map((e=>[e,t.FtFileFormatIcons.WAV])),...["wma"].map((e=>[e,t.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((e=>[e,t.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((e=>[e,t.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((e=>[e,t.FtFileFormatIcons.YAML])),...["zip"].map((e=>[e,t.FtFileFormatIcons.ZIP]))]),gt=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const yt={size:lt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:lt.extend("--ft-icon-fluid-topics-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:lt.extend("--ft-icon-file-format-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:lt.extend("--ft-icon-material-font-family",lt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:lt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ot=p` | ||
*/class ft extends xt{constructor(t){if(super(t),this.it=D,t.type!==ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===D||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:[]}}}ft.directiveName="unsafeHTML",ft.resultType=1;const vt=(t=>(...e)=>({_$litDirective$:t,values:e}))(ft);var mt,bt;t.FtIcons=void 0,(mt=t.FtIcons||(t.FtIcons={})).DESKTOP="",mt.MOBILE_LANDSCAPE="",mt.MOBILE_PORTRAIT="",mt.TABLET_LANDSCAPE="",mt.TABLET_PORTRAIT="",mt.THIN_ARROW_UP="",mt.CONTEXTUAL="",mt.UNSTRUCTURED_DOC="",mt.RESET="",mt.THIN_ARROW_LEFT="",mt.THIN_ARROW_RIGHT="",mt.MY_COLLECTIONS="",mt.OFFLINE_SETTINGS="",mt.MY_LIBRARY="",mt.RATE_PLAIN="",mt.RATE="",mt.FEEDBACK_PLAIN="",mt.STAR_PLAIN="",mt.STAR="",mt.THUMBS_DOWN_PLAIN="",mt.THUMBS_DOWN="",mt.THUMBS_UP_PLAIN="",mt.THUMBS_UP="",mt.PAUSE="",mt.PLAY="",mt.RELATIVES_PLAIN="",mt.RELATIVES="",mt.SHORTCUT_MENU="",mt.PRINT="",mt.DEFAULT_ROLES="",mt.ACCOUNT_SETTINGS="",mt.ONLINE="",mt.OFFLINE="",mt.UPLOAD="",mt.BOOK_PLAIN="",mt.SYNC="",mt.SHARED_PBK="",mt.COLLECTIONS="",mt.SEARCH_IN_PUBLICATION="",mt.BOOKS="",mt.LOCKER="",mt.ARROW_DOWN="",mt.ARROW_LEFT="",mt.ARROW_RIGHT="",mt.ARROW_UP="",mt.SAVE="",mt.MAILS_AND_NOTIFICATIONS="",mt.DOT="",mt.MINUS="",mt.PLUS="",mt.FILTERS="",mt.STRIPE_ARROW_RIGHT="",mt.STRIPE_ARROW_LEFT="",mt.ATTACHMENTS="",mt.ADD_BOOKMARK="",mt.BOOKMARK="",mt.EXPORT="",mt.MENU="",mt.TAG="",mt.TAG_PLAIN="",mt.COPY_TO_CLIPBOARD="",mt.COLUMNS="",mt.ARTICLE="",mt.CLOSE_PLAIN="",mt.CHECK_PLAIN="",mt.LOGOUT="",mt.SIGN_IN="",mt.THIN_ARROW="",mt.TRIANGLE_BOTTOM="",mt.TRIANGLE_LEFT="",mt.TRIANGLE_RIGHT="",mt.TRIANGLE_TOP="",mt.FACET_HAS_DESCENDANT="",mt.MINUS_PLAIN="",mt.PLUS_PLAIN="",mt.INFO="",mt.ICON_EXPAND="",mt.ICON_COLLAPSE="",mt.ADD_TO_PBK="",mt.ALERT="",mt.ADD_ALERT="",mt.BACK_TO_SEARCH="",mt.DOWNLOAD="",mt.EDIT="",mt.FEEDBACK="",mt.MODIFY_PBK="",mt.SCHEDULED="",mt.SEARCH="",mt.SHARE="󨃱",mt.TOC="",mt.WRITE_UGC="",mt.TRASH="",mt.EXTLINK="",mt.CALENDAR="",mt.BOOK="",mt.DOWNLOAD_PLAIN="",mt.CHECK="",mt.TOPICS="",mt.EYE="\f06e",mt.DISC="",mt.CIRCLE="",mt.SHARED="",mt.SORT_UNSORTED="",mt.SORT_UP="",mt.SORT_DOWN="",mt.WORKING="",mt.CLOSE="",mt.ZOOM_OUT="",mt.ZOOM_IN="",mt.ZOOM_REALSIZE="",mt.ZOOM_FULLSCREEN="",mt.ADMIN_RESTRICTED="",mt.ADMIN_THEME="",mt.WARNING="",mt.CONTEXT="",mt.SEARCH_HOME="",mt.STEPS="",mt.HOME="",mt.TRANSLATE="",mt.USER="",mt.ADMIN="",mt.ANALYTICS="",mt.ADMIN_KHUB="",mt.ADMIN_USERS="",mt.ADMIN_INTEGRATION="",mt.ADMIN_PORTAL="",t.FtFileFormatIcons=void 0,(bt=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="",bt.ABW="",bt.AUDIO="",bt.AVI="",bt.CHM="",bt.CODE="",bt.CSV="",bt.DITA="",bt.EPUB="",bt.EXCEL="",bt.FLAC="",bt.GIF="",bt.GZIP="",bt.HTML="",bt.IMAGE="",bt.JPEG="",bt.JSON="",bt.M4A="",bt.MOV="",bt.MP3="",bt.MP4="",bt.OGG="",bt.PDF="",bt.PNG="",bt.POWERPOINT="",bt.RAR="",bt.STP="",bt.TEXT="",bt.VIDEO="",bt.WAV="",bt.WMA="",bt.WORD="",bt.XML="",bt.YAML="",bt.ZIP="";const wt=new Map([...["abw"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.AUDIO])),...["avi"].map((e=>[e,t.FtFileFormatIcons.AVI])),...["chm","xhs"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.CODE])),...["csv"].map((e=>[e,t.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((e=>[e,t.FtFileFormatIcons.DITA])),...["epub"].map((e=>[e,t.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((e=>[e,t.FtFileFormatIcons.EXCEL])),...["flac"].map((e=>[e,t.FtFileFormatIcons.FLAC])),...["gif"].map((e=>[e,t.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((e=>[e,t.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((e=>[e,t.FtFileFormatIcons.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((e=>[e,t.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((e=>[e,t.FtFileFormatIcons.JPEG])),...["json"].map((e=>[e,t.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((e=>[e,t.FtFileFormatIcons.M4A])),...["mov","qt"].map((e=>[e,t.FtFileFormatIcons.MOV])),...["mp3"].map((e=>[e,t.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((e=>[e,t.FtFileFormatIcons.MP4])),...["ogg","oga"].map((e=>[e,t.FtFileFormatIcons.OGG])),...["pdf","ps"].map((e=>[e,t.FtFileFormatIcons.PDF])),...["png"].map((e=>[e,t.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((e=>[e,t.FtFileFormatIcons.POWERPOINT])),...["rar"].map((e=>[e,t.FtFileFormatIcons.RAR])),...["stp"].map((e=>[e,t.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((e=>[e,t.FtFileFormatIcons.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((e=>[e,t.FtFileFormatIcons.VIDEO])),...["wav"].map((e=>[e,t.FtFileFormatIcons.WAV])),...["wma"].map((e=>[e,t.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((e=>[e,t.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((e=>[e,t.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((e=>[e,t.FtFileFormatIcons.YAML])),...["zip"].map((e=>[e,t.FtFileFormatIcons.ZIP]))]),gt=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const yt={size:lt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:lt.extend("--ft-icon-fluid-topics-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:lt.extend("--ft-icon-file-format-font-family",lt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:lt.extend("--ft-icon-material-font-family",lt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:lt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ot=p` | ||
:host { | ||
@@ -142,3 +142,3 @@ display: inline-block; | ||
</i> | ||
`}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 e,i;let s=this.value||this.textContent;switch(this.variant){case t.FtIconVariants.file_format:this.resolvedIcon=null!==(e=t.FtFileFormatIcons[s.toUpperCase()])&&void 0!==e?e:s;break;case t.FtIconVariants.fluid_topics:this.resolvedIcon=null!==(i=t.FtIcons[s.toUpperCase()])&&void 0!==i?i:s;break;default:this.resolvedIcon=this.value||D}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Rt.elementDefinitions={},Rt.styles=Ot,$t([s()],Rt.prototype,"variant",void 0),$t([s()],Rt.prototype,"value",void 0),$t([function(t){return s({...t,state:!0})} | ||
`}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 e,i;let s=this.value||this.textContent;switch(this.variant){case t.FtIconVariants.file_format:this.resolvedIcon=null!==(e=t.FtFileFormatIcons[s.replace("-","_").toUpperCase()])&&void 0!==e?e:s;break;case t.FtIconVariants.fluid_topics:this.resolvedIcon=null!==(i=t.FtIcons[s.replace("-","_").toUpperCase()])&&void 0!==i?i:s;break;default:this.resolvedIcon=this.value||D}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Rt.elementDefinitions={},Rt.styles=Ot,$t([s()],Rt.prototype,"variant",void 0),$t([s()],Rt.prototype,"value",void 0),$t([function(t){return s({...t,state:!0})} | ||
/** | ||
@@ -145,0 +145,0 @@ * @license |
export declare enum FtIcons { | ||
DESKTOP = "", | ||
MOBILE_LANDSCAPE = "", | ||
MOBILE_PORTRAIT = "", | ||
TABLET_LANDSCAPE = "", | ||
TABLET_PORTRAIT = "", | ||
THIN_ARROW_UP = "", | ||
@@ -3,0 +8,0 @@ CONTEXTUAL = "", |
export var FtIcons; | ||
(function (FtIcons) { | ||
FtIcons["DESKTOP"] = ""; | ||
FtIcons["MOBILE_LANDSCAPE"] = ""; | ||
FtIcons["MOBILE_PORTRAIT"] = ""; | ||
FtIcons["TABLET_LANDSCAPE"] = ""; | ||
FtIcons["TABLET_PORTRAIT"] = ""; | ||
FtIcons["THIN_ARROW_UP"] = ""; | ||
@@ -4,0 +9,0 @@ FtIcons["CONTEXTUAL"] = ""; |
{ | ||
"name": "@fluid-topics/ft-icon", | ||
"version": "0.3.34", | ||
"version": "0.3.35", | ||
"description": "Typography components", | ||
@@ -22,6 +22,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@fluid-topics/ft-wc-utils": "0.3.34", | ||
"@fluid-topics/ft-wc-utils": "0.3.35", | ||
"lit": "2.2.8" | ||
}, | ||
"gitHead": "43a9a2faf4372c58839a4050c796ee133216a630" | ||
"gitHead": "f780f3462eced4952dc5bbf1085af29172b23265" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86343
956
+ Added@fluid-topics/ft-wc-utils@0.3.35(transitive)
- Removed@fluid-topics/ft-wc-utils@0.3.34(transitive)