@fluid-topics/ft-search-bar 0.3.16 → 0.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-bar.light.js +18 -18
- package/build/ft-search-bar.min.js +4 -4
- package/package.json +14 -14
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
22
22
|
<div class="ft-size-watcher--watcher"></div>
|
|
23
23
|
</div>
|
|
24
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=l.S:this.size<976?this.category=l.M:this.size<1024?this.category=l.L:this.size<1440?this.category=l.XL:this.category=l.XXL,this.dispatchEvent(new p(this.size,this.category)))}),this.debounceTimeout)}}f.elementDefinitions={},f.styles=a,h([o.property({type:Number})],f.prototype,"debounceTimeout",void 0),h([o.property({type:Boolean})],f.prototype,"local",void 0),h([o.property({type:Number,reflect:!0})],f.prototype,"size",void 0),h([o.property({type:String,reflect:!0})],f.prototype,"category",void 0),h([o.query(".ft-size-watcher--watcher")],f.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(f);const d=globalThis.trustedTypes,u=d?d.createPolicy("lit-html",{createHTML:t=>t}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,v="?"+b,g=`<${v}>`,x=document,y=(t="")=>x.createComment(t),m=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,S=/>/g,z=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),O=/'/g,B=/"/g,C=/^(?:script|style|textarea|title)$/i,E=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),F=new WeakMap,L=x.createTreeWalker(x,129,null,!1),j=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=w;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(n.lastIndex=h,a=n.exec(i),null!==a);)h=n.lastIndex,n===w?"!--"===a[1]?n=k:void 0!==a[1]?n=S:void 0!==a[2]?(C.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=z):void 0!==a[3]&&(n=z):n===z?">"===a[0]?(n=null!=s?s:w,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?z:'"'===a[3]?B:O):n===B||n===O?n=z:n===k||n===S?n=w:(n=z,s=void 0);const p=n===z&&t[e+1].startsWith("/>")?" ":"";r+=n===w?i+g:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+b+p):i+b+(-2===c?(o.push(void 0),e):p)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==u?u.createHTML(l):l,o]};class M{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[a,c]=j(t,e);if(this.el=M.createElement(a,i),L.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=L.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(b)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(b),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?R:"?"===e[1]?Z:"@"===e[1]?_:
|
|
24
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=l.S:this.size<976?this.category=l.M:this.size<1024?this.category=l.L:this.size<1440?this.category=l.XL:this.category=l.XXL,this.dispatchEvent(new p(this.size,this.category)))}),this.debounceTimeout)}}f.elementDefinitions={},f.styles=a,h([o.property({type:Number})],f.prototype,"debounceTimeout",void 0),h([o.property({type:Boolean})],f.prototype,"local",void 0),h([o.property({type:Number,reflect:!0})],f.prototype,"size",void 0),h([o.property({type:String,reflect:!0})],f.prototype,"category",void 0),h([o.query(".ft-size-watcher--watcher")],f.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(f);const d=globalThis.trustedTypes,u=d?d.createPolicy("lit-html",{createHTML:t=>t}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,v="?"+b,g=`<${v}>`,x=document,y=(t="")=>x.createComment(t),m=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,S=/>/g,z=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),O=/'/g,B=/"/g,C=/^(?:script|style|textarea|title)$/i,E=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),F=new WeakMap,L=x.createTreeWalker(x,129,null,!1),j=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=w;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(n.lastIndex=h,a=n.exec(i),null!==a);)h=n.lastIndex,n===w?"!--"===a[1]?n=k:void 0!==a[1]?n=S:void 0!==a[2]?(C.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=z):void 0!==a[3]&&(n=z):n===z?">"===a[0]?(n=null!=s?s:w,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?z:'"'===a[3]?B:O):n===B||n===O?n=z:n===k||n===S?n=w:(n=z,s=void 0);const p=n===z&&t[e+1].startsWith("/>")?" ":"";r+=n===w?i+g:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+b+p):i+b+(-2===c?(o.push(void 0),e):p)}const l=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==u?u.createHTML(l):l,o]};class M{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,l=this.parts,[a,c]=j(t,e);if(this.el=M.createElement(a,i),L.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=L.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(b)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(b),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?R:"?"===e[1]?Z:"@"===e[1]?_:N})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(C.test(o.tagName)){const t=o.textContent.split(b),e=t.length-1;if(e>0){o.textContent=d?d.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],y()),L.nextNode(),l.push({type:2,index:++s});o.append(t[e],y())}}}else if(8===o.nodeType)if(o.data===v)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(b,t+1));)l.push({type:7,index:s}),t+=b.length-1}s++}}static createElement(t,e){const i=x.createElement("template");return i.innerHTML=t,i}}function P(t,e,i=t,o){var s,r,n,l;if(e===I)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const c=m(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(l=i)._$Cl)&&void 0!==n?n:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=P(t,a._$AS(t,e.values),a,o)),e}class A{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(i,!0);L.currentNode=s;let r=L.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new T(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new H(r,this,t)),this.v.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=L.nextNode(),n++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class T{constructor(t,e,i,o){var s;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),m(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==I&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>$(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==D&&m(this._$AH)?this._$AA.nextSibling.data=t:this.k(x.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=M.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new A(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new M(t)),e}S(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new T(this.j(y()),this.j(y()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class N{constructor(t,e,i,o,s){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=P(this,t,e,0),r=!m(t)||t!==this._$AH&&t!==I,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=P(this,o[i+n],e,n),l===I&&(l=this._$AH[n]),r||(r=!m(l)||l!==this._$AH[n]),l===D?t=D:t!==D&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.P(t)}P(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class R extends N{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===D?void 0:t}}const U=d?d.emptyScript:"";class Z extends N{constructor(){super(...arguments),this.type=4}P(t){t&&t!==D?this.element.setAttribute(this.name,U):this.element.removeAttribute(this.name)}}class _ extends N{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=P(this,t,e,0))&&void 0!==i?i:D)===I)return;const o=this._$AH,s=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==D&&(o===D||s);s&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class H{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const V=window.litHtmlPolyfillSupport;null==V||V(M,T),(null!==(c=globalThis.litHtmlVersions)&&void 0!==c?c:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
25
25
|
/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2020 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
29
|
*/
|
|
30
|
-
const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t._$litStatic$},W=t=>({_$litStatic$:t,r:K}),G=new Map,X=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(r=i[c],s=q(r));)a+=s+e[++c],h=!0;l.push(r),n.push(a),c++}if(c===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=G.get(t))&&(n.raw=n,G.set(t,e=n)),i=l}return t(e,...i)})(E);var Y;!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"}(Y||(Y={}));const J=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),tt={fontFamily:Q,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},et=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",J),it=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",tt.lineHeight,"1.2"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",J),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),ct=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"1.7"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Q),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"1.5"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",Q),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"1.7"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),zt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",tt.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit")},Ot={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",tt.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit")},Bt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",tt.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit")},Ct=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",Q),Et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"1.6"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),jt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",Q),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),At=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),
|
|
30
|
+
const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t._$litStatic$},W=t=>({_$litStatic$:t,r:K}),G=new Map,X=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],l=[];let a,c=0,h=!1;for(;c<o;){for(a=e[c];c<o&&void 0!==(r=i[c],s=q(r));)a+=s+e[++c],h=!0;l.push(r),n.push(a),c++}if(c===o&&n.push(e[o]),h){const t=n.join("$$lit$$");void 0===(e=G.get(t))&&(n.raw=n,G.set(t,e=n)),i=l}return t(e,...i)})(E);var Y;!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"}(Y||(Y={}));const J=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),tt={fontFamily:Q,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},et=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",J),it=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",tt.lineHeight,"1.2"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",J),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),ct=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"1.7"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Q),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"1.5"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",Q),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"1.7"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),zt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",tt.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit")},Ot={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",tt.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit")},Bt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",tt.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit")},Ct=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",Q),Et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"1.6"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),jt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",Q),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),At=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",tt.lineHeight,"1.6"),Nt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",tt.textTransform,"uppercase"),Rt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",Q),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",tt.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",tt.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",tt.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",tt.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",tt.textTransform,"uppercase")},Ut=i.css`
|
|
31
31
|
.ft-typography--title {
|
|
32
32
|
font-family: ${et};
|
|
33
33
|
font-size: ${it};
|
|
@@ -106,8 +106,8 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
106
106
|
font-size: ${Mt};
|
|
107
107
|
font-weight: ${Pt};
|
|
108
108
|
letter-spacing: ${At};
|
|
109
|
-
line-height: ${
|
|
110
|
-
text-transform: ${
|
|
109
|
+
line-height: ${Tt};
|
|
110
|
+
text-transform: ${Nt};
|
|
111
111
|
}
|
|
112
112
|
`,Xt=i.css`
|
|
113
113
|
.ft-typography--button {
|
|
@@ -534,7 +534,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
534
534
|
${e.setVariable(ye.size,Fe.iconSize)};
|
|
535
535
|
${e.setVariable(ye.color,"var(--ft-button-internal-color)")};
|
|
536
536
|
}
|
|
537
|
-
`];var Ae=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class
|
|
537
|
+
`];var Ae=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Te extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ce.material,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-button--safari-fix":e.isSafari,"ft-no-text-select":!0};return this.addTooltipIfNeeded(i.html`
|
|
538
538
|
<button part="button"
|
|
539
539
|
class="${r.classMap(t)}"
|
|
540
540
|
aria-label="${this.getLabel()}"
|
|
@@ -548,22 +548,22 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
548
548
|
</ft-typography>
|
|
549
549
|
${this.resolveIcon()}
|
|
550
550
|
</button>
|
|
551
|
-
`)}addTooltipIfNeeded(t){return this.
|
|
551
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?i.html`
|
|
552
552
|
<ft-tooltip part="tooltip"
|
|
553
553
|
text="${this.getLabel()}"
|
|
554
554
|
position="${this.tooltipPosition}">
|
|
555
555
|
${t}
|
|
556
556
|
</ft-tooltip>
|
|
557
|
-
|
|
557
|
+
`:t}resolveIcon(){return this.loading?i.html`
|
|
558
558
|
<ft-loader></ft-loader> `:this.icon?i.html`
|
|
559
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:i.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}}
|
|
559
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:i.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}}Te.elementDefinitions={"ft-ripple":ue,"ft-tooltip":xe,"ft-typography":Qt,"ft-icon":Ie,"ft-loader":$e},Te.styles=Pe,Ae([o.property({type:Boolean})],Te.prototype,"primary",void 0),Ae([o.property({type:Boolean})],Te.prototype,"outlined",void 0),Ae([o.property({type:Boolean})],Te.prototype,"disabled",void 0),Ae([o.property({type:Boolean})],Te.prototype,"dense",void 0),Ae([o.property({type:Boolean})],Te.prototype,"round",void 0),Ae([o.property({type:String})],Te.prototype,"label",void 0),Ae([o.property({type:String})],Te.prototype,"icon",void 0),Ae([o.property({type:String})],Te.prototype,"iconVariant",void 0),Ae([o.property({type:Boolean})],Te.prototype,"trailingIcon",void 0),Ae([o.property({type:Boolean})],Te.prototype,"loading",void 0),Ae([o.property({type:String})],Te.prototype,"tooltipPosition",void 0),Ae([o.property({type:Boolean})],Te.prototype,"hideTooltip",void 0),Ae([o.property({type:Boolean})],Te.prototype,"forceTooltip",void 0),Ae([o.query(".ft-button")],Te.prototype,"button",void 0),Ae([o.query(".ft-button--label slot")],Te.prototype,"slottedContent",void 0),e.customElement("ft-button")(Te);const Ne=e.FtCssVariableFactory.extend("--ft-checkbox-text-color",e.designSystemVariables.colorOnSurfaceHigh),Re=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),Ue=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),Ze=e.FtCssVariableFactory.extend("--ft-checkbox-border-color",e.designSystemVariables.colorOnSurfaceMedium),_e=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),He=i.css`
|
|
560
560
|
* {
|
|
561
561
|
box-sizing: border-box;
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
.ft-checkbox {
|
|
565
565
|
box-sizing: border-box;
|
|
566
|
-
color: ${
|
|
566
|
+
color: ${Ne};
|
|
567
567
|
|
|
568
568
|
display: inline-flex;
|
|
569
569
|
align-items: center;
|
|
@@ -903,7 +903,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
903
903
|
@change=${t=>t.stopPropagation()}>
|
|
904
904
|
${t.label}
|
|
905
905
|
</ft-radio>
|
|
906
|
-
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}li.elementDefinitions={"ft-button":
|
|
906
|
+
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}li.elementDefinitions={"ft-button":Te,"ft-ripple":ue,"ft-typography":Qt,"ft-checkbox":Ke,"ft-icon":Ie,"ft-radio":ti},li.styles=ri,ni([o.property({type:String})],li.prototype,"id",void 0),ni([o.property({type:Object})],li.prototype,"parent",void 0),ni([o.property({type:Array})],li.prototype,"options",void 0),ni([o.property({type:Boolean})],li.prototype,"multivalued",void 0),ni([o.property({type:Boolean})],li.prototype,"disabled",void 0),ni([o.property({type:Boolean})],li.prototype,"hideSelectedOptions",void 0),ni([o.property({type:Boolean})],li.prototype,"preventNavigation",void 0),ni([o.property({type:String})],li.prototype,"filter",void 0),ni([o.property({type:String})],li.prototype,"moreValuesButtonLabel",void 0),ni([o.property({type:String})],li.prototype,"noValuesLabel",void 0),ni([o.property({type:Number})],li.prototype,"displayedValuesLimit",void 0),ni([o.query(".ft-filter-level--container")],li.prototype,"container",void 0),ni([o.state()],li.prototype,"displayedPages",void 0);const ai={buttonsColor:e.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color",e.designSystemVariables.colorPrimary),buttonsZIndex:e.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:e.FtCssVariableFactory.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system")},ci=i.css`
|
|
907
907
|
.ft-snap-scroll {
|
|
908
908
|
box-sizing: border-box;
|
|
909
909
|
position: relative;
|
|
@@ -1052,7 +1052,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
1052
1052
|
@click=${this.next}
|
|
1053
1053
|
></ft-button>
|
|
1054
1054
|
</div>
|
|
1055
|
-
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new pi(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}fi.elementDefinitions={"ft-button":
|
|
1055
|
+
`}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new pi(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}fi.elementDefinitions={"ft-button":Te},fi.styles=ci,hi([o.property({type:Boolean})],fi.prototype,"horizontal",void 0),hi([o.property({type:Boolean})],fi.prototype,"hideScrollbar",void 0),hi([o.property({type:Boolean})],fi.prototype,"controls",void 0),hi([o.property({type:Boolean})],fi.prototype,"limitSize",void 0),hi([o.state()],fi.prototype,"elements",void 0),hi([o.state()],fi.prototype,"currentElement",void 0),hi([o.state()],fi.prototype,"withScroll",void 0),hi([o.state()],fi.prototype,"startReached",void 0),hi([o.state()],fi.prototype,"endReached",void 0),hi([o.query(".ft-snap-scroll--content")],fi.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(fi);const di=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),ui=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),bi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),vi=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),gi=e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),xi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionDuration,"Design system"),yi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionTimingFunction,"Design system"),mi=[qt,i.css`
|
|
1056
1056
|
:host {
|
|
1057
1057
|
display: flex;
|
|
1058
1058
|
max-height: 100%;
|
|
@@ -1229,7 +1229,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
1229
1229
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1230
1230
|
noValuesLabel="${this.noValuesLabel}"
|
|
1231
1231
|
></ft-filter-level>
|
|
1232
|
-
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new wi(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}ki.elementDefinitions={"ft-button":
|
|
1232
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new wi(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}ki.elementDefinitions={"ft-button":Te,"ft-filter-level":li,"ft-snap-scroll":fi,"ft-typography":Qt},ki.styles=mi,$i([o.property({type:String})],ki.prototype,"id",void 0),$i([o.property({type:String})],ki.prototype,"label",void 0),$i([o.property({type:String})],ki.prototype,"filterPlaceHolder",void 0),$i([o.property({type:String})],ki.prototype,"clearButtonLabel",void 0),$i([o.property({type:String})],ki.prototype,"moreValuesButtonLabel",void 0),$i([o.property({type:String})],ki.prototype,"noValuesLabel",void 0),$i([e.jsonProperty([])],ki.prototype,"options",void 0),$i([o.property({type:Boolean})],ki.prototype,"multivalued",void 0),$i([o.property({type:Boolean})],ki.prototype,"disabled",void 0),$i([o.property({type:Boolean})],ki.prototype,"raiseSelectedOptions",void 0),$i([o.property({type:Number})],ki.prototype,"displayedValuesLimit",void 0),$i([o.query(".ft-filter--slot")],ki.prototype,"slotElement",void 0),$i([o.query(".ft-filter--container")],ki.prototype,"container",void 0),$i([o.query(".ft-filter--values")],ki.prototype,"valuesContainer",void 0),$i([o.query(".ft-filter--levels")],ki.prototype,"levelsContainer",void 0),$i([o.query(".ft-filter--levels ft-filter-level:last-child")],ki.prototype,"lastLevel",void 0),$i([o.query(".ft-filter--filter input")],ki.prototype,"filterInput",void 0),$i([o.queryAll(".ft-filter--levels ft-filter-level")],ki.prototype,"levels",void 0),$i([o.state()],ki.prototype,"withScroll",void 0),$i([o.state()],ki.prototype,"filter",void 0),$i([o.state()],ki.prototype,"slideIn",void 0),$i([o.state()],ki.prototype,"slideOut",void 0);var Si=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class zi extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return i.html`
|
|
1233
1233
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1234
1234
|
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}zi.elementDefinitions={},Si([o.property({type:String})],zi.prototype,"label",void 0),Si([o.property({type:Object,converter:t=>t})],zi.prototype,"value",void 0),Si([o.property({type:Boolean,reflect:!0})],zi.prototype,"selected",void 0),Si([o.property({type:Object})],zi.prototype,"subOptions",void 0),Si([o.query(".ft-filter-option--slot")],zi.prototype,"slotElement",void 0),e.customElement("ft-filter")(ki),e.customElement("ft-filter-option")(zi);const Oi=i.css`
|
|
1235
1235
|
.ft-accordion {
|
|
@@ -1308,7 +1308,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
1308
1308
|
</div>
|
|
1309
1309
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1310
1310
|
</div>
|
|
1311
|
-
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}ji.elementDefinitions={"ft-ripple":ue,"ft-typography":Qt,"ft-icon":Ie},ji.styles=Fi,Li([o.property({type:String})],ji.prototype,"icon",void 0),Li([o.property({type:String})],ji.prototype,"label",void 0),Li([o.property({type:Boolean,reflect:!0})],ji.prototype,"active",void 0),e.customElement("ft-accordion")(Ci),e.customElement("ft-accordion-item")(ji);const Mi=e.FtCssVariableFactory.extend("--ft-chip-color",e.designSystemVariables.colorOnSurface),Pi={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-background-color",e.designSystemVariables.colorSurface),color:Mi,fontSize:e.FtCssVariableFactory.extend("--ft-chip-font-size",Ot.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:e.FtCssVariableFactory.extend("--ft-chip-ripple-color",Mi),horizontalPadding:e.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:e.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Ai=e.FtCssVariableFactory.extend("--ft-chip-highlighted-color",e.FtCssVariableFactory.extend("--ft-chip-color",e.designSystemVariables.colorOnPrimary)),
|
|
1311
|
+
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}ji.elementDefinitions={"ft-ripple":ue,"ft-typography":Qt,"ft-icon":Ie},ji.styles=Fi,Li([o.property({type:String})],ji.prototype,"icon",void 0),Li([o.property({type:String})],ji.prototype,"label",void 0),Li([o.property({type:Boolean,reflect:!0})],ji.prototype,"active",void 0),e.customElement("ft-accordion")(Ci),e.customElement("ft-accordion-item")(ji);const Mi=e.FtCssVariableFactory.extend("--ft-chip-color",e.designSystemVariables.colorOnSurface),Pi={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-background-color",e.designSystemVariables.colorSurface),color:Mi,fontSize:e.FtCssVariableFactory.extend("--ft-chip-font-size",Ot.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:e.FtCssVariableFactory.extend("--ft-chip-ripple-color",Mi),horizontalPadding:e.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:e.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Ai=e.FtCssVariableFactory.extend("--ft-chip-highlighted-color",e.FtCssVariableFactory.extend("--ft-chip-color",e.designSystemVariables.colorOnPrimary)),Ti={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",e.FtCssVariableFactory.extend("--ft-chip-background-color",e.designSystemVariables.colorPrimary)),color:Ai,rippleColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ai)},Ni=e.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Ri=e.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Ui=[e.noTextSelect,i.css`
|
|
1312
1312
|
:host {
|
|
1313
1313
|
display: inline-block;
|
|
1314
1314
|
max-width: 100%;
|
|
@@ -1349,7 +1349,7 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
1349
1349
|
.ft-chip--dense {
|
|
1350
1350
|
--ft-chip-internal-icon-padding: 3px;
|
|
1351
1351
|
--ft-chip-internal-vertical-padding: ${Ri};
|
|
1352
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
1352
|
+
--ft-chip-internal-horizontal-padding: ${Ni};
|
|
1353
1353
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1354
1354
|
}
|
|
1355
1355
|
|
|
@@ -1367,9 +1367,9 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
1367
1367
|
.ft-chip--highlighted {
|
|
1368
1368
|
border: none;
|
|
1369
1369
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
1370
|
-
background-color: ${
|
|
1371
|
-
${e.setVariable(re.color,
|
|
1372
|
-
color: ${
|
|
1370
|
+
background-color: ${Ti.backgroundColor};
|
|
1371
|
+
${e.setVariable(re.color,Ti.rippleColor)};
|
|
1372
|
+
color: ${Ti.color};
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
1375
|
.ft-chip--clickable {
|
|
@@ -2535,4 +2535,4 @@ const K=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
2535
2535
|
part="floating-panel"
|
|
2536
2536
|
tabindex="-1">
|
|
2537
2537
|
${this.renderDesktopMenu()}
|
|
2538
|
-
</div>`}}vo.elementDefinitions={"ft-accordion":Ci,"ft-accordion-item":ji,"ft-button":
|
|
2538
|
+
</div>`}}vo.elementDefinitions={"ft-accordion":Ci,"ft-accordion-item":ji,"ft-button":Te,"ft-chip":Hi,"ft-filter":ki,"ft-filter-option":zi,"ft-icon":Ie,"ft-ripple":ue,"ft-select":Qi,"ft-select-option":Ji,"ft-size-watcher":f,"ft-skeleton":ro,"ft-snap-scroll":fi,"ft-tooltip":xe,"ft-typography":Qt},vo.styles=[Kt,oo,so,lo.styles,no.styles],ho([o.property({type:Boolean})],vo.prototype,"dense",void 0),ho([o.property()],vo.prototype,"mode",void 0),ho([o.property({type:Boolean})],vo.prototype,"forceMobileMenuOpen",void 0),ho([o.property({type:Boolean})],vo.prototype,"forceMenuOpen",void 0),ho([o.property()],vo.prototype,"baseUrl",void 0),ho([o.property()],vo.prototype,"apiIntegrationIdentifier",void 0),ho([o.property()],vo.prototype,"contentLocale",void 0),ho([o.state()],vo.prototype,"availableContentLocales",void 0),ho([o.state()],vo.prototype,"availableContentLocalesInitialized",void 0),ho([o.property()],vo.prototype,"uiLocale",void 0),ho([e.jsonProperty({})],vo.prototype,"labels",void 0),ho([e.jsonProperty([])],vo.prototype,"displayedFilters",void 0),ho([e.jsonProperty([])],vo.prototype,"presets",void 0),ho([o.property({type:String,reflect:!0})],vo.prototype,"selectedPreset",void 0),ho([e.jsonProperty([])],vo.prototype,"priors",void 0),ho([o.property()],vo.prototype,"searchRequestSerializer",void 0),ho([o.state()],vo.prototype,"searchFilters",void 0),ho([o.state()],vo.prototype,"sizeCategory",void 0),ho([o.state()],vo.prototype,"displayFacets",void 0),ho([o.state()],vo.prototype,"mobileMenuOpen",void 0),ho([o.state()],vo.prototype,"facets",void 0),ho([o.state()],vo.prototype,"facetsInitialized",void 0),ho([o.query(".ft-search-bar--container")],vo.prototype,"container",void 0),ho([o.query(".ft-search-bar--filters-opener")],vo.prototype,"filtersOpener",void 0),ho([o.query(".ft-search-bar--floating-panel")],vo.prototype,"floatingContainer",void 0),ho([o.query("ft-snap-scroll.ft-search-bar--filters-container")],vo.prototype,"scrollingFiltersContainer",void 0),ho([o.query(".ft-search-bar--input")],vo.prototype,"input",void 0),ho([o.state()],vo.prototype,"query",void 0),ho([o.state()],vo.prototype,"suggestions",void 0),ho([o.state()],vo.prototype,"recentSearches",void 0),ho([o.state()],vo.prototype,"scrollToFacet",void 0),ho([o.state()],vo.prototype,"api",void 0),e.customElement("ft-search-bar")(vo),t.DEFAULT_LABELS=po,t.FtSearchBar=vo,t.FtSearchBarCssVariables=io,t.LaunchSearchEvent=fo,t.SearchStateChangeEvent=uo,t.facetsCss=so,t.searchBarCss=oo,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
|
@@ -666,7 +666,7 @@ class mi extends Bt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
666
666
|
${bt(gi.size,Fi.iconSize)};
|
|
667
667
|
${bt(gi.color,"var(--ft-button-internal-color)")};
|
|
668
668
|
}
|
|
669
|
-
`];var ji=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Pi extends xt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=zi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!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-button--safari-fix":Ot,"ft-no-text-select":!0};return this.addTooltipIfNeeded(W`
|
|
669
|
+
`];var ji=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Pi extends xt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=zi.material,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-button--safari-fix":Ot,"ft-no-text-select":!0};return this.addTooltipIfNeeded(W`
|
|
670
670
|
<button part="button"
|
|
671
671
|
class="${ei(t)}"
|
|
672
672
|
aria-label="${this.getLabel()}"
|
|
@@ -680,15 +680,15 @@ class mi extends Bt{constructor(t){if(super(t),this.it=q,t.type!==Et)throw Error
|
|
|
680
680
|
</ft-typography>
|
|
681
681
|
${this.resolveIcon()}
|
|
682
682
|
</button>
|
|
683
|
-
`)}addTooltipIfNeeded(t){return this.
|
|
683
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?W`
|
|
684
684
|
<ft-tooltip part="tooltip"
|
|
685
685
|
text="${this.getLabel()}"
|
|
686
686
|
position="${this.tooltipPosition}">
|
|
687
687
|
${t}
|
|
688
688
|
</ft-tooltip>
|
|
689
|
-
|
|
689
|
+
`:t}resolveIcon(){return this.loading?W`
|
|
690
690
|
<ft-loader></ft-loader> `:this.icon?W`
|
|
691
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}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}}Pi.elementDefinitions={"ft-ripple":di,"ft-tooltip":vi,"ft-typography":Xe,"ft-icon":Mi,"ft-loader":yi},Pi.styles=Ii,ji([o({type:Boolean})],Pi.prototype,"primary",void 0),ji([o({type:Boolean})],Pi.prototype,"outlined",void 0),ji([o({type:Boolean})],Pi.prototype,"disabled",void 0),ji([o({type:Boolean})],Pi.prototype,"dense",void 0),ji([o({type:Boolean})],Pi.prototype,"round",void 0),ji([o({type:String})],Pi.prototype,"label",void 0),ji([o({type:String})],Pi.prototype,"icon",void 0),ji([o({type:String})],Pi.prototype,"iconVariant",void 0),ji([o({type:Boolean})],Pi.prototype,"trailingIcon",void 0),ji([o({type:Boolean})],Pi.prototype,"loading",void 0),ji([o({type:String})],Pi.prototype,"tooltipPosition",void 0),ji([o({type:Boolean})],Pi.prototype,"hideTooltip",void 0),ji([r(".ft-button")],Pi.prototype,"button",void 0),ji([r(".ft-button--label slot")],Pi.prototype,"slottedContent",void 0),h("ft-button")(Pi);const Ui=ut.extend("--ft-checkbox-text-color",vt.colorOnSurfaceHigh),Ai=ut.external(vt.colorPrimary,"Design system"),Ti=ut.external(vt.colorOnPrimary,"Design system"),_i=ut.extend("--ft-checkbox-border-color",vt.colorOnSurfaceMedium),Hi=ut.external(vt.colorOnSurfaceDisabled,"Design system"),Zi=g`
|
|
691
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}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}}Pi.elementDefinitions={"ft-ripple":di,"ft-tooltip":vi,"ft-typography":Xe,"ft-icon":Mi,"ft-loader":yi},Pi.styles=Ii,ji([o({type:Boolean})],Pi.prototype,"primary",void 0),ji([o({type:Boolean})],Pi.prototype,"outlined",void 0),ji([o({type:Boolean})],Pi.prototype,"disabled",void 0),ji([o({type:Boolean})],Pi.prototype,"dense",void 0),ji([o({type:Boolean})],Pi.prototype,"round",void 0),ji([o({type:String})],Pi.prototype,"label",void 0),ji([o({type:String})],Pi.prototype,"icon",void 0),ji([o({type:String})],Pi.prototype,"iconVariant",void 0),ji([o({type:Boolean})],Pi.prototype,"trailingIcon",void 0),ji([o({type:Boolean})],Pi.prototype,"loading",void 0),ji([o({type:String})],Pi.prototype,"tooltipPosition",void 0),ji([o({type:Boolean})],Pi.prototype,"hideTooltip",void 0),ji([o({type:Boolean})],Pi.prototype,"forceTooltip",void 0),ji([r(".ft-button")],Pi.prototype,"button",void 0),ji([r(".ft-button--label slot")],Pi.prototype,"slottedContent",void 0),h("ft-button")(Pi);const Ui=ut.extend("--ft-checkbox-text-color",vt.colorOnSurfaceHigh),Ai=ut.external(vt.colorPrimary,"Design system"),Ti=ut.external(vt.colorOnPrimary,"Design system"),_i=ut.extend("--ft-checkbox-border-color",vt.colorOnSurfaceMedium),Hi=ut.external(vt.colorOnSurfaceDisabled,"Design system"),Zi=g`
|
|
692
692
|
* {
|
|
693
693
|
box-sizing: border-box;
|
|
694
694
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-bar",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"description": "Search bar component using Fluid Topics public API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-accordion": "0.3.
|
|
23
|
-
"@fluid-topics/ft-button": "0.3.
|
|
24
|
-
"@fluid-topics/ft-chip": "0.3.
|
|
25
|
-
"@fluid-topics/ft-filter": "0.3.
|
|
26
|
-
"@fluid-topics/ft-icon": "0.3.
|
|
27
|
-
"@fluid-topics/ft-select": "0.3.
|
|
28
|
-
"@fluid-topics/ft-size-watcher": "0.3.
|
|
29
|
-
"@fluid-topics/ft-skeleton": "0.3.
|
|
30
|
-
"@fluid-topics/ft-snap-scroll": "0.3.
|
|
31
|
-
"@fluid-topics/ft-tooltip": "0.3.
|
|
32
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
33
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-accordion": "0.3.17",
|
|
23
|
+
"@fluid-topics/ft-button": "0.3.17",
|
|
24
|
+
"@fluid-topics/ft-chip": "0.3.17",
|
|
25
|
+
"@fluid-topics/ft-filter": "0.3.17",
|
|
26
|
+
"@fluid-topics/ft-icon": "0.3.17",
|
|
27
|
+
"@fluid-topics/ft-select": "0.3.17",
|
|
28
|
+
"@fluid-topics/ft-size-watcher": "0.3.17",
|
|
29
|
+
"@fluid-topics/ft-skeleton": "0.3.17",
|
|
30
|
+
"@fluid-topics/ft-snap-scroll": "0.3.17",
|
|
31
|
+
"@fluid-topics/ft-tooltip": "0.3.17",
|
|
32
|
+
"@fluid-topics/ft-typography": "0.3.17",
|
|
33
|
+
"@fluid-topics/ft-wc-utils": "0.3.17",
|
|
34
34
|
"lit": "2.2.8"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@fluid-topics/public-api": "1.0.22"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "35c3683874910a6b132930ac8f7dd1ede0294f28"
|
|
43
43
|
}
|