@fluid-topics/ft-search-selected-facets 1.0.52 → 1.0.53
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.
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
opacity: ${z.opacityContentOnSurfacePressed};
|
|
98
98
|
transform: translate(-50%, -50%) scale(1);
|
|
99
99
|
}
|
|
100
|
-
`;var N,U=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class
|
|
100
|
+
`;var N,U=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class M 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:n}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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.isFocusVisible(null==t?void 0:t.target)&&!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`
|
|
101
101
|
<style>
|
|
102
102
|
.ft-ripple .ft-ripple--effect,
|
|
103
103
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
<div class="ft-ripple--background"></div>
|
|
115
115
|
<div class="ft-ripple--effect"></div>
|
|
116
116
|
</div>
|
|
117
|
-
`}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((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),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"),n=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",n),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",n),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,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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()}}A.elementDefinitions={},A.styles=B,U([n.property({type:Boolean})],A.prototype,"primary",void 0),U([n.property({type:Boolean})],A.prototype,"secondary",void 0),U([n.property({type:Boolean})],A.prototype,"unbounded",void 0),U([n.property({type:Boolean})],A.prototype,"activated",void 0),U([n.property({type:Boolean})],A.prototype,"selected",void 0),U([n.property({type:Boolean})],A.prototype,"disabled",void 0),U([n.state()],A.prototype,"hovered",void 0),U([n.state()],A.prototype,"focused",void 0),U([n.state()],A.prototype,"pressed",void 0),U([n.state()],A.prototype,"rippling",void 0),U([n.state()],A.prototype,"rippleSize",void 0),U([n.state()],A.prototype,"originX",void 0),U([n.state()],A.prototype,"originY",void 0),U([n.query(".ft-ripple")],A.prototype,"ripple",void 0),U([n.query(".ft-ripple--effect")],A.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(A);const M=window,T=M.trustedTypes,F=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",L=`lit$${(Math.random()+"").slice(9)}$`,_="?"+L,R=`<${_}>`,D=document,P=()=>D.createComment(""),W=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,K="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,q=/>/g,X=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,J=/"/g,Q=/^(?:script|style|textarea|title)$/i,tt=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),it=Symbol.for("lit-noChange"),et=Symbol.for("lit-nothing"),ot=new WeakMap,nt=D.createTreeWalker(D,129,null,!1),st=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=V;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,l=r.exec(e),null!==l);)p=r.lastIndex,r===V?"!--"===l[1]?r=G:void 0!==l[1]?r=q:void 0!==l[2]?(Q.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=X):void 0!==l[3]&&(r=X):r===X?">"===l[0]?(r=null!=n?n:V,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?X:'"'===l[3]?J:Y):r===J||r===Y?r=X:r===G||r===q?r=V:(r=X,n=void 0);const c=r===X&&t[i+1].startsWith("/>")?" ":"";s+=r===V?e+R:h>=0?(o.push(a),e.slice(0,h)+Z+e.slice(h)+L+c):e+L+(-2===h?(o.push(void 0),i):c)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,o]};class rt{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=st(t,i);if(this.el=rt.createElement(l,e),nt.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=nt.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(Z)||i.startsWith(L)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+Z).split(L),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?ct:"?"===i[1]?dt:"@"===i[1]?ut:pt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(Q.test(o.tagName)){const t=o.textContent.split(L),i=t.length-1;if(i>0){o.textContent=T?T.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],P()),nt.nextNode(),a.push({type:2,index:++n});o.append(t[i],P())}}}else if(8===o.nodeType)if(o.data===_)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(L,t+1));)a.push({type:7,index:n}),t+=L.length-1}n++}}static createElement(t,i){const e=D.createElement("template");return e.innerHTML=t,e}}function at(t,i,e=t,o){var n,s,r,a;if(i===it)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=W(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(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=at(t,l._$AS(t,i.values),l,o)),i}class lt{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,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:D).importNode(e,!0);nt.currentNode=n;let s=nt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new ht(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new gt(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=nt.nextNode(),r++)}return n}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 ht{constructor(t,i,e,o){var n;this.type=2,this._$AH=et,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}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=at(this,t,i),W(t)?t===et||null==t||""===t?(this._$AH!==et&&this._$AR(),this._$AH=et):t!==this._$AH&&t!==it&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>H(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!==et&&W(this._$AH)?this._$AA.nextSibling.data=t:this.$(D.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=rt.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new lt(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=ot.get(t.strings);return void 0===i&&ot.set(t.strings,i=new rt(t)),i}T(t){H(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new ht(this.k(P()),this.k(P()),this,this.options)):e=i[o],e._$AI(n),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 pt{constructor(t,i,e,o,n){this.type=1,this._$AH=et,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=et}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=at(this,t,i,0),s=!W(t)||t!==this._$AH&&t!==it,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=at(this,o[e+r],i,r),a===it&&(a=this._$AH[r]),s||(s=!W(a)||a!==this._$AH[r]),a===et?t=et:t!==et&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ct extends pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===et?void 0:t}}const ft=T?T.emptyScript:"";class dt extends pt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==et?this.element.setAttribute(this.name,ft):this.element.removeAttribute(this.name)}}class ut extends pt{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=at(this,t,i,0))&&void 0!==e?e:et)===it)return;const o=this._$AH,n=t===et&&o!==et||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==et&&(o===et||n);n&&this.element.removeEventListener(this.name,this,o),s&&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 gt{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){at(this,t)}}const vt=M.litHtmlPolyfillSupport;null==vt||vt(rt,ht),(null!==(N=M.litHtmlVersions)&&void 0!==N?N:M.litHtmlVersions=[]).push("2.7.3");
|
|
117
|
+
`}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((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),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"),n=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",n),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",n),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,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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()}}M.elementDefinitions={},M.styles=B,U([n.property({type:Boolean})],M.prototype,"primary",void 0),U([n.property({type:Boolean})],M.prototype,"secondary",void 0),U([n.property({type:Boolean})],M.prototype,"unbounded",void 0),U([n.property({type:Boolean})],M.prototype,"activated",void 0),U([n.property({type:Boolean})],M.prototype,"selected",void 0),U([n.property({type:Boolean})],M.prototype,"disabled",void 0),U([n.state()],M.prototype,"hovered",void 0),U([n.state()],M.prototype,"focused",void 0),U([n.state()],M.prototype,"pressed",void 0),U([n.state()],M.prototype,"rippling",void 0),U([n.state()],M.prototype,"rippleSize",void 0),U([n.state()],M.prototype,"originX",void 0),U([n.state()],M.prototype,"originY",void 0),U([n.query(".ft-ripple")],M.prototype,"ripple",void 0),U([n.query(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(M);const A=window,T=A.trustedTypes,F=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",L=`lit$${(Math.random()+"").slice(9)}$`,_="?"+L,R=`<${_}>`,P=document,D=()=>P.createComment(""),W=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,K="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,q=/>/g,X=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,J=/"/g,Q=/^(?:script|style|textarea|title)$/i,tt=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),it=Symbol.for("lit-noChange"),et=Symbol.for("lit-nothing"),ot=new WeakMap,nt=P.createTreeWalker(P,129,null,!1),st=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=V;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,l=r.exec(e),null!==l);)p=r.lastIndex,r===V?"!--"===l[1]?r=G:void 0!==l[1]?r=q:void 0!==l[2]?(Q.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=X):void 0!==l[3]&&(r=X):r===X?">"===l[0]?(r=null!=n?n:V,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?X:'"'===l[3]?J:Y):r===J||r===Y?r=X:r===G||r===q?r=V:(r=X,n=void 0);const c=r===X&&t[i+1].startsWith("/>")?" ":"";s+=r===V?e+R:h>=0?(o.push(a),e.slice(0,h)+Z+e.slice(h)+L+c):e+L+(-2===h?(o.push(void 0),i):c)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,o]};class rt{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=st(t,i);if(this.el=rt.createElement(l,e),nt.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=nt.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(Z)||i.startsWith(L)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+Z).split(L),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?ct:"?"===i[1]?dt:"@"===i[1]?ut:pt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(Q.test(o.tagName)){const t=o.textContent.split(L),i=t.length-1;if(i>0){o.textContent=T?T.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],D()),nt.nextNode(),a.push({type:2,index:++n});o.append(t[i],D())}}}else if(8===o.nodeType)if(o.data===_)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(L,t+1));)a.push({type:7,index:n}),t+=L.length-1}n++}}static createElement(t,i){const e=P.createElement("template");return e.innerHTML=t,e}}function at(t,i,e=t,o){var n,s,r,a;if(i===it)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=W(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(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=at(t,l._$AS(t,i.values),l,o)),i}class lt{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,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:P).importNode(e,!0);nt.currentNode=n;let s=nt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new ht(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new gt(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=nt.nextNode(),r++)}return n}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 ht{constructor(t,i,e,o){var n;this.type=2,this._$AH=et,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}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=at(this,t,i),W(t)?t===et||null==t||""===t?(this._$AH!==et&&this._$AR(),this._$AH=et):t!==this._$AH&&t!==it&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>H(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!==et&&W(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=rt.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new lt(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=ot.get(t.strings);return void 0===i&&ot.set(t.strings,i=new rt(t)),i}T(t){H(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new ht(this.k(D()),this.k(D()),this,this.options)):e=i[o],e._$AI(n),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 pt{constructor(t,i,e,o,n){this.type=1,this._$AH=et,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=et}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=at(this,t,i,0),s=!W(t)||t!==this._$AH&&t!==it,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=at(this,o[e+r],i,r),a===it&&(a=this._$AH[r]),s||(s=!W(a)||a!==this._$AH[r]),a===et?t=et:t!==et&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ct extends pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===et?void 0:t}}const ft=T?T.emptyScript:"";class dt extends pt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==et?this.element.setAttribute(this.name,ft):this.element.removeAttribute(this.name)}}class ut extends pt{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=at(this,t,i,0))&&void 0!==e?e:et)===it)return;const o=this._$AH,n=t===et&&o!==et||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==et&&(o===et||n);n&&this.element.removeEventListener(this.name,this,o),s&&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 gt{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){at(this,t)}}const vt=A.litHtmlPolyfillSupport;null==vt||vt(rt,ht),(null!==(N=A.litHtmlVersions)&&void 0!==N?N:A.litHtmlVersions=[]).push("2.7.3");
|
|
118
118
|
/**
|
|
119
119
|
* @license
|
|
120
120
|
* Copyright 2020 Google LLC
|
|
121
121
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
122
122
|
*/
|
|
123
|
-
const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void 0:t._$litStatic$},yt=t=>({_$litStatic$:t,r:xt}),mt=new Map,$t=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=bt(s));)l+=n+i[++h],p=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=mt.get(t))&&(r.raw=r,mt.set(t,i=r)),e=a}return t(i,...e)})(tt);var wt;!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"}(wt||(wt={}));const kt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),zt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),St={fontFamily:zt,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")},Ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",kt),It=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",St.fontSize,"20px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",St.fontWeight,"normal"),jt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",St.letterSpacing,"0.15px"),Et=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",St.lineHeight,"1.2"),Bt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",St.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",kt),Ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",St.fontSize,"14px"),
|
|
123
|
+
const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void 0:t._$litStatic$},yt=t=>({_$litStatic$:t,r:xt}),mt=new Map,$t=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=bt(s));)l+=n+i[++h],p=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=mt.get(t))&&(r.raw=r,mt.set(t,i=r)),e=a}return t(i,...e)})(tt);var wt;!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"}(wt||(wt={}));const kt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),zt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),St={fontFamily:zt,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")},Ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",kt),It=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",St.fontSize,"20px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",St.fontWeight,"normal"),jt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",St.letterSpacing,"0.15px"),Et=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",St.lineHeight,"1.2"),Bt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",St.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",kt),Ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",St.fontSize,"14px"),Mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",St.fontWeight,"normal"),At=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",St.letterSpacing,"0.105px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",St.lineHeight,"1.7"),Ft=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",St.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",zt),Lt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",St.fontSize,"16px"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",St.fontWeight,"600"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",St.letterSpacing,"0.144px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",St.lineHeight,"1.5"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",St.textTransform,"inherit"),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",zt),Ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",St.fontSize,"14px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",St.fontWeight,"normal"),Vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",St.letterSpacing,"0.098px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",St.lineHeight,"1.7"),qt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",St.textTransform,"inherit"),Xt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",zt),Yt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",St.fontSize,"16px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",St.fontWeight,"normal"),Qt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",St.letterSpacing,"0.496px"),ti=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",St.lineHeight,"1.5"),ii=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",St.textTransform,"inherit"),ei={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",zt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",St.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",St.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",St.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",St.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",St.textTransform,"inherit")},oi=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",zt),ni=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",St.fontSize,"12px"),si=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",St.fontWeight,"normal"),ri=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",St.letterSpacing,"0.396px"),ai=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",St.lineHeight,"1.33"),li=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",St.textTransform,"inherit"),hi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",zt),pi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",St.fontSize,"10px"),ci=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",St.fontWeight,"normal"),fi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",St.letterSpacing,"0.33px"),di=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",St.lineHeight,"1.6"),ui=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",St.textTransform,"inherit"),gi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",zt),vi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",St.fontSize,"10px"),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",St.fontWeight,"normal"),bi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",St.letterSpacing,"1.5px"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",St.lineHeight,"1.6"),mi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",St.textTransform,"uppercase"),$i={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",zt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",St.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",St.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",St.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",St.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",St.textTransform,"uppercase")},wi=e.css`
|
|
124
124
|
.ft-typography--title {
|
|
125
125
|
font-family: ${Ct};
|
|
126
126
|
font-size: ${It};
|
|
@@ -133,8 +133,8 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
133
133
|
.ft-typography--title-dense {
|
|
134
134
|
font-family: ${Nt};
|
|
135
135
|
font-size: ${Ut};
|
|
136
|
-
font-weight: ${
|
|
137
|
-
letter-spacing: ${
|
|
136
|
+
font-weight: ${Mt};
|
|
137
|
+
letter-spacing: ${At};
|
|
138
138
|
line-height: ${Tt};
|
|
139
139
|
text-transform: ${Ft};
|
|
140
140
|
}
|
|
@@ -144,8 +144,8 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
144
144
|
font-size: ${Lt};
|
|
145
145
|
font-weight: ${_t};
|
|
146
146
|
letter-spacing: ${Rt};
|
|
147
|
-
line-height: ${
|
|
148
|
-
text-transform: ${
|
|
147
|
+
line-height: ${Pt};
|
|
148
|
+
text-transform: ${Dt};
|
|
149
149
|
}
|
|
150
150
|
`,Si=e.css`
|
|
151
151
|
.ft-typography--subtitle2 {
|
|
@@ -215,14 +215,14 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
215
215
|
.ft-typography {
|
|
216
216
|
vertical-align: inherit;
|
|
217
217
|
}
|
|
218
|
-
`;var Ui,Ai
|
|
218
|
+
`;var Ui,Mi,Ai=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ti extends i.FtLitElement{constructor(){super(...arguments),this.variant=wt.body1}render(){return this.element?$t`
|
|
219
219
|
<${yt(this.element)}
|
|
220
220
|
class="ft-typography ft-typography--${this.variant}">
|
|
221
221
|
<slot></slot>
|
|
222
222
|
</${yt(this.element)}>
|
|
223
223
|
`:$t`
|
|
224
224
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
225
|
-
`}}Ti.styles=[wi,ki,zi,Si,Ci,Ii,Oi,ji,Ei,Bi,Ni],
|
|
225
|
+
`}}Ti.styles=[wi,ki,zi,Si,Ci,Ii,Oi,ji,Ei,Bi,Ni],Ai([n.property()],Ti.prototype,"element",void 0),Ai([n.property()],Ti.prototype,"variant",void 0),i.customElement("ft-typography")(Ti),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(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=""}(Mi||(Mi={})),new Map([...["abw"].map((t=>[t,Mi.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,Mi.AUDIO])),...["avi"].map((t=>[t,Mi.AVI])),...["chm","xhs"].map((t=>[t,Mi.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,Mi.CODE])),...["csv"].map((t=>[t,Mi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Mi.DITA])),...["epub"].map((t=>[t,Mi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Mi.EXCEL])),...["flac"].map((t=>[t,Mi.FLAC])),...["gif"].map((t=>[t,Mi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Mi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Mi.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,Mi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Mi.JPEG])),...["json"].map((t=>[t,Mi.JSON])),...["m4a","m4p"].map((t=>[t,Mi.M4A])),...["mov","qt"].map((t=>[t,Mi.MOV])),...["mp3"].map((t=>[t,Mi.MP3])),...["mp4","m4v"].map((t=>[t,Mi.MP4])),...["ogg","oga"].map((t=>[t,Mi.OGG])),...["pdf","ps"].map((t=>[t,Mi.PDF])),...["png"].map((t=>[t,Mi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Mi.POWERPOINT])),...["rar"].map((t=>[t,Mi.RAR])),...["stp"].map((t=>[t,Mi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Mi.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,Mi.VIDEO])),...["wav"].map((t=>[t,Mi.WAV])),...["wma"].map((t=>[t,Mi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Mi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Mi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Mi.YAML])),...["zip"].map((t=>[t,Mi.ZIP]))]);const Fi={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")},Zi=e.css`
|
|
226
226
|
:host, i.ft-icon {
|
|
227
227
|
display: inline-flex;
|
|
228
228
|
align-items: center;
|
|
@@ -275,7 +275,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
275
275
|
${r.unsafeHTML(this.resolvedIcon)}
|
|
276
276
|
<slot ?hidden=${i}></slot>
|
|
277
277
|
</i>
|
|
278
|
-
`}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 Li.file_format:this.resolvedIcon=null!==(t=
|
|
278
|
+
`}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 Li.file_format:this.resolvedIcon=null!==(t=Mi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Li.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=Zi,_i([n.property()],Ri.prototype,"variant",void 0),_i([n.property()],Ri.prototype,"value",void 0),_i([n.state()],Ri.prototype,"resolvedIcon",void 0),_i([n.query("slot")],Ri.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ri);const Pi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Di=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Wi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Hi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","100"),Ki=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Vi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Gi=e.css`
|
|
279
279
|
.ft-tooltip--container {
|
|
280
280
|
display: block;
|
|
281
281
|
}
|
|
@@ -292,7 +292,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
292
292
|
width: max-content;
|
|
293
293
|
max-width: ${Vi};
|
|
294
294
|
text-align: center;
|
|
295
|
-
padding: ${
|
|
295
|
+
padding: ${Pi};
|
|
296
296
|
z-index: ${Hi};
|
|
297
297
|
}
|
|
298
298
|
|
|
@@ -300,7 +300,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
300
300
|
padding: 4px 8px;
|
|
301
301
|
border-radius: ${Ki};
|
|
302
302
|
background-color: ${Wi};
|
|
303
|
-
color: ${
|
|
303
|
+
color: ${Di};
|
|
304
304
|
position: relative;
|
|
305
305
|
word-break: break-word;
|
|
306
306
|
}
|
|
@@ -322,7 +322,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
322
322
|
</div>
|
|
323
323
|
</div>
|
|
324
324
|
</div>
|
|
325
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.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=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let s=0,r=0;switch(this.validPosition){case"top":r=t.offsetTop-e,s=t.offsetLeft+n;break;case"bottom":r=t.offsetTop+t.offsetHeight,s=t.offsetLeft+n;break;case"left":r=t.offsetTop+o,s=t.offsetLeft-i;break;case"right":r=t.offsetTop+o,s=t.offsetLeft+t.offsetWidth}const a=this.tooltip.style;a.left=this.
|
|
325
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.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=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let s=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=s+"px",a.top=r+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,p=l.x+l.width-window.innerWidth;a.left=s+Math.round(this.correctOutOfWindowPixels(h,p))+"px";let c=-l.y,f=l.y+l.height-window.innerHeight;a.top=r+Math.round(this.correctOutOfWindowPixels(c,f))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${Vi})`}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())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}Xi.elementDefinitions={"ft-typography":Ti},Xi.styles=Gi,qi([n.property()],Xi.prototype,"text",void 0),qi([n.property({type:Boolean})],Xi.prototype,"manual",void 0),qi([n.property({type:Boolean})],Xi.prototype,"inline",void 0),qi([n.property({type:Number})],Xi.prototype,"delay",void 0),qi([n.property()],Xi.prototype,"position",void 0),qi([n.queryAssignedNodes("",!0)],Xi.prototype,"slotNodes",void 0),qi([n.query(".ft-tooltip--container")],Xi.prototype,"container",void 0),qi([n.query(".ft-tooltip")],Xi.prototype,"tooltip",void 0),qi([n.query(".ft-tooltip--content")],Xi.prototype,"tooltipContent",void 0),qi([n.state()],Xi.prototype,"visible",void 0),i.customElement("ft-tooltip")(Xi);const Yi={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ji=e.css`
|
|
326
326
|
:host {
|
|
327
327
|
line-height: 0;
|
|
328
328
|
}
|
|
@@ -558,7 +558,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
558
558
|
</ft-tooltip>
|
|
559
559
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
560
560
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
561
|
-
<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}}pe.elementDefinitions={"ft-ripple":
|
|
561
|
+
<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}}pe.elementDefinitions={"ft-ripple":M,"ft-tooltip":Xi,"ft-typography":Ti,"ft-icon":Ri,"ft-loader":Qi},pe.styles=[i.safariEllipsisFix,le],he([n.property({type:String,reflect:!0})],pe.prototype,"role",void 0),he([n.property({type:Boolean})],pe.prototype,"primary",void 0),he([n.property({type:Boolean})],pe.prototype,"outlined",void 0),he([n.property({type:Boolean})],pe.prototype,"disabled",void 0),he([n.property({type:Boolean})],pe.prototype,"dense",void 0),he([n.property({type:Boolean})],pe.prototype,"round",void 0),he([n.property()],pe.prototype,"label",void 0),he([n.property()],pe.prototype,"icon",void 0),he([n.property()],pe.prototype,"iconVariant",void 0),he([n.property({type:Boolean})],pe.prototype,"trailingIcon",void 0),he([n.property({type:Boolean})],pe.prototype,"loading",void 0),he([n.property()],pe.prototype,"tooltipPosition",void 0),he([n.property({type:Boolean})],pe.prototype,"hideTooltip",void 0),he([n.property({type:Boolean})],pe.prototype,"forceTooltip",void 0),he([n.query(".ft-button")],pe.prototype,"button",void 0),he([n.query(".ft-button--label slot")],pe.prototype,"slottedContent",void 0),i.customElement("ft-button")(pe);const ce=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),fe={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:ce,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",ei.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",ce),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},de=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),ue={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:de,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",de)},ge=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),ve=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),xe=[i.noTextSelect,e.css`
|
|
562
562
|
:host {
|
|
563
563
|
display: inline-block;
|
|
564
564
|
max-width: 100%;
|
|
@@ -718,7 +718,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
718
718
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
719
719
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
720
720
|
</div>
|
|
721
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ye))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ye))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}me.elementDefinitions={"ft-ripple":
|
|
721
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ye))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ye))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}me.elementDefinitions={"ft-ripple":M,"ft-typography":Ti,"ft-icon":Ri,"ft-button":pe},me.styles=xe,be([n.property({type:Boolean})],me.prototype,"highlighted",void 0),be([n.property({type:Boolean})],me.prototype,"removable",void 0),be([n.property({type:Boolean})],me.prototype,"disabled",void 0),be([n.property({type:Boolean})],me.prototype,"clickable",void 0),be([n.property({type:Boolean})],me.prototype,"iconClickable",void 0),be([n.property({type:Boolean})],me.prototype,"dense",void 0),be([n.property({type:Boolean})],me.prototype,"multiLine",void 0),be([n.property()],me.prototype,"label",void 0),be([n.property()],me.prototype,"iconLabel",void 0),be([n.property()],me.prototype,"icon",void 0),be([n.property()],me.prototype,"iconVariant",void 0),be([n.property({type:Boolean})],me.prototype,"trailingIcon",void 0),be([n.query("ft-typography slot")],me.prototype,"slottedContent",void 0),i.customElement("ft-chip")(me);var $e=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class we extends w{constructor(){super(),this.editorMode=!1,this.addStore(p)}render(){return this.editorMode?this.renderDummyFacet():null==this.facets||0===this.facets.length?e.nothing:e.html`
|
|
722
722
|
|
|
723
723
|
<div class="ft-search-selected-facets--container">
|
|
724
724
|
${o.repeat(this.facets,(t=>t.key),(t=>{const i=this.getSelectedValues(t);return o.repeat(i,(i=>t.key+"-"+i),(e=>this.renderFacet(t.key,t.label,i,e)))}))}
|
|
@@ -396,7 +396,7 @@ class Wo extends _i{constructor(t){if(super(t),this.et=nt,t.type!==Ti)throw Erro
|
|
|
396
396
|
${Ko(this.resolvedIcon)}
|
|
397
397
|
<slot ?hidden=${e}></slot>
|
|
398
398
|
</i>
|
|
399
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Jo.file_format:this.resolvedIcon=null!==(t=Zo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Jo.material:this.resolvedIcon=this.value||nt;break;default:this.resolvedIcon=null!==(e=Ho[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Go.elementDefinitions={},Go.styles=qo,Xo([s()],Go.prototype,"variant",void 0),Xo([s()],Go.prototype,"value",void 0),Xo([a()],Go.prototype,"resolvedIcon",void 0),Xo([c("slot")],Go.prototype,"slottedContent",void 0),d("ft-icon")(Go);const Yo=Ot.create("--ft-tooltip-distance","SIZE","4px"),Qo=Ot.create("--ft-tooltip-color","COLOR","#FFFFFF"),tr=Ot.create("--ft-tooltip-background-color","COLOR","#666666"),er=Ot.create("--ft-tooltip-z-index","NUMBER","
|
|
399
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Jo.file_format:this.resolvedIcon=null!==(t=Zo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Jo.material:this.resolvedIcon=this.value||nt;break;default:this.resolvedIcon=null!==(e=Ho[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Go.elementDefinitions={},Go.styles=qo,Xo([s()],Go.prototype,"variant",void 0),Xo([s()],Go.prototype,"value",void 0),Xo([a()],Go.prototype,"resolvedIcon",void 0),Xo([c("slot")],Go.prototype,"slottedContent",void 0),d("ft-icon")(Go);const Yo=Ot.create("--ft-tooltip-distance","SIZE","4px"),Qo=Ot.create("--ft-tooltip-color","COLOR","#FFFFFF"),tr=Ot.create("--ft-tooltip-background-color","COLOR","#666666"),er=Ot.create("--ft-tooltip-z-index","NUMBER","100"),ir=Ot.external(Et.borderRadiusS,"Design system"),nr=Ot.create("--ft-tooltip-max-width","SIZE","150px"),or=$`
|
|
400
400
|
.ft-tooltip--container {
|
|
401
401
|
display: block;
|
|
402
402
|
}
|
|
@@ -443,7 +443,7 @@ class Wo extends _i{constructor(t){if(super(t),this.et=nt,t.type!==Ti)throw Erro
|
|
|
443
443
|
</div>
|
|
444
444
|
</div>
|
|
445
445
|
</div>
|
|
446
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,n=(t.offsetHeight-i)/2,o=(t.offsetWidth-e)/2;let r=0,s=0;switch(this.validPosition){case"top":s=t.offsetTop-i,r=t.offsetLeft+o;break;case"bottom":s=t.offsetTop+t.offsetHeight,r=t.offsetLeft+o;break;case"left":s=t.offsetTop+n,r=t.offsetLeft-e;break;case"right":s=t.offsetTop+n,r=t.offsetLeft+t.offsetWidth}const a=this.tooltip.style;a.left=this.
|
|
446
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,n=(t.offsetHeight-i)/2,o=(t.offsetWidth-e)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-i-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,u=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(c,u))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(f,h))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${nr})`}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())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}sr.elementDefinitions={"ft-typography":Do},sr.styles=or,rr([s()],sr.prototype,"text",void 0),rr([s({type:Boolean})],sr.prototype,"manual",void 0),rr([s({type:Boolean})],sr.prototype,"inline",void 0),rr([s({type:Number})],sr.prototype,"delay",void 0),rr([s()],sr.prototype,"position",void 0),rr([
|
|
447
447
|
/**
|
|
448
448
|
* @license
|
|
449
449
|
* Copyright 2017 Google LLC
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-selected-facets",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.53",
|
|
4
4
|
"description": "List of selected facets in a designed search page context",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-chip": "1.0.
|
|
23
|
-
"@fluid-topics/ft-search-context": "1.0.
|
|
24
|
-
"@fluid-topics/ft-tooltip": "1.0.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-chip": "1.0.53",
|
|
23
|
+
"@fluid-topics/ft-search-context": "1.0.53",
|
|
24
|
+
"@fluid-topics/ft-tooltip": "1.0.53",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "1.0.53",
|
|
26
26
|
"lit": "2.7.2"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "adfef35652b764d792d22aeef90c706676636803"
|
|
29
29
|
}
|