@fluid-topics/ft-select 0.3.54 → 0.3.56
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-select.light.js +2 -2
- package/build/ft-select.min.js +23 -12
- package/package.json +7 -7
package/build/ft-select.light.js
CHANGED
|
@@ -332,7 +332,7 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
332
332
|
opacity: ${he.opacityContentOnSurfacePressed};
|
|
333
333
|
transform: translate(-50%, -50%) scale(1);
|
|
334
334
|
}
|
|
335
|
-
`;var ve,me,$e=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class we extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),l=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-l.x:l.width/2),this.originY=Math.round(null!=s?s-l.y:l.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
|
|
335
|
+
`;var ve,me,$e=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class we extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),l=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-l.x:l.width/2),this.originY=Math.round(null!=s?s-l.y:l.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
|
|
336
336
|
<style>
|
|
337
337
|
.ft-ripple .ft-ripple--effect,
|
|
338
338
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -349,7 +349,7 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
349
349
|
<div class="ft-ripple--background"></div>
|
|
350
350
|
<div class="ft-ripple--effect"></div>
|
|
351
351
|
</div>
|
|
352
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}we.elementDefinitions={},we.styles=be,$e([o.property({type:Boolean})],we.prototype,"primary",void 0),$e([o.property({type:Boolean})],we.prototype,"secondary",void 0),$e([o.property({type:Boolean})],we.prototype,"unbounded",void 0),$e([o.property({type:Boolean})],we.prototype,"activated",void 0),$e([o.property({type:Boolean})],we.prototype,"selected",void 0),$e([o.property({type:Boolean})],we.prototype,"disabled",void 0),$e([o.state()],we.prototype,"hovered",void 0),$e([o.state()],we.prototype,"focused",void 0),$e([o.state()],we.prototype,"pressed",void 0),$e([o.state()],we.prototype,"rippling",void 0),$e([o.state()],we.prototype,"rippleSize",void 0),$e([o.state()],we.prototype,"originX",void 0),$e([o.state()],we.prototype,"originY",void 0),$e([o.query(".ft-ripple")],we.prototype,"ripple",void 0),$e([o.query(".ft-ripple--effect")],we.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(we),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",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.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",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=""}(ve||(ve={})),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=""}(me||(me={})),new Map([...["abw"].map((t=>[t,me.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,me.AUDIO])),...["avi"].map((t=>[t,me.AVI])),...["chm","xhs"].map((t=>[t,me.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,me.CODE])),...["csv"].map((t=>[t,me.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,me.DITA])),...["epub"].map((t=>[t,me.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,me.EXCEL])),...["flac"].map((t=>[t,me.FLAC])),...["gif"].map((t=>[t,me.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,me.GZIP])),...["html","htm","xhtml"].map((t=>[t,me.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,me.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,me.JPEG])),...["json"].map((t=>[t,me.JSON])),...["m4a","m4p"].map((t=>[t,me.M4A])),...["mov","qt"].map((t=>[t,me.MOV])),...["mp3"].map((t=>[t,me.MP3])),...["mp4","m4v"].map((t=>[t,me.MP4])),...["ogg","oga"].map((t=>[t,me.OGG])),...["pdf","ps"].map((t=>[t,me.PDF])),...["png"].map((t=>[t,me.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,me.POWERPOINT])),...["rar"].map((t=>[t,me.RAR])),...["stp"].map((t=>[t,me.STP])),...["txt","rtf","md","mdown"].map((t=>[t,me.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,me.VIDEO])),...["wav"].map((t=>[t,me.WAV])),...["wma"].map((t=>[t,me.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,me.WORD])),...["xml","xsl","rdf"].map((t=>[t,me.XML])),...["yaml","yml","x-yaml"].map((t=>[t,me.YAML])),...["zip"].map((t=>[t,me.ZIP]))]);const ke=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),ze=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Se=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Oe=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ee=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),je=i.css`
|
|
352
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}we.elementDefinitions={},we.styles=be,$e([o.property({type:Boolean})],we.prototype,"primary",void 0),$e([o.property({type:Boolean})],we.prototype,"secondary",void 0),$e([o.property({type:Boolean})],we.prototype,"unbounded",void 0),$e([o.property({type:Boolean})],we.prototype,"activated",void 0),$e([o.property({type:Boolean})],we.prototype,"selected",void 0),$e([o.property({type:Boolean})],we.prototype,"disabled",void 0),$e([o.state()],we.prototype,"hovered",void 0),$e([o.state()],we.prototype,"focused",void 0),$e([o.state()],we.prototype,"pressed",void 0),$e([o.state()],we.prototype,"rippling",void 0),$e([o.state()],we.prototype,"rippleSize",void 0),$e([o.state()],we.prototype,"originX",void 0),$e([o.state()],we.prototype,"originY",void 0),$e([o.query(".ft-ripple")],we.prototype,"ripple",void 0),$e([o.query(".ft-ripple--effect")],we.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(we),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",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.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",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=""}(ve||(ve={})),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=""}(me||(me={})),new Map([...["abw"].map((t=>[t,me.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,me.AUDIO])),...["avi"].map((t=>[t,me.AVI])),...["chm","xhs"].map((t=>[t,me.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,me.CODE])),...["csv"].map((t=>[t,me.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,me.DITA])),...["epub"].map((t=>[t,me.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,me.EXCEL])),...["flac"].map((t=>[t,me.FLAC])),...["gif"].map((t=>[t,me.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,me.GZIP])),...["html","htm","xhtml"].map((t=>[t,me.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,me.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,me.JPEG])),...["json"].map((t=>[t,me.JSON])),...["m4a","m4p"].map((t=>[t,me.M4A])),...["mov","qt"].map((t=>[t,me.MOV])),...["mp3"].map((t=>[t,me.MP3])),...["mp4","m4v"].map((t=>[t,me.MP4])),...["ogg","oga"].map((t=>[t,me.OGG])),...["pdf","ps"].map((t=>[t,me.PDF])),...["png"].map((t=>[t,me.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,me.POWERPOINT])),...["rar"].map((t=>[t,me.RAR])),...["stp"].map((t=>[t,me.STP])),...["txt","rtf","md","mdown"].map((t=>[t,me.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,me.VIDEO])),...["wav"].map((t=>[t,me.WAV])),...["wma"].map((t=>[t,me.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,me.WORD])),...["xml","xsl","rdf"].map((t=>[t,me.XML])),...["yaml","yml","x-yaml"].map((t=>[t,me.YAML])),...["zip"].map((t=>[t,me.ZIP]))]);const ke=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),ze=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Se=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Oe=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ee=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),je=i.css`
|
|
353
353
|
:host, i.ft-icon {
|
|
354
354
|
display: inline-flex;
|
|
355
355
|
align-items: center;
|
package/build/ft-select.min.js
CHANGED
|
@@ -50,13 +50,13 @@ function n(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o)
|
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/;var b;const g=window,m=g.trustedTypes
|
|
53
|
+
*/;var b;const g=window,m=g.trustedTypes,w=m?m.emptyScript:"",$=g.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},S=(t,e)=>e!==t&&(e==e||t==t),k={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S};class E extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=k){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||k}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=k){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:O).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:O;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||S)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var N;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null
|
|
59
|
+
var N;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:E}),(null!==(b=g.reactiveElementVersions)&&void 0!==b?b:g.reactiveElementVersions=[]).push("1.4.1");const C=window,M=C.trustedTypes,R=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,z="?"+U,j=`<${z}>`,F=document,A=(t="")=>F.createComment(t),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,P=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,T=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,H=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),q=new WeakMap,X=F.createTreeWalker(F,129,null,!1),Y=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=L;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===L?"!--"===a[1]?r=_:void 0!==a[1]?r=T:void 0!==a[2]?(K.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=I):void 0!==a[3]&&(r=I):r===I?">"===a[0]?(r=null!=s?s:L,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?I:'"'===a[3]?H:W):r===H||r===W?r=I:r===_||r===T?r=L:(r=I,s=void 0);const h=r===I&&t[e+1].startsWith("/>")?" ":"";n+=r===L?i+j:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+U+h):i+U+(-2===p?(o.push(void 0),e):h)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(l):l,o]};class G{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=Y(t,e);if(this.el=G.createElement(a,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?nt:"@"===e[1]?rt:it})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(K.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),X.nextNode(),l.push({type:2,index:++s});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)l.push({type:7,index:s}),t+=U.length-1}s++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var s,n,r,l;if(e===V)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=B(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=Q(t,a._$AS(t,e.values),a,o)),e}class tt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:F).importNode(i,!0);X.currentNode=s;let n=X.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new et(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new lt(n,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=X.nextNode(),r++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,o){var s;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),B(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==V&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):P(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==J&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=G.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new tt(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new G(t)),e}k(t){D(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new et(this.O(A()),this.O(A()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,o,s){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=Q(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Q(this,o[i+r],e,r),l===V&&(l=this._$AH[r]),n||(n=!B(l)||l!==this._$AH[r]),l===J?t=J:t!==J&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}const st=M?M.emptyScript:"";class nt extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==J?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class rt extends it{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Q(this,t,e,0))&&void 0!==i?i:J)===V)return;const o=this._$AH,s=t===J&&o!==J||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==J&&(o===J||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const at={P:"$lit$",A:U,M:z,C:1,L:Y,R:tt,D:P,V:Q,I:et,H:it,N:nt,U:rt,B:ot,F:lt},pt=C.litHtmlPolyfillSupport;null==pt||pt(G,et),(null!==(N=C.litHtmlVersions)&&void 0!==N?N:C.litHtmlVersions=[]).push("2.4.0");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
@@ -93,23 +93,34 @@ var ct,ht;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
93
93
|
-webkit-hyphens: auto;
|
|
94
94
|
hyphens: auto
|
|
95
95
|
}
|
|
96
|
+
`,y`
|
|
97
|
+
.ft-safari-ellipsis-fix {
|
|
98
|
+
margin-right: 0;
|
|
99
|
+
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ft-safari-ellipsis-fix:after {
|
|
103
|
+
content: "\\0000a0";
|
|
104
|
+
display: inline-block;
|
|
105
|
+
width: 0;
|
|
106
|
+
}
|
|
96
107
|
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(bt=null===(vt=window.safari)||void 0===vt?void 0:vt.pushNotification)||void 0===bt||bt.toString());
|
|
97
108
|
/**
|
|
98
109
|
* @license
|
|
99
110
|
* Copyright 2017 Google LLC
|
|
100
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
112
|
*/
|
|
102
|
-
const
|
|
113
|
+
const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
103
114
|
/**
|
|
104
115
|
* @license
|
|
105
116
|
* Copyright 2018 Google LLC
|
|
106
117
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
107
|
-
*/const kt=Ot(class extends St{constructor(t){var e;if(super(t),t.type
|
|
118
|
+
*/const kt=Ot(class extends St{constructor(t){var e;if(super(t),t.type!==wt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return V}}),{I:Et}=at,Nt=()=>document.createComment(""),Ct=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Nt(),n),o=s.insertBefore(Nt(),n);i=new Et(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Mt=(t,e,i=t)=>(t._$AI(e,i),t),Rt={},Ut=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},zt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},jt=Ot(class extends St{constructor(t){if(super(t),t.type!==$t)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.ht(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],p=[];let c,h,f=0,d=n.length-1,u=0,y=r.length-1;for(;f<=d&&u<=y;)if(null===n[f])f++;else if(null===n[d])d--;else if(a[f]===l[u])p[u]=Mt(n[f],r[u]),f++,u++;else if(a[d]===l[y])p[y]=Mt(n[d],r[y]),d--,y--;else if(a[f]===l[y])p[y]=Mt(n[f],r[y]),Ct(t,p[y+1],n[f]),f++,y--;else if(a[d]===l[u])p[u]=Mt(n[d],r[u]),Ct(t,n[f],n[d]),d--,u++;else if(void 0===c&&(c=zt(l,u,y),h=zt(a,f,d)),c.has(a[f]))if(c.has(a[d])){const e=h.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Ct(t,n[f]);Mt(e,r[u]),p[u]=e}else p[u]=Mt(i,r[u]),Ct(t,n[f],i),n[e]=null;u++}else Ut(n[d]),d--;else Ut(n[f]),f++;for(;u<=y;){const e=Ct(t,p[y+1]);Mt(e,r[u]),p[u++]=e}for(;f<=d;){const t=n[f++];null!==t&&Ut(t)}return this.ut=l,((t,e=Rt)=>{t._$AH=e})(t,p),V}}),Ft=Symbol.for(""),At=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void 0:t._$litStatic$},Bt=t=>({_$litStatic$:t,r:Ft}),Dt=new Map,Pt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=At(n));)a+=s+e[++p],c=!0;l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Dt.get(t))&&(r.raw=r,Dt.set(t,e=r)),i=l}return t(e,...i)})(Z);
|
|
108
119
|
/**
|
|
109
120
|
* @license
|
|
110
121
|
* Copyright 2020 Google LLC
|
|
111
122
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
|
-
*/var Lt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Lt||(Lt={}));const _t=ut.extend("--ft-typography-font-family",xt.titleFont),Tt=ut.extend("--ft-typography-font-family",xt.contentFont),It={fontFamily:Tt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=ut.extend("--ft-typography-title-font-family",_t),Ht=ut.extend("--ft-typography-title-font-size",It.fontSize,"20px"),Kt=ut.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),Zt=ut.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),Vt=ut.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),Jt=ut.extend("--ft-typography-title-text-transform",It.textTransform,"inherit"),qt=ut.extend("--ft-typography-title-dense-font-family",_t),Xt=ut.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),Yt=ut.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Gt=ut.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Qt=ut.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),te=ut.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),ee=ut.extend("--ft-typography-subtitle1-font-family",Tt),ie=ut.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),oe=ut.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),se=ut.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),ne=ut.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),re=ut.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),le=ut.extend("--ft-typography-subtitle2-font-family",Tt),ae=ut.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),pe=ut.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),ce=ut.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),he=ut.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),fe=ut.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),de={fontFamily:ut.extend("--ft-typography-body1-font-family",Tt),fontSize:ut.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),fontWeight:ut.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),lineHeight:ut.extend("--ft-typography-body1-line-height",It.lineHeight,"1.5"),textTransform:ut.extend("--ft-typography-body1-text-transform",It.textTransform,"inherit")},ue=ut.extend("--ft-typography-body2-font-family",Tt),ye=ut.extend("--ft-typography-body2-font-size",It.fontSize,"14px"),xe=ut.extend("--ft-typography-body2-font-weight",It.fontWeight,"normal"),ve=ut.extend("--ft-typography-body2-letter-spacing",It.letterSpacing,"0.252px"),be=ut.extend("--ft-typography-body2-line-height",It.lineHeight,"1.4"),ge=ut.extend("--ft-typography-body2-text-transform",It.textTransform,"inherit"),me={fontFamily:ut.extend("--ft-typography-caption-font-family",Tt),fontSize:ut.extend("--ft-typography-caption-font-size",It.fontSize,"12px"),fontWeight:ut.extend("--ft-typography-caption-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-caption-letter-spacing",It.letterSpacing,"0.396px"),lineHeight:ut.extend("--ft-typography-caption-line-height",It.lineHeight,"1.33"),textTransform:ut.extend("--ft-typography-caption-text-transform",It.textTransform,"inherit")}
|
|
123
|
+
*/var Lt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Lt||(Lt={}));const _t=ut.extend("--ft-typography-font-family",xt.titleFont),Tt=ut.extend("--ft-typography-font-family",xt.contentFont),It={fontFamily:Tt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=ut.extend("--ft-typography-title-font-family",_t),Ht=ut.extend("--ft-typography-title-font-size",It.fontSize,"20px"),Kt=ut.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),Zt=ut.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),Vt=ut.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),Jt=ut.extend("--ft-typography-title-text-transform",It.textTransform,"inherit"),qt=ut.extend("--ft-typography-title-dense-font-family",_t),Xt=ut.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),Yt=ut.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Gt=ut.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Qt=ut.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),te=ut.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),ee=ut.extend("--ft-typography-subtitle1-font-family",Tt),ie=ut.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),oe=ut.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),se=ut.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),ne=ut.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),re=ut.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),le=ut.extend("--ft-typography-subtitle2-font-family",Tt),ae=ut.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),pe=ut.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),ce=ut.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),he=ut.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),fe=ut.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),de={fontFamily:ut.extend("--ft-typography-body1-font-family",Tt),fontSize:ut.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),fontWeight:ut.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),lineHeight:ut.extend("--ft-typography-body1-line-height",It.lineHeight,"1.5"),textTransform:ut.extend("--ft-typography-body1-text-transform",It.textTransform,"inherit")},ue=ut.extend("--ft-typography-body2-font-family",Tt),ye=ut.extend("--ft-typography-body2-font-size",It.fontSize,"14px"),xe=ut.extend("--ft-typography-body2-font-weight",It.fontWeight,"normal"),ve=ut.extend("--ft-typography-body2-letter-spacing",It.letterSpacing,"0.252px"),be=ut.extend("--ft-typography-body2-line-height",It.lineHeight,"1.4"),ge=ut.extend("--ft-typography-body2-text-transform",It.textTransform,"inherit"),me={fontFamily:ut.extend("--ft-typography-caption-font-family",Tt),fontSize:ut.extend("--ft-typography-caption-font-size",It.fontSize,"12px"),fontWeight:ut.extend("--ft-typography-caption-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-caption-letter-spacing",It.letterSpacing,"0.396px"),lineHeight:ut.extend("--ft-typography-caption-line-height",It.lineHeight,"1.33"),textTransform:ut.extend("--ft-typography-caption-text-transform",It.textTransform,"inherit")},we=ut.extend("--ft-typography-breadcrumb-font-family",Tt),$e=ut.extend("--ft-typography-breadcrumb-font-size",It.fontSize,"10px"),Oe=ut.extend("--ft-typography-breadcrumb-font-weight",It.fontWeight,"normal"),Se=ut.extend("--ft-typography-breadcrumb-letter-spacing",It.letterSpacing,"0.33px"),ke=ut.extend("--ft-typography-breadcrumb-line-height",It.lineHeight,"1.6"),Ee=ut.extend("--ft-typography-breadcrumb-text-transform",It.textTransform,"inherit"),Ne=ut.extend("--ft-typography-overline-font-family",Tt),Ce=ut.extend("--ft-typography-overline-font-size",It.fontSize,"10px"),Me=ut.extend("--ft-typography-overline-font-weight",It.fontWeight,"normal"),Re=ut.extend("--ft-typography-overline-letter-spacing",It.letterSpacing,"1.5px"),Ue=ut.extend("--ft-typography-overline-line-height",It.lineHeight,"1.6"),ze=ut.extend("--ft-typography-overline-text-transform",It.textTransform,"uppercase"),je=ut.extend("--ft-typography-button-font-family",Tt),Fe=ut.extend("--ft-typography-button-font-size",It.fontSize,"14px"),Ae=ut.extend("--ft-typography-button-font-weight",It.fontWeight,"600"),Be=ut.extend("--ft-typography-button-letter-spacing",It.letterSpacing,"1.246px"),De=ut.extend("--ft-typography-button-line-height",It.lineHeight,"1.15"),Pe=ut.extend("--ft-typography-button-text-transform",It.textTransform,"uppercase"),Le=y`
|
|
113
124
|
.ft-typography--title {
|
|
114
125
|
font-family: ${Wt};
|
|
115
126
|
font-size: ${Ht};
|
|
@@ -175,8 +186,8 @@ const $t=1,wt=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
|
|
|
175
186
|
}
|
|
176
187
|
`,Ze=y`
|
|
177
188
|
.ft-typography--breadcrumb {
|
|
178
|
-
font-family: ${
|
|
179
|
-
font-size: ${
|
|
189
|
+
font-family: ${we};
|
|
190
|
+
font-size: ${$e};
|
|
180
191
|
font-weight: ${Oe};
|
|
181
192
|
letter-spacing: ${Se};
|
|
182
193
|
line-height: ${ke};
|
|
@@ -431,7 +442,7 @@ const $t=1,wt=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
|
|
|
431
442
|
opacity: ${oi.opacityContentOnSurfacePressed};
|
|
432
443
|
transform: translate(-50%, -50%) scale(1);
|
|
433
444
|
}
|
|
434
|
-
`;var hi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class fi extends mt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Z`
|
|
445
|
+
`;var hi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class fi extends mt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Z`
|
|
435
446
|
<style>
|
|
436
447
|
.ft-ripple .ft-ripple--effect,
|
|
437
448
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -448,13 +459,13 @@ const $t=1,wt=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
|
|
|
448
459
|
<div class="ft-ripple--background"></div>
|
|
449
460
|
<div class="ft-ripple--effect"></div>
|
|
450
461
|
</div>
|
|
451
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){
|
|
462
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}fi.elementDefinitions={},fi.styles=ci,hi([o({type:Boolean})],fi.prototype,"primary",void 0),hi([o({type:Boolean})],fi.prototype,"secondary",void 0),hi([o({type:Boolean})],fi.prototype,"unbounded",void 0),hi([o({type:Boolean})],fi.prototype,"activated",void 0),hi([o({type:Boolean})],fi.prototype,"selected",void 0),hi([o({type:Boolean})],fi.prototype,"disabled",void 0),hi([s()],fi.prototype,"hovered",void 0),hi([s()],fi.prototype,"focused",void 0),hi([s()],fi.prototype,"pressed",void 0),hi([s()],fi.prototype,"rippling",void 0),hi([s()],fi.prototype,"rippleSize",void 0),hi([s()],fi.prototype,"originX",void 0),hi([s()],fi.prototype,"originY",void 0),hi([n(".ft-ripple")],fi.prototype,"ripple",void 0),hi([n(".ft-ripple--effect")],fi.prototype,"rippleEffect",void 0),l("ft-ripple")(fi);
|
|
452
463
|
/**
|
|
453
464
|
* @license
|
|
454
465
|
* Copyright 2017 Google LLC
|
|
455
466
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
456
467
|
*/
|
|
457
|
-
class di extends St{constructor(t){if(super(t),this.it=J,t.type
|
|
468
|
+
class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}di.directiveName="unsafeHTML",di.resultType=1;const ui=Ot(di);var yi,xi;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",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.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",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=""}(yi||(yi={})),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=""}(xi||(xi={})),new Map([...["abw"].map((t=>[t,xi.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,xi.AUDIO])),...["avi"].map((t=>[t,xi.AVI])),...["chm","xhs"].map((t=>[t,xi.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,xi.CODE])),...["csv"].map((t=>[t,xi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xi.DITA])),...["epub"].map((t=>[t,xi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xi.EXCEL])),...["flac"].map((t=>[t,xi.FLAC])),...["gif"].map((t=>[t,xi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xi.GZIP])),...["html","htm","xhtml"].map((t=>[t,xi.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,xi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xi.JPEG])),...["json"].map((t=>[t,xi.JSON])),...["m4a","m4p"].map((t=>[t,xi.M4A])),...["mov","qt"].map((t=>[t,xi.MOV])),...["mp3"].map((t=>[t,xi.MP3])),...["mp4","m4v"].map((t=>[t,xi.MP4])),...["ogg","oga"].map((t=>[t,xi.OGG])),...["pdf","ps"].map((t=>[t,xi.PDF])),...["png"].map((t=>[t,xi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xi.POWERPOINT])),...["rar"].map((t=>[t,xi.RAR])),...["stp"].map((t=>[t,xi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xi.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,xi.VIDEO])),...["wav"].map((t=>[t,xi.WAV])),...["wma"].map((t=>[t,xi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xi.WORD])),...["xml","xsl","rdf"].map((t=>[t,xi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xi.YAML])),...["zip"].map((t=>[t,xi.ZIP]))]);const vi=ut.create("--ft-icon-font-size","SIZE","24px"),bi=ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),gi=ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),mi=ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),wi=ut.create("--ft-icon-vertical-align","UNKNOWN","unset"),$i=y`
|
|
458
469
|
:host, i.ft-icon {
|
|
459
470
|
display: inline-flex;
|
|
460
471
|
align-items: center;
|
|
@@ -481,7 +492,7 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
|
|
|
481
492
|
text-rendering: auto;
|
|
482
493
|
-webkit-font-smoothing: antialiased;
|
|
483
494
|
-moz-osx-font-smoothing: grayscale;
|
|
484
|
-
vertical-align: ${
|
|
495
|
+
vertical-align: ${wi};
|
|
485
496
|
}
|
|
486
497
|
|
|
487
498
|
i.ft-icon.ft-icon--fluid-topics {
|
|
@@ -506,7 +517,7 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
|
|
|
506
517
|
${ui(this.resolvedIcon)}
|
|
507
518
|
<slot ?hidden=${t}></slot>
|
|
508
519
|
</i>
|
|
509
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Oi.file_format:this.resolvedIcon=null!==(t=xi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Oi.fluid_topics:this.resolvedIcon=null!==(e=yi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ki.elementDefinitions={},ki.styles
|
|
520
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Oi.file_format:this.resolvedIcon=null!==(t=xi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Oi.fluid_topics:this.resolvedIcon=null!==(e=yi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ki.elementDefinitions={},ki.styles=$i,Si([o()],ki.prototype,"variant",void 0),Si([o()],ki.prototype,"value",void 0),Si([s()],ki.prototype,"resolvedIcon",void 0),Si([n("slot")],ki.prototype,"slottedContent",void 0),l("ft-icon")(ki);const Ei={labelSize:ut.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ut.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ut.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:ut.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:ut.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:ut.extend("--ft-select-selected-option-color",xt.colorOnSurface),helperColor:ut.extend("--ft-select-helper-color",xt.colorOnSurfaceMedium),optionsColor:ut.extend("--ft-select-options-color",xt.colorOnSurface),optionsZIndex:ut.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ut.external(xt.colorSurface,"Design system"),colorOnSurfaceDisabled:ut.external(xt.colorOnSurfaceDisabled,"Design system"),colorPrimary:ut.external(xt.colorPrimary,"Design system"),borderRadiusS:ut.external(xt.borderRadiusS,"Design system"),elevation02:ut.external(xt.elevation02,"Design system"),colorError:ut.external(xt.colorError,"Design system")},Ni=y`
|
|
510
521
|
*:focus {
|
|
511
522
|
outline: none;
|
|
512
523
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-select",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.56",
|
|
4
4
|
"description": "Value selector for a predefined list of choices",
|
|
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": "0.3.
|
|
23
|
-
"@fluid-topics/ft-input-label": "0.3.
|
|
24
|
-
"@fluid-topics/ft-ripple": "0.3.
|
|
25
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.56",
|
|
23
|
+
"@fluid-topics/ft-input-label": "0.3.56",
|
|
24
|
+
"@fluid-topics/ft-ripple": "0.3.56",
|
|
25
|
+
"@fluid-topics/ft-typography": "0.3.56",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "0.3.56",
|
|
27
27
|
"lit": "2.2.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "e86edee2b2660d806320bacca5c5156bb94ca2d6"
|
|
30
30
|
}
|