@fluid-topics/ft-search-selected-facets 1.1.20 → 1.1.22
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.
|
@@ -257,7 +257,7 @@ const jt=Symbol.for(""),Mt=t=>{if(t?.r===jt)return t?._$litStatic$},_t=t=>({_$li
|
|
|
257
257
|
</${_t(this.element)}>
|
|
258
258
|
`:Vt`
|
|
259
259
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
260
|
-
`}}bo.styles=[eo,oo,io,ro,no,ao,so,lo,co,ho,fo,...po],yo([r.property()],bo.prototype,"element",void 0),yo([r.property()],bo.prototype,"variant",void 0),e.customElement("ft-typography")(bo),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=""}(uo||(uo={})),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=""}(go||(go={})),new Map([...["abw"].map((t=>[t,go.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,go.AUDIO])),...["avi"].map((t=>[t,go.AVI])),...["chm","xhs"].map((t=>[t,go.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,go.CODE])),...["csv"].map((t=>[t,go.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,go.DITA])),...["epub"].map((t=>[t,go.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,go.EXCEL])),...["flac"].map((t=>[t,go.FLAC])),...["gif"].map((t=>[t,go.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,go.GZIP])),...["html","htm","xhtml"].map((t=>[t,go.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,go.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,go.JPEG])),...["json"].map((t=>[t,go.JSON])),...["m4a","m4p"].map((t=>[t,go.M4A])),...["mov","qt"].map((t=>[t,go.MOV])),...["mp3"].map((t=>[t,go.MP3])),...["mp4","m4v"].map((t=>[t,go.MP4])),...["ogg","oga"].map((t=>[t,go.OGG])),...["pdf","ps"].map((t=>[t,go.PDF])),...["png"].map((t=>[t,go.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,go.POWERPOINT])),...["rar"].map((t=>[t,go.RAR])),...["stp"].map((t=>[t,go.STP])),...["txt","rtf","md","mdown"].map((t=>[t,go.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,go.VIDEO])),...["wav"].map((t=>[t,go.WAV])),...["wma"].map((t=>[t,go.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,go.WORD])),...["xml","xsl","rdf"].map((t=>[t,go.XML])),...["yaml","yml","x-yaml"].map((t=>[t,go.YAML])),...["zip"].map((t=>[t,go.ZIP]))]),go.ABW,go.AUDIO,go.AVI,go.CHM,go.CODE,go.CSV,go.DITA,go.EPUB,go.EXCEL,go.FLAC,go.GIF,go.GZIP,go.HTML,go.IMAGE,go.JPEG,go.JSON,go.M4A,go.MOV,go.MP3,go.MP4,go.OGG,go.PDF,go.PNG,go.POWERPOINT,go.RAR,go.STP,go.TEXT,go.UNKNOWN,go.VIDEO,go.WAV,go.WMA,go.WORD,go.XML,go.YAML,go.ZIP;const mo={size:e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},vo=o.css`
|
|
260
|
+
`}}bo.styles=[eo,oo,io,ro,no,ao,so,lo,co,ho,fo,...po],yo([r.property()],bo.prototype,"element",void 0),yo([r.property()],bo.prototype,"variant",void 0),e.customElement("ft-typography")(bo),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=""}(uo||(uo={})),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=""}(go||(go={})),new Map([...["abw"].map((t=>[t,go.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,go.AUDIO])),...["avi"].map((t=>[t,go.AVI])),...["chm","xhs"].map((t=>[t,go.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,go.CODE])),...["csv"].map((t=>[t,go.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,go.DITA])),...["epub"].map((t=>[t,go.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,go.EXCEL])),...["flac"].map((t=>[t,go.FLAC])),...["gif"].map((t=>[t,go.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,go.GZIP])),...["html","htm","xhtml"].map((t=>[t,go.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,go.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,go.JPEG])),...["json"].map((t=>[t,go.JSON])),...["m4a","m4p"].map((t=>[t,go.M4A])),...["mov","qt"].map((t=>[t,go.MOV])),...["mp3"].map((t=>[t,go.MP3])),...["mp4","m4v"].map((t=>[t,go.MP4])),...["ogg","oga"].map((t=>[t,go.OGG])),...["pdf","ps"].map((t=>[t,go.PDF])),...["png"].map((t=>[t,go.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,go.POWERPOINT])),...["rar"].map((t=>[t,go.RAR])),...["stp"].map((t=>[t,go.STP])),...["txt","rtf","md","mdown"].map((t=>[t,go.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,go.VIDEO])),...["wav"].map((t=>[t,go.WAV])),...["wma"].map((t=>[t,go.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,go.WORD])),...["xml","xsl","rdf"].map((t=>[t,go.XML])),...["yaml","yml","x-yaml"].map((t=>[t,go.YAML])),...["zip"].map((t=>[t,go.ZIP]))]),go.ABW,go.AUDIO,go.AVI,go.CHM,go.CODE,go.CSV,go.DITA,go.EPUB,go.EXCEL,go.FLAC,go.GIF,go.GZIP,go.HTML,go.IMAGE,go.JPEG,go.JSON,go.M4A,go.MOV,go.MP3,go.MP4,go.OGG,go.PDF,go.PNG,go.POWERPOINT,go.RAR,go.STP,go.TEXT,go.UNKNOWN,go.VIDEO,go.WAV,go.WMA,go.WORD,go.XML,go.YAML,go.ZIP;const mo={size:e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},vo=o.css`
|
|
261
261
|
:host, i.ft-icon {
|
|
262
262
|
display: inline-flex;
|
|
263
263
|
align-items: center;
|
|
@@ -1476,7 +1476,7 @@ const jt=Symbol.for(""),Mt=t=>{if(t?.r===jt)return t?._$litStatic$},_t=t=>({_$li
|
|
|
1476
1476
|
@click=${this.next}
|
|
1477
1477
|
></ft-button>
|
|
1478
1478
|
</div>
|
|
1479
|
-
`}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 Xr(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)}}Jr.elementDefinitions={"ft-button":Vi},Jr.styles=Yr,Qr([r.property({type:Boolean})],Jr.prototype,"horizontal",void 0),Qr([r.property({type:Boolean})],Jr.prototype,"hideScrollbar",void 0),Qr([r.property({type:Boolean})],Jr.prototype,"controls",void 0),Qr([r.property({type:Boolean})],Jr.prototype,"limitSize",void 0),Qr([r.state()],Jr.prototype,"elements",void 0),Qr([r.state()],Jr.prototype,"currentElement",void 0),Qr([r.state()],Jr.prototype,"withScroll",void 0),Qr([r.state()],Jr.prototype,"startReached",void 0),Qr([r.state()],Jr.prototype,"endReached",void 0),Qr([r.query(".ft-snap-scroll--content")],Jr.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(Jr);const tn=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),en=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),on=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),rn=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),nn=e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),an=e.FtCssVariableFactory.external(e.designSystemVariables.transitionDuration,"Design system"),sn=e.FtCssVariableFactory.external(e.designSystemVariables.transitionTimingFunction,"Design system"),ln=e.FtCssVariableFactory.extend("--ft-filter-label-color","",e.designSystemVariables.colorOnSurface),cn=e.FtCssVariableFactory.extend("--ft-filter-label-font-size","",re.fontSize,"
|
|
1479
|
+
`}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 Xr(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)}}Jr.elementDefinitions={"ft-button":Vi},Jr.styles=Yr,Qr([r.property({type:Boolean})],Jr.prototype,"horizontal",void 0),Qr([r.property({type:Boolean})],Jr.prototype,"hideScrollbar",void 0),Qr([r.property({type:Boolean})],Jr.prototype,"controls",void 0),Qr([r.property({type:Boolean})],Jr.prototype,"limitSize",void 0),Qr([r.state()],Jr.prototype,"elements",void 0),Qr([r.state()],Jr.prototype,"currentElement",void 0),Qr([r.state()],Jr.prototype,"withScroll",void 0),Qr([r.state()],Jr.prototype,"startReached",void 0),Qr([r.state()],Jr.prototype,"endReached",void 0),Qr([r.query(".ft-snap-scroll--content")],Jr.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(Jr);const tn=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),en=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),on=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),rn=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),nn=e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),an=e.FtCssVariableFactory.external(e.designSystemVariables.transitionDuration,"Design system"),sn=e.FtCssVariableFactory.external(e.designSystemVariables.transitionTimingFunction,"Design system"),ln=e.FtCssVariableFactory.extend("--ft-filter-label-color","",e.designSystemVariables.colorOnSurface),cn=e.FtCssVariableFactory.extend("--ft-filter-label-font-size","",re.fontSize,"16px"),hn=[so,o.css`
|
|
1480
1480
|
:host {
|
|
1481
1481
|
display: flex;
|
|
1482
1482
|
max-height: 100%;
|
|
@@ -401,7 +401,7 @@ const gn=Symbol.for(""),bn=t=>{if(t?.r===gn)return t?._$litStatic$},vn=t=>({_$li
|
|
|
401
401
|
* Copyright 2017 Google LLC
|
|
402
402
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
403
403
|
*/
|
|
404
|
-
class ja extends rr{constructor(t){if(super(t),this.et=ct,t.type!==or)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ct||null==t)return this.vt=void 0,this.et=t;if(t===lt)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:[]}}}ja.directiveName="unsafeHTML",ja.resultType=1;const za=ir(ja);var Fa,Da;!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=""}(Fa||(Fa={})),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=""}(Da||(Da={})),new Map([...["abw"].map((t=>[t,Da.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,Da.AUDIO])),...["avi"].map((t=>[t,Da.AVI])),...["chm","xhs"].map((t=>[t,Da.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,Da.CODE])),...["csv"].map((t=>[t,Da.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Da.DITA])),...["epub"].map((t=>[t,Da.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Da.EXCEL])),...["flac"].map((t=>[t,Da.FLAC])),...["gif"].map((t=>[t,Da.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Da.GZIP])),...["html","htm","xhtml"].map((t=>[t,Da.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,Da.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Da.JPEG])),...["json"].map((t=>[t,Da.JSON])),...["m4a","m4p"].map((t=>[t,Da.M4A])),...["mov","qt"].map((t=>[t,Da.MOV])),...["mp3"].map((t=>[t,Da.MP3])),...["mp4","m4v"].map((t=>[t,Da.MP4])),...["ogg","oga"].map((t=>[t,Da.OGG])),...["pdf","ps"].map((t=>[t,Da.PDF])),...["png"].map((t=>[t,Da.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Da.POWERPOINT])),...["rar"].map((t=>[t,Da.RAR])),...["stp"].map((t=>[t,Da.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Da.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,Da.VIDEO])),...["wav"].map((t=>[t,Da.WAV])),...["wma"].map((t=>[t,Da.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Da.WORD])),...["xml","xsl","rdf"].map((t=>[t,Da.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Da.YAML])),...["zip"].map((t=>[t,Da.ZIP]))]),Da.ABW,Da.AUDIO,Da.AVI,Da.CHM,Da.CODE,Da.CSV,Da.DITA,Da.EPUB,Da.EXCEL,Da.FLAC,Da.GIF,Da.GZIP,Da.HTML,Da.IMAGE,Da.JPEG,Da.JSON,Da.M4A,Da.MOV,Da.MP3,Da.MP4,Da.OGG,Da.PDF,Da.PNG,Da.POWERPOINT,Da.RAR,Da.STP,Da.TEXT,Da.UNKNOWN,Da.VIDEO,Da.WAV,Da.WMA,Da.WORD,Da.XML,Da.YAML,Da.ZIP;const Ba={size:Ue.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ue.extend("--ft-icon-fluid-topics-font-family","",Ue.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ue.extend("--ft-icon-file-format-font-family","",Ue.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ue.extend("--ft-icon-material-font-family","",Ue.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ue.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Pa=Ut`
|
|
404
|
+
class ja extends rr{constructor(t){if(super(t),this.et=ct,t.type!==or)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ct||null==t)return this.vt=void 0,this.et=t;if(t===lt)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:[]}}}ja.directiveName="unsafeHTML",ja.resultType=1;const za=ir(ja);var Fa,Da;!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=""}(Fa||(Fa={})),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=""}(Da||(Da={})),new Map([...["abw"].map((t=>[t,Da.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,Da.AUDIO])),...["avi"].map((t=>[t,Da.AVI])),...["chm","xhs"].map((t=>[t,Da.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,Da.CODE])),...["csv"].map((t=>[t,Da.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Da.DITA])),...["epub"].map((t=>[t,Da.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Da.EXCEL])),...["flac"].map((t=>[t,Da.FLAC])),...["gif"].map((t=>[t,Da.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Da.GZIP])),...["html","htm","xhtml"].map((t=>[t,Da.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,Da.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Da.JPEG])),...["json"].map((t=>[t,Da.JSON])),...["m4a","m4p"].map((t=>[t,Da.M4A])),...["mov","qt"].map((t=>[t,Da.MOV])),...["mp3"].map((t=>[t,Da.MP3])),...["mp4","m4v"].map((t=>[t,Da.MP4])),...["ogg","oga"].map((t=>[t,Da.OGG])),...["pdf","ps"].map((t=>[t,Da.PDF])),...["png"].map((t=>[t,Da.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Da.POWERPOINT])),...["rar"].map((t=>[t,Da.RAR])),...["stp"].map((t=>[t,Da.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Da.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,Da.VIDEO])),...["wav"].map((t=>[t,Da.WAV])),...["wma"].map((t=>[t,Da.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Da.WORD])),...["xml","xsl","rdf"].map((t=>[t,Da.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Da.YAML])),...["zip"].map((t=>[t,Da.ZIP]))]),Da.ABW,Da.AUDIO,Da.AVI,Da.CHM,Da.CODE,Da.CSV,Da.DITA,Da.EPUB,Da.EXCEL,Da.FLAC,Da.GIF,Da.GZIP,Da.HTML,Da.IMAGE,Da.JPEG,Da.JSON,Da.M4A,Da.MOV,Da.MP3,Da.MP4,Da.OGG,Da.PDF,Da.PNG,Da.POWERPOINT,Da.RAR,Da.STP,Da.TEXT,Da.UNKNOWN,Da.VIDEO,Da.WAV,Da.WMA,Da.WORD,Da.XML,Da.YAML,Da.ZIP;const Ba={size:Ue.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ue.extend("--ft-icon-fluid-topics-font-family","",Ue.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ue.extend("--ft-icon-file-format-font-family","",Ue.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ue.extend("--ft-icon-material-font-family","",Ue.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ue.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Pa=Ut`
|
|
405
405
|
:host, i.ft-icon {
|
|
406
406
|
display: inline-flex;
|
|
407
407
|
align-items: center;
|
|
@@ -1632,7 +1632,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
|
|
|
1632
1632
|
@click=${this.next}
|
|
1633
1633
|
></ft-button>
|
|
1634
1634
|
</div>
|
|
1635
|
-
`}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 mc(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)}}xc.elementDefinitions={"ft-button":yl},xc.styles=bc,vc([R({type:Boolean})],xc.prototype,"horizontal",void 0),vc([R({type:Boolean})],xc.prototype,"hideScrollbar",void 0),vc([R({type:Boolean})],xc.prototype,"controls",void 0),vc([R({type:Boolean})],xc.prototype,"limitSize",void 0),vc([I()],xc.prototype,"elements",void 0),vc([I()],xc.prototype,"currentElement",void 0),vc([I()],xc.prototype,"withScroll",void 0),vc([I()],xc.prototype,"startReached",void 0),vc([I()],xc.prototype,"endReached",void 0),vc([A(".ft-snap-scroll--content")],xc.prototype,"contentSlot",void 0),B("ft-snap-scroll")(xc);const Oc=Ue.external(Fe.colorOutline,"Design system"),wc=Ue.external(Fe.colorOnSurface,"Design system"),Sc=Ue.external(Fe.colorOnSurfaceMedium,"Design system"),Nc=Ue.external(Fe.colorPrimary,"Design system"),$c=Ue.external(Fe.colorSurface,"Design system"),Cc=Ue.external(Fe.transitionDuration,"Design system"),Ec=Ue.external(Fe.transitionTimingFunction,"Design system"),kc=Ue.extend("--ft-filter-label-color","",Fe.colorOnSurface),Rc=Ue.extend("--ft-filter-label-font-size","",Nn.fontSize,"
|
|
1635
|
+
`}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 mc(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)}}xc.elementDefinitions={"ft-button":yl},xc.styles=bc,vc([R({type:Boolean})],xc.prototype,"horizontal",void 0),vc([R({type:Boolean})],xc.prototype,"hideScrollbar",void 0),vc([R({type:Boolean})],xc.prototype,"controls",void 0),vc([R({type:Boolean})],xc.prototype,"limitSize",void 0),vc([I()],xc.prototype,"elements",void 0),vc([I()],xc.prototype,"currentElement",void 0),vc([I()],xc.prototype,"withScroll",void 0),vc([I()],xc.prototype,"startReached",void 0),vc([I()],xc.prototype,"endReached",void 0),vc([A(".ft-snap-scroll--content")],xc.prototype,"contentSlot",void 0),B("ft-snap-scroll")(xc);const Oc=Ue.external(Fe.colorOutline,"Design system"),wc=Ue.external(Fe.colorOnSurface,"Design system"),Sc=Ue.external(Fe.colorOnSurfaceMedium,"Design system"),Nc=Ue.external(Fe.colorPrimary,"Design system"),$c=Ue.external(Fe.colorSurface,"Design system"),Cc=Ue.external(Fe.transitionDuration,"Design system"),Ec=Ue.external(Fe.transitionTimingFunction,"Design system"),kc=Ue.extend("--ft-filter-label-color","",Fe.colorOnSurface),Rc=Ue.extend("--ft-filter-label-font-size","",Nn.fontSize,"16px"),Ic=[Ea,Ut`
|
|
1636
1636
|
:host {
|
|
1637
1637
|
display: flex;
|
|
1638
1638
|
max-height: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-selected-facets",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
4
4
|
"description": "List of selected facets in a designed search page context",
|
|
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-chip": "1.1.
|
|
23
|
-
"@fluid-topics/ft-search-context": "1.1.
|
|
24
|
-
"@fluid-topics/ft-search-type": "1.1.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "1.1.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-chip": "1.1.22",
|
|
23
|
+
"@fluid-topics/ft-search-context": "1.1.22",
|
|
24
|
+
"@fluid-topics/ft-search-type": "1.1.22",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "1.1.22",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.1.22",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "89c8b3562faee77c5ae79180f255aa9021f4d229"
|
|
30
30
|
}
|