@fluid-topics/ft-icon 0.3.11 → 0.3.12

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-icon.js CHANGED
@@ -29,10 +29,11 @@ export class FtIcon extends FtLitElement {
29
29
  this.resolvedIcon = nothing;
30
30
  }
31
31
  render() {
32
+ const slotHidden = this.variant !== "material" || this.value;
32
33
  return html `
33
34
  <i class="ft-icon ${"ft-icon--" + this.variant}">
34
35
  ${unsafeHTML(this.resolvedIcon)}
35
- <slot ?hidden=${this.variant !== "material"}></slot>
36
+ <slot ?hidden=${slotHidden}></slot>
36
37
  </i>
37
38
  `;
38
39
  }
@@ -57,7 +58,7 @@ export class FtIcon extends FtLitElement {
57
58
  this.resolvedIcon = (_b = FtIcons[content.toUpperCase()]) !== null && _b !== void 0 ? _b : content;
58
59
  break;
59
60
  default:
60
- this.resolvedIcon = nothing;
61
+ this.resolvedIcon = this.value || nothing;
61
62
  }
62
63
  }
63
64
  firstUpdated(_changedProperties) {
@@ -1,9 +1,9 @@
1
- !function(e,t,a,i,o){var x,p;e.FtIcons=void 0,(x=e.FtIcons||(e.FtIcons={})).THIN_ARROW_LEFT="&#xe956;",x.THIN_ARROW_RIGHT="&#xe957;",x.MY_COLLECTIONS="&#xe955;",x.OFFLINE_SETTINGS="&#xe954;",x.MY_LIBRARY="&#xe959;",x.RATE_PLAIN="&#xe952;",x.RATE="&#xe953;",x.FEEDBACK_PLAIN="&#xe951;",x.STAR_PLAIN="&#xe94b;",x.STAR="&#xe94c;",x.THUMBS_DOWN_PLAIN="&#xe94d;",x.THUMBS_DOWN="&#xe94e;",x.THUMBS_UP_PLAIN="&#xe94f;",x.THUMBS_UP="&#xe950;",x.PAUSE="&#xe949;",x.PLAY="&#xe94a;",x.RELATIVES_PLAIN="&#xe947;",x.RELATIVES="&#xe948;",x.SHORTCUT_MENU="&#xe946;",x.PRINT="&#xe944;",x.DEFAULT_ROLES="&#xe945;",x.ACCOUNT_SETTINGS="&#xe943;",x.ONLINE="&#xe941;",x.OFFLINE="&#xe816;",x.UPLOAD="&#xe940;",x.BOOK_PLAIN="&#xe93f;",x.SYNC="&#xe93d;",x.SHARED_PBK="&#xe931;",x.COLLECTIONS="&#xe92a;",x.SEARCH_IN_PUBLICATION="&#xe92f;",x.BOOKS="&#xe806;",x.LOCKER="&#xe93b;",x.ARROW_DOWN="&#xe92b;",x.ARROW_LEFT="&#xe92c;",x.ARROW_RIGHT="&#xe92d;",x.ARROW_UP="&#xe92e;",x.SAVE="&#xe93a;",x.MAILS_AND_NOTIFICATIONS="&#xe939;",x.DOT="&#xe936;",x.MINUS="&#xe937;",x.PLUS="&#xe938;",x.FILTERS="&#xe935;",x.STRIPE_ARROW_RIGHT="&#xe934;",x.STRIPE_ARROW_LEFT="&#xe933;",x.ATTACHMENTS="&#xe932;",x.ADD_BOOKMARK="&#xe804;",x.BOOKMARK="&#xe805;",x.EXPORT="&#xe80f;",x.MENU="&#xe807;",x.TAG="&#xe93e;",x.TAG_PLAIN="&#xe942;",x.COPY_TO_CLIPBOARD="&#xe930;",x.COLUMNS="&#xe928;",x.ARTICLE="&#xe927;",x.CLOSE_PLAIN="&#xe925;",x.CHECK_PLAIN="&#xe926;",x.LOGOUT="&#xe923;",x.SIGN_IN="&#xe922;",x.THIN_ARROW="&#xe921;",x.TRIANGLE_BOTTOM="&#xe91d;",x.TRIANGLE_LEFT="&#xe91e;",x.TRIANGLE_RIGHT="&#xe91f;",x.TRIANGLE_TOP="&#xe920;",x.FACET_HAS_DESCENDANT="&#xe91c;",x.MINUS_PLAIN="&#xe91a;",x.PLUS_PLAIN="&#xe91b;",x.INFO="&#xe919;",x.ICON_EXPAND="&#xe917;",x.ICON_COLLAPSE="&#xe918;",x.ADD_TO_PBK="&#xe800;",x.ALERT="&#xe801;",x.ADD_ALERT="&#xe802;",x.BACK_TO_SEARCH="&#xe803;",x.DOWNLOAD="&#xe808;",x.EDIT="&#xe809;",x.FEEDBACK="&#xe80a;",x.MODIFY_PBK="&#xe80c;",x.SCHEDULED="&#xe80d;",x.SEARCH="&#xe80e;",x.SHARE="&#xe80f1;",x.TOC="&#xe810;",x.WRITE_UGC="&#xe811;",x.TRASH="&#xe812;",x.EXTLINK="&#xe814;",x.CALENDAR="&#xe815;",x.BOOK="&#xe817;",x.DOWNLOAD_PLAIN="&#xe818;",x.CHECK="&#xe819;",x.TOPICS="&#xe900;",x.EYE="\f06e",x.DISC="&#xe901;",x.CIRCLE="&#xe903;",x.SHARED="&#xe904;",x.SORT_UNSORTED="&#xe905;",x.SORT_UP="&#xe906;",x.SORT_DOWN="&#xe907;",x.WORKING="&#xe908;",x.CLOSE="&#xe909;",x.ZOOM_OUT="&#xe90a;",x.ZOOM_IN="&#xe90b;",x.ZOOM_REALSIZE="&#xe90c;",x.ZOOM_FULLSCREEN="&#xe90d;",x.ADMIN_RESTRICTED="&#xe90e;",x.ADMIN_THEME="&#xe911;",x.WARNING="&#xe913;",x.CONTEXT="&#xe914;",x.SEARCH_HOME="&#xe915;",x.STEPS="&#xe916;",x.HOME="&#xe80b;",x.TRANSLATE="&#xe924;",x.USER="&#xe813;",x.ADMIN="&#xe902;",x.ANALYTICS="&#xe929;",x.ADMIN_KHUB="&#xe90f;",x.ADMIN_USERS="&#xe910;",x.ADMIN_INTEGRATION="&#xe93c;",x.ADMIN_PORTAL="&#xe912;",e.FtFileFormatIcons=void 0,(p=e.FtFileFormatIcons||(e.FtFileFormatIcons={})).UNKNOWN="&#xe90a;",p.ABW="&#xe900;",p.AUDIO="&#xe901;",p.AVI="&#xe902;",p.CHM="&#xe904;",p.CODE="&#xe905;",p.CSV="&#xe903;",p.DITA="&#xe906;",p.EPUB="&#xe907;",p.EXCEL="&#xe908;",p.FLAC="&#xe909;",p.GIF="&#xe90b;",p.GZIP="&#xe90c;",p.HTML="&#xe90d;",p.IMAGE="&#xe90e;",p.JPEG="&#xe90f;",p.JSON="&#xe910;",p.M4A="&#xe911;",p.MOV="&#xe912;",p.MP3="&#xe913;",p.MP4="&#xe914;",p.OGG="&#xe915;",p.PDF="&#xe916;",p.PNG="&#xe917;",p.POWERPOINT="&#xe918;",p.RAR="&#xe91a;",p.STP="&#xe91b;",p.TEXT="&#xe91c;",p.VIDEO="&#xe91e;",p.WAV="&#xe91f;",p.WMA="&#xe920;",p.WORD="&#xe921;",p.XML="&#xe922;",p.YAML="&#xe919;",p.ZIP="&#xe923;";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"]]);var s,m=function(e,t,a,i){for(var o,x=arguments.length,p=x<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i,n=e.length-1;n>=0;n--)(o=e[n])&&(p=(x<3?o(p):x>3?o(t,a,p):o(t,a))||p);return x>3&&p&&Object.defineProperty(t,a,p),p};e.FtIconVariants=void 0,(s=e.FtIconVariants||(e.FtIconVariants={})).fluid_topics="fluid-topics",s.file_format="file-format",s.material="material";const c={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")};class d extends t.FtLitElement{constructor(){super(...arguments),this.variant=e.FtIconVariants.fluid_topics,this.resolvedIcon=a.nothing}render(){return a.html`
1
+ !function(e,t,a,i,o){var x,p;e.FtIcons=void 0,(x=e.FtIcons||(e.FtIcons={})).THIN_ARROW_LEFT="&#xe956;",x.THIN_ARROW_RIGHT="&#xe957;",x.MY_COLLECTIONS="&#xe955;",x.OFFLINE_SETTINGS="&#xe954;",x.MY_LIBRARY="&#xe959;",x.RATE_PLAIN="&#xe952;",x.RATE="&#xe953;",x.FEEDBACK_PLAIN="&#xe951;",x.STAR_PLAIN="&#xe94b;",x.STAR="&#xe94c;",x.THUMBS_DOWN_PLAIN="&#xe94d;",x.THUMBS_DOWN="&#xe94e;",x.THUMBS_UP_PLAIN="&#xe94f;",x.THUMBS_UP="&#xe950;",x.PAUSE="&#xe949;",x.PLAY="&#xe94a;",x.RELATIVES_PLAIN="&#xe947;",x.RELATIVES="&#xe948;",x.SHORTCUT_MENU="&#xe946;",x.PRINT="&#xe944;",x.DEFAULT_ROLES="&#xe945;",x.ACCOUNT_SETTINGS="&#xe943;",x.ONLINE="&#xe941;",x.OFFLINE="&#xe816;",x.UPLOAD="&#xe940;",x.BOOK_PLAIN="&#xe93f;",x.SYNC="&#xe93d;",x.SHARED_PBK="&#xe931;",x.COLLECTIONS="&#xe92a;",x.SEARCH_IN_PUBLICATION="&#xe92f;",x.BOOKS="&#xe806;",x.LOCKER="&#xe93b;",x.ARROW_DOWN="&#xe92b;",x.ARROW_LEFT="&#xe92c;",x.ARROW_RIGHT="&#xe92d;",x.ARROW_UP="&#xe92e;",x.SAVE="&#xe93a;",x.MAILS_AND_NOTIFICATIONS="&#xe939;",x.DOT="&#xe936;",x.MINUS="&#xe937;",x.PLUS="&#xe938;",x.FILTERS="&#xe935;",x.STRIPE_ARROW_RIGHT="&#xe934;",x.STRIPE_ARROW_LEFT="&#xe933;",x.ATTACHMENTS="&#xe932;",x.ADD_BOOKMARK="&#xe804;",x.BOOKMARK="&#xe805;",x.EXPORT="&#xe80f;",x.MENU="&#xe807;",x.TAG="&#xe93e;",x.TAG_PLAIN="&#xe942;",x.COPY_TO_CLIPBOARD="&#xe930;",x.COLUMNS="&#xe928;",x.ARTICLE="&#xe927;",x.CLOSE_PLAIN="&#xe925;",x.CHECK_PLAIN="&#xe926;",x.LOGOUT="&#xe923;",x.SIGN_IN="&#xe922;",x.THIN_ARROW="&#xe921;",x.TRIANGLE_BOTTOM="&#xe91d;",x.TRIANGLE_LEFT="&#xe91e;",x.TRIANGLE_RIGHT="&#xe91f;",x.TRIANGLE_TOP="&#xe920;",x.FACET_HAS_DESCENDANT="&#xe91c;",x.MINUS_PLAIN="&#xe91a;",x.PLUS_PLAIN="&#xe91b;",x.INFO="&#xe919;",x.ICON_EXPAND="&#xe917;",x.ICON_COLLAPSE="&#xe918;",x.ADD_TO_PBK="&#xe800;",x.ALERT="&#xe801;",x.ADD_ALERT="&#xe802;",x.BACK_TO_SEARCH="&#xe803;",x.DOWNLOAD="&#xe808;",x.EDIT="&#xe809;",x.FEEDBACK="&#xe80a;",x.MODIFY_PBK="&#xe80c;",x.SCHEDULED="&#xe80d;",x.SEARCH="&#xe80e;",x.SHARE="&#xe80f1;",x.TOC="&#xe810;",x.WRITE_UGC="&#xe811;",x.TRASH="&#xe812;",x.EXTLINK="&#xe814;",x.CALENDAR="&#xe815;",x.BOOK="&#xe817;",x.DOWNLOAD_PLAIN="&#xe818;",x.CHECK="&#xe819;",x.TOPICS="&#xe900;",x.EYE="\f06e",x.DISC="&#xe901;",x.CIRCLE="&#xe903;",x.SHARED="&#xe904;",x.SORT_UNSORTED="&#xe905;",x.SORT_UP="&#xe906;",x.SORT_DOWN="&#xe907;",x.WORKING="&#xe908;",x.CLOSE="&#xe909;",x.ZOOM_OUT="&#xe90a;",x.ZOOM_IN="&#xe90b;",x.ZOOM_REALSIZE="&#xe90c;",x.ZOOM_FULLSCREEN="&#xe90d;",x.ADMIN_RESTRICTED="&#xe90e;",x.ADMIN_THEME="&#xe911;",x.WARNING="&#xe913;",x.CONTEXT="&#xe914;",x.SEARCH_HOME="&#xe915;",x.STEPS="&#xe916;",x.HOME="&#xe80b;",x.TRANSLATE="&#xe924;",x.USER="&#xe813;",x.ADMIN="&#xe902;",x.ANALYTICS="&#xe929;",x.ADMIN_KHUB="&#xe90f;",x.ADMIN_USERS="&#xe910;",x.ADMIN_INTEGRATION="&#xe93c;",x.ADMIN_PORTAL="&#xe912;",e.FtFileFormatIcons=void 0,(p=e.FtFileFormatIcons||(e.FtFileFormatIcons={})).UNKNOWN="&#xe90a;",p.ABW="&#xe900;",p.AUDIO="&#xe901;",p.AVI="&#xe902;",p.CHM="&#xe904;",p.CODE="&#xe905;",p.CSV="&#xe903;",p.DITA="&#xe906;",p.EPUB="&#xe907;",p.EXCEL="&#xe908;",p.FLAC="&#xe909;",p.GIF="&#xe90b;",p.GZIP="&#xe90c;",p.HTML="&#xe90d;",p.IMAGE="&#xe90e;",p.JPEG="&#xe90f;",p.JSON="&#xe910;",p.M4A="&#xe911;",p.MOV="&#xe912;",p.MP3="&#xe913;",p.MP4="&#xe914;",p.OGG="&#xe915;",p.PDF="&#xe916;",p.PNG="&#xe917;",p.POWERPOINT="&#xe918;",p.RAR="&#xe91a;",p.STP="&#xe91b;",p.TEXT="&#xe91c;",p.VIDEO="&#xe91e;",p.WAV="&#xe91f;",p.WMA="&#xe920;",p.WORD="&#xe921;",p.XML="&#xe922;",p.YAML="&#xe919;",p.ZIP="&#xe923;";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"]]);var s,m=function(e,t,a,i){for(var o,x=arguments.length,p=x<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i,n=e.length-1;n>=0;n--)(o=e[n])&&(p=(x<3?o(p):x>3?o(t,a,p):o(t,a))||p);return x>3&&p&&Object.defineProperty(t,a,p),p};e.FtIconVariants=void 0,(s=e.FtIconVariants||(e.FtIconVariants={})).fluid_topics="fluid-topics",s.file_format="file-format",s.material="material";const c={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")};class d extends t.FtLitElement{constructor(){super(...arguments),this.variant=e.FtIconVariants.fluid_topics,this.resolvedIcon=a.nothing}render(){const e="material"!==this.variant||this.value;return a.html`
2
2
  <i class="ft-icon ${"ft-icon--"+this.variant}">
3
3
  ${o.unsafeHTML(this.resolvedIcon)}
4
- <slot ?hidden=${"material"!==this.variant}></slot>
4
+ <slot ?hidden=${e}></slot>
5
5
  </i>
6
- `}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=a.nothing}}firstUpdated(e){super.firstUpdated(e),setTimeout((()=>{this.resolveIcon()}))}}d.elementDefinitions={},d.styles=a.css`
6
+ `}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()}))}}d.elementDefinitions={},d.styles=a.css`
7
7
  :host {
8
8
  display: inline-block;
9
9
  }
@@ -85,12 +85,12 @@ const ct=2;
85
85
  * Copyright 2017 Google LLC
86
86
  * SPDX-License-Identifier: BSD-3-Clause
87
87
  */
88
- class pt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=W,t.type!==ct)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this._t=void 0,this.it=t;if(t===B)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:[]}}}pt.directiveName="unsafeHTML",pt.resultType=1;const ht=(t=>(...e)=>({_$litDirective$:t,values:e}))(pt);var dt,ut;t.FtIcons=void 0,(dt=t.FtIcons||(t.FtIcons={})).THIN_ARROW_LEFT="&#xe956;",dt.THIN_ARROW_RIGHT="&#xe957;",dt.MY_COLLECTIONS="&#xe955;",dt.OFFLINE_SETTINGS="&#xe954;",dt.MY_LIBRARY="&#xe959;",dt.RATE_PLAIN="&#xe952;",dt.RATE="&#xe953;",dt.FEEDBACK_PLAIN="&#xe951;",dt.STAR_PLAIN="&#xe94b;",dt.STAR="&#xe94c;",dt.THUMBS_DOWN_PLAIN="&#xe94d;",dt.THUMBS_DOWN="&#xe94e;",dt.THUMBS_UP_PLAIN="&#xe94f;",dt.THUMBS_UP="&#xe950;",dt.PAUSE="&#xe949;",dt.PLAY="&#xe94a;",dt.RELATIVES_PLAIN="&#xe947;",dt.RELATIVES="&#xe948;",dt.SHORTCUT_MENU="&#xe946;",dt.PRINT="&#xe944;",dt.DEFAULT_ROLES="&#xe945;",dt.ACCOUNT_SETTINGS="&#xe943;",dt.ONLINE="&#xe941;",dt.OFFLINE="&#xe816;",dt.UPLOAD="&#xe940;",dt.BOOK_PLAIN="&#xe93f;",dt.SYNC="&#xe93d;",dt.SHARED_PBK="&#xe931;",dt.COLLECTIONS="&#xe92a;",dt.SEARCH_IN_PUBLICATION="&#xe92f;",dt.BOOKS="&#xe806;",dt.LOCKER="&#xe93b;",dt.ARROW_DOWN="&#xe92b;",dt.ARROW_LEFT="&#xe92c;",dt.ARROW_RIGHT="&#xe92d;",dt.ARROW_UP="&#xe92e;",dt.SAVE="&#xe93a;",dt.MAILS_AND_NOTIFICATIONS="&#xe939;",dt.DOT="&#xe936;",dt.MINUS="&#xe937;",dt.PLUS="&#xe938;",dt.FILTERS="&#xe935;",dt.STRIPE_ARROW_RIGHT="&#xe934;",dt.STRIPE_ARROW_LEFT="&#xe933;",dt.ATTACHMENTS="&#xe932;",dt.ADD_BOOKMARK="&#xe804;",dt.BOOKMARK="&#xe805;",dt.EXPORT="&#xe80f;",dt.MENU="&#xe807;",dt.TAG="&#xe93e;",dt.TAG_PLAIN="&#xe942;",dt.COPY_TO_CLIPBOARD="&#xe930;",dt.COLUMNS="&#xe928;",dt.ARTICLE="&#xe927;",dt.CLOSE_PLAIN="&#xe925;",dt.CHECK_PLAIN="&#xe926;",dt.LOGOUT="&#xe923;",dt.SIGN_IN="&#xe922;",dt.THIN_ARROW="&#xe921;",dt.TRIANGLE_BOTTOM="&#xe91d;",dt.TRIANGLE_LEFT="&#xe91e;",dt.TRIANGLE_RIGHT="&#xe91f;",dt.TRIANGLE_TOP="&#xe920;",dt.FACET_HAS_DESCENDANT="&#xe91c;",dt.MINUS_PLAIN="&#xe91a;",dt.PLUS_PLAIN="&#xe91b;",dt.INFO="&#xe919;",dt.ICON_EXPAND="&#xe917;",dt.ICON_COLLAPSE="&#xe918;",dt.ADD_TO_PBK="&#xe800;",dt.ALERT="&#xe801;",dt.ADD_ALERT="&#xe802;",dt.BACK_TO_SEARCH="&#xe803;",dt.DOWNLOAD="&#xe808;",dt.EDIT="&#xe809;",dt.FEEDBACK="&#xe80a;",dt.MODIFY_PBK="&#xe80c;",dt.SCHEDULED="&#xe80d;",dt.SEARCH="&#xe80e;",dt.SHARE="&#xe80f1;",dt.TOC="&#xe810;",dt.WRITE_UGC="&#xe811;",dt.TRASH="&#xe812;",dt.EXTLINK="&#xe814;",dt.CALENDAR="&#xe815;",dt.BOOK="&#xe817;",dt.DOWNLOAD_PLAIN="&#xe818;",dt.CHECK="&#xe819;",dt.TOPICS="&#xe900;",dt.EYE="\f06e",dt.DISC="&#xe901;",dt.CIRCLE="&#xe903;",dt.SHARED="&#xe904;",dt.SORT_UNSORTED="&#xe905;",dt.SORT_UP="&#xe906;",dt.SORT_DOWN="&#xe907;",dt.WORKING="&#xe908;",dt.CLOSE="&#xe909;",dt.ZOOM_OUT="&#xe90a;",dt.ZOOM_IN="&#xe90b;",dt.ZOOM_REALSIZE="&#xe90c;",dt.ZOOM_FULLSCREEN="&#xe90d;",dt.ADMIN_RESTRICTED="&#xe90e;",dt.ADMIN_THEME="&#xe911;",dt.WARNING="&#xe913;",dt.CONTEXT="&#xe914;",dt.SEARCH_HOME="&#xe915;",dt.STEPS="&#xe916;",dt.HOME="&#xe80b;",dt.TRANSLATE="&#xe924;",dt.USER="&#xe813;",dt.ADMIN="&#xe902;",dt.ANALYTICS="&#xe929;",dt.ADMIN_KHUB="&#xe90f;",dt.ADMIN_USERS="&#xe910;",dt.ADMIN_INTEGRATION="&#xe93c;",dt.ADMIN_PORTAL="&#xe912;",t.FtFileFormatIcons=void 0,(ut=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="&#xe90a;",ut.ABW="&#xe900;",ut.AUDIO="&#xe901;",ut.AVI="&#xe902;",ut.CHM="&#xe904;",ut.CODE="&#xe905;",ut.CSV="&#xe903;",ut.DITA="&#xe906;",ut.EPUB="&#xe907;",ut.EXCEL="&#xe908;",ut.FLAC="&#xe909;",ut.GIF="&#xe90b;",ut.GZIP="&#xe90c;",ut.HTML="&#xe90d;",ut.IMAGE="&#xe90e;",ut.JPEG="&#xe90f;",ut.JSON="&#xe910;",ut.M4A="&#xe911;",ut.MOV="&#xe912;",ut.MP3="&#xe913;",ut.MP4="&#xe914;",ut.OGG="&#xe915;",ut.PDF="&#xe916;",ut.PNG="&#xe917;",ut.POWERPOINT="&#xe918;",ut.RAR="&#xe91a;",ut.STP="&#xe91b;",ut.TEXT="&#xe91c;",ut.VIDEO="&#xe91e;",ut.WAV="&#xe91f;",ut.WMA="&#xe920;",ut.WORD="&#xe921;",ut.XML="&#xe922;",ut.YAML="&#xe919;",ut.ZIP="&#xe923;";const xt=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]))]),ft=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"]]);var vt,mt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};t.FtIconVariants=void 0,(vt=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",vt.file_format="file-format",vt.material="material";const bt={size:ot.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ot.extend("--ft-icon-fluid-topics-font-family",ot.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ot.extend("--ft-icon-file-format-font-family",ot.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ot.extend("--ft-icon-material-font-family",ot.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ot.create("--ft-icon-vertical-align","UNKNOWN","unset")};class gt extends lt{constructor(){super(...arguments),this.variant=t.FtIconVariants.fluid_topics,this.resolvedIcon=W}render(){return _`
88
+ class pt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=W,t.type!==ct)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this._t=void 0,this.it=t;if(t===B)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:[]}}}pt.directiveName="unsafeHTML",pt.resultType=1;const ht=(t=>(...e)=>({_$litDirective$:t,values:e}))(pt);var dt,ut;t.FtIcons=void 0,(dt=t.FtIcons||(t.FtIcons={})).THIN_ARROW_LEFT="&#xe956;",dt.THIN_ARROW_RIGHT="&#xe957;",dt.MY_COLLECTIONS="&#xe955;",dt.OFFLINE_SETTINGS="&#xe954;",dt.MY_LIBRARY="&#xe959;",dt.RATE_PLAIN="&#xe952;",dt.RATE="&#xe953;",dt.FEEDBACK_PLAIN="&#xe951;",dt.STAR_PLAIN="&#xe94b;",dt.STAR="&#xe94c;",dt.THUMBS_DOWN_PLAIN="&#xe94d;",dt.THUMBS_DOWN="&#xe94e;",dt.THUMBS_UP_PLAIN="&#xe94f;",dt.THUMBS_UP="&#xe950;",dt.PAUSE="&#xe949;",dt.PLAY="&#xe94a;",dt.RELATIVES_PLAIN="&#xe947;",dt.RELATIVES="&#xe948;",dt.SHORTCUT_MENU="&#xe946;",dt.PRINT="&#xe944;",dt.DEFAULT_ROLES="&#xe945;",dt.ACCOUNT_SETTINGS="&#xe943;",dt.ONLINE="&#xe941;",dt.OFFLINE="&#xe816;",dt.UPLOAD="&#xe940;",dt.BOOK_PLAIN="&#xe93f;",dt.SYNC="&#xe93d;",dt.SHARED_PBK="&#xe931;",dt.COLLECTIONS="&#xe92a;",dt.SEARCH_IN_PUBLICATION="&#xe92f;",dt.BOOKS="&#xe806;",dt.LOCKER="&#xe93b;",dt.ARROW_DOWN="&#xe92b;",dt.ARROW_LEFT="&#xe92c;",dt.ARROW_RIGHT="&#xe92d;",dt.ARROW_UP="&#xe92e;",dt.SAVE="&#xe93a;",dt.MAILS_AND_NOTIFICATIONS="&#xe939;",dt.DOT="&#xe936;",dt.MINUS="&#xe937;",dt.PLUS="&#xe938;",dt.FILTERS="&#xe935;",dt.STRIPE_ARROW_RIGHT="&#xe934;",dt.STRIPE_ARROW_LEFT="&#xe933;",dt.ATTACHMENTS="&#xe932;",dt.ADD_BOOKMARK="&#xe804;",dt.BOOKMARK="&#xe805;",dt.EXPORT="&#xe80f;",dt.MENU="&#xe807;",dt.TAG="&#xe93e;",dt.TAG_PLAIN="&#xe942;",dt.COPY_TO_CLIPBOARD="&#xe930;",dt.COLUMNS="&#xe928;",dt.ARTICLE="&#xe927;",dt.CLOSE_PLAIN="&#xe925;",dt.CHECK_PLAIN="&#xe926;",dt.LOGOUT="&#xe923;",dt.SIGN_IN="&#xe922;",dt.THIN_ARROW="&#xe921;",dt.TRIANGLE_BOTTOM="&#xe91d;",dt.TRIANGLE_LEFT="&#xe91e;",dt.TRIANGLE_RIGHT="&#xe91f;",dt.TRIANGLE_TOP="&#xe920;",dt.FACET_HAS_DESCENDANT="&#xe91c;",dt.MINUS_PLAIN="&#xe91a;",dt.PLUS_PLAIN="&#xe91b;",dt.INFO="&#xe919;",dt.ICON_EXPAND="&#xe917;",dt.ICON_COLLAPSE="&#xe918;",dt.ADD_TO_PBK="&#xe800;",dt.ALERT="&#xe801;",dt.ADD_ALERT="&#xe802;",dt.BACK_TO_SEARCH="&#xe803;",dt.DOWNLOAD="&#xe808;",dt.EDIT="&#xe809;",dt.FEEDBACK="&#xe80a;",dt.MODIFY_PBK="&#xe80c;",dt.SCHEDULED="&#xe80d;",dt.SEARCH="&#xe80e;",dt.SHARE="&#xe80f1;",dt.TOC="&#xe810;",dt.WRITE_UGC="&#xe811;",dt.TRASH="&#xe812;",dt.EXTLINK="&#xe814;",dt.CALENDAR="&#xe815;",dt.BOOK="&#xe817;",dt.DOWNLOAD_PLAIN="&#xe818;",dt.CHECK="&#xe819;",dt.TOPICS="&#xe900;",dt.EYE="\f06e",dt.DISC="&#xe901;",dt.CIRCLE="&#xe903;",dt.SHARED="&#xe904;",dt.SORT_UNSORTED="&#xe905;",dt.SORT_UP="&#xe906;",dt.SORT_DOWN="&#xe907;",dt.WORKING="&#xe908;",dt.CLOSE="&#xe909;",dt.ZOOM_OUT="&#xe90a;",dt.ZOOM_IN="&#xe90b;",dt.ZOOM_REALSIZE="&#xe90c;",dt.ZOOM_FULLSCREEN="&#xe90d;",dt.ADMIN_RESTRICTED="&#xe90e;",dt.ADMIN_THEME="&#xe911;",dt.WARNING="&#xe913;",dt.CONTEXT="&#xe914;",dt.SEARCH_HOME="&#xe915;",dt.STEPS="&#xe916;",dt.HOME="&#xe80b;",dt.TRANSLATE="&#xe924;",dt.USER="&#xe813;",dt.ADMIN="&#xe902;",dt.ANALYTICS="&#xe929;",dt.ADMIN_KHUB="&#xe90f;",dt.ADMIN_USERS="&#xe910;",dt.ADMIN_INTEGRATION="&#xe93c;",dt.ADMIN_PORTAL="&#xe912;",t.FtFileFormatIcons=void 0,(ut=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="&#xe90a;",ut.ABW="&#xe900;",ut.AUDIO="&#xe901;",ut.AVI="&#xe902;",ut.CHM="&#xe904;",ut.CODE="&#xe905;",ut.CSV="&#xe903;",ut.DITA="&#xe906;",ut.EPUB="&#xe907;",ut.EXCEL="&#xe908;",ut.FLAC="&#xe909;",ut.GIF="&#xe90b;",ut.GZIP="&#xe90c;",ut.HTML="&#xe90d;",ut.IMAGE="&#xe90e;",ut.JPEG="&#xe90f;",ut.JSON="&#xe910;",ut.M4A="&#xe911;",ut.MOV="&#xe912;",ut.MP3="&#xe913;",ut.MP4="&#xe914;",ut.OGG="&#xe915;",ut.PDF="&#xe916;",ut.PNG="&#xe917;",ut.POWERPOINT="&#xe918;",ut.RAR="&#xe91a;",ut.STP="&#xe91b;",ut.TEXT="&#xe91c;",ut.VIDEO="&#xe91e;",ut.WAV="&#xe91f;",ut.WMA="&#xe920;",ut.WORD="&#xe921;",ut.XML="&#xe922;",ut.YAML="&#xe919;",ut.ZIP="&#xe923;";const xt=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]))]),ft=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"]]);var vt,mt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};t.FtIconVariants=void 0,(vt=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",vt.file_format="file-format",vt.material="material";const bt={size:ot.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ot.extend("--ft-icon-fluid-topics-font-family",ot.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ot.extend("--ft-icon-file-format-font-family",ot.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ot.extend("--ft-icon-material-font-family",ot.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ot.create("--ft-icon-vertical-align","UNKNOWN","unset")};class gt extends lt{constructor(){super(...arguments),this.variant=t.FtIconVariants.fluid_topics,this.resolvedIcon=W}render(){const t="material"!==this.variant||this.value;return _`
89
89
  <i class="ft-icon ${"ft-icon--"+this.variant}">
90
90
  ${ht(this.resolvedIcon)}
91
- <slot ?hidden=${"material"!==this.variant}></slot>
91
+ <slot ?hidden=${t}></slot>
92
92
  </i>
93
- `}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=W}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}var wt;gt.elementDefinitions={},gt.styles=c`
93
+ `}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||W}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}var wt;gt.elementDefinitions={},gt.styles=c`
94
94
  :host {
95
95
  display: inline-block;
96
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-icon",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "Typography components",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "0.3.11",
22
+ "@fluid-topics/ft-wc-utils": "0.3.12",
23
23
  "lit": "2.2.8"
24
24
  },
25
- "gitHead": "35c790329a8e7f9902aad2ea8d41386e5c0b36c9"
25
+ "gitHead": "126fc60c5ec4b89c3897901d1a92ee9b17286686"
26
26
  }