@fluid-topics/ft-collapsible 1.1.21 → 1.1.23
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-collapsible.light.js +1 -1
- package/build/ft-collapsible.min.js +200 -199
- package/package.json +4 -4
|
@@ -574,7 +574,7 @@ const Bo=Symbol.for(""),Fo=t=>{if(t?.r===Bo)return t?._$litStatic$},Do=t=>({_$li
|
|
|
574
574
|
</div>
|
|
575
575
|
</div>
|
|
576
576
|
</div>
|
|
577
|
-
`}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="",Xe(this.slottedElement,this.tooltip,{platform:{...Ve,getOffsetParent:t=>Ve.getOffsetParent(t,qe)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:a=!0,crossAxis:n=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=le(t,o),s={x:e,y:r},p=await be(o,c),f=de(ce(i)),d=pe(f);let h=s[d],y=s[f];if(a){const t="y"===d?"bottom":"right";h=ne(h+p["y"===d?"top":"left"],h,h-p[t])}if(n){const t="y"===f?"bottom":"right";y=ne(y+p["y"===f?"top":"left"],y,y-p[t])}const g=l.fn({...o,[d]:h,[f]:y});return{...g,data:{x:g.x-e,y:g.y-r}}}}),xe({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))}}rr.elementDefinitions={"ft-typography":To},rr.styles=qo,er([r.property()],rr.prototype,"text",void 0),er([r.property({type:Boolean})],rr.prototype,"manual",void 0),er([r.property({type:Boolean})],rr.prototype,"inline",void 0),er([r.property({type:Number})],rr.prototype,"delay",void 0),er([r.property()],rr.prototype,"position",void 0),er([r.queryAssignedNodes()],rr.prototype,"slotNodes",void 0),er([r.query(".ft-tooltip--container")],rr.prototype,"container",void 0),er([r.query(".ft-tooltip")],rr.prototype,"tooltip",void 0),er([r.query(".ft-tooltip--content")],rr.prototype,"tooltipContent",void 0),er([r.state()],rr.prototype,"visible",void 0),er([r.eventOptions({passive:!0})],rr.prototype,"onTouch",null),er([r.eventOptions({passive:!0})],rr.prototype,"onHover",null),er([r.eventOptions({passive:!0})],rr.prototype,"onOut",null),er([r.eventOptions({passive:!0})],rr.prototype,"onClick",null),o.customElement("ft-tooltip")(rr),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="",t.CLONE_LINK_SIMPLE=""}(Qe||(Qe={})),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=""}(tr||(tr={})),new Map([...["abw"].map((t=>[t,tr.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,tr.AUDIO])),...["avi"].map((t=>[t,tr.AVI])),...["chm","xhs"].map((t=>[t,tr.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,tr.CODE])),...["csv"].map((t=>[t,tr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,tr.DITA])),...["epub"].map((t=>[t,tr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,tr.EXCEL])),...["flac"].map((t=>[t,tr.FLAC])),...["gif"].map((t=>[t,tr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,tr.GZIP])),...["html","htm","xhtml"].map((t=>[t,tr.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,tr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,tr.JPEG])),...["json"].map((t=>[t,tr.JSON])),...["m4a","m4p"].map((t=>[t,tr.M4A])),...["mov","qt"].map((t=>[t,tr.MOV])),...["mp3"].map((t=>[t,tr.MP3])),...["mp4","m4v"].map((t=>[t,tr.MP4])),...["ogg","oga"].map((t=>[t,tr.OGG])),...["pdf","ps"].map((t=>[t,tr.PDF])),...["png"].map((t=>[t,tr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,tr.POWERPOINT])),...["rar"].map((t=>[t,tr.RAR])),...["stp"].map((t=>[t,tr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,tr.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,tr.VIDEO])),...["wav"].map((t=>[t,tr.WAV])),...["wma"].map((t=>[t,tr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,tr.WORD])),...["xml","xsl","rdf"].map((t=>[t,tr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,tr.YAML])),...["zip"].map((t=>[t,tr.ZIP]))]),tr.ABW,tr.AUDIO,tr.AVI,tr.CHM,tr.CODE,tr.CSV,tr.DITA,tr.EPUB,tr.EXCEL,tr.FLAC,tr.GIF,tr.GZIP,tr.HTML,tr.IMAGE,tr.JPEG,tr.JSON,tr.M4A,tr.MOV,tr.MP3,tr.MP4,tr.OGG,tr.PDF,tr.PNG,tr.POWERPOINT,tr.RAR,tr.STP,tr.TEXT,tr.UNKNOWN,tr.VIDEO,tr.WAV,tr.WMA,tr.WORD,tr.XML,tr.YAML,tr.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(or||(or={}));var ir=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ar extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(or).includes(this.variant)?this.variant:or.fluid_topics,o=t!==or.material||!!this.value;return e.html`
|
|
577
|
+
`}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(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,o,e){return Xe(t,o,{platform:{...Ve,getOffsetParent:t=>Ve.getOffsetParent(t,qe)},middleware:[(r={crossAxis:!0},void 0===r&&(r={}),{name:"shift",options:r,async fn(t){const{x:o,y:e,placement:i}=t,{mainAxis:a=!0,crossAxis:n=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=le(r,t),s={x:o,y:e},p=await be(t,c),f=de(ce(i)),d=pe(f);let h=s[d],y=s[f];if(a){const t="y"===d?"bottom":"right";h=ne(h+p["y"===d?"top":"left"],h,h-p[t])}if(n){const t="y"===f?"bottom":"right";y=ne(y+p["y"===f?"top":"left"],y,y-p[t])}const g=l.fn({...t,[d]:h,[f]:y});return{...g,data:{x:g.x-o,y:g.y-e}}}}),xe({allowedPlacements:[e]})]});var r}(this.slottedElement,this.tooltip,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))}}rr.elementDefinitions={"ft-typography":To},rr.styles=qo,er([r.property()],rr.prototype,"text",void 0),er([r.property({type:Boolean})],rr.prototype,"manual",void 0),er([r.property({type:Boolean})],rr.prototype,"inline",void 0),er([r.property({type:Number})],rr.prototype,"delay",void 0),er([r.property()],rr.prototype,"position",void 0),er([r.queryAssignedNodes()],rr.prototype,"slotNodes",void 0),er([r.query(".ft-tooltip--container")],rr.prototype,"container",void 0),er([r.query(".ft-tooltip")],rr.prototype,"tooltip",void 0),er([r.query(".ft-tooltip--content")],rr.prototype,"tooltipContent",void 0),er([r.state()],rr.prototype,"visible",void 0),er([r.eventOptions({passive:!0})],rr.prototype,"onTouch",null),er([r.eventOptions({passive:!0})],rr.prototype,"onHover",null),er([r.eventOptions({passive:!0})],rr.prototype,"onOut",null),er([r.eventOptions({passive:!0})],rr.prototype,"onClick",null),o.customElement("ft-tooltip")(rr),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.CHART_BAR_NORMALIZED="",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="",t.CLONE_LINK_SIMPLE=""}(Qe||(Qe={})),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=""}(tr||(tr={})),new Map([...["abw"].map((t=>[t,tr.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,tr.AUDIO])),...["avi"].map((t=>[t,tr.AVI])),...["chm","xhs"].map((t=>[t,tr.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,tr.CODE])),...["csv"].map((t=>[t,tr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,tr.DITA])),...["epub"].map((t=>[t,tr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,tr.EXCEL])),...["flac"].map((t=>[t,tr.FLAC])),...["gif"].map((t=>[t,tr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,tr.GZIP])),...["html","htm","xhtml"].map((t=>[t,tr.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,tr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,tr.JPEG])),...["json"].map((t=>[t,tr.JSON])),...["m4a","m4p"].map((t=>[t,tr.M4A])),...["mov","qt"].map((t=>[t,tr.MOV])),...["mp3"].map((t=>[t,tr.MP3])),...["mp4","m4v"].map((t=>[t,tr.MP4])),...["ogg","oga"].map((t=>[t,tr.OGG])),...["pdf","ps"].map((t=>[t,tr.PDF])),...["png"].map((t=>[t,tr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,tr.POWERPOINT])),...["rar"].map((t=>[t,tr.RAR])),...["stp"].map((t=>[t,tr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,tr.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,tr.VIDEO])),...["wav"].map((t=>[t,tr.WAV])),...["wma"].map((t=>[t,tr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,tr.WORD])),...["xml","xsl","rdf"].map((t=>[t,tr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,tr.YAML])),...["zip"].map((t=>[t,tr.ZIP]))]),tr.ABW,tr.AUDIO,tr.AVI,tr.CHM,tr.CODE,tr.CSV,tr.DITA,tr.EPUB,tr.EXCEL,tr.FLAC,tr.GIF,tr.GZIP,tr.HTML,tr.IMAGE,tr.JPEG,tr.JSON,tr.M4A,tr.MOV,tr.MP3,tr.MP4,tr.OGG,tr.PDF,tr.PNG,tr.POWERPOINT,tr.RAR,tr.STP,tr.TEXT,tr.UNKNOWN,tr.VIDEO,tr.WAV,tr.WMA,tr.WORD,tr.XML,tr.YAML,tr.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(or||(or={}));var ir=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ar extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(or).includes(this.variant)?this.variant:or.fluid_topics,o=t!==or.material||!!this.value;return e.html`
|
|
578
578
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
579
579
|
${a.unsafeHTML(this.resolvedIcon)}
|
|
580
580
|
<slot ?hidden=${o}></slot>
|