@fluid-topics/ft-search-facet 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-search-facet.light.js +2 -2
- package/build/ft-search-facet.min.js +226 -225
- package/package.json +7 -7
|
@@ -545,7 +545,7 @@ const M=Symbol.for(""),j=t=>{if(t?.r===M)return t?._$litStatic$},_=t=>({_$litSta
|
|
|
545
545
|
</div>
|
|
546
546
|
</div>
|
|
547
547
|
</div>
|
|
548
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",jo(this.slottedElement,this.tooltip,{platform:{...Mo,getOffsetParent:t=>Mo.getOffsetParent(t,_o)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=eo(t,e),c={x:o,y:i},f=await ho(e,l),h=ao(oo(r)),p=ro(h);let d=c[p],u=c[h];if(n){const t="y"===p?"bottom":"right";d=to(d+f["y"===p?"top":"left"],d,d-f[t])}if(a){const t="y"===h?"bottom":"right";u=to(u+f["y"===h?"top":"left"],u,u-f[t])}const y=s.fn({...e,[p]:d,[h]:u});return{...y,data:{x:y.x-o,y:y.y-i}}}}),uo({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Xo.elementDefinitions={"ft-typography":ue},Xo.styles=je,Qo([i.property()],Xo.prototype,"text",void 0),Qo([i.property({type:Boolean})],Xo.prototype,"manual",void 0),Qo([i.property({type:Boolean})],Xo.prototype,"inline",void 0),Qo([i.property({type:Number})],Xo.prototype,"delay",void 0),Qo([i.property()],Xo.prototype,"position",void 0),Qo([i.queryAssignedNodes()],Xo.prototype,"slotNodes",void 0),Qo([i.query(".ft-tooltip--container")],Xo.prototype,"container",void 0),Qo([i.query(".ft-tooltip")],Xo.prototype,"tooltip",void 0),Qo([i.query(".ft-tooltip--content")],Xo.prototype,"tooltipContent",void 0),Qo([i.state()],Xo.prototype,"visible",void 0),Qo([i.eventOptions({passive:!0})],Xo.prototype,"onTouch",null),Qo([i.eventOptions({passive:!0})],Xo.prototype,"onHover",null),Qo([i.eventOptions({passive:!0})],Xo.prototype,"onOut",null),Qo([i.eventOptions({passive:!0})],Xo.prototype,"onClick",null),e.customElement("ft-tooltip")(Xo),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=""}(Vo||(Vo={})),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=""}(qo||(qo={})),new Map([...["abw"].map((t=>[t,qo.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,qo.AUDIO])),...["avi"].map((t=>[t,qo.AVI])),...["chm","xhs"].map((t=>[t,qo.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,qo.CODE])),...["csv"].map((t=>[t,qo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qo.DITA])),...["epub"].map((t=>[t,qo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qo.EXCEL])),...["flac"].map((t=>[t,qo.FLAC])),...["gif"].map((t=>[t,qo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qo.GZIP])),...["html","htm","xhtml"].map((t=>[t,qo.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,qo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qo.JPEG])),...["json"].map((t=>[t,qo.JSON])),...["m4a","m4p"].map((t=>[t,qo.M4A])),...["mov","qt"].map((t=>[t,qo.MOV])),...["mp3"].map((t=>[t,qo.MP3])),...["mp4","m4v"].map((t=>[t,qo.MP4])),...["ogg","oga"].map((t=>[t,qo.OGG])),...["pdf","ps"].map((t=>[t,qo.PDF])),...["png"].map((t=>[t,qo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qo.POWERPOINT])),...["rar"].map((t=>[t,qo.RAR])),...["stp"].map((t=>[t,qo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qo.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,qo.VIDEO])),...["wav"].map((t=>[t,qo.WAV])),...["wma"].map((t=>[t,qo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qo.WORD])),...["xml","xsl","rdf"].map((t=>[t,qo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qo.YAML])),...["zip"].map((t=>[t,qo.ZIP]))]),qo.ABW,qo.AUDIO,qo.AVI,qo.CHM,qo.CODE,qo.CSV,qo.DITA,qo.EPUB,qo.EXCEL,qo.FLAC,qo.GIF,qo.GZIP,qo.HTML,qo.IMAGE,qo.JPEG,qo.JSON,qo.M4A,qo.MOV,qo.MP3,qo.MP4,qo.OGG,qo.PDF,qo.PNG,qo.POWERPOINT,qo.RAR,qo.STP,qo.TEXT,qo.UNKNOWN,qo.VIDEO,qo.WAV,qo.WMA,qo.WORD,qo.XML,qo.YAML,qo.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Yo||(Yo={}));var Jo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ti extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=o.nothing}render(){const t=this.variant&&Object.values(Yo).includes(this.variant)?this.variant:Yo.fluid_topics,e=t!==Yo.material||!!this.value;return o.html`
|
|
548
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,e,o){return jo(t,e,{platform:{...Mo,getOffsetParent:t=>Mo.getOffsetParent(t,_o)},middleware:[(i={crossAxis:!0},void 0===i&&(i={}),{name:"shift",options:i,async fn(t){const{x:e,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=eo(i,t),c={x:e,y:o},f=await ho(t,l),h=ao(oo(r)),p=ro(h);let d=c[p],u=c[h];if(n){const t="y"===p?"bottom":"right";d=to(d+f["y"===p?"top":"left"],d,d-f[t])}if(a){const t="y"===h?"bottom":"right";u=to(u+f["y"===h?"top":"left"],u,u-f[t])}const y=s.fn({...t,[p]:d,[h]:u});return{...y,data:{x:y.x-e,y:y.y-o}}}}),uo({allowedPlacements:[o]})]});var i}(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Xo.elementDefinitions={"ft-typography":ue},Xo.styles=je,Qo([i.property()],Xo.prototype,"text",void 0),Qo([i.property({type:Boolean})],Xo.prototype,"manual",void 0),Qo([i.property({type:Boolean})],Xo.prototype,"inline",void 0),Qo([i.property({type:Number})],Xo.prototype,"delay",void 0),Qo([i.property()],Xo.prototype,"position",void 0),Qo([i.queryAssignedNodes()],Xo.prototype,"slotNodes",void 0),Qo([i.query(".ft-tooltip--container")],Xo.prototype,"container",void 0),Qo([i.query(".ft-tooltip")],Xo.prototype,"tooltip",void 0),Qo([i.query(".ft-tooltip--content")],Xo.prototype,"tooltipContent",void 0),Qo([i.state()],Xo.prototype,"visible",void 0),Qo([i.eventOptions({passive:!0})],Xo.prototype,"onTouch",null),Qo([i.eventOptions({passive:!0})],Xo.prototype,"onHover",null),Qo([i.eventOptions({passive:!0})],Xo.prototype,"onOut",null),Qo([i.eventOptions({passive:!0})],Xo.prototype,"onClick",null),e.customElement("ft-tooltip")(Xo),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=""}(Vo||(Vo={})),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=""}(qo||(qo={})),new Map([...["abw"].map((t=>[t,qo.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,qo.AUDIO])),...["avi"].map((t=>[t,qo.AVI])),...["chm","xhs"].map((t=>[t,qo.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,qo.CODE])),...["csv"].map((t=>[t,qo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qo.DITA])),...["epub"].map((t=>[t,qo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qo.EXCEL])),...["flac"].map((t=>[t,qo.FLAC])),...["gif"].map((t=>[t,qo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qo.GZIP])),...["html","htm","xhtml"].map((t=>[t,qo.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,qo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qo.JPEG])),...["json"].map((t=>[t,qo.JSON])),...["m4a","m4p"].map((t=>[t,qo.M4A])),...["mov","qt"].map((t=>[t,qo.MOV])),...["mp3"].map((t=>[t,qo.MP3])),...["mp4","m4v"].map((t=>[t,qo.MP4])),...["ogg","oga"].map((t=>[t,qo.OGG])),...["pdf","ps"].map((t=>[t,qo.PDF])),...["png"].map((t=>[t,qo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qo.POWERPOINT])),...["rar"].map((t=>[t,qo.RAR])),...["stp"].map((t=>[t,qo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qo.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,qo.VIDEO])),...["wav"].map((t=>[t,qo.WAV])),...["wma"].map((t=>[t,qo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qo.WORD])),...["xml","xsl","rdf"].map((t=>[t,qo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qo.YAML])),...["zip"].map((t=>[t,qo.ZIP]))]),qo.ABW,qo.AUDIO,qo.AVI,qo.CHM,qo.CODE,qo.CSV,qo.DITA,qo.EPUB,qo.EXCEL,qo.FLAC,qo.GIF,qo.GZIP,qo.HTML,qo.IMAGE,qo.JPEG,qo.JSON,qo.M4A,qo.MOV,qo.MP3,qo.MP4,qo.OGG,qo.PDF,qo.PNG,qo.POWERPOINT,qo.RAR,qo.STP,qo.TEXT,qo.UNKNOWN,qo.VIDEO,qo.WAV,qo.WMA,qo.WORD,qo.XML,qo.YAML,qo.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Yo||(Yo={}));var Jo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ti extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=o.nothing}render(){const t=this.variant&&Object.values(Yo).includes(this.variant)?this.variant:Yo.fluid_topics,e=t!==Yo.material||!!this.value;return o.html`
|
|
549
549
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
550
550
|
${a.unsafeHTML(this.resolvedIcon)}
|
|
551
551
|
<slot ?hidden=${e}></slot>
|
|
@@ -1294,7 +1294,7 @@ const M=Symbol.for(""),j=t=>{if(t?.r===M)return t?._$litStatic$},_=t=>({_$litSta
|
|
|
1294
1294
|
@click=${this.next}
|
|
1295
1295
|
></ft-button>
|
|
1296
1296
|
</div>
|
|
1297
|
-
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Bi(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Di.elementDefinitions={"ft-button":ni},Di.styles=zi,Ai([i.property({type:Boolean})],Di.prototype,"horizontal",void 0),Ai([i.property({type:Boolean})],Di.prototype,"hideScrollbar",void 0),Ai([i.property({type:Boolean})],Di.prototype,"controls",void 0),Ai([i.property({type:Boolean})],Di.prototype,"limitSize",void 0),Ai([i.state()],Di.prototype,"elements",void 0),Ai([i.state()],Di.prototype,"currentElement",void 0),Ai([i.state()],Di.prototype,"withScroll",void 0),Ai([i.state()],Di.prototype,"startReached",void 0),Ai([i.state()],Di.prototype,"endReached",void 0),Ai([i.query(".ft-snap-scroll--content")],Di.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(Di);const Ki=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Fi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),Zi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),Ti=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),Pi=e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),Hi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionDuration,"Design system"),Mi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionTimingFunction,"Design system"),ji=e.FtCssVariableFactory.extend("--ft-filter-label-color","",e.designSystemVariables.colorOnSurface),_i=e.FtCssVariableFactory.extend("--ft-filter-label-font-size","",rt.fontSize,"
|
|
1297
|
+
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Bi(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Di.elementDefinitions={"ft-button":ni},Di.styles=zi,Ai([i.property({type:Boolean})],Di.prototype,"horizontal",void 0),Ai([i.property({type:Boolean})],Di.prototype,"hideScrollbar",void 0),Ai([i.property({type:Boolean})],Di.prototype,"controls",void 0),Ai([i.property({type:Boolean})],Di.prototype,"limitSize",void 0),Ai([i.state()],Di.prototype,"elements",void 0),Ai([i.state()],Di.prototype,"currentElement",void 0),Ai([i.state()],Di.prototype,"withScroll",void 0),Ai([i.state()],Di.prototype,"startReached",void 0),Ai([i.state()],Di.prototype,"endReached",void 0),Ai([i.query(".ft-snap-scroll--content")],Di.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(Di);const Ki=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Fi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),Zi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),Ti=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),Pi=e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),Hi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionDuration,"Design system"),Mi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionTimingFunction,"Design system"),ji=e.FtCssVariableFactory.extend("--ft-filter-label-color","",e.designSystemVariables.colorOnSurface),_i=e.FtCssVariableFactory.extend("--ft-filter-label-font-size","",rt.fontSize,"16px"),Gi=[se,o.css`
|
|
1298
1298
|
:host {
|
|
1299
1299
|
display: flex;
|
|
1300
1300
|
max-height: 100%;
|