@fluid-topics/ft-search-input 0.3.70 → 1.0.0-alpha.0
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/SearchInputMessages.d.ts +0 -1
- package/build/SearchInputMessages.js +0 -1
- package/build/ft-search-input-suggestion.css.d.ts +0 -1
- package/build/ft-search-input-suggestion.css.js +0 -1
- package/build/ft-search-input-suggestion.d.ts +0 -1
- package/build/ft-search-input-suggestion.js +1 -4
- package/build/ft-search-input-suggestion.properties.d.ts +0 -1
- package/build/ft-search-input-suggestion.properties.js +0 -1
- package/build/ft-search-input.css.d.ts +0 -1
- package/build/ft-search-input.css.js +0 -1
- package/build/ft-search-input.d.ts +0 -1
- package/build/ft-search-input.js +2 -2
- package/build/ft-search-input.light.js +172 -170
- package/build/ft-search-input.min.js +207 -215
- package/build/ft-search-input.properties.d.ts +0 -1
- package/build/ft-search-input.properties.js +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/package.json +10 -10
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
opacity: ${l.opacityContentOnSurfacePressed};
|
|
88
88
|
transform: translate(-50%, -50%) scale(1);
|
|
89
89
|
}
|
|
90
|
-
`;var x,v=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class
|
|
90
|
+
`;var x,v=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class b extends i.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 i.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 i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{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 e.html`
|
|
91
91
|
<style>
|
|
92
92
|
.ft-ripple .ft-ripple--effect,
|
|
93
93
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -104,115 +104,115 @@
|
|
|
104
104
|
<div class="ft-ripple--background"></div>
|
|
105
105
|
<div class="ft-ripple--effect"></div>
|
|
106
106
|
</div>
|
|
107
|
-
`}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 i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),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",e),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 i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}y.elementDefinitions={},y.styles=g,v([o.property({type:Boolean})],y.prototype,"primary",void 0),v([o.property({type:Boolean})],y.prototype,"secondary",void 0),v([o.property({type:Boolean})],y.prototype,"unbounded",void 0),v([o.property({type:Boolean})],y.prototype,"activated",void 0),v([o.property({type:Boolean})],y.prototype,"selected",void 0),v([o.property({type:Boolean})],y.prototype,"disabled",void 0),v([o.state()],y.prototype,"hovered",void 0),v([o.state()],y.prototype,"focused",void 0),v([o.state()],y.prototype,"pressed",void 0),v([o.state()],y.prototype,"rippling",void 0),v([o.state()],y.prototype,"rippleSize",void 0),v([o.state()],y.prototype,"originX",void 0),v([o.state()],y.prototype,"originY",void 0),v([o.query(".ft-ripple")],y.prototype,"ripple",void 0),v([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const b=window,m=b.trustedTypes,$=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,k="?"+w,S=`<${k}>`,C=document,z=(t="")=>C.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,U=/>/g,N=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),M=/'/g,A=/"/g,B=/^(?:script|style|textarea|title)$/i,T=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),F=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),R=new WeakMap,P=C.createTreeWalker(C,129,null,!1),Z=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=I;for(let i=0;i<e;i++){const e=t[i];let a,l,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,l=r.exec(e),null!==l);)h=r.lastIndex,r===I?"!--"===l[1]?r=j:void 0!==l[1]?r=U:void 0!==l[2]?(B.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=N):void 0!==l[3]&&(r=N):r===N?">"===l[0]?(r=null!=s?s:I,p=-1):void 0===l[1]?p=-2:(p=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?N:'"'===l[3]?A:M):r===A||r===M?r=N:r===j||r===U?r=I:(r=N,s=void 0);const c=r===N&&t[i+1].startsWith("/>")?" ":"";n+=r===I?e+S:p>=0?(o.push(a),e.slice(0,p)+"$lit$"+e.slice(p)+w+c):e+w+(-2===p?(o.push(void 0),i):c)}const a=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class _{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,p]=Z(t,i);if(this.el=_.createElement(l,e),P.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=P.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(w)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(w),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?H:"?"===i[1]?Q:"@"===i[1]?V:G})}else a.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(B.test(o.tagName)){const t=o.textContent.split(w),i=t.length-1;if(i>0){o.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],z()),P.nextNode(),a.push({type:2,index:++s});o.append(t[i],z())}}}else if(8===o.nodeType)if(o.data===k)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)a.push({type:7,index:s}),t+=w.length-1}s++}}static createElement(t,i){const e=C.createElement("template");return e.innerHTML=t,e}}function L(t,i,e=t,o){var s,n,r,a;if(i===F)return i;let l=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const p=O(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=L(t,l._$AS(t,i.values),l,o)),i}class K{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:C).importNode(e,!0);P.currentNode=s;let n=P.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new W(n,n.nextSibling,this,t):1===l.type?i=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(i=new X(n,this,t)),this.u.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=P.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class W{constructor(t,i,e,o){var s;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=L(this,t,i),O(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==F&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>E(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==D&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(C.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=_.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new K(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=R.get(t.strings);return void 0===i&&R.set(t.strings,i=new _(t)),i}k(t){E(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new W(this.O(z()),this.O(z()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,s){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=L(this,t,i,0),n=!O(t)||t!==this._$AH&&t!==F,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=L(this,o[e+r],i,r),a===F&&(a=this._$AH[r]),n||(n=!O(a)||a!==this._$AH[r]),a===D?t=D:t!==D&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}const q=m?m.emptyScript:"";class Q extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==D?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class V extends G{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=L(this,t,i,0))&&void 0!==e?e:D)===F)return;const o=this._$AH,s=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==D&&(o===D||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}}const Y=b.litHtmlPolyfillSupport;null==Y||Y(_,W),(null!==(x=b.litHtmlVersions)&&void 0!==x?x:b.litHtmlVersions=[]).push("2.4.0");
|
|
107
|
+
`}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 i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),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",e),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 i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}b.elementDefinitions={},b.styles=g,v([o.property({type:Boolean})],b.prototype,"primary",void 0),v([o.property({type:Boolean})],b.prototype,"secondary",void 0),v([o.property({type:Boolean})],b.prototype,"unbounded",void 0),v([o.property({type:Boolean})],b.prototype,"activated",void 0),v([o.property({type:Boolean})],b.prototype,"selected",void 0),v([o.property({type:Boolean})],b.prototype,"disabled",void 0),v([o.state()],b.prototype,"hovered",void 0),v([o.state()],b.prototype,"focused",void 0),v([o.state()],b.prototype,"pressed",void 0),v([o.state()],b.prototype,"rippling",void 0),v([o.state()],b.prototype,"rippleSize",void 0),v([o.state()],b.prototype,"originX",void 0),v([o.state()],b.prototype,"originY",void 0),v([o.query(".ft-ripple")],b.prototype,"ripple",void 0),v([o.query(".ft-ripple--effect")],b.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(b);const y=window,m=y.trustedTypes,$=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,S="?"+k,C=`<${S}>`,z=document,O=()=>z.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,j="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,M=/>/g,A=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),B=/'/g,T=/"/g,F=/^(?:script|style|textarea|title)$/i,D=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),R=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),Z=new WeakMap,L=z.createTreeWalker(z,129,null,!1),_=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=U;for(let i=0;i<e;i++){const e=t[i];let a,l,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,l=r.exec(e),null!==l);)h=r.lastIndex,r===U?"!--"===l[1]?r=N:void 0!==l[1]?r=M:void 0!==l[2]?(F.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=A):void 0!==l[3]&&(r=A):r===A?">"===l[0]?(r=null!=s?s:U,p=-1):void 0===l[1]?p=-2:(p=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?A:'"'===l[3]?T:B):r===T||r===B?r=A:r===N||r===M?r=U:(r=A,s=void 0);const c=r===A&&t[i+1].startsWith("/>")?" ":"";n+=r===U?e+C:p>=0?(o.push(a),e.slice(0,p)+w+e.slice(p)+k+c):e+k+(-2===p?(o.push(void 0),i):c)}const a=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class K{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,p]=_(t,i);if(this.el=K.createElement(l,e),L.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=L.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(w)||i.startsWith(k)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+w).split(k),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?Q:"?"===i[1]?X:"@"===i[1]?Y:q})}else a.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split(k),i=t.length-1;if(i>0){o.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],O()),L.nextNode(),a.push({type:2,index:++s});o.append(t[i],O())}}}else if(8===o.nodeType)if(o.data===S)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(k,t+1));)a.push({type:7,index:s}),t+=k.length-1}s++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function W(t,i,e=t,o){var s,n,r,a;if(i===R)return i;let l=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const p=E(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=W(t,l._$AS(t,i.values),l,o)),i}class G{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);L.currentNode=s;let n=L.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new H(n,n.nextSibling,this,t):1===l.type?i=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(i=new J(n,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=L.nextNode(),r++)}return s}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class H{constructor(t,i,e,o){var s;this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=W(this,t,i),E(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==R&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>I(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==P&&E(this._$AH)?this._$AA.nextSibling.data=t:this.$(z.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(e);else{const t=new G(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=Z.get(t.strings);return void 0===i&&Z.set(t.strings,i=new K(t)),i}T(t){I(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new H(this.k(O()),this.k(O()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class q{constructor(t,i,e,o,s){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=W(this,t,i,0),n=!E(t)||t!==this._$AH&&t!==R,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=W(this,o[e+r],i,r),a===R&&(a=this._$AH[r]),n||(n=!E(a)||a!==this._$AH[r]),a===P?t=P:t!==P&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}const V=m?m.emptyScript:"";class X extends q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==P?this.element.setAttribute(this.name,V):this.element.removeAttribute(this.name)}}class Y extends q{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=W(this,t,i,0))&&void 0!==e?e:P)===R)return;const o=this._$AH,s=t===P&&o!==P||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==P&&(o===P||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){W(this,t)}}const tt=y.litHtmlPolyfillSupport;null==tt||tt(K,H),(null!==(x=y.litHtmlVersions)&&void 0!==x?x:y.litHtmlVersions=[]).push("2.7.3");
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright 2020 Google LLC
|
|
111
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
112
|
*/
|
|
113
|
-
const
|
|
113
|
+
const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void 0:t._$litStatic$},ot=t=>({_$litStatic$:t,r:it}),st=new Map,nt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(n=e[p],s=et(n));)l+=s+i[++p],h=!0;p!==o&&a.push(n),r.push(l),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=st.get(t))&&(r.raw=r,st.set(t,i=r)),e=a}return t(i,...e)})(D);var rt;!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"}(rt||(rt={}));const at=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),pt={fontFamily:lt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",at),ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",pt.fontSize,"20px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",pt.fontWeight,"normal"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",pt.letterSpacing,"0.15px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",pt.lineHeight,"1.2"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",pt.textTransform,"inherit"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",at),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",pt.fontSize,"14px"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",pt.fontWeight,"normal"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",pt.letterSpacing,"0.105px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",pt.lineHeight,"1.7"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",pt.textTransform,"inherit"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",lt),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",pt.fontSize,"16px"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",pt.fontWeight,"600"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",pt.letterSpacing,"0.144px"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",pt.lineHeight,"1.5"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",pt.textTransform,"inherit"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",lt),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",pt.fontSize,"14px"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",pt.fontWeight,"normal"),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",pt.letterSpacing,"0.098px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",pt.lineHeight,"1.7"),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",pt.textTransform,"inherit"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",lt),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",pt.fontSize,"16px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",pt.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",pt.letterSpacing,"0.496px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",pt.lineHeight,"1.5"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",pt.textTransform,"inherit"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",lt),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",pt.fontSize,"14px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",pt.fontWeight,"normal"),_t=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",pt.letterSpacing,"0.252px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",pt.lineHeight,"1.4"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",pt.textTransform,"inherit"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",lt),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",pt.fontSize,"12px"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",pt.fontWeight,"normal"),Qt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",pt.letterSpacing,"0.396px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",pt.lineHeight,"1.33"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",pt.textTransform,"inherit"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",lt),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",pt.fontSize,"10px"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",pt.fontWeight,"normal"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",pt.letterSpacing,"0.33px"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",pt.lineHeight,"1.6"),oi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",pt.textTransform,"inherit"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",lt),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",pt.fontSize,"10px"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",pt.fontWeight,"normal"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",pt.letterSpacing,"1.5px"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",pt.lineHeight,"1.6"),pi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",pt.textTransform,"uppercase"),hi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",pt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",pt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",pt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",pt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",pt.textTransform,"uppercase")},ci=e.css`
|
|
114
114
|
.ft-typography--title {
|
|
115
|
-
font-family: ${
|
|
116
|
-
font-size: ${
|
|
117
|
-
font-weight: ${
|
|
118
|
-
letter-spacing: ${
|
|
119
|
-
line-height: ${
|
|
120
|
-
text-transform: ${
|
|
121
|
-
}
|
|
122
|
-
`,
|
|
115
|
+
font-family: ${ht};
|
|
116
|
+
font-size: ${ct};
|
|
117
|
+
font-weight: ${ft};
|
|
118
|
+
letter-spacing: ${dt};
|
|
119
|
+
line-height: ${ut};
|
|
120
|
+
text-transform: ${gt};
|
|
121
|
+
}
|
|
122
|
+
`,fi=e.css`
|
|
123
123
|
.ft-typography--title-dense {
|
|
124
|
-
font-family: ${
|
|
125
|
-
font-size: ${
|
|
126
|
-
font-weight: ${
|
|
127
|
-
letter-spacing: ${
|
|
128
|
-
line-height: ${
|
|
129
|
-
text-transform: ${
|
|
130
|
-
}
|
|
131
|
-
`,
|
|
124
|
+
font-family: ${xt};
|
|
125
|
+
font-size: ${vt};
|
|
126
|
+
font-weight: ${bt};
|
|
127
|
+
letter-spacing: ${yt};
|
|
128
|
+
line-height: ${mt};
|
|
129
|
+
text-transform: ${$t};
|
|
130
|
+
}
|
|
131
|
+
`,di=e.css`
|
|
132
132
|
.ft-typography--subtitle1 {
|
|
133
|
-
font-family: ${
|
|
134
|
-
font-size: ${
|
|
135
|
-
font-weight: ${
|
|
136
|
-
letter-spacing: ${
|
|
137
|
-
line-height: ${
|
|
138
|
-
text-transform: ${
|
|
133
|
+
font-family: ${wt};
|
|
134
|
+
font-size: ${kt};
|
|
135
|
+
font-weight: ${St};
|
|
136
|
+
letter-spacing: ${Ct};
|
|
137
|
+
line-height: ${zt};
|
|
138
|
+
text-transform: ${Ot};
|
|
139
139
|
}
|
|
140
|
-
`,
|
|
140
|
+
`,ui=e.css`
|
|
141
141
|
.ft-typography--subtitle2 {
|
|
142
|
-
font-family: ${
|
|
143
|
-
font-size: ${
|
|
144
|
-
font-weight: ${
|
|
145
|
-
letter-spacing: ${
|
|
146
|
-
line-height: ${
|
|
147
|
-
text-transform: ${
|
|
142
|
+
font-family: ${Et};
|
|
143
|
+
font-size: ${It};
|
|
144
|
+
font-weight: ${jt};
|
|
145
|
+
letter-spacing: ${Ut};
|
|
146
|
+
line-height: ${Nt};
|
|
147
|
+
text-transform: ${Mt};
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
`,
|
|
150
|
+
`,gi=e.css`
|
|
151
151
|
.ft-typography--body1 {
|
|
152
|
-
font-family: ${
|
|
153
|
-
font-size: ${
|
|
154
|
-
font-weight: ${
|
|
155
|
-
letter-spacing: ${
|
|
156
|
-
line-height: ${
|
|
157
|
-
text-transform: ${
|
|
152
|
+
font-family: ${At};
|
|
153
|
+
font-size: ${Bt};
|
|
154
|
+
font-weight: ${Tt};
|
|
155
|
+
letter-spacing: ${Ft};
|
|
156
|
+
line-height: ${Dt};
|
|
157
|
+
text-transform: ${Rt};
|
|
158
158
|
}
|
|
159
|
-
`,
|
|
159
|
+
`,xi=e.css`
|
|
160
160
|
.ft-typography--body2 {
|
|
161
|
-
font-family: ${
|
|
162
|
-
font-size: ${
|
|
163
|
-
font-weight: ${
|
|
164
|
-
letter-spacing: ${
|
|
165
|
-
line-height: ${
|
|
166
|
-
text-transform: ${
|
|
161
|
+
font-family: ${Pt};
|
|
162
|
+
font-size: ${Zt};
|
|
163
|
+
font-weight: ${Lt};
|
|
164
|
+
letter-spacing: ${_t};
|
|
165
|
+
line-height: ${Kt};
|
|
166
|
+
text-transform: ${Wt};
|
|
167
167
|
}
|
|
168
|
-
`,
|
|
168
|
+
`,vi=e.css`
|
|
169
169
|
.ft-typography--caption {
|
|
170
|
-
font-family: ${
|
|
171
|
-
font-size: ${
|
|
172
|
-
font-weight: ${
|
|
173
|
-
letter-spacing: ${
|
|
174
|
-
line-height: ${
|
|
175
|
-
text-transform: ${
|
|
170
|
+
font-family: ${Gt};
|
|
171
|
+
font-size: ${Ht};
|
|
172
|
+
font-weight: ${qt};
|
|
173
|
+
letter-spacing: ${Qt};
|
|
174
|
+
line-height: ${Vt};
|
|
175
|
+
text-transform: ${Xt};
|
|
176
176
|
}
|
|
177
|
-
`,
|
|
177
|
+
`,bi=e.css`
|
|
178
178
|
.ft-typography--breadcrumb {
|
|
179
|
-
font-family: ${
|
|
180
|
-
font-size: ${
|
|
181
|
-
font-weight: ${
|
|
182
|
-
letter-spacing: ${
|
|
183
|
-
line-height: ${
|
|
184
|
-
text-transform: ${
|
|
185
|
-
}
|
|
186
|
-
`,vi=e.css`
|
|
187
|
-
.ft-typography--overline {
|
|
188
|
-
font-family: ${ei};
|
|
189
|
-
font-size: ${oi};
|
|
190
|
-
font-weight: ${si};
|
|
191
|
-
letter-spacing: ${ni};
|
|
192
|
-
line-height: ${ri};
|
|
193
|
-
text-transform: ${ai};
|
|
179
|
+
font-family: ${Yt};
|
|
180
|
+
font-size: ${Jt};
|
|
181
|
+
font-weight: ${ti};
|
|
182
|
+
letter-spacing: ${ii};
|
|
183
|
+
line-height: ${ei};
|
|
184
|
+
text-transform: ${oi};
|
|
194
185
|
}
|
|
195
186
|
`,yi=e.css`
|
|
187
|
+
.ft-typography--overline {
|
|
188
|
+
font-family: ${si};
|
|
189
|
+
font-size: ${ni};
|
|
190
|
+
font-weight: ${ri};
|
|
191
|
+
letter-spacing: ${ai};
|
|
192
|
+
line-height: ${li};
|
|
193
|
+
text-transform: ${pi};
|
|
194
|
+
}
|
|
195
|
+
`,mi=e.css`
|
|
196
196
|
.ft-typography--button {
|
|
197
|
-
font-family: ${
|
|
198
|
-
font-size: ${
|
|
199
|
-
font-weight: ${
|
|
200
|
-
letter-spacing: ${
|
|
201
|
-
line-height: ${
|
|
202
|
-
text-transform: ${
|
|
203
|
-
}
|
|
204
|
-
|
|
197
|
+
font-family: ${hi.fontFamily};
|
|
198
|
+
font-size: ${hi.fontSize};
|
|
199
|
+
font-weight: ${hi.fontWeight};
|
|
200
|
+
letter-spacing: ${hi.letterSpacing};
|
|
201
|
+
line-height: ${hi.lineHeight};
|
|
202
|
+
text-transform: ${hi.textTransform};
|
|
203
|
+
}
|
|
204
|
+
`,$i=e.css`
|
|
205
205
|
.ft-typography {
|
|
206
206
|
vertical-align: inherit;
|
|
207
207
|
}
|
|
208
|
-
`;var
|
|
209
|
-
<${
|
|
208
|
+
`;var wi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ki extends i.FtLitElement{constructor(){super(...arguments),this.variant=rt.body1}render(){return this.element?nt`
|
|
209
|
+
<${ot(this.element)}
|
|
210
210
|
class="ft-typography ft-typography--${this.variant}">
|
|
211
211
|
<slot></slot>
|
|
212
|
-
</${
|
|
213
|
-
`:
|
|
212
|
+
</${ot(this.element)}>
|
|
213
|
+
`:nt`
|
|
214
214
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
215
|
-
`}}
|
|
215
|
+
`}}ki.styles=[ci,fi,di,ui,gi,xi,vi,bi,yi,mi,$i],wi([o.property()],ki.prototype,"element",void 0),wi([o.property()],ki.prototype,"variant",void 0),i.customElement("ft-typography")(ki);const Si={distance:i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),color:i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),maxWidth:i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px")},Ci=e.css`
|
|
216
216
|
.ft-tooltip--container {
|
|
217
217
|
display: block;
|
|
218
218
|
position: relative;
|
|
@@ -228,23 +228,23 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
228
228
|
box-sizing: border-box;
|
|
229
229
|
overflow: hidden;
|
|
230
230
|
width: max-content;
|
|
231
|
-
max-width: ${
|
|
231
|
+
max-width: ${Si.maxWidth};
|
|
232
232
|
text-align: center;
|
|
233
|
-
padding: ${
|
|
234
|
-
z-index: ${
|
|
233
|
+
padding: ${Si.distance};
|
|
234
|
+
z-index: ${Si.zIndex};
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
.ft-tooltip--content {
|
|
238
238
|
padding: 4px 8px;
|
|
239
|
-
border-radius: ${
|
|
240
|
-
background-color: ${
|
|
241
|
-
color: ${
|
|
239
|
+
border-radius: ${Si.borderRadiusS};
|
|
240
|
+
background-color: ${Si.backgroundColor};
|
|
241
|
+
color: ${Si.color};
|
|
242
242
|
top: -500px;
|
|
243
243
|
left: -500px;
|
|
244
244
|
position: relative;
|
|
245
245
|
word-break: break-word;
|
|
246
246
|
}
|
|
247
|
-
`;var
|
|
247
|
+
`;var zi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Oi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
248
248
|
<div part="container"
|
|
249
249
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
250
250
|
@mouseenter=${this.onHover}
|
|
@@ -262,7 +262,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
262
262
|
</div>
|
|
263
263
|
</div>
|
|
264
264
|
</div>
|
|
265
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${
|
|
265
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${Si.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Oi.elementDefinitions={"ft-typography":ki},Oi.styles=Ci,zi([o.property()],Oi.prototype,"text",void 0),zi([o.property({type:Boolean})],Oi.prototype,"manual",void 0),zi([o.property({type:Boolean})],Oi.prototype,"inline",void 0),zi([o.property({type:Number})],Oi.prototype,"delay",void 0),zi([o.property()],Oi.prototype,"position",void 0),zi([o.queryAssignedNodes("",!0)],Oi.prototype,"slotNodes",void 0),zi([o.query(".ft-tooltip--container")],Oi.prototype,"container",void 0),zi([o.query("slot")],Oi.prototype,"target",void 0),zi([o.query(".ft-tooltip")],Oi.prototype,"tooltip",void 0),zi([o.query(".ft-tooltip--content")],Oi.prototype,"tooltipContent",void 0),zi([o.state()],Oi.prototype,"visible",void 0),i.customElement("ft-tooltip")(Oi);const Ei={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ii=e.css`
|
|
266
266
|
:host {
|
|
267
267
|
line-height: 0;
|
|
268
268
|
}
|
|
@@ -271,8 +271,8 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
271
271
|
display: inline-block;
|
|
272
272
|
position: relative;
|
|
273
273
|
|
|
274
|
-
width: ${
|
|
275
|
-
height: ${
|
|
274
|
+
width: ${Ei.size};
|
|
275
|
+
height: ${Ei.size};
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
.ft-loader div {
|
|
@@ -281,7 +281,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
281
281
|
width: 25%;
|
|
282
282
|
height: 25%;
|
|
283
283
|
border-radius: 50%;
|
|
284
|
-
background: ${
|
|
284
|
+
background: ${Ei.color};
|
|
285
285
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
286
286
|
}
|
|
287
287
|
|
|
@@ -328,17 +328,17 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
328
328
|
transform: translate(0, 0);
|
|
329
329
|
}
|
|
330
330
|
100% {
|
|
331
|
-
transform: translate(calc(0.35 * ${
|
|
331
|
+
transform: translate(calc(0.35 * ${Ei.size}), 0);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
`;class
|
|
334
|
+
`;class ji extends i.FtLitElement{render(){return e.html`
|
|
335
335
|
<div class="ft-loader">
|
|
336
336
|
<div></div>
|
|
337
337
|
<div></div>
|
|
338
338
|
<div></div>
|
|
339
339
|
<div></div>
|
|
340
340
|
</div>
|
|
341
|
-
`}}var
|
|
341
|
+
`}}var Ui,Ni;ji.styles=Ii,i.customElement("ft-loader")(ji),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=""}(Ui||(Ui={})),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=""}(Ni||(Ni={}));const Mi=new Map([...["abw"].map((t=>[t,Ni.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,Ni.AUDIO])),...["avi"].map((t=>[t,Ni.AVI])),...["chm","xhs"].map((t=>[t,Ni.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,Ni.CODE])),...["csv"].map((t=>[t,Ni.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ni.DITA])),...["epub"].map((t=>[t,Ni.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ni.EXCEL])),...["flac"].map((t=>[t,Ni.FLAC])),...["gif"].map((t=>[t,Ni.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ni.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ni.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,Ni.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ni.JPEG])),...["json"].map((t=>[t,Ni.JSON])),...["m4a","m4p"].map((t=>[t,Ni.M4A])),...["mov","qt"].map((t=>[t,Ni.MOV])),...["mp3"].map((t=>[t,Ni.MP3])),...["mp4","m4v"].map((t=>[t,Ni.MP4])),...["ogg","oga"].map((t=>[t,Ni.OGG])),...["pdf","ps"].map((t=>[t,Ni.PDF])),...["png"].map((t=>[t,Ni.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ni.POWERPOINT])),...["rar"].map((t=>[t,Ni.RAR])),...["stp"].map((t=>[t,Ni.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ni.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,Ni.VIDEO])),...["wav"].map((t=>[t,Ni.WAV])),...["wma"].map((t=>[t,Ni.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ni.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ni.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ni.YAML])),...["zip"].map((t=>[t,Ni.ZIP]))]),Ai=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Bi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ti=e.css`
|
|
342
342
|
:host, i.ft-icon {
|
|
343
343
|
display: inline-flex;
|
|
344
344
|
align-items: center;
|
|
@@ -347,14 +347,14 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
:host {
|
|
350
|
-
width: ${
|
|
351
|
-
height: ${
|
|
350
|
+
width: ${Bi.size};
|
|
351
|
+
height: ${Bi.size};
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
i.ft-icon {
|
|
355
355
|
width: 100%;
|
|
356
356
|
height: 100%;
|
|
357
|
-
font-size: ${
|
|
357
|
+
font-size: ${Bi.size};
|
|
358
358
|
line-height: 1;
|
|
359
359
|
font-weight: normal;
|
|
360
360
|
text-transform: none;
|
|
@@ -365,32 +365,32 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
365
365
|
text-rendering: auto;
|
|
366
366
|
-webkit-font-smoothing: antialiased;
|
|
367
367
|
-moz-osx-font-smoothing: grayscale;
|
|
368
|
-
vertical-align: ${
|
|
368
|
+
vertical-align: ${Bi.verticalAlign};
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
i.ft-icon.ft-icon--fluid-topics {
|
|
372
|
-
font-family: ${
|
|
372
|
+
font-family: ${Bi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
373
373
|
|
|
374
374
|
/* Ugly fix because font is broken */
|
|
375
|
-
font-size: calc(0.
|
|
375
|
+
font-size: calc(0.75 * ${Bi.size});
|
|
376
376
|
position: relative;
|
|
377
|
-
top: -
|
|
377
|
+
top: -4%;
|
|
378
378
|
justify-content: center;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
.ft-icon--file-format {
|
|
382
|
-
font-family: ${
|
|
382
|
+
font-family: ${Bi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
.ft-icon--material {
|
|
386
|
-
font-family: ${
|
|
386
|
+
font-family: ${Bi.materialFontFamily}, "Material Icons", sans-serif;
|
|
387
387
|
}
|
|
388
|
-
`;var
|
|
389
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
388
|
+
`;var Fi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Fi||(Fi={}));var Di=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ri extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Fi).includes(this.variant)?this.variant:Fi.fluid_topics,i=t!==Fi.material||!!this.value;return e.html`
|
|
389
|
+
<i class="ft-icon ${"ft-icon--"+t}">
|
|
390
390
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
391
|
-
<slot ?hidden=${
|
|
391
|
+
<slot ?hidden=${i}></slot>
|
|
392
392
|
</i>
|
|
393
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case
|
|
393
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Fi.file_format:this.resolvedIcon=null!==(t=Ni[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Fi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Ui[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ri.elementDefinitions={},Ri.styles=Ti,Di([o.property()],Ri.prototype,"variant",void 0),Di([o.property()],Ri.prototype,"value",void 0),Di([o.state()],Ri.prototype,"resolvedIcon",void 0),Di([o.query("slot")],Ri.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ri);const Pi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Zi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Pi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",hi.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Pi),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Li=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),_i={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Li,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Li)},Ki=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Wi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Gi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Hi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),qi=[i.noTextSelect,e.css`
|
|
394
394
|
:host {
|
|
395
395
|
display: inline-block;
|
|
396
396
|
max-width: 100%;
|
|
@@ -401,7 +401,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
401
401
|
box-shadow: 0px 0px 0px transparent;
|
|
402
402
|
border: 0px solid transparent;
|
|
403
403
|
text-shadow: 0px 0px 0px transparent;
|
|
404
|
-
font-size: ${
|
|
404
|
+
font-size: ${Zi.fontSize};
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
button:hover {
|
|
@@ -429,34 +429,33 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
429
429
|
box-sizing: border-box;
|
|
430
430
|
border: none;
|
|
431
431
|
pointer-events: auto;
|
|
432
|
-
gap: ${Ri.iconPadding};
|
|
433
432
|
|
|
434
|
-
--ft-button-internal-line-height: calc(${
|
|
435
|
-
--ft-button-internal-color: ${
|
|
436
|
-
${i.setVariable(
|
|
437
|
-
${i.setVariable(l.color,
|
|
438
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
433
|
+
--ft-button-internal-line-height: calc(${Zi.fontSize} + 2px);
|
|
434
|
+
--ft-button-internal-color: ${Zi.color};
|
|
435
|
+
${i.setVariable(Bi.size,Zi.iconSize)};
|
|
436
|
+
${i.setVariable(l.color,Zi.rippleColor)};
|
|
437
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Zi.iconSize});
|
|
439
438
|
|
|
440
|
-
border-radius: ${
|
|
441
|
-
padding: ${
|
|
442
|
-
background-color: ${
|
|
439
|
+
border-radius: ${Zi.borderRadius};
|
|
440
|
+
padding: ${Zi.verticalPadding} ${Zi.horizontalPadding};
|
|
441
|
+
background-color: ${Zi.backgroundColor};
|
|
443
442
|
color: var(--ft-button-internal-color);
|
|
444
443
|
-webkit-mask-image: radial-gradient(white, black);
|
|
445
444
|
}
|
|
446
445
|
|
|
447
446
|
.ft-button.ft-button--outlined {
|
|
448
447
|
border: 1px solid var(--ft-button-internal-color);
|
|
449
|
-
padding: calc(${
|
|
448
|
+
padding: calc(${Zi.verticalPadding} - 1px) calc(${Zi.horizontalPadding} - 1px);
|
|
450
449
|
}
|
|
451
450
|
|
|
452
451
|
.ft-button.ft-button--dense {
|
|
453
|
-
padding: ${
|
|
454
|
-
border-radius: ${
|
|
455
|
-
gap: ${
|
|
452
|
+
padding: ${Wi} ${Gi};
|
|
453
|
+
border-radius: ${Ki};
|
|
454
|
+
gap: ${Hi};
|
|
456
455
|
}
|
|
457
456
|
|
|
458
457
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
459
|
-
padding: calc(${
|
|
458
|
+
padding: calc(${Wi} - 1px) calc(${Gi} - 1px);
|
|
460
459
|
}
|
|
461
460
|
|
|
462
461
|
.ft-button:not([disabled]):hover {
|
|
@@ -464,22 +463,22 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
464
463
|
}
|
|
465
464
|
|
|
466
465
|
.ft-button--round {
|
|
467
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
466
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Zi.verticalPadding});
|
|
468
467
|
}
|
|
469
468
|
|
|
470
469
|
.ft-button--round.ft-button--dense {
|
|
471
|
-
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${
|
|
470
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Wi});
|
|
472
471
|
}
|
|
473
472
|
|
|
474
473
|
.ft-button[disabled] {
|
|
475
474
|
filter: grayscale(1);
|
|
476
|
-
opacity: ${
|
|
475
|
+
opacity: ${Zi.opacityDisabled};
|
|
477
476
|
}
|
|
478
477
|
|
|
479
478
|
.ft-button.ft-button--primary {
|
|
480
|
-
background-color: ${
|
|
481
|
-
--ft-button-internal-color: ${
|
|
482
|
-
${i.setVariable(l.color,
|
|
479
|
+
background-color: ${_i.backgroundColor};
|
|
480
|
+
--ft-button-internal-color: ${_i.color};
|
|
481
|
+
${i.setVariable(l.color,_i.rippleColor)};
|
|
483
482
|
}
|
|
484
483
|
|
|
485
484
|
.ft-button:focus {
|
|
@@ -492,8 +491,13 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
492
491
|
white-space: nowrap;
|
|
493
492
|
text-overflow: ellipsis;
|
|
494
493
|
display: block;
|
|
495
|
-
${
|
|
496
|
-
${i.setVariable(
|
|
494
|
+
margin: 0 ${Zi.iconPadding};
|
|
495
|
+
${i.setVariable(hi.fontSize,"1em")};
|
|
496
|
+
${i.setVariable(hi.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.ft-button--dense .ft-button--label {
|
|
500
|
+
margin: 0 ${Hi};
|
|
497
501
|
}
|
|
498
502
|
|
|
499
503
|
.ft-button--label[hidden] {
|
|
@@ -506,13 +510,13 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
506
510
|
}
|
|
507
511
|
|
|
508
512
|
.ft-button--label[hidden] + ft-icon {
|
|
509
|
-
margin: 0 calc(${
|
|
510
|
-
padding: 0 ${
|
|
513
|
+
margin: 0 calc(${Zi.horizontalPadding} * -1);
|
|
514
|
+
padding: 0 ${Zi.verticalPadding};
|
|
511
515
|
}
|
|
512
516
|
|
|
513
517
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
514
|
-
margin: 0 calc(${
|
|
515
|
-
padding: 0 ${
|
|
518
|
+
margin: 0 calc(${Gi} * -1);
|
|
519
|
+
padding: 0 ${Wi};
|
|
516
520
|
}
|
|
517
521
|
|
|
518
522
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -521,10 +525,10 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
521
525
|
}
|
|
522
526
|
|
|
523
527
|
ft-loader {
|
|
524
|
-
${i.setVariable(
|
|
525
|
-
${i.setVariable(
|
|
528
|
+
${i.setVariable(Ei.size,Zi.iconSize)};
|
|
529
|
+
${i.setVariable(Ei.color,"var(--ft-button-internal-color)")};
|
|
526
530
|
}
|
|
527
|
-
`];var
|
|
531
|
+
`];var Qi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Vi extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
|
|
528
532
|
<button part="button"
|
|
529
533
|
class="${s.classMap(t)}"
|
|
530
534
|
aria-label="${this.getLabel()}"
|
|
@@ -547,7 +551,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
547
551
|
</ft-tooltip>
|
|
548
552
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
549
553
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
550
|
-
<ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
554
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Vi.elementDefinitions={"ft-ripple":b,"ft-tooltip":Oi,"ft-typography":ki,"ft-icon":Ri,"ft-loader":ji},Vi.styles=[i.safariEllipsisFix,qi],Qi([o.property({type:String,reflect:!0})],Vi.prototype,"role",void 0),Qi([o.property({type:Boolean})],Vi.prototype,"primary",void 0),Qi([o.property({type:Boolean})],Vi.prototype,"outlined",void 0),Qi([o.property({type:Boolean})],Vi.prototype,"disabled",void 0),Qi([o.property({type:Boolean})],Vi.prototype,"dense",void 0),Qi([o.property({type:Boolean})],Vi.prototype,"round",void 0),Qi([o.property()],Vi.prototype,"label",void 0),Qi([o.property()],Vi.prototype,"icon",void 0),Qi([o.property()],Vi.prototype,"iconVariant",void 0),Qi([o.property({type:Boolean})],Vi.prototype,"trailingIcon",void 0),Qi([o.property({type:Boolean})],Vi.prototype,"loading",void 0),Qi([o.property()],Vi.prototype,"tooltipPosition",void 0),Qi([o.property({type:Boolean})],Vi.prototype,"hideTooltip",void 0),Qi([o.property({type:Boolean})],Vi.prototype,"forceTooltip",void 0),Qi([o.query(".ft-button")],Vi.prototype,"button",void 0),Qi([o.query(".ft-button--label slot")],Vi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Vi);const Xi={height:i.FtCssVariableFactory.create("--ft-search-input-height","SIZE","38px"),borderRadius:i.FtCssVariableFactory.extend("--ft-search-input-border-radius",i.designSystemVariables.borderRadiusS),desktopFiltersHeight:i.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","SIZE","350px"),floatingZIndex:i.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","NUMBER","3"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),elevation02:i.FtCssVariableFactory.external(i.designSystemVariables.elevation02,"Design system"),buttonColor:i.FtCssVariableFactory.external(Zi.color,"Button"),buttonRippleColor:i.FtCssVariableFactory.external(Zi.rippleColor,"Button")},Yi=e.css`
|
|
551
555
|
* {
|
|
552
556
|
box-sizing: border-box;
|
|
553
557
|
}
|
|
@@ -557,11 +561,11 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
557
561
|
display: flex;
|
|
558
562
|
flex-direction: row;
|
|
559
563
|
align-items: center;
|
|
560
|
-
height: ${
|
|
564
|
+
height: ${Xi.height};
|
|
561
565
|
|
|
562
|
-
background: ${
|
|
563
|
-
border: 1px solid ${
|
|
564
|
-
border-radius: ${
|
|
566
|
+
background: ${Xi.colorSurface};
|
|
567
|
+
border: 1px solid ${Xi.colorOutline};
|
|
568
|
+
border-radius: ${Xi.borderRadius};
|
|
565
569
|
}
|
|
566
570
|
|
|
567
571
|
.ft-search-input--input-container {
|
|
@@ -576,23 +580,23 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
576
580
|
width: 100%;
|
|
577
581
|
display: grid;
|
|
578
582
|
padding: 0 8px;
|
|
579
|
-
border-radius: ${
|
|
583
|
+
border-radius: ${Xi.borderRadius};
|
|
580
584
|
}
|
|
581
585
|
|
|
582
586
|
.ft-search-input--input-container:focus-within .ft-search-input--input-outline {
|
|
583
|
-
outline: 2px solid ${
|
|
587
|
+
outline: 2px solid ${Xi.colorPrimary};
|
|
584
588
|
}
|
|
585
589
|
|
|
586
590
|
.ft-search-input--input {
|
|
587
591
|
height: 100%;
|
|
588
592
|
border: none;
|
|
589
593
|
background-color: transparent;
|
|
590
|
-
color: ${
|
|
594
|
+
color: ${Xi.colorOnSurface};
|
|
591
595
|
outline: none;
|
|
592
596
|
}
|
|
593
597
|
|
|
594
598
|
.ft-search-input--input::placeholder {
|
|
595
|
-
color: ${
|
|
599
|
+
color: ${Xi.colorOnSurfaceMedium};
|
|
596
600
|
}
|
|
597
601
|
|
|
598
602
|
.ft-search-input--actions {
|
|
@@ -602,13 +606,13 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
602
606
|
align-items: center;
|
|
603
607
|
height: 100%;
|
|
604
608
|
|
|
605
|
-
${i.setVariable(
|
|
609
|
+
${i.setVariable(Si.zIndex,`calc(${Xi.floatingZIndex} + 1)`)};
|
|
606
610
|
}
|
|
607
611
|
|
|
608
612
|
.ft-search-input > ft-button,
|
|
609
613
|
.ft-search-input--actions ft-button {
|
|
610
614
|
flex-shrink: 0;
|
|
611
|
-
${i.setVariable(
|
|
615
|
+
${i.setVariable(Zi.backgroundColor,"transparent")};
|
|
612
616
|
}
|
|
613
617
|
|
|
614
618
|
.ft-search-input .ft-search-input--launch-search {
|
|
@@ -622,27 +626,27 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
622
626
|
.ft-search-input.ft-search-input--with-suggestions:focus-within:not(.ft-search-input--with-suggestions-closed) ft-search-input-suggestion {
|
|
623
627
|
display: block;
|
|
624
628
|
}
|
|
625
|
-
`,
|
|
626
|
-
`,
|
|
629
|
+
`,Ji=e.css`
|
|
630
|
+
`,te=i.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,i)=>{t.baseUrl=i.payload},setApiIntegrationIdentifier:(t,i)=>{t.apiIntegrationIdentifier=i.payload},setUiLocale:(t,i)=>{t.uiLocale=i.payload},setAvailableUiLocales:(t,i)=>{t.availableUiLocales=i.payload},setEditorMode:(t,i)=>{t.editorMode=i.payload},setNoCustom:(t,i)=>{t.noCustom=i.payload},setNoCustomComponent:(t,i)=>{t.noCustomComponent=i.payload},setSession:(t,i)=>{t.session=i.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class ie{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=te.getState(),o=null!=t?t:e;if(i&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,o,!0)}static get(t){var i;return null!=t?ie.build(t):null!==(i=ie.API)&&void 0!==i?i:ie.API=ie.build()}static await(t){return new Promise((i=>{let e=ie.get(t);if(e)i(e);else{const o=te.subscribe((()=>{e=ie.get(t),e&&(o(),i(e))}))}}))}}var ee;const oe=Symbol("clearAfterUnitTest");class se{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[ee]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=te.getState().uiLocale,te.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=te.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const i=t.name.toLowerCase();this.cache.setFinal(i,t),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const s={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};i.deepEqual(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var s,n,r;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(s=this.cache.getNow(t))||void 0===s?void 0:s.messages)&&void 0!==n?n:{};return new i.ParametrizedLabelResolver(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,i){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(i),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(i)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>i.delay(0).then((()=>t())).catch((()=>null)))))}}ee=oe,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new se((async(t,i)=>(await ie.await()).getFluidTopicsMessageContext(t,i)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new se((async(t,i)=>(await ie.await()).getCustomMessageContext(t,i))));const ne=window.FluidTopicsI18nService,re=window.FluidTopicsCustomI18nService;var ae=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class le extends i.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ie.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
|
|
627
631
|
<slot></slot>
|
|
628
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&
|
|
629
|
-
`;var
|
|
632
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&te.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&te.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&te.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&te.actions.setNoCustom(this.noCustom),t.has("editorMode")&&te.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&te.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&te.actions.setSession(this.session),t.has("availableUiLocales")&&te.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ne.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const i=await t.getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),i.idleTimeoutInMillis),i}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}le.elementDefinitions={},le.styles=Ji,ae([o.property()],le.prototype,"baseUrl",void 0),ae([o.property()],le.prototype,"apiIntegrationIdentifier",void 0),ae([o.property()],le.prototype,"uiLocale",void 0),ae([i.jsonProperty([])],le.prototype,"availableUiLocales",void 0),ae([o.property({type:Boolean})],le.prototype,"editorMode",void 0),ae([o.property({type:Boolean})],le.prototype,"noCustom",void 0),ae([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],le.prototype,"noCustomComponent",void 0),ae([o.property({type:Boolean})],le.prototype,"withManualResources",void 0),ae([i.jsonProperty([])],le.prototype,"messageContexts",void 0),ae([i.jsonProperty(void 0)],le.prototype,"session",void 0),ae([o.property({type:Object})],le.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(le);var pe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class he extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const ce=Symbol("registerInterval");class fe extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ce]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ce]):this.dispatchEvent(new he)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=ce,pe([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}const de=e.css`
|
|
633
|
+
`;var ue=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const ge=Symbol("i18nProperties"),xe=Symbol("i18nUnsubs");function ve(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?re:ne}i18n(t,i,...e){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,i,...e);const s=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...s)}onI18nUpdate(t){var i;null===(i=this[ge])||void 0===i||i.forEach(((i,e)=>{i.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(i))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var i;super.updated(t),null===(i=this[ge])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ge]&&new Set([...this[ge].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[xe].has(t)||this[xe].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=i?i:{})}addI18nContext(t,i){this.addI18nMessages(t.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[xe].forEach((t=>t())),this[xe].clear()}}return i=xe,ue([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class be extends(ve(i.FtLitElement)){}class ye extends(ve(i.FtLitElementRedux)){}var me=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class $e extends ye{constructor(){super(),this.editorMode=!1,this.addStore(te)}render(){return this.key&&this.context?e.html`
|
|
630
634
|
<span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
|
|
631
|
-
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}
|
|
635
|
+
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}$e.elementDefinitions={},$e.styles=de,me([i.redux()],$e.prototype,"editorMode",void 0),me([o.property()],$e.prototype,"context",void 0),me([o.property()],$e.prototype,"key",void 0),me([i.jsonProperty([])],$e.prototype,"args",void 0),me([o.property()],$e.prototype,"defaultMessage",void 0);class we{static build(t){return new we(t)}static fromGwt(t){return new we(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,i)=>{const e=i;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,i)=>(...t)=>ne.resolveMessage(this.name,i,...t)})}}i.customElement("ft-i18n")($e);const ke=we.build("designedSearchInput"),Se=e.css`
|
|
632
636
|
* {
|
|
633
637
|
box-sizing: border-box;
|
|
634
638
|
}
|
|
635
639
|
|
|
636
640
|
.ft-search-input-suggestion {
|
|
637
641
|
position: absolute;
|
|
638
|
-
z-index: ${
|
|
642
|
+
z-index: ${Xi.floatingZIndex};
|
|
639
643
|
top: calc(100% + 2px);
|
|
640
644
|
left: -1px;
|
|
641
645
|
right: -1px;
|
|
642
|
-
background: ${
|
|
643
|
-
border: 1px solid ${
|
|
644
|
-
border-radius: 0 0 ${
|
|
645
|
-
box-shadow: ${
|
|
646
|
+
background: ${Xi.colorSurface};
|
|
647
|
+
border: 1px solid ${Xi.colorOutline};
|
|
648
|
+
border-radius: 0 0 ${Xi.borderRadius} ${Xi.borderRadius};
|
|
649
|
+
box-shadow: ${Xi.elevation02};
|
|
646
650
|
}
|
|
647
651
|
|
|
648
652
|
.ft-search-input-suggestion--suggestion {
|
|
@@ -653,7 +657,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
653
657
|
padding: 8px;
|
|
654
658
|
gap: 8px;
|
|
655
659
|
cursor: pointer;
|
|
656
|
-
color: ${
|
|
660
|
+
color: ${Xi.colorOnSurface};
|
|
657
661
|
min-height: 44px;
|
|
658
662
|
}
|
|
659
663
|
|
|
@@ -670,7 +674,7 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
670
674
|
flex-grow: 1;
|
|
671
675
|
flex-shrink: 1;
|
|
672
676
|
}
|
|
673
|
-
`;var
|
|
677
|
+
`;var Ce=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ze extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let Oe=class extends fe{constructor(){super(...arguments),this.suggestResults=[]}render(){return e.html`
|
|
674
678
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
675
679
|
part="container"
|
|
676
680
|
@keydown=${t=>this.onSuggestKeyDown(t)}>
|
|
@@ -686,18 +690,16 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
686
690
|
</a>
|
|
687
691
|
`))}
|
|
688
692
|
</div>
|
|
689
|
-
`}onSuggestKeyDown(t){var i,e,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(e=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.previousElementSibling)&&void 0!==e?e:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,i){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,i)}onSuggestSelected(t,i){t.preventDefault(),this.dispatchEvent(new
|
|
690
|
-
<ft-icon variant="${i}" part="suggestion-icon">
|
|
691
|
-
|
|
692
|
-
</ft-icon>
|
|
693
|
-
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};Ce.elementDefinitions={"ft-ripple":y,"ft-typography":$i,"ft-icon":Fi},Ce.styles=[i.wordWrap,we],ke([i.redux()],Ce.prototype,"suggestResults",void 0),Ce=ke([o.customElement("ft-search-input-suggestion")],Ce);var ze=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Oe extends(ge(he)){constructor(){super(),this.liveQuery="",this.suggestResults=[],this.forceCloseSuggestion=!1,this.addI18nContext($e)}render(){let t={"ft-search-input":!0,"ft-search-input--with-suggestions":this.suggestResults.length>0,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return e.html`
|
|
693
|
+
`}onSuggestKeyDown(t){var i,e,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(e=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.previousElementSibling)&&void 0!==e?e:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,i){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,i)}onSuggestSelected(t,i){t.preventDefault(),this.dispatchEvent(new ze(i))}getIcon(t){const i="DOCUMENT"===t.type?Fi.file_format:Fi.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?Ui.BOOK:Ui.ARTICLE;break;case"DOCUMENT":o=function(t,i){var e,o,s,n;t=(null!=t?t:"").toLowerCase(),i=(null!=i?i:"").toLowerCase();const[r,a]=((null!==(e=Ai.get(t))&&void 0!==e?e:t)+"/").split("/");return null!==(n=null!==(s=null!==(o=Mi.get(a))&&void 0!==o?o:Mi.get(i))&&void 0!==s?s:Mi.get(r))&&void 0!==n?n:Ni.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=Ui.TOPICS}return e.html`
|
|
694
|
+
<ft-icon .variant="${i}" .value="${o}" part="suggestion-icon"></ft-icon>
|
|
695
|
+
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};Oe.elementDefinitions={"ft-ripple":b,"ft-typography":ki,"ft-icon":Ri},Oe.styles=[i.wordWrap,Se],Ce([i.redux()],Oe.prototype,"suggestResults",void 0),Oe=Ce([o.customElement("ft-search-input-suggestion")],Oe);var Ee=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ie extends(ve(fe)){constructor(){super(),this.liveQuery="",this.suggestResults=[],this.forceCloseSuggestion=!1,this.addI18nContext(ke)}render(){let t={"ft-search-input":!0,"ft-search-input--with-suggestions":this.suggestResults.length>0,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return e.html`
|
|
694
696
|
<div class="${s.classMap(t)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
|
|
695
697
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
696
698
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
697
699
|
<input class="ft-search-input--input ft-typography--body2"
|
|
698
700
|
part="input"
|
|
699
701
|
type="text"
|
|
700
|
-
placeholder="${
|
|
702
|
+
placeholder="${ke.messages.placeholder()}"
|
|
701
703
|
.value="${this.liveQuery}"
|
|
702
704
|
@keydown=${t=>this.onSearchBarKeyDown(t)}
|
|
703
705
|
@keyup=${t=>this.onSearchBarKeyUp(t)}>
|
|
@@ -711,9 +713,9 @@ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:
|
|
|
711
713
|
part="launch-search-in-input"
|
|
712
714
|
icon="search"
|
|
713
715
|
round dense
|
|
714
|
-
label="${
|
|
716
|
+
label="${ke.messages.searchButton()}"
|
|
715
717
|
@click=${()=>this.launchSearch()}
|
|
716
718
|
></ft-button>
|
|
717
719
|
</div>
|
|
718
720
|
</div>
|
|
719
|
-
`}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var i,e;"Enter"===t.key?(null===(i=this.stateManager)||void 0===i||i.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(e=this.stateManager)||void 0===e||e.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var i;null===(i=this.stateManager)||void 0===i||i.setQuery(t.detail),this.forceCloseSuggestion=!0}}
|
|
721
|
+
`}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var i,e;"Enter"===t.key?(null===(i=this.stateManager)||void 0===i||i.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(e=this.stateManager)||void 0===e||e.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var i;null===(i=this.stateManager)||void 0===i||i.setQuery(t.detail),this.forceCloseSuggestion=!0}}Ie.elementDefinitions={"ft-search-input-suggestion":Oe,"ft-button":Vi},Ie.styles=[xi,Yi],Ee([i.redux()],Ie.prototype,"request",void 0),Ee([i.redux()],Ie.prototype,"liveQuery",void 0),Ee([i.redux()],Ie.prototype,"suggestResults",void 0),Ee([o.state()],Ie.prototype,"forceCloseSuggestion",void 0),Ee([o.query(".ft-search-input--input")],Ie.prototype,"input",void 0),Ee([o.query("ft-search-input-suggestion")],Ie.prototype,"suggestion",void 0),i.customElement("ft-search-input")(Ie),t.FtSearchInput=Ie,t.FtSearchInputCssVariables=Xi,t.styles=Yi}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);
|