@fluid-topics/ft-reader-toc 1.1.17 → 1.1.19
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.
|
@@ -139,7 +139,7 @@ const V=Symbol.for(""),X=t=>{if(t?.r===V)return t?._$litStatic$},q=t=>({_$litSta
|
|
|
139
139
|
@click=${t=>this.onLinkClick(t)}>
|
|
140
140
|
<slot></slot>
|
|
141
141
|
</a>
|
|
142
|
-
`}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}Eo.styles=Io,Lo([n.property()],Eo.prototype,"tocId",void 0),Lo([n.property()],Eo.prototype,"section",void 0),Lo([n.property({type:Number})],Eo.prototype,"pageNumber",void 0),Lo([n.property({type:Boolean})],Eo.prototype,"removeStyle",void 0),o.customElement("ft-reader-internal-link")(Eo),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=""}(Ro||(Ro={})),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=""}(ko||(ko={})),new Map([...["abw"].map((t=>[t,ko.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,ko.AUDIO])),...["avi"].map((t=>[t,ko.AVI])),...["chm","xhs"].map((t=>[t,ko.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,ko.CODE])),...["csv"].map((t=>[t,ko.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ko.DITA])),...["epub"].map((t=>[t,ko.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ko.EXCEL])),...["flac"].map((t=>[t,ko.FLAC])),...["gif"].map((t=>[t,ko.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ko.GZIP])),...["html","htm","xhtml"].map((t=>[t,ko.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,ko.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ko.JPEG])),...["json"].map((t=>[t,ko.JSON])),...["m4a","m4p"].map((t=>[t,ko.M4A])),...["mov","qt"].map((t=>[t,ko.MOV])),...["mp3"].map((t=>[t,ko.MP3])),...["mp4","m4v"].map((t=>[t,ko.MP4])),...["ogg","oga"].map((t=>[t,ko.OGG])),...["pdf","ps"].map((t=>[t,ko.PDF])),...["png"].map((t=>[t,ko.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ko.POWERPOINT])),...["rar"].map((t=>[t,ko.RAR])),...["stp"].map((t=>[t,ko.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ko.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,ko.VIDEO])),...["wav"].map((t=>[t,ko.WAV])),...["wma"].map((t=>[t,ko.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ko.WORD])),...["xml","xsl","rdf"].map((t=>[t,ko.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ko.YAML])),...["zip"].map((t=>[t,ko.ZIP]))]),ko.ABW,ko.AUDIO,ko.AVI,ko.CHM,ko.CODE,ko.CSV,ko.DITA,ko.EPUB,ko.EXCEL,ko.FLAC,ko.GIF,ko.GZIP,ko.HTML,ko.IMAGE,ko.JPEG,ko.JSON,ko.M4A,ko.MOV,ko.MP3,ko.MP4,ko.OGG,ko.PDF,ko.PNG,ko.POWERPOINT,ko.RAR,ko.STP,ko.TEXT,ko.UNKNOWN,ko.VIDEO,ko.WAV,ko.WMA,ko.WORD,ko.XML,ko.YAML,ko.ZIP;const Uo={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Wo=e.css`
|
|
142
|
+
`}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}Eo.styles=Io,Lo([n.property()],Eo.prototype,"tocId",void 0),Lo([n.property()],Eo.prototype,"section",void 0),Lo([n.property({type:Number})],Eo.prototype,"pageNumber",void 0),Lo([n.property({type:Boolean})],Eo.prototype,"removeStyle",void 0),o.customElement("ft-reader-internal-link")(Eo),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=""}(Ro||(Ro={})),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=""}(ko||(ko={})),new Map([...["abw"].map((t=>[t,ko.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,ko.AUDIO])),...["avi"].map((t=>[t,ko.AVI])),...["chm","xhs"].map((t=>[t,ko.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,ko.CODE])),...["csv"].map((t=>[t,ko.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ko.DITA])),...["epub"].map((t=>[t,ko.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ko.EXCEL])),...["flac"].map((t=>[t,ko.FLAC])),...["gif"].map((t=>[t,ko.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ko.GZIP])),...["html","htm","xhtml"].map((t=>[t,ko.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,ko.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ko.JPEG])),...["json"].map((t=>[t,ko.JSON])),...["m4a","m4p"].map((t=>[t,ko.M4A])),...["mov","qt"].map((t=>[t,ko.MOV])),...["mp3"].map((t=>[t,ko.MP3])),...["mp4","m4v"].map((t=>[t,ko.MP4])),...["ogg","oga"].map((t=>[t,ko.OGG])),...["pdf","ps"].map((t=>[t,ko.PDF])),...["png"].map((t=>[t,ko.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ko.POWERPOINT])),...["rar"].map((t=>[t,ko.RAR])),...["stp"].map((t=>[t,ko.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ko.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,ko.VIDEO])),...["wav"].map((t=>[t,ko.WAV])),...["wma"].map((t=>[t,ko.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ko.WORD])),...["xml","xsl","rdf"].map((t=>[t,ko.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ko.YAML])),...["zip"].map((t=>[t,ko.ZIP]))]),ko.ABW,ko.AUDIO,ko.AVI,ko.CHM,ko.CODE,ko.CSV,ko.DITA,ko.EPUB,ko.EXCEL,ko.FLAC,ko.GIF,ko.GZIP,ko.HTML,ko.IMAGE,ko.JPEG,ko.JSON,ko.M4A,ko.MOV,ko.MP3,ko.MP4,ko.OGG,ko.PDF,ko.PNG,ko.POWERPOINT,ko.RAR,ko.STP,ko.TEXT,ko.UNKNOWN,ko.VIDEO,ko.WAV,ko.WMA,ko.WORD,ko.XML,ko.YAML,ko.ZIP;const Uo={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Wo=e.css`
|
|
143
143
|
:host, i.ft-icon {
|
|
144
144
|
display: inline-flex;
|
|
145
145
|
align-items: center;
|
|
@@ -568,7 +568,7 @@ const V=Symbol.for(""),X=t=>{if(t?.r===V)return t?._$litStatic$},q=t=>({_$litSta
|
|
|
568
568
|
</div>
|
|
569
569
|
</div>
|
|
570
570
|
</div>
|
|
571
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",pr(this.slottedElement,this.tooltip,{platform:{...sr,getOffsetParent:t=>sr.getOffsetParent(t,fr)},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}=ve(t,o),s={x:e,y:r},p=await Ee(o,c),f=$e(Ne(i)),d=Ce(f);let h=s[d],g=s[f];if(a){const t="y"===d?"bottom":"right";h=Oe(h+p["y"===d?"top":"left"],h,h-p[t])}if(n){const t="y"===f?"bottom":"right";g=Oe(g+p["y"===f?"top":"left"],g,g-p[t])}const y=l.fn({...o,[d]:h,[f]:g});return{...y,data:{x:y.x-e,y:y.y-r}}}}),We({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))}}gr.elementDefinitions={"ft-typography":wo},gr.styles=fe,hr([n.property()],gr.prototype,"text",void 0),hr([n.property({type:Boolean})],gr.prototype,"manual",void 0),hr([n.property({type:Boolean})],gr.prototype,"inline",void 0),hr([n.property({type:Number})],gr.prototype,"delay",void 0),hr([n.property()],gr.prototype,"position",void 0),hr([n.queryAssignedNodes()],gr.prototype,"slotNodes",void 0),hr([n.query(".ft-tooltip--container")],gr.prototype,"container",void 0),hr([n.query(".ft-tooltip")],gr.prototype,"tooltip",void 0),hr([n.query(".ft-tooltip--content")],gr.prototype,"tooltipContent",void 0),hr([n.state()],gr.prototype,"visible",void 0),hr([n.eventOptions({passive:!0})],gr.prototype,"onTouch",null),hr([n.eventOptions({passive:!0})],gr.prototype,"onHover",null),hr([n.eventOptions({passive:!0})],gr.prototype,"onOut",null),hr([n.eventOptions({passive:!0})],gr.prototype,"onClick",null),o.customElement("ft-tooltip")(gr);class yr extends o.FtLitElement{render(){return e.html`
|
|
571
|
+
`}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="",pr(this.slottedElement,this.tooltip,{platform:{...sr,getOffsetParent:t=>sr.getOffsetParent(t,fr)},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}=ve(t,o),s={x:e,y:r},p=await Ee(o,c),f=$e(Ne(i)),d=Ce(f);let h=s[d],g=s[f];if(a){const t="y"===d?"bottom":"right";h=Oe(h+p["y"===d?"top":"left"],h,h-p[t])}if(n){const t="y"===f?"bottom":"right";g=Oe(g+p["y"===f?"top":"left"],g,g-p[t])}const y=l.fn({...o,[d]:h,[f]:g});return{...y,data:{x:y.x-e,y:y.y-r}}}}),We({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))}}gr.elementDefinitions={"ft-typography":wo},gr.styles=fe,hr([n.property()],gr.prototype,"text",void 0),hr([n.property({type:Boolean})],gr.prototype,"manual",void 0),hr([n.property({type:Boolean})],gr.prototype,"inline",void 0),hr([n.property({type:Number})],gr.prototype,"delay",void 0),hr([n.property()],gr.prototype,"position",void 0),hr([n.queryAssignedNodes()],gr.prototype,"slotNodes",void 0),hr([n.query(".ft-tooltip--container")],gr.prototype,"container",void 0),hr([n.query(".ft-tooltip")],gr.prototype,"tooltip",void 0),hr([n.query(".ft-tooltip--content")],gr.prototype,"tooltipContent",void 0),hr([n.state()],gr.prototype,"visible",void 0),hr([n.eventOptions({passive:!0})],gr.prototype,"onTouch",null),hr([n.eventOptions({passive:!0})],gr.prototype,"onHover",null),hr([n.eventOptions({passive:!0})],gr.prototype,"onOut",null),hr([n.eventOptions({passive:!0})],gr.prototype,"onClick",null),o.customElement("ft-tooltip")(gr);class yr extends o.FtLitElement{render(){return e.html`
|
|
572
572
|
<div class="ft-loader">
|
|
573
573
|
<div></div>
|
|
574
574
|
<div></div>
|
|
@@ -278,7 +278,7 @@ let Oe=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
278
278
|
* Copyright 2017 Google LLC
|
|
279
279
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
280
280
|
*/
|
|
281
|
-
class ti extends so{constructor(t){if(super(t),this.et=et,t.type!==no)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===et||null==t)return this.vt=void 0,this.et=t;if(t===tt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ti.directiveName="unsafeHTML",ti.resultType=1;const ei=ao(ti);var oi,ri;!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=""}(oi||(oi={})),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=""}(ri||(ri={})),new Map([...["abw"].map((t=>[t,ri.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,ri.AUDIO])),...["avi"].map((t=>[t,ri.AVI])),...["chm","xhs"].map((t=>[t,ri.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,ri.CODE])),...["csv"].map((t=>[t,ri.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ri.DITA])),...["epub"].map((t=>[t,ri.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ri.EXCEL])),...["flac"].map((t=>[t,ri.FLAC])),...["gif"].map((t=>[t,ri.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ri.GZIP])),...["html","htm","xhtml"].map((t=>[t,ri.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,ri.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ri.JPEG])),...["json"].map((t=>[t,ri.JSON])),...["m4a","m4p"].map((t=>[t,ri.M4A])),...["mov","qt"].map((t=>[t,ri.MOV])),...["mp3"].map((t=>[t,ri.MP3])),...["mp4","m4v"].map((t=>[t,ri.MP4])),...["ogg","oga"].map((t=>[t,ri.OGG])),...["pdf","ps"].map((t=>[t,ri.PDF])),...["png"].map((t=>[t,ri.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ri.POWERPOINT])),...["rar"].map((t=>[t,ri.RAR])),...["stp"].map((t=>[t,ri.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ri.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,ri.VIDEO])),...["wav"].map((t=>[t,ri.WAV])),...["wma"].map((t=>[t,ri.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ri.WORD])),...["xml","xsl","rdf"].map((t=>[t,ri.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ri.YAML])),...["zip"].map((t=>[t,ri.ZIP]))]),ri.ABW,ri.AUDIO,ri.AVI,ri.CHM,ri.CODE,ri.CSV,ri.DITA,ri.EPUB,ri.EXCEL,ri.FLAC,ri.GIF,ri.GZIP,ri.HTML,ri.IMAGE,ri.JPEG,ri.JSON,ri.M4A,ri.MOV,ri.MP3,ri.MP4,ri.OGG,ri.PDF,ri.PNG,ri.POWERPOINT,ri.RAR,ri.STP,ri.TEXT,ri.UNKNOWN,ri.VIDEO,ri.WAV,ri.WMA,ri.WORD,ri.XML,ri.YAML,ri.ZIP;const ii={size:we.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:we.extend("--ft-icon-fluid-topics-font-family","",we.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:we.extend("--ft-icon-file-format-font-family","",we.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:we.extend("--ft-icon-material-font-family","",we.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:we.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ni=St`
|
|
281
|
+
class ti extends so{constructor(t){if(super(t),this.et=et,t.type!==no)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===et||null==t)return this.vt=void 0,this.et=t;if(t===tt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ti.directiveName="unsafeHTML",ti.resultType=1;const ei=ao(ti);var oi,ri;!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=""}(oi||(oi={})),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=""}(ri||(ri={})),new Map([...["abw"].map((t=>[t,ri.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,ri.AUDIO])),...["avi"].map((t=>[t,ri.AVI])),...["chm","xhs"].map((t=>[t,ri.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,ri.CODE])),...["csv"].map((t=>[t,ri.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ri.DITA])),...["epub"].map((t=>[t,ri.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ri.EXCEL])),...["flac"].map((t=>[t,ri.FLAC])),...["gif"].map((t=>[t,ri.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ri.GZIP])),...["html","htm","xhtml"].map((t=>[t,ri.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,ri.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ri.JPEG])),...["json"].map((t=>[t,ri.JSON])),...["m4a","m4p"].map((t=>[t,ri.M4A])),...["mov","qt"].map((t=>[t,ri.MOV])),...["mp3"].map((t=>[t,ri.MP3])),...["mp4","m4v"].map((t=>[t,ri.MP4])),...["ogg","oga"].map((t=>[t,ri.OGG])),...["pdf","ps"].map((t=>[t,ri.PDF])),...["png"].map((t=>[t,ri.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ri.POWERPOINT])),...["rar"].map((t=>[t,ri.RAR])),...["stp"].map((t=>[t,ri.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ri.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,ri.VIDEO])),...["wav"].map((t=>[t,ri.WAV])),...["wma"].map((t=>[t,ri.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ri.WORD])),...["xml","xsl","rdf"].map((t=>[t,ri.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ri.YAML])),...["zip"].map((t=>[t,ri.ZIP]))]),ri.ABW,ri.AUDIO,ri.AVI,ri.CHM,ri.CODE,ri.CSV,ri.DITA,ri.EPUB,ri.EXCEL,ri.FLAC,ri.GIF,ri.GZIP,ri.HTML,ri.IMAGE,ri.JPEG,ri.JSON,ri.M4A,ri.MOV,ri.MP3,ri.MP4,ri.OGG,ri.PDF,ri.PNG,ri.POWERPOINT,ri.RAR,ri.STP,ri.TEXT,ri.UNKNOWN,ri.VIDEO,ri.WAV,ri.WMA,ri.WORD,ri.XML,ri.YAML,ri.ZIP;const ii={size:we.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:we.extend("--ft-icon-fluid-topics-font-family","",we.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:we.extend("--ft-icon-file-format-font-family","",we.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:we.extend("--ft-icon-material-font-family","",we.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:we.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ni=St`
|
|
282
282
|
:host, i.ft-icon {
|
|
283
283
|
display: inline-flex;
|
|
284
284
|
align-items: center;
|
|
@@ -707,7 +707,7 @@ class ti extends so{constructor(t){if(super(t),this.et=et,t.type!==no)throw Erro
|
|
|
707
707
|
</div>
|
|
708
708
|
</div>
|
|
709
709
|
</div>
|
|
710
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",An(this.slottedElement,this.tooltip,{platform:{...Fn,getOffsetParent:t=>Fn.getOffsetParent(t,Zn)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:r,placement:i}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Gi(t,e),c={x:o,y:r},p=await rn(e,l),f=qi(Vi(i)),h=Xi(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=_i(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=_i(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...e,[h]:d,[f]:u});return{...y,data:{x:y.x-o,y:y.y-r}}}}),an({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))}}Dn.elementDefinitions={"ft-typography":Yr},Dn.styles=Ai,Mn([C()],Dn.prototype,"text",void 0),Mn([C({type:Boolean})],Dn.prototype,"manual",void 0),Mn([C({type:Boolean})],Dn.prototype,"inline",void 0),Mn([C({type:Number})],Dn.prototype,"delay",void 0),Mn([C()],Dn.prototype,"position",void 0),Mn([function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return E(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}}()],Dn.prototype,"slotNodes",void 0),Mn([k(".ft-tooltip--container")],Dn.prototype,"container",void 0),Mn([k(".ft-tooltip")],Dn.prototype,"tooltip",void 0),Mn([k(".ft-tooltip--content")],Dn.prototype,"tooltipContent",void 0),Mn([$()],Dn.prototype,"visible",void 0),Mn([R({passive:!0})],Dn.prototype,"onTouch",null),Mn([R({passive:!0})],Dn.prototype,"onHover",null),Mn([R({passive:!0})],Dn.prototype,"onOut",null),Mn([R({passive:!0})],Dn.prototype,"onClick",null),U("ft-tooltip")(Dn);class Pn extends Be{render(){return ne`
|
|
710
|
+
`}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="",An(this.slottedElement,this.tooltip,{platform:{...Fn,getOffsetParent:t=>Fn.getOffsetParent(t,Zn)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:r,placement:i}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Gi(t,e),c={x:o,y:r},p=await rn(e,l),f=qi(Vi(i)),h=Xi(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=_i(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=_i(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...e,[h]:d,[f]:u});return{...y,data:{x:y.x-o,y:y.y-r}}}}),an({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))}}Dn.elementDefinitions={"ft-typography":Yr},Dn.styles=Ai,Mn([C()],Dn.prototype,"text",void 0),Mn([C({type:Boolean})],Dn.prototype,"manual",void 0),Mn([C({type:Boolean})],Dn.prototype,"inline",void 0),Mn([C({type:Number})],Dn.prototype,"delay",void 0),Mn([C()],Dn.prototype,"position",void 0),Mn([function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return E(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}}()],Dn.prototype,"slotNodes",void 0),Mn([k(".ft-tooltip--container")],Dn.prototype,"container",void 0),Mn([k(".ft-tooltip")],Dn.prototype,"tooltip",void 0),Mn([k(".ft-tooltip--content")],Dn.prototype,"tooltipContent",void 0),Mn([$()],Dn.prototype,"visible",void 0),Mn([R({passive:!0})],Dn.prototype,"onTouch",null),Mn([R({passive:!0})],Dn.prototype,"onHover",null),Mn([R({passive:!0})],Dn.prototype,"onOut",null),Mn([R({passive:!0})],Dn.prototype,"onClick",null),U("ft-tooltip")(Dn);class Pn extends Be{render(){return ne`
|
|
711
711
|
<div class="ft-loader">
|
|
712
712
|
<div></div>
|
|
713
713
|
<div></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-toc",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.19",
|
|
4
4
|
"description": "Main table of content for integrated reader",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "1.1.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "1.1.
|
|
24
|
-
"@fluid-topics/ft-size-watcher": "1.1.
|
|
25
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.1.19",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "1.1.19",
|
|
24
|
+
"@fluid-topics/ft-size-watcher": "1.1.19",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.1.19",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.1.19",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "b272462216d04e50b2a31bfdb5e1b6f3a241ce9d"
|
|
30
30
|
}
|